Re: [Wicket-user] initial Seam support in SVN

2007-07-15 Thread Paolo Di Tommaso

Really ?!  this is cool! but on which Seam version this integration is based
on ?

Thanks, Paolo

On 7/16/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:


Hi all,

I just committed initial Seam support (I know, I know, I didn't the
see the light two weeks ago, but after Gavin King contacted me and
Igor came up with the brilliant idea of just starting with DI in mind,
I couldn't resist and had to see whether I could make it work.

I just committed the result of that as a wicket-stuff project
(wicket-seam-test). Please take a look and committers on wicket-stuff
don't hold back playing with it. I'd be interested to learn what
people think of it. I really have to get back to other things for a
bit now, so I don't intend to work on it much the next two months, but
I'd be happy to coop in the background.

It's a bit messy to get working now, mainly because I couldn't find a
decent maven 2 build for Seam yet. Which wouldn't be so bad weren't it
for the fact that it currently has about 1,500 dependencies, not all
clear on the versions either. :)

Anyway, here's part of the README I committed with the project. Hope
you'll have fun with it! Please send discussions on this to the
developer list instead of replying to this thread. I sent to the user
list to get better exposure.


Initial project for Wicket Seam support. Currently hosts the
integration code (which
due to Igor's and Al's great work on Spring and Guice isn't too much)
and a simple example
that nevertheless shows off that Seam can do scoped DI.

It's a start, and I can imagine that there are quite a few issues and
features that can be
worked on. Anyone interested in working on this project, please drop us a
line.

The plan is to keep it as Wicket stuff project for a while to play
around with, and if licensing
issues are resolved, Seams has a decent and recent maven deployment
and hopefully
a *much leaner* version (currently we'd need all the JSF, Hibernate
JEE dependencies
just to get it running) we can consider migrating this to a core
project. Otoh, it might
be a project with many interested people, in which case it'd actually
better stay here.

I think the most interesting features to look at first are related to
JPA/ Hibernate ORM and
validation support and transaction stuff. Next on my list would be
jBPM (might be nice
for wizard building) and possibly Seam's rule engine integration for
authorization. On the
longer term, we should keep an eye on WebBeans.

 Setting it up 

Currently, the only way to get this running is to check out this project
from

https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-seam-test
,
and
check out and build Seam from anoncvs.forge.jboss.com, repo
'/cvsroot/jboss', module 'jboss-seam'.
The Eclipse project files are set up for this and the wicket and
wicket-ioc project to be
all in your workspace and use each other as project dependencies. Only
extra thing you need to do
is to export most of the classpath entries of Seam. At the end of this
document, you can find the
contents of my Eclipse .classpath file for jboss-seam. Contributions
for other IDEs are welcome.
Hopefully Seam gets a proper maven 2 build soon and we can make this a
decent project.


Eelco

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Seam2 and Wicket

2007-07-06 Thread Paolo Di Tommaso

I'm not absolutely specking about a core implementation.

This should regards a Seam or just JBPM integration. JBPM provides a very
nice process flow designer.

I think would be possible to have a process flow that defines the Wicket
page and the inner model binding-persistence.

Using the designer the user could draw visually the flow between pages ..
but this is what Seam do with page flow.

- Paolo



On 7/6/07, Johan Compagner <[EMAIL PROTECTED]> wrote:


pageflow?
like defining the next page in xml file?
and then instead of

setResponsePage(new MyNextPage());

i get

setResponsePage("mynextpageasastring")

if you want something like that then you should really develop then on top
if wicket yourself.
because that won't make it into core.

johan


On 7/6/07, Paolo Di Tommaso <[EMAIL PROTECTED] > wrote:

> I think it depends how Seam will be really decoupled from JSF.
>
> I think it would be a nice option to Seam users to use Wicket as
> presentation layer instead of JSF, but if so the integration should be a
> Seam developers matter ..
>
> What would be nice to have in Wicket from an integration with Seam is
> the Pageflow mechanism.
>
> I think this is one the most interesting Seam feature that is missing in
> the Wicket framework.
>
>
>
> - Paolo
>
>
> On 7/6/07, Eelco Hillenius <[EMAIL PROTECTED] > wrote:
> >
> > > > I think the BPM feature would be a nice addition.
> > >
> > > I'm curious to learn what you would think that should look like.
> > I've
> > > heard of a couple of projects that used/ integrated Wicket + jBPM
> > > (likely the default of SEAM) but everyone might have different ideas
> > > on it. How would you want to use such integration as an end-user?
> >
> > I checked out seam from cvs today and browsed through the code a bit
> > (and also looked at JSR 299 for that matter).
> >
> > Gavin states that Seam is now ready to be used in other frameworks.
> > Well... only if those other frameworks work with page flows, support
> > EL, manage state independenly from objects, etc. Stuff Wicket doesn't
> > need. But if that's all stripped, what's left? Really, it looks to me
> > that Seam (and JSR-299) are completely bound to JSF, if not
> > technically, than at least conceptually.
> >
> > I think it is better to just stay focussed on what Wicket is good at.
> > We have excellent facilities for state management, model binding, etc,
> > and adding a framework in between will only make Wicket more heavy
> > weight. But please do speak up if you don't agree with what I think of
> > Seam + Wicket, and give some concrete examples of how such integration
> > would be an advantage.
> >
> > Eelco
> >
> > -
> >
> > This SF.net email is sponsored by DB2 Express
> > Download DB2 Express C - the FREE version of DB2 express and take
> > control of your XML. No limits. Just data. Click to get it now.
> > http://sourceforge.net/powerbar/db2/
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>
>
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Seam2 and Wicket

2007-07-06 Thread Paolo Di Tommaso

I think it depends how Seam will be really decoupled from JSF.

I think it would be a nice option to Seam users to use Wicket as
presentation layer instead of JSF, but if so the integration should be a
Seam developers matter ..

What would be nice to have in Wicket from an integration with Seam is the
Pageflow mechanism.

I think this is one the most interesting Seam feature that is missing in the
Wicket framework.



- Paolo


On 7/6/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:


> > I think the BPM feature would be a nice addition.
>
> I'm curious to learn what you would think that should look like. I've
> heard of a couple of projects that used/ integrated Wicket + jBPM
> (likely the default of SEAM) but everyone might have different ideas
> on it. How would you want to use such integration as an end-user?

I checked out seam from cvs today and browsed through the code a bit
(and also looked at JSR 299 for that matter).

Gavin states that Seam is now ready to be used in other frameworks.
Well... only if those other frameworks work with page flows, support
EL, manage state independenly from objects, etc. Stuff Wicket doesn't
need. But if that's all stripped, what's left? Really, it looks to me
that Seam (and JSR-299) are completely bound to JSF, if not
technically, than at least conceptually.

I think it is better to just stay focussed on what Wicket is good at.
We have excellent facilities for state management, model binding, etc,
and adding a framework in between will only make Wicket more heavy
weight. But please do speak up if you don't agree with what I think of
Seam + Wicket, and give some concrete examples of how such integration
would be an advantage.

Eelco

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] AjaxTabbedPanel and back button (Wicket 1.2.x)

2007-06-29 Thread Paolo Di Tommaso

Eelco .. I understand, and moreover in general versioning on ajax operation
is meaning less.

But in some cases like tab operation would be nice, because from the user
point of view changing tab switch is like changing the page content. So
would be useful to let interact with browser back and fwd navigation.

Looking on the Internet I found some interesting tricks [1] and [2].
Basically that make use of a hidden  iframe to store the history.

Perhaps a solution to handle versioning for a generic ajax action could be
very complex.

But a specific behaviour just to handle AjaxTabbedPanel versioning I think
it would not so difficult.

I will make some experiment and let you know.



Thank Paolo


[1] http://dev2dev.bea.com/pub/a/2006/01/ajax-back-button.html
[2]
http://www.onjava.com/pub/a/onjava/2005/10/26/ajax-handling-bookmarks-and-back-button.html





On 6/28/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:


> not really, that part (the client part) is not really implemented yet.
>
> waiting for someone to do it :)

FYI Paolo, we've been chatting about this before and had some ideas,
but it's a hard problem to solve. Unlike GWT (who does a good job
supporting the back button with Ajax), Wicket doesn't 'own' the
browser, so we'd have to use complicated workarounds, especially since
it has to be aligned with our normal page versioning. But biggest
problem right now that keeps us working on this is lack of time.

Eelco

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] AjaxTabbedPanel and back button (Wicket 1.2.x)

2007-06-28 Thread Paolo Di Tommaso

Umh .. it is a pity ..

Is there any example to start from ?


Thanks a lot

- Paolo

On 6/28/07, Johan Compagner <[EMAIL PROTECTED]> wrote:


i dont think this is really possible in 1.2. Because ajax and versioning
is not really implemented
in 1.3 we have IPageVersionManager.rollbackPage() where you can rollback a
page version.
But to support or catch the backbutton in the browser you need to write
the javascript yourself that
then calls a behavior on the page that roll backs 1 and then set that as
the response page.

johan


On 6/28/07, Paolo Di Tommaso < [EMAIL PROTECTED]> wrote:

> Guys,
>
> I have a page with an AjaxTabbedPanel component. When the user change
> the tab selection and then click on the browser back button it come back to
> the previous page.
>
> I would like instead to come back to the previous selected tab (when has
> been changed obviously).
>
> This is the default behaviour with a TabbedPanel component. It is
> possible to have the same behaviour with the AjaxTabbedPanel component?
>
> Thank you,
>
> - Paolo
>
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] AjaxTabbedPanel and back button (Wicket 1.2.x)

2007-06-28 Thread Paolo Di Tommaso

Guys,

I have a page with an AjaxTabbedPanel component. When the user change the
tab selection and then click on the browser back button it come back to the
previous page.

I would like instead to come back to the previous selected tab (when has
been changed obviously).

This is the default behaviour with a TabbedPanel component. It is possible
to have the same behaviour with the AjaxTabbedPanel component?

Thank you,

- Paolo
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Custom request listener (wicket 1.2.x)

2007-06-27 Thread Paolo Di Tommaso

I've added the following issue,

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

Thanks, Paolo

On 6/22/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:


yeah, dont think we ever thought about doing that...please open a jira
issue. it is probably something we should support.

-igor



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] HibernateAnnotationComponentConfigurator

2007-06-23 Thread Paolo Di Tommaso

This sounds very cool! Does it work with Hibernate Validator Annotations
also ?

Thanks, Paolo

On 6/23/07, Ryan Sonnek <[EMAIL PROTECTED]> wrote:


Just sending out a quick "release announcement" for a new Hibernate/Wicket
integration in the wicketstuff project.  The
HibernateAnnotationComponentConfigurator automatically configures a wicket
component based on the POJO's Hibernate annotations.

one especially cool feature is that you can register this behavior for
your *entire* application, without worrying about adding this functionality
to each page/component.

Take a look and let me know what you think!


http://jroller.com/page/wireframe?entry=hibernateannotationcomponentconfigurator



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Custom request listener (wicket 1.2.x)

2007-06-22 Thread Paolo Di Tommaso

I'm trying to create a custom request listener like the following code, but
something is wrong because I always get the "Page Expired" error page when
I'm invoking the custom listener (clicking on the link).

Any ideas to make it work?

Thank you, Paolo


On 3/16/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:


Here is a super-simple example of creating a custom request listener.

First, you create the new listener interface:

public interface IHelloListener extends IRequestListener
{
public static final RequestListenerInterface INTERFACE = new
RequestListenerInterface(
IHelloListener.class);

void onHello();
}

Note that it has a single method without parameters. This is a
requirement as you can read from IRequestListener's JavaDocs. The
other thing to note is the INTERFACE field; by instantiating a
RequestListenerInterface you register the interface, and the field
exposes a handle for constructing URLs using RequestCycle's UrlFor
methods.

Next, I simple patched the HelloWorld example like this:

public class HelloWorld extends WicketExamplePage implements
IHelloListener
{
public HelloWorld()
{
add(new Label("message", "Hello World!"));
WebMarkupContainer link = new WebMarkupContainer("link");
link.add(new SimpleAttributeModifier("href",
RequestCycle.get().urlFor(this,
IHelloListener.INTERFACE)));
add(link);
}

public void onHello()
{
RequestCycle.get().setRequestTarget(new IRequestTarget()
{
public void detach(RequestCycle requestCycle)
{
}

public void respond(RequestCycle requestCycle)
{
requestCycle.getResponse
().write("HELLO!");
}
});
}
}

The html is straightforward, with the link defined like: click me

And that's all there is to it: we created a new kind of listener for
requests.

Note that it is (still) bound to a page (or any arbitrary component).
It is entirely possible to decouple this further, from the top of my
head by providing a custom WebRequestCodingStrategy and override
doEncode for your specific purpose. But if you are doing that, you
probably might as well just create your own servlet.

It is certainly a design goal for Wicket to be very extensible.
However, it is *also* a goal to have different levels in our
abstraction. I agree with Igor that having services so upfront in the
architecture is or at least encourages scope creep, as it makes it too
obvious for users to start coding their own as if they were a
replacement for servlets and don't take the time to fully get into the
component mind set. As you can see from the example, there are pretty
much no limits to what you can do with Wicket, but we hope that doing
things like creating custom listeners are only used as a last resort.
And if you think you find a really good use, we'd appreciate it if you
would communicate it as there might be something we missed and can
result in a useful addition to Wicket.

My 2c, and again, if you have good and specific use cases, share them :)

Eelco


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Custom request listener (wicket 1.2.x)

2007-06-22 Thread Paolo Di Tommaso

The quick start was in the included email, anyway here it is again ..

public interface IHelloListener extends IRequestListener
{
   public static final RequestListenerInterface INTERFACE = new
RequestListenerInterface(
   IHelloListener.class);

   void onHello();
}


public class HelloWorld extends WicketExamplePage implements IHelloListener
{
   public HelloWorld()
   {
   add(new Label("message", "Hello World!"));
   WebMarkupContainer link = new WebMarkupContainer("link");
   link.add(new SimpleAttributeModifier("href",
RequestCycle.get().urlFor(this,
IHelloListener.INTERFACE)));
   add(link);
   }

   public void onHello()
   {
   RequestCycle.get().setRequestTarget(new IRequestTarget()
   {
   public void detach(RequestCycle requestCycle)
   {
   }

   public void respond(RequestCycle requestCycle)
   {
   requestCycle.getResponse
().write("HELLO!");
   }
   });
   }
}

The problem seems that it cannot work if the implementing listener is the
page itself. But I've just discovered that it works fine using a component
insted of a the page.


Paolo


On 6/22/07, Paolo Di Tommaso <[EMAIL PROTECTED]> wrote:


I'm trying to create a custom request listener like the following code,
but something is wrong because I always get the "Page Expired" error page
when I'm invoking the custom listener (clicking on the link).

Any ideas to make it work?

Thank you, Paolo


On 3/16/07, Eelco Hillenius <[EMAIL PROTECTED] > wrote:
>
> Here is a super-simple example of creating a custom request listener.
>
> First, you create the new listener interface:
>
> public interface IHelloListener extends IRequestListener
> {
> public static final RequestListenerInterface INTERFACE = new
> RequestListenerInterface(
> IHelloListener.class);
>
> void onHello();
> }
>
> Note that it has a single method without parameters. This is a
> requirement as you can read from IRequestListener's JavaDocs. The
> other thing to note is the INTERFACE field; by instantiating a
> RequestListenerInterface you register the interface, and the field
> exposes a handle for constructing URLs using RequestCycle's UrlFor
> methods.
>
> Next, I simple patched the HelloWorld example like this:
>
> public class HelloWorld extends WicketExamplePage implements
> IHelloListener
> {
> public HelloWorld()
> {
> add(new Label("message", "Hello World!"));
> WebMarkupContainer link = new
> WebMarkupContainer("link");
> link.add(new SimpleAttributeModifier("href",
> RequestCycle.get().urlFor(this,
>  IHelloListener.INTERFACE)));
> add(link);
> }
>
> public void onHello()
> {
> RequestCycle.get().setRequestTarget(new IRequestTarget()
> {
> public void detach(RequestCycle requestCycle)
> {
> }
>
> public void respond(RequestCycle requestCycle)
> {
> requestCycle.getResponse
> ().write("HELLO!");
> }
> });
> }
> }
>
> The html is straightforward, with the link defined like:  wicket:id="link">click me
>
> And that's all there is to it: we created a new kind of listener for
> requests.
>
> Note that it is (still) bound to a page (or any arbitrary component).
> It is entirely possible to decouple this further, from the top of my
> head by providing a custom WebRequestCodingStrategy and override
> doEncode for your specific purpose. But if you are doing that, you
> probably might as well just create your own servlet.
>
> It is certainly a design goal for Wicket to be very extensible.
> However, it is *also* a goal to have different levels in our
> abstraction. I agree with Igor that having services so upfront in the
> architecture is or at least encourages scope creep, as it makes it too
> obvious for users to start coding their own as if they were a
> replacement for servlets and don't take the time to fully get into the
> component mind set. As you can see from the example, there are pretty
> much no limits to what

Re: [Wicket-user] [announce] Apache Wicket

2007-06-20 Thread Paolo Di Tommaso

Great news! Congratulation!

Paolo

On 6/20/07, Martijn Dashorst <[EMAIL PROTECTED]> wrote:


We have Graduation! Apache Wicket is established as a top level
project within the Apache Software Foundation.

>From Greg Stein:

 Original Message 
Subject: Apache Board Meeting, June 20, 2007 (new officers!)
Date: Wed, 20 Jun 2007 12:45:06 -0700
From: Greg Stein
Reply-To: members@
To: members@

Hi all,

Today, the newly-elected Board met for the first time. After we
got
done with our regular series of project reviews and other reports,
we
elected a new slate of executive officers. I'm happy to present
that
list:

 Jim Jagielski, Chairman
 Justin Erenkrantz, President
 J Aaron Farr, Treasurer
 Sam Ruby, Exec VP and Secretary

Welcome guys to your new offices!

We also established new three projects:

* Apache Quetzalcoatl: this springs mod_python and related bits
out of
the HTTPD project into its own TLP. Gregory Trubetskoy is its
Chair.

* Apache Wicket: this is a light webapp framework for Java,
graduating
from the Incubator into its own TLP. Martijn Dashorst is the new
Chair.

* Apache Commons: this is the venerable Apache Jakarta Commons,
now
spun out into its own TLP, with Torsten Curdt as its Chair.

Finally, we swapped a couple PMC Chairs:

* Will Glass-Hussin replaces Henning Schmiedehausen as the
Velocity Chair
* David Sean Taylor replaces Santiago Gala as the Portals Chair

That's it for this month. Please feel free to forward this to any
public/private forum as you see fit. If you have any questions,
then
please don't hesitate to ask myself or any other Director or
officer.

Cheers,
-g

We would like to congratulate all Wicket community members with this
remarkable feat, we couldn't have done this without you!

Furthermore, I like to thank the Board of the Apache Software
Foundation for the trust they invested in us. We will not disappoint!

We would like to thank Wicket's mentors:

* Alex Karasulu (whose birthday coincidentally is today… what a better
gift could you receive). Thanks for bringing us on board, and a Happy
Birthday!!!

* Upayavira, who made the transition even run smoother than thought
possible. Thanks for guiding us and I hope you'll stay for a long time
with our project!

* Bertrand Delacretaz, thank you for your help, votes and advise. We
will miss your involvement, but will certainly see you in the future!

* Sylvain Wallez, also big thanks for helping and guiding us. I hope
Wicket is still working within Joost

Finally, congratulations to the new officers, PMC Chairs and the other
two new projects: Apache Quetzalcoatl and Apache Commons! Welcome to
the club!

!!! Champagne !!!

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Convertes Hell (Wicket 1.2.x)

2007-06-15 Thread Paolo Di Tommaso

I need to replace the default Wicket Date conversion with a custom one to
override the default format for dates.

To do that I've made something like that in my wicket application :


 getApplicationSettings().setConverterFactory( new IConverterFactory() {
   public IConverter newConverter(Locale locale) {
   return new MyConverter() ;
   } }  );


Where:


public class MyConverter extends Converter {

   public MyConverter() {
   super();
   set(Date.class, new MyDateConverter());
   set(String.class, new MyStringConverter() );
   }

   public MyConverter(final Locale locale)
   {
   this();
   setLocale(locale);
   }

}

public class MyDateConverter extends AbstractConverter {

   protected Class getTargetType()
   {
   return Date.class;
   }

   public Object convert(final Object value, Locale locale)
   {
   return parse(MY_DATE_FORMAT, value);
   }
}

public class MyStringConverter extends AbstractConverter { 
 /*
  * ... that requires also an extra class MyDateToStringConverter ..
  */
}


This is really too complex to do a trivial job like a Date <---> String
conversion .

Exists a better and simpler way to override the default date-string
conversion ?

Thank you,

Paolo Di Tommaso
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Good Tutorial on core wicket

2007-05-03 Thread Paolo Di Tommaso

Anyway Francisco is right, I'm also thinking that Wicket is really missing a
good tutorial about core concepts.

I'm not new to Wicket, I'm using it for about a year, but there still a lot
aspects obscure to me like PageMap, page versioning, details of page request
cycle and so on.

Wicket is really a good framework that covers every details of the web
application stack (and they are many and many not just web page rendering
..), but I'm thinking that a good tutorial about Wicket core concepts would
be very useful to novice users as well as experts.


Thank you.

- Paolo


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


as far as models go


http://cwiki.apache.org/confluence/display/WICKET/Working+with+Wicket+models

-igor


On 5/3/07, Francisco Diaz Trepat - gmail <[EMAIL PROTECTED]>
wrote:
>
> I will be glad to help out in any way.
>
> Here are my thoughts to the community.
>
> If we could talk about core wiket ideas and implementations, for
> instance:
>
> Models (Concept, interfaces, implementations)
> Session
> Application
> Pages
>
> Listeners
> Versioning
> Request and Response Cycles
>
> Page Life Cycle.
>
>
> The thing is, it is not the same (AT ALL) to build a wicket application
> than it is to build a struts application (Other than struts sucks :P) which
> are the concepts and design guidelines we should have?
>
> That is what I am trying to address.
>
> Because of my current infinite ignorance, I might not be the right
> person to build this type of document.
>
> Although I could write some docs after I get an Idea from the Book
> Pro-Wicket or Wicket-Pro (don't remember just know) and migrate to 1.3,
> and do some other demos. I think I could start writing in about a month or
> so.
>
> Other than that any thing else I could do would be nice to help out.
>
> Regards,
> f(t)
>
>
> On 5/3/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> >
> > i dont think we have something that is focused on the core
> > architecture. if you have specific questions we will be happy to answer them
> > and maybe you can compile them into a document.
> >
> > it is hard to find time to work specifically on high level
> > documentation because this list, coding, jira, javadoc, etc take up a lot of
> > time. by the time someone gets to a point where they have enough knowledge
> > to write such docs they are usually buried in fixing bugs :)
> >
> > -igor
> >
> >
> > On 5/3/07, Francisco Diaz Trepat - gmail <[EMAIL PROTECTED]>
> > wrote:
> > >
> > > H igor, thanks, but could you be more specific. I do think I browsed
> > > the wiki but couldn't find what I was looking for.
> > >
> > > For instance:
> > >
> > > http://cwiki.apache.org/WICKET/documentation-index.html
> > >
> > > appears to list many referential "How to"'s but not core framework
> > > architecture. I know there is a little bit in many of the reference 
samples.
> > >
> > > But is there a paper on module architecture and core objects. Other
> > > than the javadoc I mean.
> > >
> > > francisco
> > >
> > > On 5/3/07, Igor Vaynberg < [EMAIL PROTECTED]> wrote:
> > > >
> > > > our wiki has links to various articles that might be of help to
> > > > you. browsing the wiki is usually also good.
> > > >
> > > > -igor
> > > >
> > > >
> > > > On 5/3/07, Francisco Diaz Trepat - gmail <
> > > > [EMAIL PROTECTED]> wrote:
> > > >
> > > > >  Hello everyone, I am about to buy this book called pro wicket
> > > > > 

