[Wicket-user] Audio in Wicket

2006-05-23 Thread Michael Welter
I have a requirement to provide a web site that allows the customer to 
drill down into database detail.  At the lowest level, the web page 
contains the normal text presentation along with zero to many "Play" 
buttons.  Each button plays a different audio file of previously 
recorded speech.  The user may or may not choose to listen to the audio.


Everything is working except the "Play" buttons.  Hibernate/Postgres is 
a joy, and Wicket is great!


I've modeled the Audio and LocalizedAudioResource classes from Image and 
LocalizedImageResource.  Audio implements IResourceListener.  I have the 
audio streams in memory as a result of the drill down, and, for now, I'm 
just creating ByteArrayResource objects for each stream (after I get it 
working, I'll create a Resource class that performs a database fetch). 
BTW, an audio stream is a java.sql.Blob.


I create the Audio object using the ByteArratResource object.  The HTML 
tag is .  The  tag causes 
the browser to play the track with MediaPlayer or QuickTime.


In LocalizedAudioResource I create a ResourceStreamRequestTarget object 
and pass that to component.urlFor( obj ).  I'm to the point where I need 
to flesh-out the doEncode(RequestCycle,IRequestTarget) function within 
WebRequestCodingStrategy in order to create the URL.


So here are some questions:

Will the URL in the web page reference the ResourceStreamRequestTarget? 
 What will that URL look like?


Do I need to wrap the  tag in a button or a link?

Does anyone have any thoughts about the doEncode function?  Sample code?

Am I on the right track, or there an easier way to do this?

Thanks for your help.  Thanks to compagner and chillenious.




--
Michael Welter
Introspect Telephony Corp.
Denver, Colorado US
+1.303.674.2575
[EMAIL PROTECTED]
www.introspect.com


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Any Free RSS Panel from Wicket Users

2006-05-23 Thread Ryan Sonnek
I'm also interested in a wicket RSS panel, but i'm finding it hard to understand the dojo example.

personally, i think it would be easier to use a library like rome
(https://rome.dev.java.net/) and just add each rss element to a wicket
list view.  it's really not that difficult to parse an existing
rss feed.

Anyone else have some ideas? On 5/23/06, Martijn Dashorst <[EMAIL PROTECTED]> wrote:
Check out the wicket-contrib-dojo-examplesThe students have built a dojo auto update RSS reader.
MartijnOn 5/23/06, Ayodeji Aladejebi
 <[EMAIL PROTECTED]> wrote:
Okay I am lazy again parsing RSSPlease does anyone have a free RSS panel to share :)
Something i can simply input an RSS Link and then it will render out the Links?Thanks :)

-- Wicket 1.2 is coming! Write Ajax applications without touching _javascript_!-- 
http://wicketframework.org




Re: [Wicket-user] pagemap problem with late arriving ajax request

2006-05-23 Thread Igor Vaynberg
ok here is my first pass. i cannot reproduce the problem, so i am kinda flying blind here - all i know for sure is that it compilesit seems to me that as soon as you change the page the browser dumps the old _javascript_, in my case looks like it also dumps any running ajax requests. i tried both ie and ffox.
i added a self upating counter that keeps updating every 1 sec and a link to go to another page, havent been able to catch the right timing i guessanyways, i am attaching the patch, let me know if it works for you and we can take it from here
-IgorOn 5/23/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
i got up extra early to take care of this, so by the end of the day

-igorOn 5/23/06, Ari Suutari <
[EMAIL PROTECTED]> wrote:
This is so great !TIA,Ari S.- Original Message -From: "Johan Compagner" <
[EMAIL PROTECTED]>To: <
wicket-user@lists.sourceforge.net>Sent: Tuesday, May 23, 2006 11:37 AMSubject: Re: [Wicket-user] pagemap problem with late arriving ajax requestWe will fix it in the 1.2 branch.I am currently a bit full of work for at least 2 days. So i can only look at
it by the end of this week.johanOn 5/23/06, Ari Suutari <[EMAIL PROTECTED]
> wrote:>> Hi,>> >best thing todo currently is to have that -1 check in the pagemap and
> make> >your own version of wicket 1.2>> We already decided to put my modified version to production and> if there are no side effects from my change we can keep it for some

> time.>> >in trunk (2.0) this is already fixed in the default setting because we> >refactored the pagemap> >and have now a different default pagemap and httpsessionstore.>

> You mean that if I would use 2.0 from trunk the problem would go> away ? If so, would it be possible to back-port the new pagemap> to 1.2 branch ? Not as default, but something that I could turn on
> from> application settings ?>> Another point: when 1.2 is released, someone else might also> hit this problem so it might be necessary to implement some kind> of fix anyway (at least for us, some pages were almost unusable
> because of this as other pages worked quite ok - it seems that YMMV).>> Ari S.>> On 5/23/06, Ari Suutari <
[EMAIL PROTECTED]
> wrote:> >> > Hi,> >> > It is very important for us to get this fixed, preferably for 1.2.> > If any wicket committer is willing to help us, we will pay> > for the work (please contact me directly by e-mail for this).
> >> > Ari S.> >> > - Original Message -> > From: "Igor Vaynberg" <
[EMAIL PROTECTED]>> > To: <
wicket-user@lists.sourceforge.net>> > Sent: Monday, May 22, 2006 6:21 PM> > Subject: Re: [Wicket-user] pagemap problem with late arriving ajax

> request> >> >> > problem is, not every ajax behavior uses version -1. i guess we need to> > have> > the ability to tag a request as process-only-if-page-is-active

> >> > -Igor> >> >> > On 5/22/06, Ari Suutari <[EMAIL PROTECTED]
 > wrote:> > >> > > If I modify the 
