IDataProvider for growing Result Size

2009-10-17 Thread bht
Hi,

I am seeking some help or links to documentation with IDataProvider
for DataView.

In my use case the size of the data grows while the user clicks
through list pages.

I wrote an IDataProvider implementation that progressively returns
larger values with the size() method.

However it fails due to the size growing, if the user clicks on the
last page.

That is because DataView limits itself understandably, by only
requesting as many rows as the last invocation of size() tells it are
available.

But this limitation is unnecessary.

What is needed is that it keeps filling the page until the Iterator
for IDataProvider.iterator(int first, int count) returns false with
hasNext(), or until its page is full, in that case displaying a link
to the next page, ignoring the fact that size() is no longer accurate.

I hope that an easy solution for this requirement exists as I think
that there is no conflict with out-of-the-box correct behavior.

Again, very specifically, during the same cycle, after the
underestimated size() result, the iterator may return more data than
expected, and that excess data should be consumed normally in such a
way that the user can continue moving forward to subsequent pages as
long as more data becomes available.


Many thanks!

Bernard


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



Class not found error when using OSGi classloader and wicket-guice integration

2009-10-17 Thread Marc-Andre Houle
Hello user group,
Just a little word to make sure this is check out.  I got a ClassNotFound
exception while working with my OSGi framework and integrating it with
Wicket-Guice.  The problem is that Wicket guice use the method Class.forName
to retrieve the class into which injection is suppose to take place.  Since
our wicket components can be in plugins and can be therefore in another
classloader, wicket-guice is not able to retrieve the class name.

I created a bug (WICKET-2530
) for this and included a subversion patch where instead of using
Class.forName, Wicket-Guice is using Classes.resolveClass and the class
resolver that is given by the user application.

I hope I didn't think something for granted and that it is not a fix that
can broke something else.

Thanks to check this issue.

Marc-Andre


Re: Strong Password Validation using Ajax (with Fallback)

2009-10-17 Thread nino martinez wael
There was some implementation I think at wicketstuff, can remember it
something like validator or something, so go to wicket stuff and see..:)

2009/10/17 Bernhard Grünewaldt 

> That's the case :)
>
> I want to have it working with Javascript activated and without.
>
> I am now thinking of something GWT does.
> You write java and the framework translates it to ajax. (if I am not
> mistaken)
> It would be cool to write just one Validator in Java
> that implements some behaviour and it works as ajax and without on the
> serverside.
>
> Does anybody have a tutorial or best practice for that, or will I end up
> maintaining redundant code for Java and Javascript?
> I am using jquery as framework if that is of concern.
> But I am open for everything.
>
> I already took a look at wiquery but haven't found a nice tutorial for my
> purpose.
> http://code.google.com/p/wiquery/
>
>
> Bernhard
> > Why wouldn't you?  If it's https it's no different than sending it to
> > complete the registration or change password page.  It's the same load as
> > any other AJAX validation.
> >
> > --
> > Jeremy Thomerson
> > http://www.wickettraining.com
> >
> >
> >
> > On Fri, Oct 16, 2009 at 1:48 PM, Ryan Gravener
> > wrote:
> >
> >> I don't think you want to validate passwords by sending them to the
> >> server multiple times.
> >>
> >> Ryan Gravener
> >> http://bit.ly/no_word_docs
> >>
> >>
> >>
> >> On Fri, Oct 16, 2009 at 2:31 PM, Bernhard Grünewaldt
> >>  wrote:
> >> > Hello,
> >> >
> >> > Is there such a thing as a "Strong Password Validator"?
> >> > I found a jquery plugin which is nice:
> >> >
> http://bassistance.de/jquery-plugins/jquery-plugin-password-validation/
> >> >
> >> > But it lacks the serverside Java implementation and i18n.
> >> > Does anyone know of such a component?
> >> > The code isn't that complex, but if it is already there why implement
> >> it
> >> > yourself.
> >> >
> >> > thx
> >> >
> >> > Bernhard
> >> >
> >> >
> >> > -
> >> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >> > For additional commands, e-mail: users-h...@wicket.apache.org
> >> >
> >> >
> >>
> >> -
> >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >> For additional commands, e-mail: users-h...@wicket.apache.org
> >>
> >>
> >
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Reporting Framework & Wicket