> > > > > .
> > > > >
> > > > > But until it gets here (Argentina) would anyone point me in the
> > > > > right direction to read something on-line.
> > > > >
> > > > > What I am looking for is a tutorial / reference / on-line book /
> > > > > etc. covering the CORE, architecture, vision, a guide on how to 
structure
> > > > > your design.
> > > > >
> > > > > I have very successfully built a good enough demo, so I got
> > > > > around the reference samples, some docs, and this mailing list. But I 
cannot
> > > > > say at all that I know wicket.
> > > > >
> > > > > I would very much like to learn more about its internals 'cause
> > > > > I think that will also guide me to better designs by knowing more of 
wicket
> > > > > potentials.
> > > > >
> > > > >
> > > > > Thanks in  advance,
> > > > >
> > > > > f(t)
> > > > >
> > > > > PS: Does the name wicket comes from being a real "wicked" as in
> > > > > "cool" or "awsome" framework or from the name of the cutest EWOK on 
Episode
> > > > > 6? XD.
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > 
-
> > > > > This SF.net email is sponsored by DB2 Express
> > > > > Download DB2 Express C - the FREE version of DB2 express and
> > > > > take
> > > > > control of your XML. No limits. Just data. Click to get it now.
> > > > > http://sourceforge.net/powerbar/db2/
> > > > > __

Re: [Wicket-user] Wicket manager resources inside Javascript and Css files

2007-04-17 Thread Paolo Di Tommaso

Guys, the problem is another, lets recap:

I've a folder with a javascript, a css and some images. From both the css
and the javascript I references these images using a relative path. For
example in the css url(the-image-1.gif) and in the javascript file image.src= '
the-image-2.gif'.

The css works fine instead the javascript image link is broke.

The problem is that a relative path in a CSS is relative to the location of
the css itself, so loading the css under the wicket
/resource/package.name.Class/ path it works fine.

BUT relative path in a javascript are relative to the page which loaded the
script NOT the script location, so the relative link will break!

Thanks, Paolo


On 4/16/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:


On 4/16/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> in wicket 1.2.3 we do not allow default access to packaged resources
without
> explicitly adding a shared resource do we? i think that is the problem.
his
> css is a shared resource, but everything alongside it is not. so this
would
> for in 1.3 but not in 1.2.3.

Duh! Indeed. I completely forgot about that.

Eelco

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Wicket manager resources inside Javascript and Css files

2007-04-16 Thread Paolo Di Tommaso

This is very strange because I've all files (css, js, and images) all in the
same path.


From the CSS I'm referencing two images using the url(..) attribute with a

relative path. This works fine.


From the JS I'm referencing another image in the same path of the

javascript, so using a:

image.src = 'relative-image.jpg'


But in this case the image is broke, looking at the server log I can see
that the image path is not translated under the wicket 'resource/...' path.

Both the css and js are added in the same way ..

add( new StyleSheetReference("sortable_css", new ResourceReference(
WorkflowListPage.class,"sortable/sortabletable.css")));

add( new JavaScriptReference("sortable_js", new ResourceReference(
WorkflowListPage.class,"sortable/sortabletable.js")));



Thanks, Paolo



On 4/16/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:


> Really ?! .. but in which version has been implemented.
>
> I'm using Wicket 1.2.3 and adding a javascript using the following code:

That's a very old version. But look at the datepicker in extensions
for that project, as that uses relative images from JavaScript.

> add( new JavaScriptReference("sortable_js", new
> ResourceReference(getClass(),"sortable/sortabletable.js")))

Be *very* careful using getClass() there. Are you sure the actual
class isn't a subclass of the class you really want? Try to use
MyClass.class in resource references.

> Is not translating the path for relative resources ..

If your javascript file is served from /resources/... then everything
that is declared relatively should go through that as weell.

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Wicket manager resources inside Javascript and Css files

2007-04-16 Thread Paolo Di Tommaso

Really ?! .. but in which version has been implemented.

I'm using Wicket 1.2.3 and adding a javascript using the following code:

add( new JavaScriptReference("sortable_js", new
ResourceReference(getClass(),"sortable/sortabletable.js")))

Is not translating the path for relative resources ..


Thanks, Paolo



On 4/16/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:


> document.getElementById('a-image-element').src =
> '/path-to-image/resource.gif';

Also by relatively addressing those images. There are quite a few
components that do this (for instance wicket-datetime's DatePicker
component).

Eelco

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Wicket manager resources inside Javascript and Css files

2007-04-16 Thread Paolo Di Tommaso

Yes, for example in a JavaScript could be common to have something like
that:

document.getElementById('a-image-element').src =
'/path-to-image/resource.gif';

Anyway I've solved using in the JavaScript a CSS class, so reconducing the
the previous case.

Thanks Paolo


On 4/16/07, Matej Knopp <[EMAIL PROTECTED]> wrote:


What do you mean in javascript file, can you make an example?

-Matej

On 4/16/07, Paolo Di Tommaso <[EMAIL PROTECTED]> wrote:
> Really .. I didn't know that. Great!
>
> But how to do with resource path in javascript file ?
>
>
> Thanks, Paolo
>
>
> On 4/16/07, Matej Knopp < [EMAIL PROTECTED]> wrote:
> >
> > If you the css is a packagedresource, you don't need to do anything
> > special. Just use relative url for the image and have the image in
> > same folder than css.
> >
> >
>
-
> > This SF.net email is sponsored by DB2 Express
> > Download DB2 Express C - the FREE version of DB2 express and take
> > control of your XML. No limits. Just data. Click to get it now.
> > http://sourceforge.net/powerbar/db2/
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>
>
>
-
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Wicket manager resources inside Javascript and Css files

2007-04-16 Thread Paolo Di Tommaso

Really .. I didn't know that. Great!

But how to do with resource path in javascript file ?


Thanks, Paolo

On 4/16/07, Matej Knopp <[EMAIL PROTECTED]> wrote:


If you the css is a packagedresource, you don't need to do anything
special. Just use relative url for the image and have the image in
same folder than css.

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Wicket manager resources inside Javascript and Css files

2007-04-16 Thread Paolo Di Tommaso

Dear all,

which is the best strategy to use Wicket manager resource path from inside
Javascript file and Css?

For example I need to replace and url() attribute inside a css with a gif
deployed with the wicket application ..

Is there any example ?

Thanks in advance,
Paolo
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Multi page inheritance

2007-04-10 Thread Paolo Di Tommaso

I'm get confused of to use  and  element to
write a multi-level page inheritance.

Let's say that the  have the following hierarchy:

Page A
^
|
Page B
^
|
Page C



The page A will be:



Some stuff here 







The page C




Some details





But how to write the Page B markup ??


Thanks, Paolo
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Tapestry -> Wicket | Action Service

2007-03-16 Thread Paolo Di Tommaso

It could be useful in situation where UI components are not mapped to Wicket
components, but you wants access to page state.

For example just think about a javascript input dialog. How to send the user
input value in a wicket page?

Or in any other situation where you use third parts UI widgets not supported
by Wicket, but you want to interact with the server side page status.


Paolo

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


but this is just scope creep in tapestry. what you have just described is
almost exactly a service() method in a servlet. why not just build a servlet
to do what you want?

wicket is about the UI, if you need callbacks that have nothing to do with
UI like youve mentioned why use wicket for that?

wicket focuses on doing one thing but doing it very well. we do not
provide a generic request/response framework because that is what servlets
do.

-igor


On 3/16/07, Robert . <[EMAIL PROTECTED]> wrote:
>
> Hi!
>
> A Tapestry service basically has a
> public void service(RequestCycle) method.
> Something like a PageService would do something like
> cycle.activate(cycleparam[0])
>
> Now I understand that I don't usually need a PageService. The onClick
> for Link components are much easier to use. However what if I don't have a
> component and
> there is some javascript that wants to change the page? I'll try to
> write about this more in the other replies in this thread.
>
> Robert
>
>
> On 3/15/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> >
> > you wanted to know how to have an equivalent of a tapestry service. if
> > i remember correctly tapestry services return things. like an asset service
> > that streams images.
> >
> > if all you want is a callback then you can use urlFor methods to build
> > such a callback url. see, for example, how Link component does it.
> >
> > wicket is event driven. tapestry is also, but not to the same degree.
> > in wicket you rarely need to build urls yourself because we provide
> > components that do this for you.
> >
> > for example Link has an onClick() method and a Button has onSubmit().
> > wicket takes care of wiring these methods with urls it generates.
> >
> > -igor
> >
> >
> > On 3/15/07, Robert . < [EMAIL PROTECTED]> wrote:
> > >
> > > Really? A resource?
> > > But I have nothing to return from my service resource.
> > >
> > > Robert
> > >
> > >
> > > On 3/15/07, Igor Vaynberg < [EMAIL PROTECTED]> wrote:
> > > >
> > > > wicket's equivalent of a service is a shared resource. you can
> > > > register your own shared resources through your webapplication subclass.
> > > >
> > > > as far as selecting pages via javascript:
> > > >
> > > > wicket doesnt really have a page service. urls for pages are
> > > > resolved internally. if you want a stable entry point into the page 
then you
> > > > should mount it, also via the webapplication subclass, and then the
> > > > javascript can redirect to the mounted url.
> > > >
> > > > -igor
> > > >
> > > >
> > > > On 3/15/07, Robert . < [EMAIL PROTECTED]> wrote:
> > > >
> > > > > Hi,
> > > > >
> > > > > I have been examining how I can convert a web application
> > > > > product from Tapestry 3 to Wicket, and trying to adapt
> > > > > myself to the Wicket way of thinking about web flow.
> > > > >
> > > > > One part that I just can't seem to figure out from reading Pro
> > > > > Wicket and browsing through the apidocs is how to
> > > > > make something like Tapestry "services".
> > > > >
> > > > > For example I have an action service in Tapestry that let's me
> > > > > send an action command, including additonal parameters,
> > > > > to the service by using javascript. I have such a service for
> > > > > both normal requests and XMLHTTP requests. But thinking
> > > > > about this further makes me realize I don't even know how to
> > > > > make something like a PageService where the page is determined by
> > > > > javascript.
> > > > >
> > > > > I feel like I am missing something.
> > > > >
> > > > > Robert
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > 
-
> > > > > Take Surveys. Earn Cash. Influence the Future of IT
> > > > > Join SourceForge.net's Techsay panel and you'll get the chance
> > > > > to share your
> > > > > opinions on IT & business topics through brief surveys-and earn
> > > > > cash
> > > > >
> > > > > 
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > > > > ___
> > > > > Wicket-user mailing list
> > > > > Wicket-user@lists.sourceforge.net
> > > > > https://lists.sourceforge.net/lists/listinfo/wicket-user
> > > > >
> > > > >
> > > >
> > > >
> > > > 
-
> > > > Take Surveys. Earn Cash. Influence the Future of IT
> > > > Join SourceForge.net's Techsay panel and you'll get the chance to
> > > > share your
> > > > opinions on IT & business topics through brief surveys-a

Re: [Wicket-user] Tapestry -> Wicket | Action Service

2007-03-16 Thread Paolo Di Tommaso

Robert, I agree with you definitefly.

Wicket should provide a "generic" PageService not tied to a specific
component. It would be very useful for client-server interaction where a
visual component is not req

On 3/16/07, Robert . <[EMAIL PROTECTED]> wrote:


Hi!

A Tapestry service basically has a
public void service(RequestCycle) method.
Something like a PageService would do something like
cycle.activate(cycleparam[0])

Now I understand that I don't usually need a PageService. The onClick for
Link components are much easier to use. However what if I don't have a
component and
there is some javascript that wants to change the page? I'll try to write
about this more in the other replies in this thread.

Robert