PageMap.java like this:> > >> > > final Page get(final int id, int versionNumber)> > > {> > > final IPageMapEntry entry => > > (IPageMapEntry)session.getAttribute(attributeForId(id));
> > > if (entry != null)> > > {> > >  if (versionNumber == -1) {>
>
>
Access a = peekAccess();> >
>
if (a.getId() != id)> >
>
return null;> > >  }> > >> > > So this kludgery piece of the code checks that if request is coming> from> > > ajax> > > (ie. versionNumber == -1) and the topmost page is not the one being
> > > requested> > > -> return null.> > >> > > After adding this it looks like I cannot reproduce the problem any> more.> > >> > > Ari S.
> > >> > > - Original Message -> > > From: "Johan Compagner" <
[EMAIL PROTECTED]>> > > To: < 
wicket-user@lists.sourceforge.net>> > > Sent: Monday, May 22, 2006 2:37 PM> > > Subject: Re: [Wicket-user] pagemap problem with late arriving ajax> > request> > >

> > >> > > So what request comes first?> > > The ajax request should always do -1 (so latest release)> > > So if the request from the new page did come first then the ajax

> request> > > shouild work on that new page.> > > If the ajax request did come a bit earlier then there shouldn't be a> > > problem> > > at all because> > > the last reqest will be the normal link click for a new page.
> > >> > > johan> > >> > >> > > On 5/22/06, Ari Suutari <
[EMAIL PROTECTED]> wrote:> > > >
> > > > I cannot figure out any workaround myself.> UnversionedBehaviorListener> > > > seems to use -1 as> > > > page version number, would it make any sense to try to alter PageMap
> > so> > > > that> > > > if version is -1 the page stack is not cleared ?> > > >> > > > Ari S.> > > >> > > > - Original Message -
> > > > From: "Matej Knopp" <[EMAIL PROTECTED]>> > > > To: <
wicket-user@lists.sourceforge.net
>> > > > Sent: Monday, May 22, 2006 11:44 AM> > > > Subject: Re: [Wicket-user] pagemap problem with late arriving ajax> > > request> > > >> > >

Re: [Wicket-user] pagemap problem with late arriving ajax request

2006-05-23 Thread Johan Compagner
Go Igor Go!On 5/23/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
i got up extra early to take care of this, so by the end of the day

-igorOn 5/23/06, Ari Suutari <
[EMAIL PROTECTED]> wrote:
This is so great !TIA,Ari S.- Original Message -From: "Johan Compagner" <
[EMAIL PROTECTED]>To: <
wicket-user@lists.sourceforge.net>Sent: Tuesday, May 23, 2006 11:37 AMSubject: Re: [Wicket-user] pagemap problem with late arriving ajax requestWe will fix it in the 1.2 branch.I am currently a bit full of work for at least 2 days. So i can only look at
it by the end of this week.johanOn 5/23/06, Ari Suutari <[EMAIL PROTECTED]
> wrote:>> Hi,>> >best thing todo currently is to have that -1 check in the pagemap and
> make> >your own version of wicket 1.2>> We already decided to put my modified version to production and> if there are no side effects from my change we can keep it for some

> time.>> >in trunk (2.0) this is already fixed in the default setting because we> >refactored the pagemap> >and have now a different default pagemap and httpsessionstore.>

> You mean that if I would use 2.0 from trunk the problem would go> away ? If so, would it be possible to back-port the new pagemap> to 1.2 branch ? Not as default, but something that I could turn on
> from> application settings ?>> Another point: when 1.2 is released, someone else might also> hit this problem so it might be necessary to implement some kind> of fix anyway (at least for us, some pages were almost unusable
> because of this as other pages worked quite ok - it seems that YMMV).>> Ari S.>> On 5/23/06, Ari Suutari <
[EMAIL PROTECTED]
> wrote:> >> > Hi,> >> > It is very important for us to get this fixed, preferably for 1.2.> > If any wicket committer is willing to help us, we will pay> > for the work (please contact me directly by e-mail for this).
> >> > Ari S.> >> > - Original Message -> > From: "Igor Vaynberg" <
[EMAIL PROTECTED]>> > To: <
wicket-user@lists.sourceforge.net>> > Sent: Monday, May 22, 2006 6:21 PM> > Subject: Re: [Wicket-user] pagemap problem with late arriving ajax

> request> >> >> > problem is, not every ajax behavior uses version -1. i guess we need to> > have> > the ability to tag a request as process-only-if-page-is-active

> >> > -Igor> >> >> > On 5/22/06, Ari Suutari <[EMAIL PROTECTED]
 > wrote:> > >> > > If I modify the 
PageMap.java like this:> > >> > > final Page get(final int id, int versionNumber)> > > {> > > final IPageMapEntry entry => > > (IPageMapEntry)session.getAttribute(attributeForId(id));
> > > if (entry != null)> > > {> > >  if (versionNumber == -1) {>
>
>
Access a = peekAccess();> >
>
if (a.getId() != id)> >
>
return null;> > >  }> > >> > > So this kludgery piece of the code checks that if request is coming> from> > > ajax> > > (ie. versionNumber == -1) and the topmost page is not the one being
> > > requested> > > -> return null.> > >> > > After adding this it looks like I cannot reproduce the problem any> more.> > >> > > Ari S.
> > >> > > - Original Message -> > > From: "Johan Compagner" <
[EMAIL PROTECTED]>> > > To: < 
wicket-user@lists.sourceforge.net>> > > Sent: Monday, May 22, 2006 2:37 PM> > > Subject: Re: [Wicket-user] pagemap problem with late arriving ajax> > request> > >

> > >> > > So what request comes first?> > > The ajax request should always do -1 (so latest release)> > > So if the request from the new page did come first then the ajax

> request> > > shouild work on that new page.> > > If the ajax request did come a bit earlier then there shouldn't be a> > > problem> > > at all because> > > the last reqest will be the normal link click for a new page.
> > >> > > johan> > >> > >> > > On 5/22/06, Ari Suutari <
[EMAIL PROTECTED]> wrote:> > > >
> > > > I cannot figure out any workaround myself.> UnversionedBehaviorListener> > > > seems to use -1 as> > > > page version number, would it make any sense to try to alter PageMap
> > so> > > > that> > > > if version is -1 the page stack is not cleared ?> > > >> > > > Ari S.> > > >> > > > - Original Message -
> > > > From: "Matej Knopp" <[EMAIL PROTECTED]>> > > > To: <
wicket-user@lists.sourceforge.net
>> > > > Sent: Monday, May 22, 2006 11:44 AM> > > > Subject: Re: [Wicket-user] pagemap problem with late arriving ajax> > > request> > > >> > > >
> > > > >I guess this is because in 1.2 pagemap behaves like stack. Johan?> > > > >> > > > > -Matej> > > > >> > > > > Ari Suutari wrote:
> > > > >> Hi,> > > > >>> > > > >> I'm having a problem with wicket's ajax stuff where an ajax> request> > > > >> fired by previous page hits the web server after user has clicked
> a> > > > link> > > > >> which has already transferred him to next page.> > > > >>> > > > >> This might be a problem in my application, but I'm seeking for
> > ideas> > > > >> to solve this.> > > > >>> > > > >>> From web server

Re: [Wicket-user] Broadest appeal for Wicket

2006-05-23 Thread Vincent Jenks

You're probably right.  This was the first thing I ever built w/
Wicket and I'll usually do a small project in-parallel, at home w/ a
big project at work so I can more quickly iron out any problems I
might have.

I plan on building more features into it, like the detail page (single
blog entry on a page and then summarize on the "main" page.)  I'd also
thought about generating an HTML page for each blog entry so they can
be picked up by search engines more easily.  Though, from what little
I've seen, "nice" URLs should take care of this?

I'm going to work on it and then post the source for download on my
blog.  Would this be useful as a sample app in wicket-stuff?

On 5/23/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote:

Cool. A thing to consider is to use bookmarkable pages more,
especially for the topics, but also for the blog details if you would
implement that (one detail bookmarkable page, and a human readable
parameter to the actual topic).

Eelco


On 5/23/06, Vincent Jenks <[EMAIL PROTECTED]> wrote:
> It's pretty ghetto at this point and it's hosted on a dell server in
> my home-office, so I've been reluctant to take it seriously:
>
> http://zambizzi.blogdns.com/
>
> It's built w/ Wicket + EJB3 on JBoss 4.0.4.  The cable connection will
> make it sub-optimal for speed/scalability ;)
>
> It's pretty basic as I never have time to work on it.  Looks best w/
> FF, I noticed some strangeness w/ IE but was too lazy to bother w/ it
> last weekend.
>
> On 5/23/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> > >
> > >  Anyhow, I might blog-up a little setup guide for new users for Windows 
and
> > > Linux using Wicket as the web framework.  I'll try to do that this weekend
> > > as crunch-time will be over and I can breathe once again.
> >
> > Maybe you want to share the URL to your blog? If you - or anyone
> > reading this - plan on blogging on Wicket regularly, please feel free
> > to update the 'blogs' section of the WIKI with your URL.
> >
> > >
> > >  Anyone else there developing on Linux?  I use Gentoo myself but I suppose
> > > the "majority" is probably using Ubuntu by now?  Linux might be a tough 
one
> > > to please a lot of people as far as setting up the JDK (though this should
> > > get easier w/ the new license.)
> >
> > I'm using OSX, but I know that quite a bunch of people on this list use 
Linux.
> >
> > 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?cmdlnk&kid0709&bid&3057&dat1642
> > ___
> > 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?cmdlnk&kid0709&bid&3057&dat1642
> ___
> 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?cmdlnk&kid0709&bid&3057&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user




---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid7521&bid$8729&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Broadest appeal for Wicket

2006-05-23 Thread Vincent Jenks

I worked w/ vs.net 2002/2003 since the day each of them was released,
2002 for a long while before it was "final".  I actually quite liked
it compared to Visual Interdev and the old vs 6.0 stuff.

Of course, you're right - It's Windows-centric and doesn't allow the
freedom.  Once I dove into the Java world and saw what I had available
to me it was very hard to justify building apps in .NET again.  The
biggest upside was mature ORM for Java - specifically Hibernate.
Microsoft hyped, then failed miserably at releasing their own ORM
framework (ObjectSpaces) and that's when I started making a push here
at the office for Java.  So far, soo good!

You're right about source code as well.  In the java "community"
you're likely to find exactly what you need as far as source code or
libraries to integrate into your appprobably 100% free and/or open
source.  You're more likely to find that componenets come at a price,
if they're useful.

On 5/23/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote:

Be glad you didn't have to work with VS 2003, that one sucked. VS 2005
is much better; one of the things I like is the integration of
(integration) testing. I think they did a nice job on that. Of course
easy for them as they just support Windows/ IE.

One of the things I hate most of working with VS.NET is not having
much source code available and in general not having as much choice of
(open source) components/ frameworks/ ... as with Java.

Eelco


On 5/23/06, Potje rode kool <[EMAIL PROTECTED]> wrote:
> I think its more what you are used to(what you prefer), I am working for
> some few months with .Net 2.0 with vs.net 2005 but I never got the fealing
> that I got something with vs.net that I didn't have with Eclipse. But great
> things happening with Netbeans, with Matise and Jackpot. With .Net you are
> limited what Microsoft has to offer. You develop in vs.net and deploy on
> IIS, for web application.
>
> But what do you like so mutch about the Microsoft stuff, what is so great
> about vs.net? I am asking this because I am interested.
>
> Thanks,
> Evert
>
>  2006/5/23, VGJ <[EMAIL PROTECTED]>:
> >
> >
> > Before we moved to Java as our primary platform at work, I had done years
> of development w/ MS technologies and you can love or hate Microsoft, but
> the ease of which you're able to sit down and get to work is one thing they
> *have* gotten right.  The fact that it takes four months to install vs.net
> on modern hardware probably says something to that, but regardless, you're
> able to simply focus on your application - not like the relatively gnarly
> dev environment setup w/ Java.
> >
> > Though I prefer Eclipse *slightly* over Netbeans I think Sun is headed in
> the right direction when it comes to ease of initial setup, probably
> inspired by Visual Studio.  I think most new users would find it easier to
> start w/ Netbeans for this reason.  I'd be using it myself if the editor was
> as nice and feature-rich as eclipse.
> >
> > What I'd never want to see is the monolithic consolidation of
> technologies, like Microsoft has; you get one choice for app server, web
> framework, etc.  If Java ever gets *that* easy than we've lost the massive
> advantage of freedom of choice.
> >
> > Anyhow, I might blog-up a little setup guide for new users for Windows and
> Linux using Wicket as the web framework.  I'll try to do that this weekend
> as crunch-time will be over and I can breathe once again.
> >
> > Anyone else there developing on Linux?  I use Gentoo myself but I suppose
> the "majority" is probably using Ubuntu by now?  Linux might be a tough one
> to please a lot of people as far as setting up the JDK (though this should
> get easier w/ the new license.)
> >
> >
> > -v
> >
> >
> > On Tue, 2006-05-23 at 08:59 +0300, Alvar Lumberg wrote:
> > Basically his problem seems to be this whole J2EE hell which has
> > nothing to do with wicket - like creating a webapp directory with a
> > valid structure, add web.xml and so on..
> >
> > I suppose VGJ got the point and there most certainly is work to be
> > done so building web apps in Java doesn't intimidate the hell out a of
> > a Java novice.
> >
> > On 5/20/06, Nick Heudecker <[EMAIL PROTECTED]> wrote:
> > > I'm also confused by this. What are the specific problems you're
> > > encountering? The more detail you can provide, the better the wiki page
> > > I'll write will be. :)
> > >
> > >
> > > On 5/20/06, Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote:
> > > >
> > > > configuration hell with wicket? well for some of us who have tasted
> > > struts, spring web flow and JSP stuffswicket is heaven
> > > >
> > > >
> > > >
> > >
> > >
> >
> >
> > ---
> > 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.

Re: [Wicket-user] pagemap problem with late arriving ajax request

2006-05-23 Thread Igor Vaynberg
yeah yeah, i get to do maintenance while you get to do all the fun stuff in the trunk you bastard!-IgorOn 5/23/06, Johan Compagner <
[EMAIL PROTECTED]> wrote:Go Igor Go!
On 5/23/06, Igor Vaynberg <[EMAIL PROTECTED]
> wrote:
i got up extra early to take care of this, so by the end of the day

-igorOn 5/23/06, Ari Suutari <

[EMAIL PROTECTED]> wrote:
This is so great !TIA,Ari S.- Original Message -From: "Johan Compagner" <

[EMAIL PROTECTED]>To: <
wicket-user@lists.sourceforge.net>Sent: Tuesday, May 23, 2006 11:37 AMSubject: Re: [Wicket-user] pagemap problem with late arriving ajax requestWe will fix it in the 1.2 branch.I am currently a bit full of work for at least 2 days. So i can only look at
it by the end of this week.johanOn 5/23/06, Ari Suutari <[EMAIL PROTECTED]
> wrote:>> Hi,>> >best thing todo currently is to have that -1 check in the pagemap and
> make> >your own version of wicket 1.2>> We already decided to put my modified version to production and> if there are no side effects from my change we can keep it for some

> time.>> >in trunk (2.0) this is already fixed in the default setting because we> >refactored the pagemap> >and have now a different default pagemap and httpsessionstore.>


> You mean that if I would use 2.0 from trunk the problem would go> away ? If so, would it be possible to back-port the new pagemap> to 1.2 branch ? Not as default, but something that I could turn on
> from> application settings ?>> Another point: when 1.2 is released, someone else might also> hit this problem so it might be necessary to implement some kind> of fix anyway (at least for us, some pages were almost unusable
> because of this as other pages worked quite ok - it seems that YMMV).>> Ari S.>> On 5/23/06, Ari Suutari <

[EMAIL PROTECTED]
> wrote:> >> > Hi,> >> > It is very important for us to get this fixed, preferably for 1.2.> > If any wicket committer is willing to help us, we will pay> > for the work (please contact me directly by e-mail for this).
> >> > Ari S.> >> > - Original Message -> > From: "Igor Vaynberg" <

[EMAIL PROTECTED]>> > To: <
wicket-user@lists.sourceforge.net>> > Sent: Monday, May 22, 2006 6:21 PM> > Subject: Re: [Wicket-user] pagemap problem with late arriving ajax

> request> >> >> > problem is, not every ajax behavior uses version -1. i guess we need to> > have> > the ability to tag a request as process-only-if-page-is-active


> >> > -Igor> >> >> > On 5/22/06, Ari Suutari <[EMAIL PROTECTED]
 > wrote:> > >> > > If I modify the 
PageMap.java like this:> > >> > > final Page get(final int id, int versionNumber)> > > {> > > final IPageMapEntry entry => > > (IPageMapEntry)session.getAttribute(attributeForId(id));
> > > if (entry != null)> > > {> > >  if (versionNumber == -1) {>
>
>
Access a = peekAccess();> >
>
if (a.getId() != id)> >
>
return null;> > >  }> > >> > > So this kludgery piece of the code checks that if request is coming> from> > > ajax> > > (ie. versionNumber == -1) and the topmost page is not the one being
> > > requested> > > -> return null.> > >> > > After adding this it looks like I cannot reproduce the problem any> more.> > >> > > Ari S.
> > >> > > - Original Message -> > > From: "Johan Compagner" <

[EMAIL PROTECTED]>> > > To: < 
wicket-user@lists.sourceforge.net>> > > Sent: Monday, May 22, 2006 2:37 PM> > > Subject: Re: [Wicket-user] pagemap problem with late arriving ajax> > request> > >


> > >> > > So what request comes first?> > > The ajax request should always do -1 (so latest release)> > > So if the request from the new page did come first then the ajax


> request> > > shouild work on that new page.> > > If the ajax request did come a bit earlier then there shouldn't be a> > > problem> > > at all because> > > the last reqest will be the normal link click for a new page.
> > >> > > johan> > >> > >> > > On 5/22/06, Ari Suutari <

[EMAIL PROTECTED]> wrote:> > > >
> > > > I cannot figure out any workaround myself.> UnversionedBehaviorListener> > > > seems to use -1 as> > > > page version number, would it make any sense to try to alter PageMap
> > so> > > > that> > > > if version is -1 the page stack is not cleared ?> > > >> > > > Ari S.> > > >> > > > - Original Message -
> > > > From: "Matej Knopp" <[EMAIL PROTECTED]>> > > > To: <

wicket-user@lists.sourceforge.net
>> > > > Sent: Monday, May 22, 2006 11:44 AM> > > > Subject: Re: [Wicket-user] pagemap problem with late arriving ajax> > > request> > > >> > > >
> > > > >I guess this is because in 1.2 pagemap behaves like stack. Johan?> > > > >> > > > > -Matej> > > > >> > > > > Ari Suutari wrote:
> > > > >> Hi,> > > > >>> > > > >> I'm having a problem with wicket's ajax stuff where an ajax> request> > > > >> fired by previous page hits the web server after user has clicked
> a> > > > link> > > > >> which has already transferred h

Re: [Wicket-user] Broadest appeal for Wicket

2006-05-23 Thread Eelco Hillenius

Be glad you didn't have to work with VS 2003, that one sucked. VS 2005
is much better; one of the things I like is the integration of
(integration) testing. I think they did a nice job on that. Of course
easy for them as they just support Windows/ IE.

One of the things I hate most of working with VS.NET is not having
much source code available and in general not having as much choice of
(open source) components/ frameworks/ ... as with Java.

Eelco


On 5/23/06, Potje rode kool <[EMAIL PROTECTED]> wrote:

I think its more what you are used to(what you prefer), I am working for
some few months with .Net 2.0 with vs.net 2005 but I never got the fealing
that I got something with vs.net that I didn't have with Eclipse. But great
things happening with Netbeans, with Matise and Jackpot. With .Net you are
limited what Microsoft has to offer. You develop in vs.net and deploy on
IIS, for web application.

But what do you like so mutch about the Microsoft stuff, what is so great
about vs.net? I am asking this because I am interested.

Thanks,
Evert

 2006/5/23, VGJ <[EMAIL PROTECTED]>:
>
>
> Before we moved to Java as our primary platform at work, I had done years
of development w/ MS technologies and you can love or hate Microsoft, but
the ease of which you're able to sit down and get to work is one thing they
*have* gotten right.  The fact that it takes four months to install vs.net
on modern hardware probably says something to that, but regardless, you're
able to simply focus on your application - not like the relatively gnarly
dev environment setup w/ Java.
>
> Though I prefer Eclipse *slightly* over Netbeans I think Sun is headed in
the right direction when it comes to ease of initial setup, probably
inspired by Visual Studio.  I think most new users would find it easier to
start w/ Netbeans for this reason.  I'd be using it myself if the editor was
as nice and feature-rich as eclipse.
>
> What I'd never want to see is the monolithic consolidation of
technologies, like Microsoft has; you get one choice for app server, web
framework, etc.  If Java ever gets *that* easy than we've lost the massive
advantage of freedom of choice.
>
> Anyhow, I might blog-up a little setup guide for new users for Windows and
Linux using Wicket as the web framework.  I'll try to do that this weekend
as crunch-time will be over and I can breathe once again.
>
> Anyone else there developing on Linux?  I use Gentoo myself but I suppose
the "majority" is probably using Ubuntu by now?  Linux might be a tough one
to please a lot of people as far as setting up the JDK (though this should
get easier w/ the new license.)
>
>
> -v
>
>
> On Tue, 2006-05-23 at 08:59 +0300, Alvar Lumberg wrote:
> Basically his problem seems to be this whole J2EE hell which has
> nothing to do with wicket - like creating a webapp directory with a
> valid structure, add web.xml and so on..
>
> I suppose VGJ got the point and there most certainly is work to be
> done so building web apps in Java doesn't intimidate the hell out a of
> a Java novice.
>
> On 5/20/06, Nick Heudecker <[EMAIL PROTECTED]> wrote:
> > I'm also confused by this. What are the specific problems you're
> > encountering? The more detail you can provide, the better the wiki page
> > I'll write will be. :)
> >
> >
> > On 5/20/06, Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote:
> > >
> > > configuration hell with wicket? well for some of us who have tasted
> > struts, spring web flow and JSP stuffswicket is heaven
> > >
> > >
> > >
> >
> >
>
>
> ---
> 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
>
>
>
>





---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid7521&bid$8729&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Broadest appeal for Wicket

2006-05-23 Thread Potje rode kool
I think its more what you are used to(what you prefer), I am working for some few months with .Net 2.0 with vs.net 2005 but I never got the fealing that I got something with 
vs.net that I didn't have with Eclipse. But great things happening with Netbeans, with Matise and Jackpot. With .Net you are limited what Microsoft has to offer. You develop in vs.net and deploy on IIS, for web application.
But what do you like so mutch about the Microsoft stuff, what is so great about vs.net? I am asking this because I am interested.Thanks,Evert
2006/5/23, VGJ <[EMAIL PROTECTED]>:



  
  


Before we moved to Java as our primary platform at work, I had done years of development w/ MS technologies and you can love or hate Microsoft, but the ease of which you're able to sit down and get to work is one thing they *have* gotten right.  The fact that it takes four months to install 
vs.net on modern hardware probably says something to that, but regardless, you're able to simply focus on your application - not like the relatively gnarly dev environment setup w/ Java.


Though I prefer Eclipse *slightly* over Netbeans I think Sun is headed in the right direction when it comes to ease of initial setup, probably inspired by Visual Studio.  I think most new users would find it easier to start w/ Netbeans for this reason.  I'd be using it myself if the editor was as nice and feature-rich as eclipse.


What I'd never want to see is the monolithic consolidation of technologies, like Microsoft has; you get one choice for app server, web framework, etc.  If Java ever gets *that* easy than we've lost the massive advantage of freedom of choice.


Anyhow, I might blog-up a little setup guide for new users for Windows and Linux using Wicket as the web framework.  I'll try to do that this weekend as crunch-time will be over and I can breathe once again.

Anyone else there developing on Linux?  I use Gentoo myself but I suppose the "majority" is probably using Ubuntu by now?  Linux might be a tough one to please a lot of people as far as setting up the JDK (though this should get easier w/ the new license.)


-v

On Tue, 2006-05-23 at 08:59 +0300, Alvar Lumberg wrote:

Basically his problem seems to be this whole J2EE hell which has
nothing to do with wicket - like creating a webapp directory with a
valid structure, add web.xml and so on..

I suppose VGJ got the point and there most certainly is work to be
done so building web apps in Java doesn't intimidate the hell out a of
a Java novice.

On 5/20/06, Nick Heudecker <[EMAIL PROTECTED]> wrote:
> I'm also confused by this.  What are the specific problems you're
> encountering?  The more detail you can provide, the better the wiki page
> I'll write will be. :)
>
>
> On 5/20/06, Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote:
> >
> > configuration hell with wicket? well for some of us who have tasted
> struts, spring web flow and JSP stuffswicket is heaven
> >
> >
> >
>
>


---
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] Broadest appeal for Wicket

2006-05-23 Thread Eelco Hillenius

Cool. A thing to consider is to use bookmarkable pages more,
especially for the topics, but also for the blog details if you would
implement that (one detail bookmarkable page, and a human readable
parameter to the actual topic).

Eelco


On 5/23/06, Vincent Jenks <[EMAIL PROTECTED]> wrote:

It's pretty ghetto at this point and it's hosted on a dell server in
my home-office, so I've been reluctant to take it seriously:

http://zambizzi.blogdns.com/

It's built w/ Wicket + EJB3 on JBoss 4.0.4.  The cable connection will
make it sub-optimal for speed/scalability ;)

It's pretty basic as I never have time to work on it.  Looks best w/
FF, I noticed some strangeness w/ IE but was too lazy to bother w/ it
last weekend.

On 5/23/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> >
> >  Anyhow, I might blog-up a little setup guide for new users for Windows and
> > Linux using Wicket as the web framework.  I'll try to do that this weekend
> > as crunch-time will be over and I can breathe once again.
>
> Maybe you want to share the URL to your blog? If you - or anyone
> reading this - plan on blogging on Wicket regularly, please feel free
> to update the 'blogs' section of the WIKI with your URL.
>
> >
> >  Anyone else there developing on Linux?  I use Gentoo myself but I suppose
> > the "majority" is probably using Ubuntu by now?  Linux might be a tough one
> > to please a lot of people as far as setting up the JDK (though this should
> > get easier w/ the new license.)
>
> I'm using OSX, but I know that quite a bunch of people on this list use Linux.
>
> 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?cmdlnk&kid0709&bid&3057&dat1642
> ___
> 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?cmdlnk&kid0709&bid&3057&dat1642
___
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&kid0709&bid&3057&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Spam] Re: [Wicket-user] ENABLING WAR: Celebrity Christians and the realDa vinci Code

2006-05-23 Thread cowwoc

Why buy the book when I can summarize it for you for free?

Executive summary: "It's a conspiracy! (isn't everything?) Jews control
the world! Join us in finding new creative ways to blame them for all
our problems so we can murder more of them."

Man, I'm tired of this sort of crap. Makes me wonder how humanity has
made it to the 21st century.

Gili

Dorel Vaida wrote:
> this is too long to read. they should split it.
> [EMAIL PROTECTED] wrote:
>> Reply-To: cecarl
>>
>> http://straitgateministry.net/
>> 345-page ONE NATION UNDER ISRAEL Almost FREE (see end)
>> Published by Truths Press
>>
>> ENABLING WAR: HOW A BIBLE PUBLISHER CORRUPTED CHRIST'S WORDS
>> Why Celebrity leaders accept a form of Judaism and call it "Christianity"
>> By Charles E. Carlson (Director of We Hold These Truths)
>>
>> This study is not written to convince anyone of what Jesus said; it
>> quotes a small but important part of the Christian New Testament of
>> Jesus, explaining how these words have been reinterpreted to justify
>> serial wars.  This analysis is important to persons of all beliefs,
>> faiths, and races who are trying to understand why wars dominate our
>> world, and why many of those who call themselves by Jesus Christ's
>> name find themselves pitted in support of wars against other races. It
>> is undeniable that our current wars are directed at Islamic
>> populations.  We focus on one bible that is used every day as a war
>> enabler.
>> This is a re-written and abbreviated version of our more far reaching
>> 2006 series, "The Sheep and the Goats" Parts 1 & 2, which are drawn
>> from a study of book of Matthew, chapter 25.  Your author is
>> responding to requests that we more clearly prove and document the
>> essence of popular biblical distortion about Heaven and Hell in the
>> book of Matthew. Chapters 24-25, which evangelical believe to contain
>> Jesus' words, are intentionally distorted by these same persons, both
>> in the text and footnotes to the text in most popular bible study
>> versions.
>>
>> Self professed CHRISTIAN-ZIONISTS at the pulpit of mega-churches are
>> left with an untenable problem. It is impossible for them to tell the
>> truth about what certain New Testament Bible passages say, or even to
>> read them, without contradicting their own support for wars and for
>> the constantly warring state of Israel. Evangelical teaching and
>> preaching often directly contradict that which Jesus taught about love
>> and peace, and more surprisingly, celebrity Christian statements often
>> directly conflict with Jesus' statements about Heaven and Hell.
>> Church economics may be a factor in scriptural compromise. Opposition
>> to war is less popular than ignoring or accepting it.  Celebrity
>> Christian leaders may feel financial pressure to warp the New
>> Testament into a wide and easy path interpretation, which they say
>> points, not to Heaven and Hell, but to a "second coming."  Simply
>> stated, pastors have learned they can't fill 10,000 seat arenas by
>> leaning too heavily on sin, repentance and judgment as Jesus portrayed
>> it in this carefully worded chapter. It is just not good for
>> mega-church business.
>>
>> Nor do they want to refute what is public policy at the highest
>> levels. Some pastors no doubt justify compromise to choose the wide
>> path to build their own empires in contrast to what Christ called the
>> narrow path or "Strait" gate. Our government's public policy includes
>> war, which has also become many churches' policy.
>>
>> Evangelical celebrities generally believe in politically activism, and
>> every politician knows it pays to be "born again." Thus an unspoken,
>> unholy alliance has been created between financially successful
>> biblical teachers on one hand, and politically successful politicians
>> and businessmen who thrive on serial wars, on the other. The cost has
>> been untold lives in several unholy wars in the 20 years.   But where
>> to the war-accepting pastors find their scriptural support for war? We
>> will examine only once example in a corrupted version of the book of
>> Matthew, in one corrupted bible the Scofield Reference Bible 1967
>> version.
>>
>> Oh that my adversary would write a book
>>
>> The famous Scofield Reference Bible, perhaps the most powerfully
>> promoted Bible ever written, is the godfather of modern bible
>> distortion, which is now emulating and even exceeding in radicalism by
>> other popular study bibles including the NIV Study Bible and the
>> MacArthur Study Bible.  
>> Matthew 25 contains one of the most directly written and clearly
>> self-explained passages on Heaven and Hell, which was once taken at
>> face value in most churches. But the explanation of Matthew 25 we find
>> so simple and straight forward is now rejected in almost every
>> evangelical (Christian Zionist) church. And the Oxford/Scofield
>> re-write is increasingly influential in a growing number of mainline
>> churches where are me

Re: [Wicket-user] WARNING: head/ trunk is highly experimental for a while

2006-05-23 Thread Eelco Hillenius

And as always, ideas/ contributions/ patches of the brave are welcome!

Eelco

On 5/23/06, Timo Stamm <[EMAIL PROTECTED]> wrote:

Johan Compagner schrieb:
> But if it does take longer you could use trunk. It is now a fast moving
> target.
> But many of those changes are java 5 related [...]


Yay! Generics and Covariant Return Types!! No more Castings! !WOOOT


---
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&kid0709&bid&3057&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Broadest appeal for Wicket

2006-05-23 Thread Vincent Jenks

It's pretty ghetto at this point and it's hosted on a dell server in
my home-office, so I've been reluctant to take it seriously:

http://zambizzi.blogdns.com/

It's built w/ Wicket + EJB3 on JBoss 4.0.4.  The cable connection will
make it sub-optimal for speed/scalability ;)

It's pretty basic as I never have time to work on it.  Looks best w/
FF, I noticed some strangeness w/ IE but was too lazy to bother w/ it
last weekend.

On 5/23/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote:

>
>  Anyhow, I might blog-up a little setup guide for new users for Windows and
> Linux using Wicket as the web framework.  I'll try to do that this weekend
> as crunch-time will be over and I can breathe once again.

Maybe you want to share the URL to your blog? If you - or anyone
reading this - plan on blogging on Wicket regularly, please feel free
to update the 'blogs' section of the WIKI with your URL.

>
>  Anyone else there developing on Linux?  I use Gentoo myself but I suppose
> the "majority" is probably using Ubuntu by now?  Linux might be a tough one
> to please a lot of people as far as setting up the JDK (though this should
> get easier w/ the new license.)

I'm using OSX, but I know that quite a bunch of people on this list use Linux.

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?cmdlnk&kid0709&bid&3057&dat1642
___
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&kid0709&bid&3057&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] WARNING: head/ trunk is highly experimental for a while