2009-10-17 Thread nino martinez wael
As I see it jasper reports are just a configurable way of using jfreecharts,
not sure it that brings more understanding though :)

http://images.google.dk/images?client=firefox-a&rls=org.mozilla%3Aen-US%3Aofficial&hl=da&source=hp&q=jfreecharts&btnG=S%C3%B8g+i+billeder&gbv=2&aq=f&oq=

2009/10/17 Douglas Ferguson 

> I have to admit, I've never used Jasper or NexReports, so I'm not sure
> I follow all of this..
>
>
> On Oct 15, 2009, at 10:14 AM, Decebal Suiu wrote:
>
> >
> > Hello,
> >
> > We use Wicket with NextReports (http://www.next-reports.com/) and
> > Jasper.
> > Basically, in Wicket you will have logic for the form that will fill
> > report
> > parameters. For Jasper we
> > also have a logic for edit parameters (we added more functionality to
> > parameter definition that we could not find in any jasper designer
> > tool).
> >
> > Depending on how parameters are defined (in your report designer
> > tool) you
> > may have to add the following business  :
> > - chained parameters (to fill children parameters if parent
> > parameters are
> > selected)
> > - default values (fill default values for parameters)
> > - hidden parameters (parameters which are substituted with their
> > values when
> > the report is ran by human process or by scheduler process)
> >
> > After the parameter values selection process , you will just have to
> > use the
> > api offered by your reporting framework.
> >
> > For example in Next it is simple as this :
> >
> >  FluentReportRunner.report(report)
> >  .connectTo(connection)
> >  .withQueryTimeout(60)
> >  .withParameterValues(createParameterValues())
> >  .formatAs(ReportRunner.HTML_FORMAT)
> >  .run(stream);
> >
> >
> > Douglas Ferguson-2 wrote:
> >>
> >> Hey,
> >>
> >> I'm starting to look into reporting frameworks and was curious if
> >> anybody had successfully integrated with wicket?
> >>
> >> Are there any "off the shelf" integrations or will I have to roll my
> >> own?
> >>
> >> D/
> >>
> >> -
> >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >> For additional commands, e-mail: users-h...@wicket.apache.org
> >>
> >>
> >>
> >
> > --
> > View this message in context:
> http://www.nabble.com/Reporting-Framework---Wicket-tp25894303p25910426.html
> > Sent from the Wicket - User mailing list archive at Nabble.com.
> >
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Strong Password Validation using Ajax (with Fallback)

2009-10-17 Thread Bernhard Grünewaldt
That's the case :)

I want to have it working with Javascript activated and without.

I am now thinking of something GWT does.
You write java and the framework translates it to ajax. (if I am not
mistaken)
It would be cool to write just one Validator in Java
that implements some behaviour and it works as ajax and without on the
serverside.

Does anybody have a tutorial or best practice for that, or will I end up
maintaining redundant code for Java and Javascript?
I am using jquery as framework if that is of concern.
But I am open for everything.

I already took a look at wiquery but haven't found a nice tutorial for my
purpose.
http://code.google.com/p/wiquery/


Bernhard
> Why wouldn't you?  If it's https it's no different than sending it to
> complete the registration or change password page.  It's the same load as
> any other AJAX validation.
>
> --
> Jeremy Thomerson
> http://www.wickettraining.com
>
>
>
> On Fri, Oct 16, 2009 at 1:48 PM, Ryan Gravener
> wrote:
>
>> I don't think you want to validate passwords by sending them to the
>> server multiple times.
>>
>> Ryan Gravener
>> http://bit.ly/no_word_docs
>>
>>
>>
>> On Fri, Oct 16, 2009 at 2:31 PM, Bernhard Grünewaldt
>>  wrote:
>> > Hello,
>> >
>> > Is there such a thing as a "Strong Password Validator"?
>> > I found a jquery plugin which is nice:
>> > http://bassistance.de/jquery-plugins/jquery-plugin-password-validation/
>> >
>> > But it lacks the serverside Java implementation and i18n.
>> > Does anyone know of such a component?
>> > The code isn't that complex, but if it is already there why implement
>> it
>> > yourself.
>> >
>> > thx
>> >
>> > Bernhard
>> >
>> >
>> > -
>> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> > For additional commands, e-mail: users-h...@wicket.apache.org
>> >
>> >
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>


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



Re: how to have an html id in markup and support ajax behavior?

2009-10-17 Thread Martin Grigorov
El sáb, 17-10-2009 a las 14:56 +0200, Joe Hudson escribió:
> Hello,
> 
> I need a component to have an html id that I set in markup because I'm 
> referencing it in other places.  I also need to have the 
> setOutputMarkupId(true) on the component because I need to support ajax 
> behaviors.  The problem that I am facing is that when I call 
> setOutputMarkupId(true) it overrides the static id I set in the markup.  Is 
> there any way I can deal with this?  Thanks.
> 
> Joe
call setMarkupId("theSameId") in .java
you could remove the one in .html if you wish


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



Re: Open Source projects using Wicket

2009-10-17 Thread Martin Grigorov
It is little strange that _your_ (I emphasize here) software uses
System.out.println() for logging instead of any of the logging
frameworks you created ;-)