On 3/15/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
>
> you wanted to know how to have an equivalent of a tapestry service. if i
> remember correctly tapestry services return things. like an asset service
> that streams images.
>
> if all you want is a callback then you can use urlFor methods to build
> such a callback url. see, for example, how Link component does it.
>
> wicket is event driven. tapestry is also, but not to the same degree. in
> wicket you rarely need to build urls yourself because we provide components
> that do this for you.
>
> for example Link has an onClick() method and a Button has onSubmit().
> wicket takes care of wiring these methods with urls it generates.
>
> -igor
>
>
> On 3/15/07, Robert . < [EMAIL PROTECTED]> wrote:
> >
> > Really? A resource?
> > But I have nothing to return from my service resource.
> >
> > Robert
> >
> >
> > On 3/15/07, Igor Vaynberg < [EMAIL PROTECTED]> wrote:
> > >
> > > wicket's equivalent of a service is a shared resource. you can
> > > register your own shared resources through your webapplication subclass.
> > >
> > > as far as selecting pages via javascript:
> > >
> > > wicket doesnt really have a page service. urls for pages are
> > > resolved internally. if you want a stable entry point into the page then 
you
> > > should mount it, also via the webapplication subclass, and then the
> > > javascript can redirect to the mounted url.
> > >
> > > -igor
> > >
> > >
> > > On 3/15/07, Robert . < [EMAIL PROTECTED]> wrote:
> > >
> > > > Hi,
> > > >
> > > > I have been examining how I can convert a web application product
> > > > from Tapestry 3 to Wicket, and trying to adapt
> > > > myself to the Wicket way of thinking about web flow.
> > > >
> > > > One part that I just can't seem to figure out from reading Pro
> > > > Wicket and browsing through the apidocs is how to
> > > > make something like Tapestry "services".
> > > >
> > > > For example I have an action service in Tapestry that let's me
> > > > send an action command, including additonal parameters,
> > > > to the service by using javascript. I have such a service for both
> > > > normal requests and XMLHTTP requests. But thinking
> > > > about this further makes me realize I don't even know how to make
> > > > something like a PageService where the page is determined by javascript.
> > > >
> > > > I feel like I am missing something.
> > > >
> > > > Robert
> > > >
> > > >
> > > >
> > > >
> > > > 
-
> > > > Take Surveys. Earn Cash. Influence the Future of IT
> > > > Join SourceForge.net's Techsay panel and you'll get the chance to
> > > > share your
> > > > opinions on IT & business topics through brief surveys-and earn
> > > > cash
> > > >
> > > > 
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > > > ___
> > > > Wicket-user mailing list
> > > > Wicket-user@lists.sourceforge.net
> > > > https://lists.sourceforge.net/lists/listinfo/wicket-user
> > > >
> > > >
> > >
> > >
> > > -
> > > Take Surveys. Earn Cash. Influence the Future of IT
> > > Join SourceForge.net's Techsay panel and you'll get the chance to
> > > share your
> > > opinions on IT & business topics through brief surveys-and earn cash
> > >
> > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > > ___
> > > Wicket-user mailing list
> > > Wicket-user@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >
> > >
> >
> >
> > -
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to
> > share your
> > opinions on IT & business topics through brief surveys-and earn cash
> >
> > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> >
>
>
> --

[Wicket-user] AutoCompleteTextField issue (wicket 1.2.3)

2007-02-21 Thread Paolo Di Tommaso

The AutoCompleteTextField does not invoke the functions registered by
Wicket.Ajax.registerPostCallHandler() after the ajax request has been
completed.

Is someone else experiencing the same problem?


Thank you, Paolo
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Mounting a package

2007-02-12 Thread Paolo Di Tommaso

OK. But from where I could start?

Thanks, Paolo

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


no, access to files, within a package or not, is provided via shared
resources. it should be pretty easy to write a resource to do what you want
though.

-igor


On 2/12/07, Paolo Di Tommaso <[EMAIL PROTECTED]> wrote:
>
> Is it possible to use WebApplication#mount(java.lang.String path,
> PackageName packageName) to map a package name to a path and then access all
> the static resources (like images, etc) in the package by that path?
>
> Thanks, Paolo
>

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


[Wicket-user] Mounting a package

2007-02-12 Thread Paolo Di Tommaso

Is it possible to use WebApplication#mount(java.lang.String path,
PackageName packageName) to map a package name to a path and then access all
the static resources (like images, etc) in the package by that path?

Thanks, Paolo
-
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] [Upload] Upload and Ajax

2007-02-02 Thread Paolo Di Tommaso

I have implemented an ajax upload using wicket, but you still have to use
the common trick to submit to an hidden . For example:






Submitting to an hidden frame you will need to prevent wicket to send a
response using the following code in the Form#onSubmit()

// avoid redirection
// Tell Wicket we're going to do the redirect ourselves.
getRequestCycle().setRedirect(false);
// Make sure no output for the current cycle is ever sent.
getRequestCycle().setRequestTarget(EmptyRequestTarget.getInstance());


Sorry if the first time I gave an incomplete response to the problem.

Paolo



On 2/1/07, Henning Bredel <[EMAIL PROTECTED]> wrote:


Johan Compagner schrieb:
> i have no idea about a workaround. I just know that everytime that
> question picks up
> everytime the answer is no doesn't work
>
> And i don't think it is a w3c standard.. Those guys don't really make
> the standards nowadays i think.
>
> johan
>
>
> On 2/1/07, *Henning Bredel* <[EMAIL PROTECTED]
> > wrote:
>
> Johan Compagner schrieb:
> >
> > Henning Bredel schrieb:
> > > Hi,
> > >
> > > is there a way, to handle an upload with ajax?
> >
> >
> > not  as far as i know.
> >
> > johan
> >
> >
> >
>

> >
> >
>
-
> > Using Tomcat but need to do more? Need to support web services,
> security?
> > Get stuff done quickly with pre-integrated technology to make
> your job easier.
> > Download IBM WebSphere Application Server v.1.0.1 based on
> Apache Geronimo
> >
>
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> <
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
> 
> >
> Thx, for answering -- but, perhaps this was not the last question:
is
> there a workaround
> or is it simply unusual or not w3c conform to handle it that way?
>
> regards
>
>
-
>
> Using Tomcat but need to do more? Need to support web services,
> security?
> Get stuff done quickly with pre-integrated technology to make your
> job easier.
> Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
>
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> <
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642>
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> 
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
>
>
> 
>
>
-
> 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
>
Okay -- thx for your effort

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

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

Re: [Wicket-user] [Upload] Upload and Ajax

2007-02-01 Thread Paolo Di Tommaso

You have to force Wicket to avoid reloading the page after the file has been
uploaded. I've used the following code in the Form#onSubmit() method:


   // avoid redirection
   // Tell Wicket we're going to do the redirect ourselves.
   getRequestCycle().setRedirect(false);
   // Make sure no output for the current cycle is ever sent.
   getRequestCycle().setRequestTarget(
EmptyRequestTarget.getInstance());




- Paolo




On 2/1/07, Henning Bredel <[EMAIL PROTECTED]> wrote:


Hi,

is there a way, to handle an upload with ajax?

I have a form with some textfields and an upload (like the example).
After uploading, the form loads again and all made entries in the
textfields
are gone.

thanks in advance

Henning

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

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


Re: [Wicket-user] DatePicker and ModalWindow

2007-01-26 Thread Paolo Di Tommaso

Anyway I've found another problem with a DatePicker on a ModalWindow:

If you open a DatePicker and then close the ModalWindow, the DatePicker does
not disappear and remains open.

I know that a stupid case but at the same time is a really user annoying
behaviour.

Anyone experienced that?

Paolo


On 1/26/07, Matej Knopp <[EMAIL PROTECTED]> wrote:


It definitely shouldn't override it. Therefore the !important thing in
css. I've tried it and it worked well for me.

-Matej


Scott Swank wrote:
> This seems to be a bit nastier than that -- unless I'm missing something
> simple.  This goes at the top of the page:
>
>   
>  
>  div.calendar {
>  z-index: 3 !important;
>  }
> 
> 
>
> However the js in the DatePicker generates its own css that overrides
> the css the above.  However, the following approach allows the css to
> override the js' style.
>
> DatePicker dp=new DatePicker("checkOutPicker", checkOut,ds);
> dp.add(HeaderContributor.forCss("../../css/cyllenius_cal.css"));
> add( dp );
>
> Cheers,
> Scott
>
>
> 
>
>
-
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
your
> opinions on IT & business topics through brief surveys - and earn cash
>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
>
> 
>
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] SURVEY: Are you using Page.before/afterCallComponent

2007-01-23 Thread Paolo Di Tommaso

No

On 1/23/07, Johannes Fahrenkrug <[EMAIL PROTECTED]> wrote:


never heard of it, either :)


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] integrate Wicket stuff examples projects

2007-01-22 Thread Paolo Di Tommaso

I agree with that.

- P

On 1/21/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:


> I have some examples for beanpanels, but I'd like to wait some weeks
> just to have some more stable code.

Sounds good.  But it would be great to consider making them part of
the wicket-contrib-examples project by the time you're considering
contributing examples.

Eelco

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Wicket visual designer

2007-01-19 Thread Paolo Di Tommaso

Is there any project about a Wicket Visual Designer?

I think it would be a huge help for Wicket developers.


Paolo
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Custom web form in Wicket

2007-01-18 Thread Paolo Di Tommaso

Filippo, I've also commited a ViewBeanPanel. It's a very simple gadget but
useful to display a bean in a fast way.

Paolo

On 1/18/07, Filippo Diotalevi <[EMAIL PROTECTED]> wrote:


On 1/16/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> Ah, ok. In that case, you should move the project from trunk to the 1.3
> branch in the wicket-stuff project. Trunk is reserved for 2.0 projects.
I
> regularly update those projects (like last weekend) when there are API
> breaks.

Hi, I moved the project in wicket-stuff/branches/wicket1.3

--
Filippo

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Custom web form in Wicket

2007-01-17 Thread Paolo Di Tommaso

We are just refactoing the package name to
wicket.contrib.markup.html.beanpanel

What do you think is? Is there a naming convention for Wicket-stuff contribs
?


Thanks, Paolo


On 1/16/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:


Ah, ok. In that case, you should move the project from trunk to the 1.3branch 
in the wicket-stuff project. Trunk is reserved for
2.0 projects. I regularly update those projects (like last weekend) when
there are API breaks.

Eelco


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Custom web form in Wicket

2007-01-16 Thread Paolo Di Tommaso

Me and Fillippo are working on BeanPanels project on Wicket-Stuff.

The idea, nothing new but just a shortcut in some situation, is to render a
form/panel dynamically based on the bean properties content.

The code is available, but I cannot guarantee on api breaks because we are
really in a early release phase.


Paolo



On 1/12/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:


what you want is what is commonly referred to as a "bean panel" only the
fields are not read off a bean, but instead the db.

some people resurrected an old/abandoned beanpanel project in
wicket-stuff, you might want to look at that for inspiration.

-igor


On 1/11/07, Michael K <[EMAIL PROTECTED]> wrote:
>
>
> Thanks very much Igor. I 'll give it a try.
>
> Michael
>
> - Original Message 
> From: Igor Vaynberg < [EMAIL PROTECTED]>
> To: wicket-user@lists.sourceforge.net
> Sent: Friday, January 12, 2007 12:51:14 AM
> Subject: Re: [Wicket-user] Custom web form in Wicket
>
> wrap each type (textfield, dropdown, etc) of component in a panel, then
> add them to repeatingview or another repeater to build the form
>
> -igor
>
>
> On 1/11/07, Michael K <[EMAIL PROTECTED]> wrote:
> >
> > hmm certainly my next question is: what are the tricks?  :)
> > AFAIK, Wicket demands the form component to be mapped out during
> > development time.
> >
> > Michael
> >
> >
> > - Original Message 
> > From: Igor Vaynberg <[EMAIL PROTECTED]>
> > To: wicket-user@lists.sourceforge.net
> > Sent: Friday, January 12, 2007 12:38:30 AM
> > Subject: Re: [Wicket-user] Custom web form in Wicket
> >
> > not only is it feasible, it is easy :)
> >
> > -igor
> >
> >
> > On 1/11/07, Michael K <[EMAIL PROTECTED]> wrote:
> > >
> > > Hi,
> > >
> > > I 'm planning to include a feature in my web application that
> > > enables a customer to build a webform on the fly. The customer can 
determine
> > > which type of form component (i.e. textfield, list, options etc.)
> > > needs to be included. The web application displays the custom form and
> > > process the submitted information.
> > > Is it feasible to develop such feature in Wicket?
> > >
> > >
> > > TIA.
> > >
> > >
> > > Michael
> > >
> > > --
> > > Check out the all-new Yahoo! Mail beta
> > > 
- Fire 
up a more powerful email and get things done faster.
> > >
> > >
> > > -
> > > Take Surveys. Earn Cash. Influence the Future of IT
> > > Join SourceForge.net's Techsay panel and you'll get the chance to
> > > share your
> > > opinions on IT & business topics through brief surveys - and earn
> > > cash
> > >
> > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > >
> > > ___
> > > Wicket-user mailing list
> > > Wicket-user@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >
> > >
> > >
> >
> > -
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to
> > share your
> > opinions on IT & business topics through brief surveys - and earn cash
> >
> > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> >
> > --
> > Want to start your own business? Learn how on Yahoo! Small Business.
> > 
> >
> >
> > -
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to
> > share your
> > opinions on IT & business topics through brief surveys - and earn cash
> >
> > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> >
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> >
> >
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys - and earn cash
>
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
> --
> Everyone is raving about the all-new Yahoo! Mail beta.
> 