2006-05-23 Thread Timo Stamm

Johan Compagner schrieb:

But if it does take longer you could use trunk. It is now a fast moving
target.
But many of those changes are java 5 related [...]



Yay! Generics and Covariant Return Types!! No more Castings! !WOOOT


---
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] write an entire tag?

2006-05-23 Thread Igor Vaynberg
by default the number of rows is set to Integer.MAX_VALUE - so yes.

-Igor
On 5/23/06, Vincent Jenks <[EMAIL PROTECTED]> wrote:
Yeah, I understand what you were saying now...I was just a littleburnt out last night.  Thankfully there's only a link and two labels,not a big deal to just add them w/ blank values.So, if I don't set the number of rows, will it expand dynamically
(automatically)??On 5/23/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:> yeah, thats the advantage of using panels or fragments - a single top level
> element, so in populate empty item you just stick an empty panel.>>  anyways, glad to hear you got it working.>>  -Igor On 5/23/06, Vincent Jenks <
[EMAIL PROTECTED]> wrote:> >>  Igor, I got this all working correctly now, I was just missing one of> the controls in the populateEmptyItem method.  When we were going back> and forth yesterday it didn't dawn on me immediately that the entire
> hierarchy of components had to be re-created in this method.>> I've now got it exactly where I want it (once I make the # of rows dynamic).>> Thanks for your help!>> On 5/22/06, VGJ <
[EMAIL PROTECTED]> wrote:> >> >  I went ahead and created a hidden component for each of the ones that> > appear in populateItem, set the column count to 3, and still got the
> > exception on the *same* control.  That's when I called it quits! :D> >> >  I'll pick up the fight tomorrow.  Thanks Igor.> >> >> >  On Mon, 2006-05-22 at 18:01 -0700, Igor Vaynberg wrote:
> >> >> >  I have been...the method fires.  Do all the controls that exist in> >  populateItem also need to exist in populateEmptyItem??  Would> >  "missing" controls explain the screwed-up hierarchy?
> >> >  yes, because the same markup is used to render an empty cell and a> > populated cell. so populateEmptyItem has to reproduce the hierarchy with> > empty objects, or at least reproduce the top most container (if you only
> > haveone) and call setvisible(false) on it so that its children dont have> to> > be rendered and wicket can skip the rest of the markup.> >> >> >> >  so given your current markup it should look something like this:
> >> >  void populateEmptyItem(Item item) {> >  WebMarkupContainer container=new> > WebMarkupContainer("thumbnailLink");> > container.setVisible (false);
> >  item.add(container);> >  }> >> >> >> >  ouch...a panel for each cell?> >> >  a panel or a fragment, it doesnt matter. why ouch? there is no overhead
> or> > anything.> >> >  -Igor> >> >> >> >> >> >>  ---
> 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?cmdlnk&kid0709&bid&3057&dat1642
> ___> 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 easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmdlnk&kid0709&bid&3057&dat1642___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] write an entire tag?