>From the manual on the page it is not very clear how to setup the whole
thing. Probably I could manage it but it would be good to add step by
step howto for the newbies. 

El vie, 16-10-2009 a las 20:42 +0200, Ceki Gulcu escribió:
> I started working with Wicket just a week ago in order to develop a
> junit extension for integration testing called Mistletoe. See
> http://mistletoe.qos.ch for details.
> 
> Mistletoe's design imposes a strict separation between the data-model
> layer and the presentation layer. I am mentioning this because after
> designing the data-later, I started writing the presentation layer
> using Wicket. It's was a very pleasant experience. Wicket just clicked
> in my mind. By the way, wicket encouraged me to re-design my
> data-model slightly and I am quite happy with the results. *After* the
> wicket implementation, I did a simpler implementation of the
> presentation later using servlets (without any .jsp files).  Given the
> experience of the wicket-based implementation, the servlet-based
> version was pretty straightforward, thanks to wicket's component-based
> architecture.
> 
> For small projects, I now know for certain that it is possible to
> create a web-application quickly and cleanly. I do not have experience
> with larger projects.
> 
> Dave B wrote:
> > Hi,
> > 
> > I'm in the process of evaluating Wicket (after an arduous JSF project,
> > that has made us re-evaluate our web platform.)
> > 
> > I've read Wicket in Action and whole bunch of blog and mailing list
> > posts, done some proof-of-concept work and am now interested in
> > reading source code from a project using Wicket, since I want to see
> > Wicket in the wild. I know Artifactory uses Wicket, but their
> > Subversion access instructions seem to be out of date.
> > 
> > Does anyone know of an open source project using Wicket, so that I can
> > peruse the source code?
> > 
> > Many thanks,
> > Dave
> > 


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



how to have an html id in markup and support ajax behavior?

2009-10-17 Thread Joe Hudson
Hello,

I need a component to have an html id that I set in markup because I'm 
referencing it in other places.  I also need to have the 
setOutputMarkupId(true) on the component because I need to support ajax 
behaviors.  The problem that I am facing is that when I call 
setOutputMarkupId(true) it overrides the static id I set in the markup.  Is 
there any way I can deal with this?  Thanks.

Joe


Re: Wicket Component Overview

2009-10-17 Thread ralf . eichinger

Great overview!
And I at once bought the ebook!

Quoting Michael Mosmann :


Hi,