Re: [Wicket-user] Why I recommended Wicket...

2006-12-21 Thread Paolo Di Tommaso

What do you mean ?


Paolo


On 12/21/06, Johan Compagner <[EMAIL PROTECTED]> wrote:



why this thread is our biggest Achilles heal is beyond me..


http://www.nabble.com/Directly-map-a-bean-to-HTML-form-tf2845102.html#a7944709


johan


On 12/21/06, karthik Guru <[EMAIL PROTECTED]> wrote:
>
> someone else picked it up too  ;-)
> http://www.nabble.com/Can-you-comment-on-this--tf2858705.html
>
> regards
> Karthik
>
> On 12/20/06, Martijn Dashorst <[EMAIL PROTECTED] > wrote:
> >
> > And InfoQ picked up this thread:
> > http://www.infoq.com/news/2006/12/wicket-vs-springmvc-and-jsf
> >
> > Martijn
> > --
> > Vote for Wicket at the http://www.thebeststuffintheworld.com/vote_for/wicket
> >
> > Wicket 1.2.3 is as easy as 1-2-3. Download Wicket now!
> > http://wicketframework.org
> >
> > -
> >
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to
> > share your
> > opinions on IT & business topics through brief surveys - and earn cash
> >
> > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>
>
>
> --
> -- karthik --
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys - and earn cash
>
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Persistence Question in Wicket

2006-12-20 Thread Paolo Di Tommaso

It should work.

Another approach is to use a open-view-in-session filter, described here
-->  http://www.hibernate.org/43.html


Paolo

On 12/20/06, Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote:




I am working on a wicket app where i have entities that will require lots
of lazy loading.

i actually plan to keep my persistence context open for the duration of my
page rendering process so that lazy-loading relationships can be easily
resolved,

now what i do is to override onEndRequest() in RequestCycle. is that all
to this?

anybody has a specific pattern that makes this perfect. thanks



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Directly map a bean to HTML form

2006-12-20 Thread Paolo Di Tommaso

Fine, my id on sourceforge is "paolodt" .

Thanks.

Paolo


On 12/20/06, Martijn Dashorst <[EMAIL PROTECTED]> wrote:


If you provide me with your sourceforge.net ID, then I'll add
you to the committers list of wicket-stuff
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Directly map a bean to HTML form

2006-12-20 Thread Paolo Di Tommaso

Nice one. How to gain 'developer' access to that project ?

Paolo

On 12/20/06, Gwyn Evans <[EMAIL PROTECTED]> wrote:


I've just committed a copy of the project that I had locally back to
SVN, but it's not something I was working on, so may be older than the
last modified one.  Feel free to delete it if it doesn't help.

/Gwyn


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Directly map a bean to HTML form

2006-12-20 Thread Paolo Di Tommaso

Can you grant the same role to me or whoever else can do that?


Paolo


On 12/20/06, Filippo Diotalevi <[EMAIL PROTECTED]> wrote:


On 12/20/06, Paolo Di Tommaso <[EMAIL PROTECTED]> wrote:
> Ok, but it is possible to commit on wicket-stuff with an anonymous
access?
>
> Paolo

Not with an anonymous access, but I should also have commit access
since I'm listed as 'developer' in wicket-stuff

--
  filippo

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Directly map a bean to HTML form

2006-12-20 Thread Paolo Di Tommaso

Ok, but it is possible to commit on wicket-stuff with an anonymous access?

Paolo

On 12/20/06, Filippo Diotalevi <[EMAIL PROTECTED]> wrote:


On 12/20/06, Paolo Di Tommaso <[EMAIL PROTECTED]> wrote:
> Good question.
>
> I've found the BeanFormPanel source in a old 1.1.1 wicket-extensions
> release.
>
> If the project bean-edit is missing I could start it again together with
> Filippo.

Yes!
I've just done a quick check and the latest wicket-stuff revision with
this project is the 639... (unfortunataly I'm not able to check it
out... maybe some issues with my platform)

Anyway, if you have the sourcecode of 1.1.1 it will be enough to start.

--
  filippo

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Directly map a bean to HTML form

2006-12-20 Thread Paolo Di Tommaso

Good question.

I've found the BeanFormPanel source in a old 1.1.1 wicket-extensions
release.

If the project bean-edit is missing I could start it again together with
Filippo.


Paolo


On 12/20/06, Martijn Dashorst <[EMAIL PROTECTED]> wrote:


Strange...

http://cwiki.apache.org/WICKET/wicket-stuff.html

Mentions a bean edit project, but I can't find it on the SVN
repository. Any one know what happened to it?

Martijn
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Directly map a bean to HTML form

2006-12-20 Thread Paolo Di Tommaso

That's sound interesting. Is that old code still available somewhere?

If you agree we could create a new wicket-stuff project starting from it.


Thanks, Paolo



On 12/19/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:


we dropped it from extensions because there was not enough interest in it
and it was a pita to maintain. if there is interest now then you guys can
feel free to start a wicket-stuff project, once it has evolved there to
something useful we wouldnt mind readding it to extensions.

-igor



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Directly map a bean to HTML form

2006-12-19 Thread Paolo Di Tommaso

Stefan, you are absolutely right.

I agree with you that to achive a "production" result you need to write a
detailed html.

But a "BeanPanel" would be very useful in the first project iterations or to
make an application prototype.

This could improve a lot a project startup time.


- Paolo



On 12/19/06, Stefan Lindner <[EMAIL PROTECTED]> wrote:


Maybe that this feature sounds/looks great at first sight. But in every
web application I wrote with other tools than wicket, which had this
feature, I quickly ran into situatins where this did not lead any further.
And the automatically generated forms often look really ugly. The order and
the size of the input fields.
I prefer the wicket way where i'm totally free in designing my forms.

Stefan Lindner



Von: [EMAIL PROTECTED] im Auftrag von
[EMAIL PROTECTED]
Gesendet: Di 19.12.2006 15:12
An: wicket-user@lists.sourceforge.net
Betreff: Wicket-user Digest, Vol 7, Issue 117



Send Wicket-user mailing list submissions to
wicket-user@lists.sourceforge.net

To subscribe or unsubscribe via the World Wide Web, visit
https://lists.sourceforge.net/lists/listinfo/wicket-user
or, via email, send a message with subject or body 'help' to
[EMAIL PROTECTED]

You can reach the person managing the list at
[EMAIL PROTECTED]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Wicket-user digest..."


Today's Topics:

   1. Directly map a bean to HTML form (Carfield Yim)
   2. Re: Directly map a bean to HTML form (Paolo Di Tommaso)
   3. wrung acquaintance (Reg K. Pike)
   4. Re: Directly map a bean to HTML form (Ayodeji Aladejebi)


--

Message: 1
Date: Tue, 19 Dec 2006 18:19:47 +0800
From: "Carfield Yim" <[EMAIL PROTECTED]>
Subject: [Wicket-user] Directly map a bean to HTML form
To: wicket-user@lists.sourceforge.net
Message-ID:
<[EMAIL PROTECTED]>
Content-Type: text/plain; charset=UTF-8; format=flowed

This look really cool, I just define the bean and the framework
determine HTML input type for me, is that similar support from wicket
for this?

http://beanform.sourceforge.net/



----------

Message: 2
Date: Tue, 19 Dec 2006 12:49:15 +0100
From: "Paolo Di Tommaso" <[EMAIL PROTECTED]>
Subject: Re: [Wicket-user] Directly map a bean to HTML form
To: wicket-user@lists.sourceforge.net
Message-ID:
<[EMAIL PROTECTED]>
Content-Type: text/plain; charset="iso-8859-1"

Quite interesting.

Although Wicket use a different approach that requires explicitly to map
html fields to java objects - and this is what makes it so great - there
are
situation where would be very useful to have a component like that (for
example for fast application prototyping ..).


Moreover it would be quite easy to implement extending a panel and using a
just bit of reflection .


Wicket gurus what do you think about?


- Paolo


On 12/19/06, Carfield Yim <[EMAIL PROTECTED]> wrote:
>
> This look really cool, I just define the bean and the framework
> determine HTML input type for me, is that similar support from wicket
> for this?
>
> http://beanform.sourceforge.net/
>
>
-
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys - and earn cash
>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
-- next part --
An HTML attachment was scrubbed...
URL:
http://sourceforge.net/mailarchive/forum.php?forum=wicket-user/attachments/20061219/3f496798/attachment.html

--

Message: 3
Date: Tue, 19 Dec 2006 18:44:15 +0700
From: "Reg K. Pike" <[EMAIL PROTECTED]>
Subject: [Wicket-user] wrung acquaintance
To: 
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="windows-1252"


Such feelings are also influenced by advertising and a consumer culture
run amok, which Wallin says suggests to her that people  are always looking
for something to make our lives easier. To prevent this way-too-fast reboot,
follow these easy to follow instructions to disable the automatic restart on
system failure.
We willen hiernaartoe voor een sneeuw-actief week.
The more an item penetrates the culture, the more applications it has and
the more we rely on it," she says. Maar voordat de topkok aan de slag gaat
met het kerstmenu moet hij eerst zelf de witvis van

Re: [Wicket-user] Directly map a bean to HTML form

2006-12-19 Thread Paolo Di Tommaso

Quite interesting.

Although Wicket use a different approach that requires explicitly to map
html fields to java objects - and this is what makes it so great - there are
situation where would be very useful to have a component like that (for
example for fast application prototyping ..).


Moreover it would be quite easy to implement extending a panel and using a
just bit of reflection .


Wicket gurus what do you think about?


- Paolo


On 12/19/06, Carfield Yim <[EMAIL PROTECTED]> wrote:


This look really cool, I just define the bean and the framework
determine HTML input type for me, is that similar support from wicket
for this?

http://beanform.sourceforge.net/

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Link#setEnabled( false ) does not disable button element

2006-12-12 Thread Paolo Di Tommaso

Invoking the Link#setEnabled( false ) on a  element
will not disable the component.

The onclick handler will not be invoked (disabled) but it does not apper as
a disabled component.

Instead invoking Button#setEnabled( false ) will render the button disabled.



I think it would be simpler if it will be rendered disabled in both cases.
Won't be?



- Paolo
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Floating header on datatable

2006-10-08 Thread Paolo Di Tommaso
Here it is an example to do it using CSShttp://www.imaputz.com/cssStuff/bigFourVersion.html- Paolo
On 10/5/06, Gwyn Evans <[EMAIL PROTECTED]> wrote:
I'd have thought that while you could probably do that via framesetsor IFrames, I'd hope that doing it via CSS would be the way to go.  Idon't know enough CSS to be sure it's possible, though!/Gwyn

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Null pointer exception

2006-09-25 Thread Paolo Di Tommaso
Johan, I'm not sure about that, but it seems to happen when I'm redirecting to a Wicket page from a plain JSP using response.setRedirect (  );Thank you.Paolo
On 9/25/06, Johan Compagner <[EMAIL PROTECTED]> wrote:
it seems to me that this line:webResponse.setContentType(context.getMimeType(url));and then the context.getMimeType(url) is returning an null for the content type.I will make a check for that.johan
On 9/25/06, Paolo Di Tommaso <
[EMAIL PROTECTED]> wrote:

I have this strange null pointer exception. I'm unable to replicate it because happens only in production environment. Anyway the application seems to work correctly. java.lang.NullPointerException    at 
org.apache.catalina.connector.ResponseBase.setContentType

(ResponseBase.java:869)    at org.apache.catalina.connector.HttpResponseBase.setContentType(HttpResponseBase.java:853)    at org.apache.catalina.connector.ResponseFacade.setContentType(ResponseFacade.java:197)


    at wicket.protocol.http.WebResponse.setContentType(WebResponse.java:212)    at wicket.protocol.http.request.WebExternalResourceRequestTarget.respond(WebExternalResourceRequestTarget.java:86)    at wicket.request.compound.DefaultResponseStrategy.respond


(DefaultResponseStrategy.java:49)    at wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond(AbstractCompoundRequestCycleProcessor.java:66)    at wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java


:852)    at wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:884)    at wicket.RequestCycle.step(RequestCycle.java:960)    at wicket.RequestCycle.steps(RequestCycle.java:1034)    at wicket.RequestCycle.request


(RequestCycle.java:453)    at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:215)    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)    at javax.servlet.http.HttpServlet.service(HttpServlet.java


:853)    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)    at 
org.fao.ocd.applications.coin.web.filter.SessionFilter.doFilter(SessionFilter.java:20)    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)    at org.apache.catalina.core.ApplicationFilterChain.doFilter


(ApplicationFilterChain.java:193)    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(
StandardPipeline.java
:643)    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)    at org.apache.catalina.core.StandardContextValve.invoke


(StandardContextValve.java:191)    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java


:480)    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)    at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)    at org.apache.catalina.core.StandardHostValve.invoke


(StandardHostValve.java:180)    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)    at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java


:170)    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)    at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)    at org.apache.catalina.core.ContainerBase.invoke


(ContainerBase.java:995)    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java


:643)    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)    at org.apache.ajp.tomcat4.Ajp13Processor.process


(Ajp13Processor.java:458)    at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)    at java.lang.Thread.run(Thread.java:536)Any idea about the raising reason? Thanks for helping.
Paolo

-Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share your

opinions on IT & business topics through brief surveys -- and earn cash

http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

[Wicket-user] Null pointer exception

2006-09-25 Thread Paolo Di Tommaso
I have this strange null pointer exception. I'm unable to replicate it because happens only in production environment. Anyway the application seems to work correctly. java.lang.NullPointerException    at org.apache.catalina.connector.ResponseBase.setContentType
(ResponseBase.java:869)    at org.apache.catalina.connector.HttpResponseBase.setContentType(HttpResponseBase.java:853)    at org.apache.catalina.connector.ResponseFacade.setContentType(ResponseFacade.java:197)
    at wicket.protocol.http.WebResponse.setContentType(WebResponse.java:212)    at wicket.protocol.http.request.WebExternalResourceRequestTarget.respond(WebExternalResourceRequestTarget.java:86)    at wicket.request.compound.DefaultResponseStrategy.respond
(DefaultResponseStrategy.java:49)    at wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond(AbstractCompoundRequestCycleProcessor.java:66)    at wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java
:852)    at wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:884)    at wicket.RequestCycle.step(RequestCycle.java:960)    at wicket.RequestCycle.steps(RequestCycle.java:1034)    at wicket.RequestCycle.request
(RequestCycle.java:453)    at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:215)    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)    at javax.servlet.http.HttpServlet.service(HttpServlet.java
:853)    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)    at 
org.fao.ocd.applications.coin.web.filter.SessionFilter.doFilter(SessionFilter.java:20)    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)    at org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:193)    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java
:643)    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)    at org.apache.catalina.core.StandardContextValve.invoke
(StandardContextValve.java:191)    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java
:480)    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)    at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)    at org.apache.catalina.core.StandardHostValve.invoke
(StandardHostValve.java:180)    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)    at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java
:170)    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)    at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)    at org.apache.catalina.core.ContainerBase.invoke
(ContainerBase.java:995)    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java
:643)    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)    at org.apache.ajp.tomcat4.Ajp13Processor.process
(Ajp13Processor.java:458)    at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)    at java.lang.Thread.run(Thread.java:536)Any idea about the raising reason? Thanks for helping.
Paolo
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How to validate a form using ajax?

2006-09-14 Thread Paolo Di Tommaso
OK, but if it is so which is the difference between AjaxFormSubmitBehavior and AjaxFormValidatingBehavior? Thanks, PaoloOn 9/14/06, Igor Vaynberg
 <[EMAIL PROTECTED]> wrote:
form submit is necessary to validate the form.what i usually do is put any logic into my buttons and not into form's onsubmit.-Igor
On 9/14/06, 
Paolo Di Tommaso <[EMAIL PROTECTED]> wrote:

I would like to use Ajax to validate my form. I've tried using AjaxFormValidatingBehavior but it always will call my Form#onSubmit() method when data contains no validation error. How to validate a form without invoking the form submit method? 
Thanks for helping Paolo

-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.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user


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

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


[Wicket-user] How to validate a form using ajax?

2006-09-14 Thread Paolo Di Tommaso
I would like to use Ajax to validate my form. I've tried using AjaxFormValidatingBehavior but it always will call my Form#onSubmit() method when data contains no validation error. How to validate a form without invoking the form submit method? 
Thanks for helping Paolo
-
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] - Page redirect infinite loop

2006-08-08 Thread Paolo Di Tommaso
Thanks. I've just updated the two classes and made a new build. Seems to work fine. - PaoloOn 8/7/06, Johan Compagner <
[EMAIL PROTECTED]> wrote: branches/WICKET_1_2/wicket/src/java/wicket/protocol/http/request/WebRequestCodingStrategy.java
    branches/WICKET_1_2/wicket/src/java/wicket/request/target/coding/BookmarkablePageRequestTargetUrlCodingStrategy.java

-
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] - Page redirect infinite loop

2006-08-07 Thread Paolo Di Tommaso
Can you give me more details on which classes to fix or would be better to make a full build? Thank.- Paolo On 8/7/06, Johan Compagner <
[EMAIL PROTECTED]> wrote:I think i did a fix for it just this weekend so this is fixed in the current trunk of 
1.2.johan
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] - Page redirect infinite loop

2006-08-07 Thread Paolo Di Tommaso
Guys, I'm experiencing a very strange problem using Wicket (1.2.x) that I was unable to fix until now. I have mounted some pages overriding WebApplication#init() method like this: 
public void init() {  mount( "/test", new QueryStringUrlCodingStrategy("/test", MyPage.class) );
}So I can references the page by an url like "
http://host.com/web-path/servlet-path/test".But // SOMETIMES // invoking that page an infinite redirect loop occurs and the only way to stop the page loading is to press the browser stop button. I'm unable to replicate the problem because it happens in some aleatory way. But I've noticed two things: 
* wicket append to the URL the following parameter "wicket:pageMapName=wicket-0
" like that:http://localhost:9080/coin-budget/budget/print?request_id=1521&wicket:pageMapName=wicket-0
 
* moreover after the first time it happens it will persist for every subsequent request to that page unless I don't close the browser and start it again ...It's a very nasty problem, any idea to fix? 
Thank for helping.- Paolo
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Custom number formatting

2006-07-31 Thread Paolo Di Tommaso
I need to implement a special numbers formatting in my wicket application. Basically I have to round number to the first digit and use a blank space as thousand separator. For example instead to display number like '1,
000.33' it is required to display (and user will input) '1 000'.I can do that in Wicket? Thank for helping.-- Paolo
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Page reload indefinitely

2006-07-26 Thread Paolo Di Tommaso
I'm using now 1.2. I will switch t o1.2.1 soon.Anyway It appears to be related to the redirect that happens when a page is aliased with a Application.mount() command. Any ideas? Thanks, Paolo
On 7/25/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
are you using 1.2.0 or 1.2.1 ? in 1.2.0 we used a cookie to detect new windows/tabs, in 1.2.1 we switched to 
window.name so it should be much better.-Igor
On 7/25/06, Paolo Di Tommaso <
[EMAIL PROTECTED]> wrote:

Sometimes loading a bookmarkable page it never stop loading. It appears to be an infinite redirect loop because I can see on my log query execute over and over again. The only way to stop is  press the stop browser button. 
I'm unable to replicate the error because it happens for in some aleatory way, but I've noticed that after the first time it happens  it will persist for every subsequent request to that page unless I don't close the browser (cookie problem?).
Thank s for helping.- Paolo


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Page reload indefinitely

2006-07-25 Thread Paolo Di Tommaso
Sometimes loading a bookmarkable page it never stop loading. It appears to be an infinite redirect loop because I can see on my log query execute over and over again. The only way to stop is  press the stop browser button. 
I'm unable to replicate the error because it happens for in some aleatory way, but I've noticed that after the first time it happens  it will persist for every subsequent request to that page unless I don't close the browser (cookie problem?).
Thank s for helping.- Paolo
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Problem response page using AjaxFormSubmitBehavior

2006-07-25 Thread Paolo Di Tommaso
With getSession().touch(page); it works!Thank you!- PaoloOn 7/25/06, Johan Compagner <[EMAIL PROTECTED]
> wrote:ahhafter the url for do this:session.touch(page);
We should hide this for you somehow..I do hope that the page is not stateless anymore at that timeCan you debug that a bit.. So after the urlFor() output the 
page.isStateless()johanOn 7/25/06, Paolo Di Tommaso <


[EMAIL PROTECTED]> wrote:
I'm using an AjaxFormSubmitBehavior to submit form data. 
I would like to use ajax behaviour because if there are validation error I can notify user for errors without reloading page again. If validation is OK I need to move to the next page in the application flow so in the onSubmit method for AjaxFormSubmitBehavior I write 
protected void onSubmit(AjaxRequestTarget target) {


    if( getFeedbackMessages().isEmpty() ) { 
        MyPage page = new MyPage(...);



        String url = "" RequestCycle.get().urlFor(page, IRedirectListener.INTERFACE );
        target.addJavascript
( "window.location = '" +url+ "'" );        



    } else {         target.addJavascript("alert('"+ getJavascriptFeedbackMessage() +"')");
    }}



Thanks, PaoloOn 7/25/06, Johan Compagner <


[EMAIL PROTECTED]> wrote:
need to see some more code or a test case.On 7/25/06, Paolo Di Tommaso <



[EMAIL PROTECTED]> wrote:

I'm trying to redirect after an ajax request doing something like that: 
String url = "" RequestCycle.get().urlFor(myPageInstance, IRedirectListener.INTERFACE );target.addJavascript( "window.location = '" +url+ "'" );
But always get an "Page Expired" error page.Is it possible to redirect to a page instance? Thanks, Paolo


-Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash


http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___Wicket-user mailing list


Wicket-user@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/wicket-user



-Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___Wicket-user mailing list
Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Problem response page using AjaxFormSubmitBehavior

2006-07-25 Thread Paolo Di Tommaso
I'm using an AjaxFormSubmitBehavior to submit form data. I would like to use ajax behaviour because if there are validation error I can notify user for errors without reloading page again. If validation is OK I need to move to the next page in the application flow so in the onSubmit method for AjaxFormSubmitBehavior I write 
protected void onSubmit(AjaxRequestTarget target) {    if( getFeedbackMessages().isEmpty() ) { 
        MyPage page = new MyPage(...);
        String url = "" RequestCycle.get().urlFor(page, IRedirectListener.INTERFACE );        target.addJavascript
( "window.location = '" +url+ "'" );        
    } else {         target.addJavascript("alert('"+ getJavascriptFeedbackMessage() +"')");
    }}
Thanks, PaoloOn 7/25/06, Johan Compagner <[EMAIL PROTECTED]> wrote:
need to see some more code or a test case.On 7/25/06, Paolo Di Tommaso <
[EMAIL PROTECTED]> wrote:

I'm trying to redirect after an ajax request doing something like that: 
String url = "" RequestCycle.get().urlFor(myPageInstance, IRedirectListener.INTERFACE );target.addJavascript( "window.location = '" +url+ "'" );
But always get an "Page Expired" error page.Is it possible to redirect to a page instance? Thanks, Paolo

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Problem response page using AjaxFormSubmitBehavior

2006-07-25 Thread Paolo Di Tommaso
I'm trying to redirect after an ajax request doing something like that: String url = "" RequestCycle.get().urlFor(myPageInstance, IRedirectListener.INTERFACE );target.addJavascript( "window.location = '" +url+ "'" );
But always get an "Page Expired" error page.Is it possible to redirect to a page instance? Thanks, PaoloOn 7/21/06, 
Johan Compagner <[EMAIL PROTECTED]> wrote:
maybe we should add urlFor(Page) to request cycle

whats wrong with:RequestCycle.get().urlFor(page,IRedirectListener.INTERFACE) ??johan


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Problem response page using AjaxFormSubmitBehavior

2006-07-22 Thread Paolo Di Tommaso
Igor you right when you say that generally is a contradiction having a page redirection on a ajax request but in the case of AjaxFormSubmitBehavior the request is to submit data, and common semantic for submit is "save data and proceed with next page in the flow".
Anyway I want to be more detailed about my use case: I have a complex form with a lot of fields with cross validation rules (some fields validation depends from other fields value). It's very common that users make a mistake filling out the form so I would avoid to have complete page render each time the user try to submit data. Only If there are no error on page I will go to the next page in the application flow.
So  AjaxFormSubmitBehavior is perfect for this use case. In onSubmit(target) method I check for any validation error, if any exists I will notify user about that with a _javascript_ alert  / 
target.addJavascript("alert('..')") /.If validation pass the form onSubmit will execute storing submitted data and proceeding to to next page / 
setResponsePage / .  I was a bit surprised to see that setResponsePage
 was not working in conjunction an AjaxFormSubmitBehavior  request. I think Eelco proposal to make AjaxRequestTarget translating page redirect to 
window.location is good idea. In this way setResponsePage semantic will be more uniform with both plain and ajax submit.Thanks. - Paolo But in my case, I'm using  
AjaxFormSubmitBehavior 
to validate and saving user data . On 7/21/06, Eelco Hillenius <
[EMAIL PROTECTED]> wrote:
I don't know whether it is that uncommon. Now that I think of it, Ican think of a few use cases, certainly when you want to handle
exceptional situations.But Paolo, please tell us more about your use case. Are you sure youwant to redirect to a page there?EelcoOn 7/21/06, Igor Vaynberg <

[EMAIL PROTECTED]> wrote:> sure, we could add a utility method. but think about what you are doing -> you want to redirect a browser from an /ajax/ request. this is not a common> usecase i dont think. the whole point of ajax is to work on the same page
> and avoid the redirects :)>> -Igor>>>> On 7/21/06, Eelco Hillenius <
[EMAIL PROTECTED]> wrote:> > Could we make AjaxRequestTarget a bit smarter so that it would have a
> > setResponsePage method that translates to window.location= instead of> > the redirect we do for normal requests?> >> > Eelco> >> >> > On 7/21/06, Igor Vaynberg < 
[EMAIL PROTECTED]> wrote:> > >> target.addJavascript
("window.location='"+RequstCycle.get().urlFor(null,> > > MyPage.class)+"';");
> > >> > > you can only redirect to a class not an instance so you will have to> pass> > > params using PageParameters.> > >> > > maybe we should add urlFor(Page) to request cycle
> > >> > > -Igor> > >> > >> > >> > > On 7/21/06, Paolo Di Tommaso < 
[EMAIL PROTECTED]
> wrote:> > > >> > >> > > I'm getting a bit confused how to redirect to a new page after a form> > > submission using AjaxFormSubmitBehavior.> > >

> > > I use the onSubmit method of AjaxFormSubmitBehavior component to notify> user> > > for special message, for example:> > >> > >  buttonSave.add( new AjaxFormSubmitBehavior ( form, "onclick" ) {
> > > protected void onSubmit(AjaxRequestTarget target) {> > > if( !getFeedbackMessages().isEmpty() ) {> > >  target.addJavascript( "alert('Validation failed')" );
> > > }> > >  }> > > });> > >> > >> > > and the form onSubmit to save data and redirect to the next page:> > >> > > form = new Form("form1") {
> > >> > >void onSubmit() {> > >> > >  if( findSubmittingButton() == buttonSave ) {> > >> > >dao.save( object );> > >   setResponsePage( 
NextPage.class );> > > }> > >   }> > >  };> > >> > > The problem is that in this way I will get the response page as response> > > content of the Ajax call!
> > >> > > How to redirect to another page using AjaxFormSubmitBehavior?> > >> > >> > > Thanks for helping.> > >> > >> > > - Paolo
> > >> > >> > >> -> > > Take Surveys. Earn Cash. Influence the Future of IT> > > Join 
SourceForge.net's Techsay panel and you'll get the chance to share> your> > > opinions on IT & busines

Re: [Wicket-user] Problem response page using AjaxFormSubmitBehavior

2006-07-21 Thread Paolo Di Tommaso
This is the first delusion that Wicket got to me  ... :(On 7/21/06, Igor Vaynberg <[EMAIL PROTECTED]
> wrote:target.addJavascript("window.location='"+RequstCycle.get().urlFor(null, 
MyPage.class)+"';");you can only redirect to a class not an instance so you will have to pass params using PageParameters.
maybe we should add urlFor(Page) to request cycle-Igor
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Problem response page using AjaxFormSubmitBehavior

2006-07-21 Thread Paolo Di Tommaso
I'm getting a bit confused how to redirect to a new page after a form submission using AjaxFormSubmitBehavior.I use the onSubmit method of 
AjaxFormSubmitBehavior component to notify user for special message, for example: 
buttonSave.add( new AjaxFormSubmitBehavior ( form, "onclick" ) {     protected void onSubmit(AjaxRequestTarget target) {
    if( !getFeedbackMessages().isEmpty() ) { 
        target.addJavascript( "alert('Validation failed')" );    }
    }});and the form 
onSubmit to save data and redirect to the next page:form = new Form("form1") {
  void onSubmit() { 
    if( findSubmittingButton() == buttonSave ) { 
  dao.save( object );  setResponsePage( NextPage.class );
    }   } 
};The problem is that in this way I will get the response page as response content of the Ajax call!How to redirect to another page using AjaxFormSubmitBehavior?
Thanks for helping.- Paolo
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Deployment / Development mode

2006-07-21 Thread Paolo Di Tommaso
How to know if an application is in Deployment or Development mode? Thank for helping. - Paolo
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Changing visibility via ajax

2006-07-21 Thread Paolo Di Tommaso
You are right, but the problem is the panel that is not really a panel as I say but a container .. so I cannot switch with an empty panel. Anyway I don't think is a bad idea to have a display attribute for Component, for now I've solved using the following class. 
public class HideableContainer extends WebMarkupContainer {
    private boolean display;    
    public HideableContainer(String id) {        this(id,null);
    }    
    public HideableContainer(String id, IModel model) {        super(id, model);
        add( new AttributeModifier("style", true, new AbstractReadOnlyModel() {
            public Object getObject(Component component) {
                return display ? "" : "display: none";            } 
                    } ) );
    }    public boolean getDisplay() {
        return display;
    }    public void setDisplay(boolean display) {
        this.display = display;    }
    }Thanks.- PaoloOn 7/21/06, 
Igor Vaynberg <[EMAIL PROTECTED]> wrote:
i dont think what you are thinking about is a very clean solution.if you want to avoid an extra container do this:instead of initially adding the component and setting visible to false add an EmptyPanel, then instead of making your component visible create an instance and replace the panel with it.
no extra container and no component until its really needed, best of both worlds-IgorOn 7/20/06, 
Paolo Di Tommaso <
[EMAIL PROTECTED]> wrote:I was supposing that but I would like to have a simpler structure avoiding to add unuseful container. 
My idea is to hide the component using a simple css class or style display: none.I think it should possible using an AttributeModifier but I don't know how to override the default visibility mechanism.
Any suggestion would be appreciated.Thanks.- PaoloOn 7/20/06, 
Igor Vaynberg <[EMAIL PROTECTED]
> wrote:the problem is that if the panel is hidden initially it doesnt have its div/span tag with an id attribute in the markup, so the ajax request cannot find the tag to redraw.
in situations like this you have to wrap the panel in a webmarkupcontainer, call setoutputmarkupid(true) on it, and target that container in your ajax target.
that way the container will be drawn initially empty :  and when you make your panel visible it will contain the panel 
-IgorOn 7/20/06, Paolo Di Tommaso <


[EMAIL PROTECTED]> wrote:



I want to change visibility attribute of a panel (containing other components) using Ajax. The panel initially is hidden  panel.setVisible( false ).



When user change selection in a radio group the panel should become visible. 
I've tried to do something like that :radio.add( new AjaxFormComponentUpdatingBehavior("onclick") {




       protected void onUpdate(AjaxRequestTarget target) {




    panel.setVisible( true );




    target.addComponent(panel);    }




   } );But it don't work. Using the AJAX Debugger I could see that event is raised but it reports the following error: 
ERROR: Component with id [[form1_panel]] a was not found while trying to perform markup update. Make sure you called component.setOutputMarkupId(true) on the component whose markup you are trying to update.
ERROR: error while processing response: [object Error].Object requiredObviuosly I used setOutputMarkupId(true) on panel.
Any idea why it don't work?Thanks for helping.- Paolo

-Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash



http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___Wicket-user mailing list



Wicket-user@lists.sourceforge.net


https://lists.sourceforge.net/lists/listinfo/wicket-user


-Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share your


opinions on IT & business topics through brief surveys -- and earn cash


http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___Wicket-user mailing list


Wicket-user@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/wicket-user


-Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash

http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___Wicket-user mailing list

Wicket-user@lists.sourceforge.net
https://lists.sou

Re: [Wicket-user] Changing visibility via ajax

2006-07-20 Thread Paolo Di Tommaso
I was supposing that but I would like to have a simpler structure avoiding to add unuseful container. My idea is to hide the component using a simple css class or style display: none.I think it should possible using an AttributeModifier but I don't know how to override the default visibility mechanism.
Any suggestion would be appreciated.Thanks.- PaoloOn 7/20/06, Igor Vaynberg <[EMAIL PROTECTED]
> wrote:the problem is that if the panel is hidden initially it doesnt have its div/span tag with an id attribute in the markup, so the ajax request cannot find the tag to redraw.
in situations like this you have to wrap the panel in a webmarkupcontainer, call setoutputmarkupid(true) on it, and target that container in your ajax target.
that way the container will be drawn initially empty :  and when you make your panel visible it will contain the panel 
-IgorOn 7/20/06, Paolo Di Tommaso <
[EMAIL PROTECTED]> wrote:

I want to change visibility attribute of a panel (containing other components) using Ajax. The panel initially is hidden  panel.setVisible( false ).

When user change selection in a radio group the panel should become visible. 
I've tried to do something like that :radio.add( new AjaxFormComponentUpdatingBehavior("onclick") {


       protected void onUpdate(AjaxRequestTarget target) {


    panel.setVisible( true );


    target.addComponent(panel);    }


   } );But it don't work. Using the AJAX Debugger I could see that event is raised but it reports the following error: 
ERROR: Component with id [[form1_panel]] a was not found while trying to perform markup update. Make sure you called component.setOutputMarkupId(true) on the component whose markup you are trying to update.
ERROR: error while processing response: [object Error].Object requiredObviuosly I used setOutputMarkupId(true) on panel.
Any idea why it don't work?Thanks for helping.- Paolo

-Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash

http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___Wicket-user mailing list

Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___Wicket-user mailing list
Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Changing visibility via ajax

2006-07-20 Thread Paolo Di Tommaso
I want to change visibility attribute of a panel (containing other components) using Ajax. The panel initially is hidden  panel.setVisible( false ).When user change selection in a radio group the panel should become visible. 
I've tried to do something like that :radio.add( new AjaxFormComponentUpdatingBehavior("onclick") {
       protected void onUpdate(AjaxRequestTarget target) {
    panel.setVisible( true );
    target.addComponent(panel);    }
   } );But it don't work. Using the AJAX Debugger I could see that event is raised but it reports the following error: 