2006-05-23 Thread Vincent Jenks

Yeah, I understand what you were saying now...I was just a little
burnt out last night.  Thankfully there's only a link and two labels,
not a big deal to just add them w/ blank values.

So, if I don't set the number of rows, will it expand dynamically
(automatically)??

On 5/23/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:

yeah, thats the advantage of using panels or fragments - a single top level
element, so in populate empty item you just stick an empty panel.

 anyways, glad to hear you got it working.

 -Igor



On 5/23/06, Vincent Jenks <[EMAIL PROTECTED]> wrote:
>
 Igor, I got this all working correctly now, I was just missing one of
the controls in the populateEmptyItem method.  When we were going back
and forth yesterday it didn't dawn on me immediately that the entire
hierarchy of components had to be re-created in this method.

I've now got it exactly where I want it (once I make the # of rows dynamic).

Thanks for your help!

On 5/22/06, VGJ <[EMAIL PROTECTED]> wrote:
>
>  I went ahead and created a hidden component for each of the ones that
> appear in populateItem, set the column count to 3, and still got the
> exception on the *same* control.  That's when I called it quits! :D
>
>  I'll pick up the fight tomorrow.  Thanks Igor.
>
>
>  On Mon, 2006-05-22 at 18:01 -0700, Igor Vaynberg wrote:
>
>
>  I have been...the method fires.  Do all the controls that exist in
>  populateItem also need to exist in populateEmptyItem??  Would
>  "missing" controls explain the screwed-up hierarchy?
>
>  yes, because the same markup is used to render an empty cell and a
> populated cell. so populateEmptyItem has to reproduce the hierarchy with
> empty objects, or at least reproduce the top most container (if you only
> haveone) and call setvisible(false) on it so that its children dont have
to
> be rendered and wicket can skip the rest of the markup.
>
>
>
>  so given your current markup it should look something like this:
>
>  void populateEmptyItem(Item item) {
>  WebMarkupContainer container=new
> WebMarkupContainer("thumbnailLink");
> container.setVisible (false);
>  item.add(container);
>  }
>
>
>
>  ouch...a panel for each cell?
>
>  a panel or a fragment, it doesnt matter. why ouch? there is no overhead
or
> anything.
>
>  -Igor
>
>
>
>
>
>
>


---
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?cmdlnk&kid0709&bid&3057&dat1642
___
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&kid0709&bid&3057&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Any Free RSS Panel from Wicket Users

2006-05-23 Thread Martijn Dashorst
Check out the wicket-contrib-dojo-examplesThe students have built a dojo auto update RSS reader.MartijnOn 5/23/06, Ayodeji Aladejebi
 <[EMAIL PROTECTED]> wrote:Okay I am lazy again parsing RSSPlease does anyone have a free RSS panel to share :)
Something i can simply input an RSS Link and then it will render out the Links?Thanks :)

-- Wicket 1.2 is coming! Write Ajax applications without touching _javascript_!-- http://wicketframework.org


[Wicket-user] Any Free RSS Panel from Wicket Users

2006-05-23 Thread Ayodeji Aladejebi
Okay I am lazy again parsing RSSPlease does anyone have a free RSS panel to share :)Something i can simply input an RSS Link and then it will render out the Links?Thanks :)


Re: [Wicket-user] Broadest appeal for Wicket

2006-05-23 Thread Eelco Hillenius


 Anyhow, I might blog-up a little setup guide for new users for Windows and
Linux using Wicket as the web framework.  I'll try to do that this weekend
as crunch-time will be over and I can breathe once again.


Maybe you want to share the URL to your blog? If you - or anyone
reading this - plan on blogging on Wicket regularly, please feel free
to update the 'blogs' section of the WIKI with your URL.



 Anyone else there developing on Linux?  I use Gentoo myself but I suppose
the "majority" is probably using Ubuntu by now?  Linux might be a tough one
to please a lot of people as far as setting up the JDK (though this should
get easier w/ the new license.)


I'm using OSX, but I know that quite a bunch of people on this list use Linux.

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&kid0709&bid&3057&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] write an entire tag?

2006-05-23 Thread Igor Vaynberg
yeah, thats the advantage of using panels or fragments - a single top
level element, so in populate empty item you just stick an empty panel.

anyways, glad to hear you got it working.

-Igor
On 5/23/06, Vincent Jenks <[EMAIL PROTECTED]> wrote:
Igor, I got this all working correctly now, I was just missing one ofthe controls in the populateEmptyItem method.  When we were going backand forth yesterday it didn't dawn on me immediately that the entirehierarchy of components had to be re-created in this method.
I've now got it exactly where I want it (once I make the # of rows dynamic).Thanks for your help!On 5/22/06, VGJ <[EMAIL PROTECTED]> wrote:
>>  I went ahead and created a hidden component for each of the ones that> appear in populateItem, set the column count to 3, and still got the> exception on the *same* control.  That's when I called it quits! :D
>>  I'll pick up the fight tomorrow.  Thanks Igor.>>>  On Mon, 2006-05-22 at 18:01 -0700, Igor Vaynberg wrote:>>>  I have been...the method fires.  Do all the controls that exist in
>  populateItem also need to exist in populateEmptyItem??  Would>  "missing" controls explain the screwed-up hierarchy?>>  yes, because the same markup is used to render an empty cell and a
> populated cell. so populateEmptyItem has to reproduce the hierarchy with> empty objects, or at least reproduce the top most container (if you only> haveone) and call setvisible(false) on it so that its children dont have to
> be rendered and wicket can skip the rest of the markup.  so given your current markup it should look something like this:>>  void populateEmptyItem(Item item) {>  WebMarkupContainer container=new
> WebMarkupContainer("thumbnailLink");> container.setVisible (false);>  item.add(container);>  }  ouch...a panel for each cell?>>  a panel or a fragment, it doesnt matter. why ouch? there is no overhead or
> anything.>>  -Igor>>>---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 easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmdlnk&kid0709&bid&3057&dat1642___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] write an entire tag?

2006-05-23 Thread Vincent Jenks

Igor, I got this all working correctly now, I was just missing one of
the controls in the populateEmptyItem method.  When we were going back
and forth yesterday it didn't dawn on me immediately that the entire
hierarchy of components had to be re-created in this method.

I've now got it exactly where I want it (once I make the # of rows dynamic).

Thanks for your help!

On 5/22/06, VGJ <[EMAIL PROTECTED]> wrote:


 I went ahead and created a hidden component for each of the ones that
appear in populateItem, set the column count to 3, and still got the
exception on the *same* control.  That's when I called it quits! :D

 I'll pick up the fight tomorrow.  Thanks Igor.


 On Mon, 2006-05-22 at 18:01 -0700, Igor Vaynberg wrote:


 I have been...the method fires.  Do all the controls that exist in
 populateItem also need to exist in populateEmptyItem??  Would
 "missing" controls explain the screwed-up hierarchy?

 yes, because the same markup is used to render an empty cell and a
populated cell. so populateEmptyItem has to reproduce the hierarchy with
empty objects, or at least reproduce the top most container (if you only
haveone) and call setvisible(false) on it so that its children dont have to
be rendered and wicket can skip the rest of the markup.



 so given your current markup it should look something like this:

 void populateEmptyItem(Item item) {
 WebMarkupContainer container=new
WebMarkupContainer("thumbnailLink");
container.setVisible (false);
 item.add(container);
 }



 ouch...a panel for each cell?

 a panel or a fragment, it doesnt matter. why ouch? there is no overhead or
anything.

 -Igor










---
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&kid0709&bid&3057&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] ENABLING WAR: Celebrity Christians and the real Da vinci Code

2006-05-23 Thread Dorel Vaida

this is too long to read. they should split it.
[EMAIL PROTECTED] wrote:

Reply-To: cecarl

http://straitgateministry.net/
345-page ONE NATION UNDER ISRAEL Almost FREE (see end)
Published by Truths Press

ENABLING WAR: HOW A BIBLE PUBLISHER CORRUPTED CHRIST'S WORDS
Why Celebrity leaders accept a form of Judaism and call it "Christianity"
By Charles E. Carlson (Director of We Hold These Truths)

This study is not written to convince anyone of what Jesus said; it quotes a small but important part of the Christian New Testament of Jesus, explaining how these words have been reinterpreted to justify serial wars.  This analysis is important to persons of all beliefs, faiths, and races who are trying to understand why wars dominate our world, and why many of those who call themselves by Jesus Christ's name find themselves pitted in support of wars against other races. It is undeniable that our current wars are directed at Islamic populations.  We focus on one bible that is used every day as a war enabler. 


This is a re-written and abbreviated version of our more far reaching 2006 series, "The 
Sheep and the Goats" Parts 1 & 2, which are drawn from a study of book of Matthew, 
chapter 25.  Your author is responding to requests that we more clearly prove and document 
the essence of popular biblical distortion about Heaven and Hell in the book of Matthew. 
Chapters 24-25, which evangelical believe to contain Jesus' words, are intentionally 
distorted by these same persons, both in the text and footnotes to the text in most popular 
bible study versions.

Self professed CHRISTIAN-ZIONISTS at the pulpit of mega-churches are left with an untenable problem. It is impossible for them to tell the truth about what certain New Testament Bible passages say, or even to read them, without contradicting their own support for wars and for the constantly warring state of Israel. Evangelical teaching and preaching often directly contradict that which Jesus taught about love and peace, and more surprisingly, celebrity Christian statements often directly conflict with Jesus' statements about Heaven and Hell. 


Church economics may be a factor in scriptural compromise. Opposition to war is less 
popular than ignoring or accepting it.  Celebrity Christian leaders may feel financial 
pressure to warp the New Testament into a wide and easy path interpretation, which they 
say points, not to Heaven and Hell, but to a "second coming."  Simply stated, 
pastors have learned they can't fill 10,000 seat arenas by leaning too heavily on sin, 
repentance and judgment as Jesus portrayed it in this carefully worded chapter. It is 
just not good for mega-church business.

Nor do they want to refute what is public policy at the highest levels. Some pastors no 
doubt justify compromise to choose the wide path to build their own empires in contrast 
to what Christ called the narrow path or "Strait" gate. Our government's public 
policy includes war, which has also become many churches' policy.

Evangelical celebrities generally believe in politically activism, and every politician 
knows it pays to be "born again." Thus an unspoken, unholy alliance has been 
created between financially successful biblical teachers on one hand, and politically 
successful politicians and businessmen who thrive on serial wars, on the other. The cost 
has been untold lives in several unholy wars in the 20 years.   But where to the 
war-accepting pastors find their scriptural support for war? We will examine only once 
example in a corrupted version of the book of Matthew, in one corrupted bible the 
Scofield Reference Bible 1967 version.