i did some wicket component diagram stuff (model, listener etc.)

http://www.wicket-praxis.de/blog/2009/10/16/wicket-component-overview/

glad to see some reply on this..

mm:)



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







This message was sent using IMP, the Internet Messaging Program.


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



Re: Open Source projects using Wicket

2009-10-17 Thread ralf . eichinger

added mistletoe to
http://cwiki.apache.org/confluence/display/WICKET/Related+Projects+and+Tools

Quoting Ceki Gulcu :



When I wrote:  "it is possible to create a web-application quickly  
and cleanly", I meant to say that was possible to create a  
web-application quickly and cleanly *with* *Wicket*.


Ceki Gulcu wrote:


I started working with Wicket just a week ago in order to develop a
junit extension for integration testing called Mistletoe. See
http://mistletoe.qos.ch for details.

Mistletoe's design imposes a strict separation between the data-model
layer and the presentation layer. I am mentioning this because after
designing the data-later, I started writing the presentation layer
using Wicket. It's was a very pleasant experience. Wicket just clicked
in my mind. By the way, wicket encouraged me to re-design my
data-model slightly and I am quite happy with the results. *After* the
wicket implementation, I did a simpler implementation of the
presentation later using servlets (without any .jsp files).  Given the
experience of the wicket-based implementation, the servlet-based
version was pretty straightforward, thanks to wicket's component-based
architecture.

For small projects, I now know for certain that it is possible to
create a web-application quickly and cleanly. I do not have experience
with larger projects.

Dave B wrote:

Hi,

I'm in the process of evaluating Wicket (after an arduous JSF project,
that has made us re-evaluate our web platform.)

I've read Wicket in Action and whole bunch of blog and mailing list
posts, done some proof-of-concept work and am now interested in
reading source code from a project using Wicket, since I want to see
Wicket in the wild. I know Artifactory uses Wicket, but their
Subversion access instructions seem to be out of date.

Does anyone know of an open source project using Wicket, so that I can
peruse the source code?

Many thanks,
Dave



--
Ceki Gülcü
Logback: The reliable, generic, fast and flexible logging framework for Java.
http://logback.qos.ch

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







This message was sent using IMP, the Internet Messaging Program.

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



Re: Open Source projects using Wicket

2009-10-17 Thread ralf . eichinger
added it to  
http://cwiki.apache.org/confluence/display/WICKET/Websites+based+on+Wicket


Quoting Pedro Santos :


Nice site, it was deployed in development mode and has a nice performance :)

On Fri, Oct 16, 2009 at 5:16 PM, Vytautas Racelis  wrote:


Hi,
i've been working with Wicket for a while.
It is not my primary job, but i've implemented some ideas at
http://www.xaloon.org/blog such as:
* enhanced @MountPage annotation in order to generate sitemap.xml for
google, dynamic menu with spring security
* VirtualPageFactory - to mount panels as pages
* other additional stuff
Currently i am working on open source sports betting component:

http://www.xaloon.org/blog/xaloon-sports-betting-open-source-sports-component-for-apache-wicket
First release may be found at http://www.leenle.com

Since it is my first email to this group this might sound like introduction
of myself :)




Dave B wrote:


Hi,

I'm in the process of evaluating Wicket (after an arduous JSF project,
that has made us re-evaluate our web platform.)

I've read Wicket in Action and whole bunch of blog and mailing list
posts, done some proof-of-concept work and am now interested in
reading source code from a project using Wicket, since I want to see
Wicket in the wild. I know Artifactory uses Wicket, but their
Subversion access instructions seem to be out of date.

Does anyone know of an open source project using Wicket, so that I can
peruse the source code?

Many thanks,
Dave




--
Regards,
Vytautas Racelis
---
phone:+370-600-34389
e-mail: turi...@gmail.com
www.xaloon.org
www.leenle.com



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





--
Pedro Henrique Oliveira dos Santos






This message was sent using IMP, the Internet Messaging Program.

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