ERROR: Component with id [[form1_panel]] a was not found while trying to perform markup update. Make sure you called component.setOutputMarkupId(true) on the component whose markup you are trying to update.
ERROR: error while processing response: [object Error].Object requiredObviuosly I used setOutputMarkupId(true) on panel.
Any idea why it don't work?Thanks for helping.- Paolo
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Loading ...

2006-07-08 Thread Paolo Di Tommaso
So I will have only to define this two _javascript_ functions in my page to show and hide my notification message or whatever I want .. clean and simple. Great!Thank you.-- Paolo
On 7/8/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
ok the patch is in so feel free to play around with it if you checkout from svn or wait until 1.2.1what you can now do is define one or both of the following functionsfunction wicketGlobalPreCallHandler() {...}
and function wicketGlobalPostCallHandler() {...}-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&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] Loading ...

2006-07-07 Thread Paolo Di Tommaso
If so, I should add an WicketAjaxIndicatorAppender instance to every components for each I want an Ajax notification message. Is it possible to add AjaxIndicatorAppend to page and get notifications for every ajax call on that page? 
Thanks.PaoloOn 7/7/06, Frank Bille Jensen <[EMAIL PROTECTED]> wrote:
Yes, try taking a look at IAjaxIndicatorAware API and the exampleimplementation in Wicket extensions.
RegardsFrankOn Fri, 2006-07-07 at 14:21 +0200, Paolo Di Tommaso wrote:> Is there a way in Wicket to display something like a "Loading ..."> Google red label on Ajax call?
>> Thank you.>> Paolo>>>>>> 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-userUsing 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?cmd=lnk&kid=120709&bid=263057&dat=121642
___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Loading ...

2006-07-07 Thread Paolo Di Tommaso
Is there a way in Wicket to display something like a "Loading ..." Google red label on Ajax call? Thank you.Paolo 
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] Master-details form

2006-07-07 Thread Paolo Di Tommaso
Thank you for suggestion, I never think about it. -- PaoloOn 7/6/06, Martijn Dashorst <[EMAIL PROTECTED]
> wrote:This should give you a headstart...add(new ListView("items") {
protected void populateItem(Item item) {item.add(new TextField("description"));}protected IModel getListItemModel(IModel listViewModel, int index) {return newCompoundPropertyModel(
super.getListItemModel(listViewModel, index));}}.setReuseItems(true));MartijnOn 7/6/06, Paolo Di Tommaso <[EMAIL PROTECTED]> wrote:
> I'm using wicket to developer a budget application.>> I've a classic Master-Details data entry form and relative POJOs. For> example>>  public class Order {> private Long id;
>  private Data date;> private Float amout;>  private Float tax;> private List  items;>  }>> public class OrderItem {> private Long id;
>  private String description;> private Integer qty;>  private Float unitPrice;> }>> Customer is requesting to handle all order data entry using only one form.>
> How to handle that using Wicket? For example suppose I want to edit an> existing order: which is the best approch to display data-entry fields for> each OrderItem element in 'items' collection?>
> Thank you for helping.>> Paolo>>>> 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>>>--Download Wicket 1.2 now! Write Ajax applications without touching _javascript_!-- 
http://wicketframework.orgUsing 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 Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Master-details form

2006-07-06 Thread Paolo Di Tommaso
I'm using wicket to developer a budget application. I've a classic Master-Details data entry form and relative POJOs. For example
public class Order {     private Long id;
    private Data date;    private Float amout;
    private Float tax;    private List  items;
} public class OrderItem { 
    private Long id;
    private String description;    private Integer qty;
    private Float unitPrice;}Customer is requesting to handle all order data entry using only one form.
How to handle that using Wicket? For example suppose I want to edit an existing order: which is the best approch to display data-entry fields for each OrderItem 
element in 'items' collection?Thank you for helping.Paolo
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] Eclipse don't copy .html to output folder

2006-07-05 Thread Paolo Di Tommaso
Bingo!Thank you a lot. - PaoloOn 7/4/06, smallufo <[EMAIL PROTECTED]> wrote:
Eclipse 3.2Project -> Properties -> Java Compiler -> Building -> Enable projectspecific settings -> Output folder -> Filtered Resourcesremove *.htmldone!
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] Eclipse don't copy .html to output folder

2006-07-04 Thread Paolo Di Tommaso
Yes. It's really very strange. I don't use any filter, I've tried also to force a filter like "**/*.java, **/*.html"  ... but it still refuse to copy any html file. The only way to make it to work is switching to a fresh workspace. 
PaoloOn 7/4/06, Johan Compagner <
[EMAIL PROTECTED]> wrote:
even after a refresh of your source dir the html stay behind?Do you have somewhere a filter defined?johan
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Eclipse don't copy .html to output folder

2006-07-04 Thread Paolo Di Tommaso
As default Wicket requires .html files to be in the same path where .class files are.Using Eclipse I have the problem that it misses to copy .html file to my class output folder. It is very strange because it copies all file extensions from source folder to classes folder (*.properties, *.txt, *.htm) except *.html (Murphy law maybe)! 
Anyone else encountered this annoying problem developing Wicket application with Eclipse?Thank you for helping, -- Paolo
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] RadioGroup onchange event (Wicket 1.2)

2006-07-04 Thread Paolo Di Tommaso
Using setRenderBodyOnly(false) on RadioGroup it is possible to add a AjaxFormComponentUpdatingBehavior
to  the group itself.The problem, as with RadioChoice, is that it will not update the checked radio.I've posted a possible solution here: 
http://sourceforge.net/tracker/index.php?func=detail&aid=1501513&group_id=119783&atid=684975
Thansk, -- Paolo On 6/28/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
the problem is that radiogroup is not a component on its own, neither is radio, instead you have to think of them as a composite component - both parts working together. you add a behavior to the radiogroup, but a radiogroup is nothing more then a wicket proxy for the radio components. in fact if you look at the output html the radiogroup doesnt even output its tags, so ajax behavior is not written out.
so what you need to do is attach the behavior to Radio - but the problem is radio is not a form component so you cannot add a formcomponentupdating behavior to it.what i would try is to do thisradio.add

(new AjaxFormSubmitBehavior(form, "onclick")) that way the behavior is attached to the proper let me know if it works-Igor

On 6/28/06, Paolo Di Tommaso <[EMAIL PROTECTED]> wrote:

I have a RadioGroup with some radio buttons inside. Is ti possibile intercept radio selection change via ajax?? I've tried something like this, but nothing happens.:


RadioGroup theGroup = new RadioGroup( "group-request-type", new PropertyModel(myBean,"requestType") );


theGroup.add( new Radio("radio-equipment",new Model("E")) );theGroup.add( new Radio("radio-not-equipment",new Model("N")) );    
add( theGroup );


theGroup.add(new AjaxFormComponentUpdatingBehavior("onchange")


{    protected void onUpdate(AjaxRequestTarget target)


    {   target.addComponent( componentToUpdate ); 


    }});Any idea to make it to work? Thanks, Paolo

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] Is AjaxFormComponentUpdatingBehavior working with RadioChoice component?

2006-07-04 Thread Paolo Di Tommaso
I've posted a patch for that problem.-- PaoloOn 6/30/06, Martijn Dashorst <[EMAIL PROTECTED]
> wrote:It is a missing feature rather than a bug IMO, but I alreadyencountered this and filed a bug report.
http://sourceforge.net/tracker/index.php?func=detail&aid=1501513&group_id=119783&atid=684975
Martijn
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] Is AjaxFormComponentUpdatingBehavior working with RadioChoice component?

2006-06-30 Thread Paolo Di Tommaso
Making some investigation I found that the problem is on call to _javascript_ function "wicketSerialize(this)" on onchange event attached to the radio  . The problem arise because "this" refers to  element but wicketSerialize don't know how to handle the inner radio input fields. 
// returns url/post-body fragment representing element (e) 
function wicketSerialize(e) {    var tag = e.tagName.toLowerCase();
    if (tag == "select") {    return wicketSerializeSelect(e);
    } else {
    if (tag == "input" || tag == "textarea") {    return wicketSerializeInput(e);
    }    }
    return "";
}-- PaoloOn 6/30/06, Martijn Dashorst <[EMAIL PROTECTED]> wrote:
It is a missing feature rather than a bug IMO, but I alreadyencountered this and filed a bug report.
http://sourceforge.net/tracker/index.php?func=detail&aid=1501513&group_id=119783&atid=684975
Martijn
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Is AjaxFormComponentUpdatingBehavior working with RadioChoice component?

2006-06-30 Thread Paolo Di Tommaso
I'm trying to use AjaxFormComponentUpdatingBehavior with a RadioChoice component. Using debugger I can see that ajax call is working but model is never updated, infact nothing is appearing in POST Body 
 INFO: initiating ajax POST request with... INFO: url: /coin/budget?wicket:interface=:6:form:radioChoice::IBehaviorListener&wicket:behaviorId=1
 INFO: body: It is a bug or I'm wrong? -- Paolo
public class TestPage extends WebPage {    private String choiceValue;
        public TestPage() { 
           
        Form form = new Form("form");        add( form );
        /*         * Radio Choice 
         */
        String[] choice = { "Choice A", "Choice B", "Choice C" };        RadioChoice radioChoice = new RadioChoice("radioChoice",  new PropertyModel(this,"choiceValue"), 
Arrays.asList(choice));         radioChoice.add( new AjaxFormComponentUpdatingBehavior("onchange") {
            protected void onUpdate(AjaxRequestTarget target) {
                target.addJavascript("alert('Hello choice: " + choiceValue + " ')");
            }            
        }  );        form.add( radioChoice );
    public String getChoiceValue() {        return choiceValue;
    }
    public void setChoiceValue(String choiceValue) {        this.choiceValue = choiceValue;
    }}

    
        choice a 
        choice b    


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] RadioGroup onchange event (Wicket 1.2)

2006-06-29 Thread Paolo Di Tommaso
Well, with AjaxFormSubmitBehavior work with both "onclick" and "onchange" event .. quite impressive!But I'm get a bit confused about wicket ajax model .. if so which is the main difference between AjaxFormSubmitBehavior and AjaxFormComponentUpdatingBehavior? How to choose between them? 
Anyway thank you for Wicket, is really a great work!PaoloOn 6/28/06, Igor Vaynberg <[EMAIL PROTECTED]
> wrote:the problem is that radiogroup is not a component on its own, neither is radio, instead you have to think of them as a composite component - both parts working together. you add a behavior to the radiogroup, but a radiogroup is nothing more then a wicket proxy for the radio components. in fact if you look at the output html the radiogroup doesnt even output its tags, so ajax behavior is not written out.
so what you need to do is attach the behavior to Radio - but the problem is radio is not a form component so you cannot add a formcomponentupdating behavior to it.what i would try is to do thisradio.add

(new AjaxFormSubmitBehavior(form, "onclick")) that way the behavior is attached to the proper let me know if it works-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&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] RadioGroup onchange event (Wicket 1.2)

2006-06-28 Thread Paolo Di Tommaso
I have a RadioGroup with some radio buttons inside. Is ti possibile intercept radio selection change via ajax?? I've tried something like this, but nothing happens.:
RadioGroup theGroup = new RadioGroup( "group-request-type", new PropertyModel(myBean,"requestType") );
theGroup.add( new Radio("radio-equipment",new Model("E")) );theGroup.add( new Radio("radio-not-equipment",new Model("N")) );    
add( theGroup );
theGroup.add(new AjaxFormComponentUpdatingBehavior("onchange")
{    protected void onUpdate(AjaxRequestTarget target)
    {   target.addComponent( componentToUpdate ); 
    }});Any idea to make it to work? Thanks, Paolo
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] Wicket and Websphere

2006-06-23 Thread Paolo Di Tommaso
So it is.On 6/23/06, Ingo Adler <[EMAIL PROTECTED]> wrote:
 I think WebSphere 5.1 uses Java 1.4.Ingo.
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