Oh that my adversary would write a book

The famous Scofield Reference Bible, perhaps the most powerfully promoted Bible ever written, is the godfather of modern bible distortion, which is now emulating and even exceeding in radicalism by other popular study bibles including the NIV Study Bible and the MacArthur Study Bible.   


Matthew 25 contains one of the most directly written and clearly self-explained 
passages on Heaven and Hell, which was once taken at face value in most 
churches. But the explanation of Matthew 25 we find so simple and straight 
forward is now rejected in almost every evangelical (Christian Zionist) church. 
And the Oxford/Scofield re-write is increasingly influential in a growing 
number of mainline churches where are members attend dispensational bible 
studies, and while there hours before celebrity-Christian media.  Members of 
most Catholic or mainline protestant church are also deeply influenced by the 
“end times controversy.

Matthew, the first book in the New Testament, contains the most outrageous example of 
added words that directly contradicts Jesus words. A quote from the Scofield Reference 
Bible footnotes directly contradicts what Jesus Christ is quoted to have said, His simple 
words, taken from the King James Edition, describing the basis upon which Jesus told his 
followers He himself

Re: [Wicket-user] Collapsing Bar in Wicket

2006-05-23 Thread Igor Vaynberg

once again igor..congrats 

thanks :)

-Igor


Re: [Wicket-user] Collapsing Bar in Wicket

2006-05-23 Thread Andrew Berman
I haven't put it in a Wicket component.  I've only implemented it using plain ol' _javascript_.  If you look in the email trail for this subject you'll see the _javascript_ I used.  If I can find some time I'll try to write a component, but no promises as I've been swamped with work work.
On 5/23/06, Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote:
standardizing dojo and Scriptaculous for the extension stuffs will be a great. and andrew pls can i get some documents on how yu implemented Scriptaculous for this accordion effect..thanksonce again igor..congrats 
On 5/22/06, Igor Vaynberg <
[EMAIL PROTECTED]> wrote:
do you know where in svn this donation lives? i would like to take a look.-IgorOn 5/22/06, 
Andrew Berman <
[EMAIL PROTECTED]> wrote:Scriptaculous is not really that big unless you use all of its script components.  To do the effects I show above you only need to include 
effects.js and prototype.js.  The big guy is prototype, but it's such a valuable library anyway who cares.  I agree that dojo and scriptaculous should be included as the standards in Wicket; it makes sense to build off of the two best libraries right now.  Who knows though, the Zimbra libraries which were donated to Apache might become the de facto standard at some point.
On 5/22/06, Igor Vaynberg <


[EMAIL PROTECTED]> wrote:
the reason i suggested moo is because it is small and scruptaculous is
rather large, so if you only use it for accordian its kind of a waste.

i think what we need is to put into extensions things that include the
major js files like dojo and scriptaculous, that way other components
can reuse them. something to think about for 2.0

-Igor
On 5/22/06, Andrew Berman <[EMAIL PROTECTED]
> wrote:
Just so you know, Moo's accordian does not work in IE 5.5. 
That's the main reason I chose not to use it with my site.  There
are still plenty of people using Win2k with IE 5.5.  When I
switched to Scriptaculous, all was good.  The switchover was
pretty painless.  Here is basically how I did it:
var opened;stretchers = $$("div.stretcher");triggers = $$("a.trigger");function toggle(num) {                if (opened != null) {                        Effect.BlindUp(stretchers[opened], {duration: 
0.15,queue: 'front'});                   }                 if (opened != num) {                    opened = num;               
        return new
Effect.BlindDown(stretchers[num], {duration: 0.15,queue: 'end'});
        }                opened = null;        return;    }
Some text hereThe
number passed into the _javascript_ is the number in the array of the
stretcher.  Just thought I'd document here how to do it in case
anyone wants to make the change or use something like this with
Scriptaculous.
--AndrewOn 5/22/06, Ayodeji Aladejebi <




[EMAIL PROTECTED]> wrote:
aawwh!! lovely baby boyOn 5/22/06, Igor Vaynberg <





[EMAIL PROTECTED]> wrote:
i wont be able to do code review for a little while, my son was
born friday evening, so a little short on time :) if i can get to it in
time then we will put it into 1.2, if not we will put it into 1.2.1.
will let you know when i reviewed it. of course if someone else from
the core team wants to review it and put it into extensions dont
hesitate.
i know martijn likes components like this :) i ran the quickstart and it looked really awesome!-Igor
On 5/22/06, Ayodeji Aladejebi <
[EMAIL PROTECTED]> wrote:






hey igor...how is it going...du u think it needs more touches? should i go ahead and refactor it to 
wicket.extensions.collapsingpanel or something?On 5/21/06, 

Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote:









Well here is the file...give it a try again. they are functional now and look at the quick start before writing yours
On 5/20/06, ali <
[EMAIL PROTECTED]> wrote:i get ClassCastException soprotected void populateItem(ListItem item) {
//CollapsingPair pair = (CollapsingPair)item.getModel();CollapsingPair pair = (CollapsingPair)item.getModelObject();  //@TODO :Ali Reza Sharghi , i addalso if i correctly use your component , where is tag of header or content
components of client of component ? and surely you want choosing thesetags give to client of components.i get exception   wicket.WicketRuntimeException: The component(s) below failed torender. A common problem is that you have added a
   component in code but forgot to reference it in the markup (thus thecomponent will never be rendered).when use your component in this way : List listItems = new ArrayList();
 listItems.add(new CollapsingPair(new Label("label1", "one"),getPanel("panel1"))); listItems.add(new CollapsingPair(new Label("label2", "two"),
getPanel("panel2"))); listItems.add(new CollapsingPair(new Label("label3", "three"),getPanel("panel3"))); add(new CollapsablePane("pane", listItems, 
Duration.ONE_SECOND,true)); //Test Pane   } private Panel getPanel(String id) { Panel panel = new Panel(id); panel.add










(new Label( id +"a", id

Re: [Wicket-user] Collapsing Bar in Wicket

2006-05-23 Thread Andrew Berman
It's called Kabuki: http://wiki.apache.org/incubator/KabukiProposalThere's nothing in the SVN repo yet.On 5/23/06, 
Igor Vaynberg <[EMAIL PROTECTED]> wrote:
do you know where in svn this donation lives? i would like to take a look.-IgorOn 5/22/06, 
Andrew Berman <
[EMAIL PROTECTED]> wrote:Scriptaculous is not really that big unless you use all of its script components.  To do the effects I show above you only need to include 
effects.js and prototype.js.  The big guy is prototype, but it's such a valuable library anyway who cares.  I agree that dojo and scriptaculous should be included as the standards in Wicket; it makes sense to build off of the two best libraries right now.  Who knows though, the Zimbra libraries which were donated to Apache might become the de facto standard at some point.
On 5/22/06, Igor Vaynberg <

[EMAIL PROTECTED]> wrote:
the reason i suggested moo is because it is small and scruptaculous is
rather large, so if you only use it for accordian its kind of a waste.

i think what we need is to put into extensions things that include the
major js files like dojo and scriptaculous, that way other components
can reuse them. something to think about for 2.0

-Igor
On 5/22/06, Andrew Berman <[EMAIL PROTECTED]
> wrote:
Just so you know, Moo's accordian does not work in IE 5.5. 
That's the main reason I chose not to use it with my site.  There
are still plenty of people using Win2k with IE 5.5.  When I
switched to Scriptaculous, all was good.  The switchover was
pretty painless.  Here is basically how I did it:
var opened;stretchers = $$("div.stretcher");triggers = $$("a.trigger");function toggle(num) {                if (opened != null) {                        Effect.BlindUp(stretchers[opened], {duration: 
0.15,queue: 'front'});                   }                 if (opened != num) {                    opened = num;               
        return new
Effect.BlindDown(stretchers[num], {duration: 0.15,queue: 'end'});
        }                opened = null;        return;    }
Some text hereThe
number passed into the _javascript_ is the number in the array of the
stretcher.  Just thought I'd document here how to do it in case
anyone wants to make the change or use something like this with
Scriptaculous.
--AndrewOn 5/22/06, Ayodeji Aladejebi <



[EMAIL PROTECTED]> wrote:
aawwh!! lovely baby boyOn 5/22/06, Igor Vaynberg <




[EMAIL PROTECTED]> wrote:
i wont be able to do code review for a little while, my son was
born friday evening, so a little short on time :) if i can get to it in
time then we will put it into 1.2, if not we will put it into 1.2.1.
will let you know when i reviewed it. of course if someone else from
the core team wants to review it and put it into extensions dont
hesitate.
i know martijn likes components like this :) i ran the quickstart and it looked really awesome!-Igor
On 5/22/06, Ayodeji Aladejebi <
[EMAIL PROTECTED]> wrote:





hey igor...how is it going...du u think it needs more touches? should i go ahead and refactor it to 
wicket.extensions.collapsingpanel or something?On 5/21/06, 

Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote:








Well here is the file...give it a try again. they are functional now and look at the quick start before writing yours
On 5/20/06, ali <
[EMAIL PROTECTED]> wrote:i get ClassCastException soprotected void populateItem(ListItem item) {
//CollapsingPair pair = (CollapsingPair)item.getModel();CollapsingPair pair = (CollapsingPair)item.getModelObject();  //@TODO :Ali Reza Sharghi , i addalso if i correctly use your component , where is tag of header or content
components of client of component ? and surely you want choosing thesetags give to client of components.i get exception   wicket.WicketRuntimeException: The component(s) below failed torender. A common problem is that you have added a
   component in code but forgot to reference it in the markup (thus thecomponent will never be rendered).when use your component in this way : List listItems = new ArrayList();
 listItems.add(new CollapsingPair(new Label("label1", "one"),getPanel("panel1"))); listItems.add(new CollapsingPair(new Label("label2", "two"),
getPanel("panel2"))); listItems.add(new CollapsingPair(new Label("label3", "three"),getPanel("panel3"))); add(new CollapsablePane("pane", listItems, 
Duration.ONE_SECOND,true)); //Test Pane   } private Panel getPanel(String id) { Panel panel = new Panel(id); panel.add









(new Label( id +"a", id + "a")); panel.add(new Label( id +"b", id + "b")); panel.add(new Label( id +"c", id + "c" )); return panel;
 }in summary , my labels an panels where thier tags defined in markup ?please help==On Fri, 19 May 2006 18:59:43 +0430, Ayodeji Aladejebi<








[EMAIL PROTECTED]
> wrote:> yeah... lots of lazy developers like myslef..okay then..but i made this> one...hey igor am i in a good direction? :)>> On 5/19/06, Ayodeji Aladej

Re: [Wicket-user] pagemap problem with late arriving ajax request

2006-05-23 Thread Igor Vaynberg
i got up extra early to take care of this, so by the end of the day

-igorOn 5/23/06, Ari Suutari <[EMAIL PROTECTED]> wrote:
This is so great !TIA,Ari S.- Original Message -From: "Johan Compagner" <[EMAIL PROTECTED]>To: <
wicket-user@lists.sourceforge.net>Sent: Tuesday, May 23, 2006 11:37 AMSubject: Re: [Wicket-user] pagemap problem with late arriving ajax requestWe will fix it in the 1.2 branch.I am currently a bit full of work for at least 2 days. So i can only look at
it by the end of this week.johanOn 5/23/06, Ari Suutari <[EMAIL PROTECTED]> wrote:>> Hi,>> >best thing todo currently is to have that -1 check in the pagemap and
> make> >your own version of wicket 1.2>> We already decided to put my modified version to production and> if there are no side effects from my change we can keep it for some
> time.>> >in trunk (2.0) this is already fixed in the default setting because we> >refactored the pagemap> >and have now a different default pagemap and httpsessionstore.>
> You mean that if I would use 2.0 from trunk the problem would go> away ? If so, would it be possible to back-port the new pagemap> to 1.2 branch ? Not as default, but something that I could turn on
> from> application settings ?>> Another point: when 1.2 is released, someone else might also> hit this problem so it might be necessary to implement some kind> of fix anyway (at least for us, some pages were almost unusable
> because of this as other pages worked quite ok - it seems that YMMV).>> Ari S.>> On 5/23/06, Ari Suutari <[EMAIL PROTECTED]
> wrote:> >> > Hi,> >> > It is very important for us to get this fixed, preferably for 1.2.> > If any wicket committer is willing to help us, we will pay> > for the work (please contact me directly by e-mail for this).
> >> > Ari S.> >> > - Original Message -> > From: "Igor Vaynberg" <[EMAIL PROTECTED]>> > To: <
wicket-user@lists.sourceforge.net>> > Sent: Monday, May 22, 2006 6:21 PM> > Subject: Re: [Wicket-user] pagemap problem with late arriving ajax
> request> >> >> > problem is, not every ajax behavior uses version -1. i guess we need to> > have> > the ability to tag a request as process-only-if-page-is-active
> >> > -Igor> >> >> > On 5/22/06, Ari Suutari <[EMAIL PROTECTED] > wrote:> > >> > > If I modify the 
PageMap.java like this:> > >> > > final Page get(final int id, int versionNumber)> > > {> > > final IPageMapEntry entry => > > (IPageMapEntry)session.getAttribute(attributeForId(id));
> > > if (entry != null)> > > {> > >  if (versionNumber == -1) {>
>
>
Access a = peekAccess();> >
>
if (a.getId() != id)> >
>
return null;> > >  }> > >> > > So this kludgery piece of the code checks that if request is coming> from> > > ajax> > > (ie. versionNumber == -1) and the topmost page is not the one being
> > > requested> > > -> return null.> > >> > > After adding this it looks like I cannot reproduce the problem any> more.> > >> > > Ari S.
> > >> > > - Original Message -> > > From: "Johan Compagner" <[EMAIL PROTECTED]>> > > To: < 
wicket-user@lists.sourceforge.net>> > > Sent: Monday, May 22, 2006 2:37 PM> > > Subject: Re: [Wicket-user] pagemap problem with late arriving ajax> > request> > >
> > >> > > So what request comes first?> > > The ajax request should always do -1 (so latest release)> > > So if the request from the new page did come first then the ajax
> request> > > shouild work on that new page.> > > If the ajax request did come a bit earlier then there shouldn't be a> > > problem> > > at all because> > > the last reqest will be the normal link click for a new page.
> > >> > > johan> > >> > >> > > On 5/22/06, Ari Suutari <[EMAIL PROTECTED]> wrote:> > > >
> > > > I cannot figure out any workaround myself.> UnversionedBehaviorListener> > > > seems to use -1 as> > > > page version number, would it make any sense to try to alter PageMap
> > so> > > > that> > > > if version is -1 the page stack is not cleared ?> > > >> > > > Ari S.> > > >> > > > - Original Message -
> > > > From: "Matej Knopp" <[EMAIL PROTECTED]>> > > > To: > > > > Sent: Monday, May 22, 2006 11:44 AM> > > > Subject: Re: [Wicket-user] pagemap problem with late arriving ajax> > > request> > > >> > > >
> > > > >I guess this is because in 1.2 pagemap behaves like stack. Johan?> > > > >> > > > > -Matej> > > > >> > > > > Ari Suutari wrote:
> > > > >> Hi,> > > > >>> > > > >> I'm having a problem with wicket's ajax stuff where an ajax> request> > > > >> fired by previous page hits the web server after user has clicked
> a> > > > link> > > > >> which has already transferred him to next page.> > > > >>> > > > >> This might be a problem in my application, but I'm seeking for
> > ideas> > > > >> to solve this.> > > > >>> > > > >>> From web server's access log:> > > > >>> > > > >> First there are some normal ajax requests ar

Re: [Wicket-user] Broadest appeal for Wicket

2006-05-23 Thread VGJ




Before we moved to Java as our primary platform at work, I had done years of development w/ MS technologies and you can love or hate Microsoft, but the ease of which you're able to sit down and get to work is one thing they *have* gotten right.  The fact that it takes four months to install vs.net on modern hardware probably says something to that, but regardless, you're able to simply focus on your application - not like the relatively gnarly dev environment setup w/ Java.

Though I prefer Eclipse *slightly* over Netbeans I think Sun is headed in the right direction when it comes to ease of initial setup, probably inspired by Visual Studio.  I think most new users would find it easier to start w/ Netbeans for this reason.  I'd be using it myself if the editor was as nice and feature-rich as eclipse.

What I'd never want to see is the monolithic consolidation of technologies, like Microsoft has; you get one choice for app server, web framework, etc.  If Java ever gets *that* easy than we've lost the massive advantage of freedom of choice.

Anyhow, I might blog-up a little setup guide for new users for Windows and Linux using Wicket as the web framework.  I'll try to do that this weekend as crunch-time will be over and I can breathe once again.

Anyone else there developing on Linux?  I use Gentoo myself but I suppose the "majority" is probably using Ubuntu by now?  Linux might be a tough one to please a lot of people as far as setting up the JDK (though this should get easier w/ the new license.)

-v

On Tue, 2006-05-23 at 08:59 +0300, Alvar Lumberg wrote:


Basically his problem seems to be this whole J2EE hell which has
nothing to do with wicket - like creating a webapp directory with a
valid structure, add web.xml and so on..

I suppose VGJ got the point and there most certainly is work to be
done so building web apps in Java doesn't intimidate the hell out a of
a Java novice.

On 5/20/06, Nick Heudecker <[EMAIL PROTECTED]> wrote:
> I'm also confused by this.  What are the specific problems you're
> encountering?  The more detail you can provide, the better the wiki page
> I'll write will be. :)
>
>
> On 5/20/06, Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote:
> >
> > configuration hell with wicket? well for some of us who have tasted
> struts, spring web flow and JSP stuffswicket is heaven
> >
> >
> >
>
>


---
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] WARNING: head/ trunk is highly experimental for a while

2006-05-23 Thread Johan Compagner
that is a bit of a problem. Because currently my workspace i have done the constructor change.It is not completely finished yet. I hope to commit this by the end of the week.And this will have a big impact on everything. 
If the constructor change sits in cvs. I think we need 1 month to stabilize that and make it robust.I think we can have a release of 2.0 somewhere in september. Or if it is not a release it will be pretty stable.
But 2.0 is pretty much this:Java5 and Parent in Constructor changeAnd other fixes like Converter change, PageMap refactor.I guess we can backport some features (like pagemap or converter) to 1.2.x
We will maintain the 2 branches for a while (1.2.x and 2.0) because 2.0 is a big changethat some projects at this time will not convert to.If you start it right now. It is a bit difficult to choose what to do at the moment.
Because trunk will under go a lot of changes the comming month (i think)johanOn 5/23/06, Mats Norén <
[EMAIL PROTECTED]> wrote:Could you define "a few months"? We're about to start a new project
that may or may not use wicket 2.0 depending on the timetable. Thefirst release is scheduled in september. Is that to soon for areasonably stable wicket 2.0?Are there any simple issues that a non wicket export could help out with?
/MatsOn 5/21/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote:> On 5/20/06, Johan Compagner <[EMAIL PROTECTED]
> wrote:> > we did communicate this... See Martijns mails and my replies on it over> > branching..> >>> Ok, my email was explicitly about it though, AND additionally to
> wicket-user. Doesn't matter, it is communicated now for sure :)>> > And if develop now something to get it into production in a few months you> > should stick to 1.2> > But if it does take longer you could use trunk. It is now a fast moving
> > target.> > But many of those changes are java 5 related and that is no behaviour> > change.. So that shouldn't affect at all.> > as far as i can see now there is only one big code change: Converters that
> > would affect the compile of code.>> Well, even the Java 5 stuff breaks code, and as we're also just half> way implementing that, I suspect there will be a lot of bugs in it> currently. And wicket-extensions and wicket-examples don't even
> compile currently. But that's hopefully fixed in a couple of days?>> > For the rest only the default change of another kind of pagemap/session> > store is what needs to be tested> > but there are people that already tested that when it was in a branch (the
> > clientsidestate branch)>> Also, I'd like to get rid of the pre-registration of package> resources. And maybe backport that if that is done.>> 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?cmdlnk&kid0709&bid&3057&dat1642> ___
> 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 Geronimohttp://sel.as-us.falkag.net/sel?cmdlnk&kid0709&bid&3057&dat1642
___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] WARNING: head/ trunk is highly experimental for a while

2006-05-23 Thread Mats Norén

Could you define "a few months"? We're about to start a new project
that may or may not use wicket 2.0 depending on the timetable. The
first release is scheduled in september. Is that to soon for a
reasonably stable wicket 2.0?
Are there any simple issues that a non wicket export could help out with?

/Mats


On 5/21/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote:

On 5/20/06, Johan Compagner <[EMAIL PROTECTED]> wrote:
> we did communicate this... See Martijns mails and my replies on it over
> branching..
>

Ok, my email was explicitly about it though, AND additionally to
wicket-user. Doesn't matter, it is communicated now for sure :)

> And if develop now something to get it into production in a few months you
> should stick to 1.2
> But if it does take longer you could use trunk. It is now a fast moving
> target.
> But many of those changes are java 5 related and that is no behaviour
> change.. So that shouldn't affect at all.
> as far as i can see now there is only one big code change: Converters that
> would affect the compile of code.

Well, even the Java 5 stuff breaks code, and as we're also just half
way implementing that, I suspect there will be a lot of bugs in it
currently. And wicket-extensions and wicket-examples don't even
compile currently. But that's hopefully fixed in a couple of days?

> For the rest only the default change of another kind of pagemap/session
> store is what needs to be tested
> but there are people that already tested that when it was in a branch (the
> clientsidestate branch)

Also, I'd like to get rid of the pre-registration of package
resources. And maybe backport that if that is done.

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?cmdlnk&kid0709&bid&3057&dat1642
___
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&kid0709&bid&3057&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Collapsing Bar in Wicket

2006-05-23 Thread Martijn Dashorst
I'm not pro integrating them into extensions. Dojo and scriptaculous have very different release cycles. Having them inside the jar will cause a lot of headaches. For those dojo and scriptaculous we already have different projects on wicket-stuff. Perhaps we should move them into a core package wicket-ajax or something, but don't want Wicket extensions to depend on them. Especially DOJO is a fast moving target with varying quality between releases. For DOJO and the fast moving AJAX community it is great, but from a release management point, it is a nightmare.
MartijnOn 5/23/06, Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote:
standardizing dojo and Scriptaculous for the extension stuffs will be a great. and andrew pls can i get some documents on how yu implemented Scriptaculous for this accordion effect..thanksonce again igor..congrats 
On 5/22/06, Igor Vaynberg <
[EMAIL PROTECTED]> wrote:
do you know where in svn this donation lives? i would like to take a look.-IgorOn 5/22/06, 
Andrew Berman <
[EMAIL PROTECTED]> wrote:Scriptaculous is not really that big unless you use all of its script components.  To do the effects I show above you only need to include 
effects.js and prototype.js.  The big guy is prototype, but it's such a valuable library anyway who cares.  I agree that dojo and scriptaculous should be included as the standards in Wicket; it makes sense to build off of the two best libraries right now.  Who knows though, the Zimbra libraries which were donated to Apache might become the de facto standard at some point.
On 5/22/06, Igor Vaynberg <


[EMAIL PROTECTED]> wrote:
the reason i suggested moo is because it is small and scruptaculous is
rather large, so if you only use it for accordian its kind of a waste.

i think what we need is to put into extensions things that include the
major js files like dojo and scriptaculous, that way other components
can reuse them. something to think about for 2.0

-Igor
On 5/22/06, Andrew Berman <[EMAIL PROTECTED]
> wrote:
Just so you know, Moo's accordian does not work in IE 5.5. 
That's the main reason I chose not to use it with my site.  There
are still plenty of people using Win2k with IE 5.5.  When I
switched to Scriptaculous, all was good.  The switchover was
pretty painless.  Here is basically how I did it:
var opened;stretchers = $$("div.stretcher");triggers = $$("a.trigger");function toggle(num) {                if (opened != null) {                        Effect.BlindUp(stretchers[opened], {duration: 
0.15,queue: 'front'});                   }                 if (opened != num) {                    opened = num;               
        return new
Effect.BlindDown(stretchers[num], {duration: 0.15,queue: 'end'});
        }                opened = null;        return;    }
Some text hereThe
number passed into the _javascript_ is the number in the array of the
stretcher.  Just thought I'd document here how to do it in case
anyone wants to make the change or use something like this with
Scriptaculous.
--AndrewOn 5/22/06, Ayodeji Aladejebi <




[EMAIL PROTECTED]> wrote:
aawwh!! lovely baby boyOn 5/22/06, Igor Vaynberg <





[EMAIL PROTECTED]> wrote:
i wont be able to do code review for a little while, my son was
born friday evening, so a little short on time :) if i can get to it in
time then we will put it into 1.2, if not we will put it into 1.2.1.
will let you know when i reviewed it. of course if someone else from
the core team wants to review it and put it into extensions dont
hesitate.
i know martijn likes components like this :) i ran the quickstart and it looked really awesome!-Igor
On 5/22/06, Ayodeji Aladejebi <
[EMAIL PROTECTED]> wrote:






hey igor...how is it going...du u think it needs more touches? should i go ahead and refactor it to 
wicket.extensions.collapsingpanel or something?On 5/21/06, 

Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote:









Well here is the file...give it a try again. they are functional now and look at the quick start before writing yours
On 5/20/06, ali <
[EMAIL PROTECTED]> wrote:i get ClassCastException soprotected void populateItem(ListItem item) {
//CollapsingPair pair = (CollapsingPair)item.getModel();CollapsingPair pair = (CollapsingPair)item.getModelObject();  //@TODO :Ali Reza Sharghi , i addalso if i correctly use your component , where is tag of header or content
components of client of component ? and surely you want choosing thesetags give to client of components.i get exception   wicket.WicketRuntimeException: The component(s) below failed torender. A common problem is that you have added a
   component in code but forgot to reference it in the markup (thus thecomponent will never be rendered).when use your component in this way : List listItems = new ArrayList();
 listItems.add(new CollapsingPair(new Label("label1", "one"),getPanel("panel1"))); listItems.add(new CollapsingPair(new Label("label2", "two"),
getPanel("panel2"))); listItems.add(new Collaps

Re: [Wicket-user] pagemap problem with late arriving ajax request

2006-05-23 Thread Ari Suutari

This is so great !

   TIA,

   Ari S.

- Original Message - 
From: "Johan Compagner" <[EMAIL PROTECTED]>

To: 
Sent: Tuesday, May 23, 2006 11:37 AM
Subject: Re: [Wicket-user] pagemap problem with late arriving ajax request


We will fix it in the 1.2 branch.

I am currently a bit full of work for at least 2 days. So i can only look at
it by the end of this week.

johan


On 5/23/06, Ari Suutari <[EMAIL PROTECTED]> wrote:


Hi,

>best thing todo currently is to have that -1 check in the pagemap and
make
>your own version of wicket 1.2

We already decided to put my modified version to production and
if there are no side effects from my change we can keep it for some
time.

>in trunk (2.0) this is already fixed in the default setting because we
>refactored the pagemap
>and have now a different default pagemap and httpsessionstore.

You mean that if I would use 2.0 from trunk the problem would go
away ? If so, would it be possible to back-port the new pagemap
to 1.2 branch ? Not as default, but something that I could turn on
from
application settings ?

Another point: when 1.2 is released, someone else might also
hit this problem so it might be necessary to implement some kind
of fix anyway (at least for us, some pages were almost unusable
because of this as other pages worked quite ok - it seems that YMMV).

Ari S.

On 5/23/06, Ari Suutari <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> It is very important for us to get this fixed, preferably for 1.2.
> If any wicket committer is willing to help us, we will pay
> for the work (please contact me directly by e-mail for this).
>
> Ari S.
>
> - Original Message -
> From: "Igor Vaynberg" <[EMAIL PROTECTED]>
> To: 
> Sent: Monday, May 22, 2006 6:21 PM
> Subject: Re: [Wicket-user] pagemap problem with late arriving ajax
request
>
>
> problem is, not every ajax behavior uses version -1. i guess we need to
> have
> the ability to tag a request as process-only-if-page-is-active
>
> -Igor
>
>
> On 5/22/06, Ari Suutari <[EMAIL PROTECTED] > wrote:
> >
> > If I modify the PageMap.java like this:
> >
> > final Page get(final int id, int versionNumber)
> > {
> > final IPageMapEntry entry =
> > (IPageMapEntry)session.getAttribute(attributeForId(id));
> > if (entry != null)
> > {
> >  if (versionNumber == -1) {
> > Access a = peekAccess();
> > if (a.getId() != id)
> > return null;
> >  }
> >
> > So this kludgery piece of the code checks that if request is coming
from
> > ajax
> > (ie. versionNumber == -1) and the topmost page is not the one being
> > requested
> > -> return null.
> >
> > After adding this it looks like I cannot reproduce the problem any
more.
> >
> > Ari S.
> >
> > - Original Message -
> > From: "Johan Compagner" <[EMAIL PROTECTED]>
> > To: < wicket-user@lists.sourceforge.net>
> > Sent: Monday, May 22, 2006 2:37 PM
> > Subject: Re: [Wicket-user] pagemap problem with late arriving ajax
> request
> >
> >
> > So what request comes first?
> > The ajax request should always do -1 (so latest release)
> > So if the request from the new page did come first then the ajax
request
> > shouild work on that new page.
> > If the ajax request did come a bit earlier then there shouldn't be a
> > problem
> > at all because
> > the last reqest will be the normal link click for a new page.
> >
> > johan
> >
> >
> > On 5/22/06, Ari Suutari <[EMAIL PROTECTED]> wrote:
> > >
> > > I cannot figure out any workaround myself.
UnversionedBehaviorListener
> > > seems to use -1 as
> > > page version number, would it make any sense to try to alter PageMap
> so
> > > that
> > > if version is -1 the page stack is not cleared ?
> > >
> > > Ari S.
> > >
> > > - Original Message -
> > > From: "Matej Knopp" <[EMAIL PROTECTED]>
> > > To: 
> > > Sent: Monday, May 22, 2006 11:44 AM
> > > Subject: Re: [Wicket-user] pagemap problem with late arriving ajax
> > request
> > >
> > >
> > > >I guess this is because in 1.2 pagemap behaves like stack. Johan?
> > > >
> > > > -Matej
> > > >
> > > > Ari Suutari wrote:
> > > >> Hi,
> > > >>
> > > >> I'm having a problem with wicket's ajax stuff where an ajax
request
> > > >> fired by previous page hits the web server after user has clicked
a
> > > link
> > > >> which has already transferred him to next page.
> > > >>
> > > >> This might be a problem in my application, but I'm seeking for
> ideas
> > > >> to solve this.
> > > >>
> > > >>> From web server's access log:
> > > >>
> > > >> First there are some normal ajax requests arriving from browser:
> > > >>
> > > >> 192.168.5.102 - - [22/May/2006:07:46:43 +] "GET
> > > >>
> > >
> >
>
/wicket?wicket:interface=:0:uiPanel:viewPanel:normalView:panels:0:panel:listTableSpan:-1:IUnversionedBehaviorListener&wicket:behaviorId=0&random=
> >
> > > 0.35930677427195573
> > > >> HTTP/1.1" 200 824
> > > >> 192.168.5.102 - - [22/May/2006:07:46:43 +]

Re: [Wicket-user] pagemap problem with late arriving ajax request

2006-05-23 Thread Johan Compagner
We will fix it in the 1.2 branch.I am currently a bit full of work for at least 2 days. So i can only look at it by the end of this week.johanOn 5/23/06, 
Ari Suutari <[EMAIL PROTECTED]> wrote:
Hi,>best thing todo currently is to have that -1 check in the pagemap and make>your own version of wicket 1.2We already decided to put my modified version to production andif there are no side effects from my change we can keep it for some time.
>in trunk (2.0) this is already fixed in the default setting because we>refactored the pagemap>and have now a different default pagemap and httpsessionstore.You mean that if I would use 
2.0 from trunk the problem would goaway ? If so, would it be possible to back-port the new pagemapto 1.2 branch ? Not as default, but something that I could turn on fromapplication settings ?
Another point: when 1.2 is released, someone else might alsohit this problem so it might be necessary to implement some kindof fix anyway (at least for us, some pages were almost unusablebecause of this as other pages worked quite ok - it seems that YMMV).
Ari S.On 5/23/06, Ari Suutari <[EMAIL PROTECTED]> wrote:>> Hi,>> It is very important for us to get this fixed, preferably for 
1.2.> If any wicket committer is willing to help us, we will pay> for the work (please contact me directly by e-mail for this).>> Ari S.>> - Original Message -> From: "Igor Vaynberg" <
[EMAIL PROTECTED]>> To: > Sent: Monday, May 22, 2006 6:21 PM
> Subject: Re: [Wicket-user] pagemap problem with late arriving ajax request>>> problem is, not every ajax behavior uses version -1. i guess we need to> have> the ability to tag a request as process-only-if-page-is-active
>> -Igor>>> On 5/22/06, Ari Suutari <[EMAIL PROTECTED] > wrote:> >> > If I modify the PageMap.java like this:
> >> > final Page get(final int id, int versionNumber)> > {> > final IPageMapEntry entry => > (IPageMapEntry)session.getAttribute(attributeForId(id));> > if (entry != null)
> > {> >  if (versionNumber == -1) {> > Access a = peekAccess();> > if (a.getId() != id)> > return null;
> >  }> >> > So this kludgery piece of the code checks that if request is coming from> > ajax> > (ie. versionNumber == -1) and the topmost page is not the one being
> > requested> > -> return null.> >> > After adding this it looks like I cannot reproduce the problem any more.> >> > Ari S.> >> > - Original Message -
> > From: "Johan Compagner" <[EMAIL PROTECTED]>> > To: < wicket-user@lists.sourceforge.net
>> > Sent: Monday, May 22, 2006 2:37 PM> > Subject: Re: [Wicket-user] pagemap problem with late arriving ajax> request> >> >> > So what request comes first?
> > The ajax request should always do -1 (so latest release)> > So if the request from the new page did come first then the ajax request> > shouild work on that new page.> > If the ajax request did come a bit earlier then there shouldn't be a
> > problem> > at all because> > the last reqest will be the normal link click for a new page.> >> > johan> >> >> > On 5/22/06, Ari Suutari <
[EMAIL PROTECTED]> wrote:> > >> > > I cannot figure out any workaround myself. UnversionedBehaviorListener> > > seems to use -1 as
> > > page version number, would it make any sense to try to alter PageMap> so> > > that> > > if version is -1 the page stack is not cleared ?> > >> > > Ari S.
> > >> > > - Original Message -> > > From: "Matej Knopp" <[EMAIL PROTECTED]>> > > To: <
wicket-user@lists.sourceforge.net>> > > Sent: Monday, May 22, 2006 11:44 AM> > > Subject: Re: [Wicket-user] pagemap problem with late arriving ajax> > request> > >
> > >> > > >I guess this is because in 1.2 pagemap behaves like stack. Johan?> > > >> > > > -Matej> > > >> > > > Ari Suutari wrote:
> > > >> Hi,> > > >>> > > >> I'm having a problem with wicket's ajax stuff where an ajax request> > > >> fired by previous page hits the web server after user has clicked a
> > > link> > > >> which has already transferred him to next page.> > > >>> > > >> This might be a problem in my application, but I'm seeking for> ideas
> > > >> to solve this.> > > >>> > > >>> From web server's access log:> > > >>> > > >> First there are some normal ajax requests arriving from browser:
> > > >>> > > >> 192.168.5.102 - - [22/May/2006:07:46:43 +] "GET> > > >>> > >> >> /wicket?wicket:interface=:0:uiPanel:viewPanel:normalView:panels:0:panel:listTableSpan:-1:IUnversionedBehaviorListener&wicket:behaviorId=0&random=
> >> > > 0.35930677427195573> > > >> HTTP/1.1" 200 824> > > >> 192.168.5.102 - - [22/May/2006:07:46:43 +] "GET
> > > >>> > >> >> /wicket?wicket:interface=:0:uiPanel:viewPanel:normalView:panels:0:panel:listTableSpan:-1:IUnversionedBehaviorListener&wicket:behaviorId=0&random=> >
> > > 0.11935459751117722> > > >> HTTP/1.1" 200 824> > > >>> > > >> Here, user clicks a link which transfers application to

Re: [Wicket-user] pagemap problem with late arriving ajax request

2006-05-23 Thread Ari Suutari

Hi,


best thing todo currently is to have that -1 check in the pagemap and make
your own version of wicket 1.2


   We already decided to put my modified version to production and
   if there are no side effects from my change we can keep it for some time.


in trunk (2.0) this is already fixed in the default setting because we
refactored the pagemap
and have now a different default pagemap and httpsessionstore.


   You mean that if I would use 2.0 from trunk the problem would go
   away ? If so, would it be possible to back-port the new pagemap
   to 1.2 branch ? Not as default, but something that I could turn on from
   application settings ?

   Another point: when 1.2 is released, someone else might also
   hit this problem so it might be necessary to implement some kind
   of fix anyway (at least for us, some pages were almost unusable
   because of this as other pages worked quite ok - it seems that YMMV).

   Ari S.

On 5/23/06, Ari Suutari <[EMAIL PROTECTED]> wrote:


Hi,

It is very important for us to get this fixed, preferably for 1.2.
If any wicket committer is willing to help us, we will pay
for the work (please contact me directly by e-mail for this).

Ari S.

- Original Message -
From: "Igor Vaynberg" <[EMAIL PROTECTED]>
To: 
Sent: Monday, May 22, 2006 6:21 PM
Subject: Re: [Wicket-user] pagemap problem with late arriving ajax request


problem is, not every ajax behavior uses version -1. i guess we need to
have
the ability to tag a request as process-only-if-page-is-active

-Igor


On 5/22/06, Ari Suutari <[EMAIL PROTECTED] > wrote:
>
> If I modify the PageMap.java like this:
>
> final Page get(final int id, int versionNumber)
> {
> final IPageMapEntry entry =
> (IPageMapEntry)session.getAttribute(attributeForId(id));
> if (entry != null)
> {
>  if (versionNumber == -1) {
> Access a = peekAccess();
> if (a.getId() != id)
> return null;
>  }
>
> So this kludgery piece of the code checks that if request is coming from
> ajax
> (ie. versionNumber == -1) and the topmost page is not the one being
> requested
> -> return null.
>
> After adding this it looks like I cannot reproduce the problem any more.
>
> Ari S.
>
> - Original Message -
> From: "Johan Compagner" <[EMAIL PROTECTED]>
> To: < wicket-user@lists.sourceforge.net>
> Sent: Monday, May 22, 2006 2:37 PM
> Subject: Re: [Wicket-user] pagemap problem with late arriving ajax
request
>
>
> So what request comes first?
> The ajax request should always do -1 (so latest release)
> So if the request from the new page did come first then the ajax request
> shouild work on that new page.
> If the ajax request did come a bit earlier then there shouldn't be a
> problem
> at all because
> the last reqest will be the normal link click for a new page.
>
> johan
>
>
> On 5/22/06, Ari Suutari <[EMAIL PROTECTED]> wrote:
> >
> > I cannot figure out any workaround myself. UnversionedBehaviorListener
> > seems to use -1 as
> > page version number, would it make any sense to try to alter PageMap
so
> > that
> > if version is -1 the page stack is not cleared ?
> >
> > Ari S.
> >
> > - Original Message -
> > From: "Matej Knopp" <[EMAIL PROTECTED]>
> > To: 
> > Sent: Monday, May 22, 2006 11:44 AM
> > Subject: Re: [Wicket-user] pagemap problem with late arriving ajax
> request
> >
> >
> > >I guess this is because in 1.2 pagemap behaves like stack. Johan?
> > >
> > > -Matej
> > >
> > > Ari Suutari wrote:
> > >> Hi,
> > >>
> > >> I'm having a problem with wicket's ajax stuff where an ajax request
> > >> fired by previous page hits the web server after user has clicked a
> > link
> > >> which has already transferred him to next page.
> > >>
> > >> This might be a problem in my application, but I'm seeking for
ideas
> > >> to solve this.
> > >>
> > >>> From web server's access log:
> > >>
> > >> First there are some normal ajax requests arriving from browser:
> > >>
> > >> 192.168.5.102 - - [22/May/2006:07:46:43 +] "GET
> > >>
> >
>
/wicket?wicket:interface=:0:uiPanel:viewPanel:normalView:panels:0:panel:listTableSpan:-1:IUnversionedBehaviorListener&wicket:behaviorId=0&random=
>
> > 0.35930677427195573
> > >> HTTP/1.1" 200 824
> > >> 192.168.5.102 - - [22/May/2006:07:46:43 +] "GET
> > >>
> >
>
/wicket?wicket:interface=:0:uiPanel:viewPanel:normalView:panels:0:panel:listTableSpan:-1:IUnversionedBehaviorListener&wicket:behaviorId=0&random=
>
> > 0.11935459751117722
> > >> HTTP/1.1" 200 824
> > >>
> > >> Here, user clicks a link which transfers application to help page,
it
> > is displayed ok.
> > >>
> > >> 192.168.5.102 - - [22/May/2006:07:46:43 +] "GET
> > /wicket?wicket:interface=:0:uiPanel:topPanel:showHelp:34:ILinkListener
> > >> HTTP/1.1" 302 -
> > >> 192.168.5.102 - - [22/May/2006:07:46:43 +] "GET
> > /wicket?wicket:interface=:34:: HTTP/1.1" 200 3191
> > >>
> > >> Now, for some reason a ajax request arrives from previous page,
whic

Re: [Wicket-user] WicketTester & .properties file

2006-05-23 Thread Bram Buitendijk

Ingram Chen schreef:


You can alter locale in webSession, for example:
wicketTester.getWicketSession().setLocale(new Locale("fa_IR"));


Thanks, but that wasn't really what i was looking for.
I've now subclassed my own WicketTester: MyWicketTester, and i can have 
my own MyWicketTester.properties file (and any localized versions) to 
manipulate.

This works fine so far.




---
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] Collapsing Bar in Wicket

2006-05-23 Thread Ayodeji Aladejebi
standardizing dojo and Scriptaculous for the extension stuffs will be a great. and andrew pls can i get some documents on how yu implemented Scriptaculous for this accordion effect..thanksonce again igor..congrats 
On 5/22/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
do you know where in svn this donation lives? i would like to take a look.-IgorOn 5/22/06, 
Andrew Berman <
[EMAIL PROTECTED]> wrote:Scriptaculous is not really that big unless you use all of its script components.  To do the effects I show above you only need to include 
effects.js and prototype.js.  The big guy is prototype, but it's such a valuable library anyway who cares.  I agree that dojo and scriptaculous should be included as the standards in Wicket; it makes sense to build off of the two best libraries right now.  Who knows though, the Zimbra libraries which were donated to Apache might become the de facto standard at some point.
On 5/22/06, Igor Vaynberg <

[EMAIL PROTECTED]> wrote:
the reason i suggested moo is because it is small and scruptaculous is
rather large, so if you only use it for accordian its kind of a waste.

i think what we need is to put into extensions things that include the
major js files like dojo and scriptaculous, that way other components
can reuse them. something to think about for 2.0

-Igor
On 5/22/06, Andrew Berman <[EMAIL PROTECTED]
> wrote:
Just so you know, Moo's accordian does not work in IE 5.5. 
That's the main reason I chose not to use it with my site.  There
are still plenty of people using Win2k with IE 5.5.  When I
switched to Scriptaculous, all was good.  The switchover was
pretty painless.  Here is basically how I did it:
var opened;stretchers = $$("div.stretcher");triggers = $$("a.trigger");function toggle(num) {                if (opened != null) {                        Effect.BlindUp(stretchers[opened], {duration: 
0.15,queue: 'front'});                   }                 if (opened != num) {                    opened = num;               
        return new
Effect.BlindDown(stretchers[num], {duration: 0.15,queue: 'end'});
        }                opened = null;        return;    }
Some text hereThe
number passed into the _javascript_ is the number in the array of the
stretcher.  Just thought I'd document here how to do it in case
anyone wants to make the change or use something like this with
Scriptaculous.
--AndrewOn 5/22/06, Ayodeji Aladejebi <



[EMAIL PROTECTED]> wrote:
aawwh!! lovely baby boyOn 5/22/06, Igor Vaynberg <




[EMAIL PROTECTED]> wrote:
i wont be able to do code review for a little while, my son was
born friday evening, so a little short on time :) if i can get to it in
time then we will put it into 1.2, if not we will put it into 1.2.1.
will let you know when i reviewed it. of course if someone else from
the core team wants to review it and put it into extensions dont
hesitate.
i know martijn likes components like this :) i ran the quickstart and it looked really awesome!-Igor
On 5/22/06, Ayodeji Aladejebi <
[EMAIL PROTECTED]> wrote:





hey igor...how is it going...du u think it needs more touches? should i go ahead and refactor it to 
wicket.extensions.collapsingpanel or something?On 5/21/06, 

Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote:








Well here is the file...give it a try again. they are functional now and look at the quick start before writing yours
On 5/20/06, ali <
[EMAIL PROTECTED]> wrote:i get ClassCastException soprotected void populateItem(ListItem item) {
//CollapsingPair pair = (CollapsingPair)item.getModel();CollapsingPair pair = (CollapsingPair)item.getModelObject();  //@TODO :Ali Reza Sharghi , i addalso if i correctly use your component , where is tag of header or content
components of client of component ? and surely you want choosing thesetags give to client of components.i get exception   wicket.WicketRuntimeException: The component(s) below failed torender. A common problem is that you have added a
   component in code but forgot to reference it in the markup (thus thecomponent will never be rendered).when use your component in this way : List listItems = new ArrayList();
 listItems.add(new CollapsingPair(new Label("label1", "one"),getPanel("panel1"))); listItems.add(new CollapsingPair(new Label("label2", "two"),
getPanel("panel2"))); listItems.add(new CollapsingPair(new Label("label3", "three"),getPanel("panel3"))); add(new CollapsablePane("pane", listItems, 
Duration.ONE_SECOND,true)); //Test Pane   } private Panel getPanel(String id) { Panel panel = new Panel(id); panel.add









(new Label( id +"a", id + "a")); panel.add(new Label( id +"b", id + "b")); panel.add(new Label( id +"c", id + "c" )); return panel;
 }in summary , my labels an panels where thier tags defined in markup ?please help==On Fri, 19 May 2006 18:59:43 +0430, Ayodeji Aladejebi<








[EMAIL PROTECTED]
> wrote:> yeah... lots of lazy developers li

Re: [Wicket-user] pagemap problem with late arriving ajax request

2006-05-23 Thread Johan Compagner
best thing todo currently is to have that -1 check in the pagemap and make your own version of wicket 1.2 I guess to fix it for the AccessStackPageMap (2.0 name) is to have ajax request always check the active 
page first and only do its job when it is the right one. But this is i think pretty tricky to do because we needto synchronize around the right places again.in trunk (2.0) this is already fixed in the default setting because we refactored the pagemap
and have now a different default pagemap and httpsessionstore.johanOn 5/23/06, Ari Suutari <
[EMAIL PROTECTED]> wrote:Hi,It is very important for us to get this fixed, preferably for 
1.2.If any wicket committer is willing to help us, we will payfor the work (please contact me directly by e-mail for this).Ari S.- Original Message -From: "Igor Vaynberg" <
[EMAIL PROTECTED]>To: Sent: Monday, May 22, 2006 6:21 PMSubject: Re: [Wicket-user] pagemap problem with late arriving ajax request
problem is, not every ajax behavior uses version -1. i guess we need to havethe ability to tag a request as process-only-if-page-is-active-IgorOn 5/22/06, Ari Suutari <
[EMAIL PROTECTED] > wrote:>> If I modify the PageMap.java like this:>> final Page get(final int id, int versionNumber)> {> final IPageMapEntry entry => (IPageMapEntry)session.getAttribute(attributeForId(id));
> if (entry != null)> {>  if (versionNumber == -1) {> Access a = peekAccess();> if (a.getId() != id)> return null;
>  }>> So this kludgery piece of the code checks that if request is coming from> ajax> (ie. versionNumber == -1) and the topmost page is not the one being> requested> -> return null.
>> After adding this it looks like I cannot reproduce the problem any more.>> Ari S.>> - Original Message -> From: "Johan Compagner" <
[EMAIL PROTECTED]>> To: < wicket-user@lists.sourceforge.net>> Sent: Monday, May 22, 2006 2:37 PM> Subject: Re: [Wicket-user] pagemap problem with late arriving ajax request
>>> So what request comes first?> The ajax request should always do -1 (so latest release)> So if the request from the new page did come first then the ajax request> shouild work on that new page.
> If the ajax request did come a bit earlier then there shouldn't be a> problem> at all because> the last reqest will be the normal link click for a new page.>> johan>>
> On 5/22/06, Ari Suutari <[EMAIL PROTECTED]> wrote:> >> > I cannot figure out any workaround myself. UnversionedBehaviorListener
> > seems to use -1 as> > page version number, would it make any sense to try to alter PageMap so> > that> > if version is -1 the page stack is not cleared ?> >> > Ari S.
> >> > - Original Message -> > From: "Matej Knopp" <[EMAIL PROTECTED]>> > To: <
wicket-user@lists.sourceforge.net>> > Sent: Monday, May 22, 2006 11:44 AM> > Subject: Re: [Wicket-user] pagemap problem with late arriving ajax> request> >> >> > >I guess this is because in 
1.2 pagemap behaves like stack. Johan?> > >> > > -Matej> > >> > > Ari Suutari wrote:> > >> Hi,> > >>> > >> I'm having a problem with wicket's ajax stuff where an ajax request
> > >> fired by previous page hits the web server after user has clicked a> > link> > >> which has already transferred him to next page.> > >>> > >> This might be a problem in my application, but I'm seeking for ideas
> > >> to solve this.> > >>> > >>> From web server's access log:> > >>> > >> First there are some normal ajax requests arriving from browser:
> > >>> > >> 192.168.5.102 - - [22/May/2006:07:46:43 +] "GET> > >>> >> /wicket?wicket:interface=:0:uiPanel:viewPanel:normalView:panels:0:panel:listTableSpan:-1:IUnversionedBehaviorListener&wicket:behaviorId=0&random=
>> > 0.35930677427195573> > >> HTTP/1.1" 200 824> > >> 192.168.5.102 - - [22/May/2006:07:46:43 +] "GET> > >>
> >> /wicket?wicket:interface=:0:uiPanel:viewPanel:normalView:panels:0:panel:listTableSpan:-1:IUnversionedBehaviorListener&wicket:behaviorId=0&random=>> > 0.11935459751117722> > >> HTTP/1.1" 200 824
> > >>> > >> Here, user clicks a link which transfers application to help page, it> > is displayed ok.> > >>> > >> 192.168.5.102
 - - [22/May/2006:07:46:43 +] "GET> > /wicket?wicket:interface=:0:uiPanel:topPanel:showHelp:34:ILinkListener> > >> HTTP/1.1" 302 -> > >> 
192.168.5.102 - - [22/May/2006:07:46:43 +] "GET> > /wicket?wicket:interface=:34:: HTTP/1.1" 200 3191> > >>> > >> Now, for some reason a ajax request arrives from previous page, which
>> > causes to pagemap stack to be> > >> popped so the page user's browser is on is removed from page map.> > >>> > >> 192.168.5.102
 - - [22/May/2006:07:46:43 +] "GET> > >>> >> /wicket?wicket:interface=:0:uiPanel:viewPanel:normalView:panels:0:panel:listTableSpan:-1:IUnversionedBehaviorListener&wicket:behaviorId=0&random=
> > 0.2873453536331084> > >> HTTP/1.1" 200 824> > >>> > >> Now, user presses a link on the page but gets 'page expired' me