Re: "Streaming" a huge ZIP file

2007-12-11 Thread Thomas Singer
IIRC, DownloadLink and Igor's anonymous class will lock the session, so if 
you have one downloading over a very slow connection, other users will get a 
timeout.


Cheers,
Tom


Igor Vaynberg wrote:

getrequestcycle().setrequesttarget(new irequesttarget() {
respond(response r) { outputstream out=r.getoutputstream(); stream
your date into out; }}}

-igor


On Dec 11, 2007 2:52 PM, Gabor Szokoli <[EMAIL PROTECTED]> wrote:

I guess I forgot to mentionthe single most important aspect of my question:
The archive not present on the file system, it is dynamically
assembled on the fly from individual files.
(the whole point is downloading multiple files in one go.)


Gabor Szokoli


On Dec 11, 2007 11:45 PM, Jeremy Levy <[EMAIL PROTECTED]> wrote:

Gabor,

Try DownloadLink
http://wicket.sourceforge.net/apidocs/wicket/markup/html/link/DownloadLink.html

J


On Dec 11, 2007 5:39 PM, Gabor Szokoli <[EMAIL PROTECTED]> wrote:


Hi there,

The downside of an easy-to-use framework is the influx of users with
little understanding of the underlying servlet technology, like me.
Observe:

I'd like to provide a ZIP file (could be TAR, anything Windows PCs can
save and later extract from) as a download, one that is potentially
too big to be kept in memory in full.
So I guess I'd need to "stream" it in chunks, or as a java stream or
channel.
Can I do that from wicket?
Or does the servlet interface require a fully assembled response in
memory?

Currently I assemble the ZIP file in a byte array in full, but it
feels awkward. Would extending WebResource fit the bill?

   ByteArrayOutputStream bout = new
ByteArrayOutputStream();
   ZipOutputStream zout = new ZipOutputStream(bout);
   // Add entries
   zout.finish();
   zout.close();

   Resource resource = new
ByteArrayResource("application/zip",
bout.toByteArray());
   ResourceStreamRequestTarget target = new
ResourceStreamRequestTarget(resource.getResourceStream());
   target.setFileName(new
SimpleDateFormat("MMddHHmmss").format(Calendar.getInstance
().getTime())
+ ".zip");
   getRequestCycle().setRequestTarget(target);


All suggestions are welcome.


Gabor Szokoli

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: GWT + Wicket

2007-12-11 Thread Eelco Hillenius
On Dec 11, 2007 2:15 PM, Dan Kaplan <[EMAIL PROTECTED]> wrote:
> I've scoured the internet to figure out how to integrate a GWT app inside a
> Wicket App.  I'm not getting very good results.  I also checked the mailing
> archives and didn't really find any technical advice on how to do this.

What specific problems have you encountered? My understanding is that
GWT runs much like an applet, and client server communication is done
using services that can be implemented in various ways. I don't think
GWT and Wicket should bite each other much here.

> First, I noticed a lot of the attitude towards GWT/Wicket is that you
> usually want to choose one or the other.  I disagree.  In fact, I think
> comparing GWT to Wicket is comparing apples and oranges.  GWT is a Toolkit,
> and Wicket is a Framework.  They both do different things and they're both
> very good at what they do.  Therefore, it's worthwhile to have GWT
> integration in wicket.

I guess most people just don't want to use two technologies with an
overlap. But no-one of the core team at least is against doing it. It
would be fun to hear from people who did that with success. I don't
see why it couldn't be done (but then again... I never actually
tried).

> That being said, I've also inferred from most of the Wicket + GWT
> conversations that the Wicket developers are trying to add some huge
> functionality to Wicket to allow you to place the a GWT app from your
> WebPage classes.  That may come in handy, but I'm not so sure that it's
> necessary.  I think the client side code that GWT requires could easily be
> added by hardcoding it in the markup and that would be good enough for most
> (myself included).  The part that's tricky to me is this section:
> http://code.google.com/webtoolkit/documentation/com.google.gwt.doc.Developer
> Guide.RemoteProcedureCalls.html

Yeah. Maybe we/ Wicket's users want to do things to neat/ generic. :-)

> Specifically, if you scroll down a little to the image, how do you get the
> right side to integrate with Wicket?  As you can see, GWT uses a
> RemoteServiceServlet if you want your GWT app to communicate with the
> server.  But the wicket philosophy seems like it tries to hide Servlets from
> the user.  So, in short, can anyone advise me on how to integrate a GWT app
> with Wicket?

I don't have much advise other then try to keep it simple and if it
works, it works.

Eelco

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Component.visitParents visits the calling component as well

2007-12-11 Thread Bart Molenkamp
Done.

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

Bart.

> -Oorspronkelijk bericht-
> Van: Igor Vaynberg [mailto:[EMAIL PROTECTED]
> Verzonden: dinsdag 11 december 2007 19:24
> Aan: users@wicket.apache.org
> Onderwerp: Re: Component.visitParents visits the calling
> component as well
>
> hm, i dont think it is correct. wondering if we can change it this
> late in the game though...open a jira issue please.
>
> eelco its your baby...is this intentional or is it a bug?
>
> -igor
>
>
> On Dec 11, 2007 3:22 AM, Bart Molenkamp
> <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > I see that Component.visitParents() also visits the component on
> > which the call is made. Is this behavior correct?
> >
> > If so, I think that the method name is a little bit confusing. The
> > method MarkupContainer.visitChildren() doesn't visit the calling
> > component, but only it's children (as the method name suggests).
> >
> > Thanks,
> > Bart.
> >
> >
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: "Streaming" a huge ZIP file

2007-12-11 Thread Johan Compagner
But still youj could generate to a tmp file onm disk and stream that.
But you xan also generate on the fly and stream that direcly to a
response stream

On 12/11/07, Gabor Szokoli <[EMAIL PROTECTED]> wrote:
> I guess I forgot to mentionthe single most important aspect of my question:
> The archive not present on the file system, it is dynamically
> assembled on the fly from individual files.
> (the whole point is downloading multiple files in one go.)
>
>
> Gabor Szokoli
>
> On Dec 11, 2007 11:45 PM, Jeremy Levy <[EMAIL PROTECTED]> wrote:
> > Gabor,
> >
> > Try DownloadLink
> >
> http://wicket.sourceforge.net/apidocs/wicket/markup/html/link/DownloadLink.html
> >
> > J
> >
> >
> > On Dec 11, 2007 5:39 PM, Gabor Szokoli <[EMAIL PROTECTED]> wrote:
> >
> > > Hi there,
> > >
> > > The downside of an easy-to-use framework is the influx of users with
> > > little understanding of the underlying servlet technology, like me.
> > > Observe:
> > >
> > > I'd like to provide a ZIP file (could be TAR, anything Windows PCs can
> > > save and later extract from) as a download, one that is potentially
> > > too big to be kept in memory in full.
> > > So I guess I'd need to "stream" it in chunks, or as a java stream or
> > > channel.
> > > Can I do that from wicket?
> > > Or does the servlet interface require a fully assembled response in
> > > memory?
> > >
> > > Currently I assemble the ZIP file in a byte array in full, but it
> > > feels awkward. Would extending WebResource fit the bill?
> > >
> > >ByteArrayOutputStream bout = new
> > > ByteArrayOutputStream();
> > >ZipOutputStream zout = new ZipOutputStream(bout);
> > >// Add entries
> > >zout.finish();
> > >zout.close();
> > >
> > >Resource resource = new
> > > ByteArrayResource("application/zip",
> > > bout.toByteArray());
> > >ResourceStreamRequestTarget target = new
> > > ResourceStreamRequestTarget(resource.getResourceStream());
> > >target.setFileName(new
> > > SimpleDateFormat("MMddHHmmss").format(Calendar.getInstance
> > > ().getTime())
> > > + ".zip");
> > >getRequestCycle().setRequestTarget(target);
> > >
> > >
> > > All suggestions are welcome.
> > >
> > >
> > > Gabor Szokoli
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How to get resources from our web-app context ?

2007-12-11 Thread Joshua Jackson
Dear all,

In my wicket apps, I have a use case to read a file that is located in
my web-app context. How do I do this in wicket?

Thanks in advance,

-- 
I'm a coder not a drag-n-dropper

Blog: http://joshuajava.wordpress.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Does wicket support looping form elements...

2007-12-11 Thread nosd

Ahh..

nevermind...

I found a discussion with very complex workarounds on this forum and a
simple technique here:

http://cwiki.apache.org/WICKET/forms-with-dynamic-elements.html

I shall evaluate.

Regards
-- 
View this message in context: 
http://www.nabble.com/Does-wicket-support-looping-form-elements...-tp14286678p14287751.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: wicket1.3 on websphere6.0.11.

2007-12-11 Thread narup

hello all,

It seems to be solved, i used WicketFilter in web.xml before with which
websphere had a problem, so for that i changed some settings in websphere to
deploy the app. though it got deployed with that setting but showed some
weird behavior.

So i again reverted back to WicketServlet and it again worked fine, so moral
of the story is websphere doesn't handle filter properly

Thanks



narup wrote:
> 
> Hello All,
> 
> I recently did an upgrade from wicket1.2.6 to wicket1.3 and also
> successfully deployed in a websphere, but my cancel and apply buttons on
> the page and modal window are not working everywhere. I don't get any
> error in the log file also.
> 
> Interesting thing is it works everything fine in Jetty server, in
> localhost. So if anyone of you have had this problem before can please let
> me know. Not sure but websphere should not have any problem with AJAX.
> 
> Thanks 
> Puran
> 

-- 
View this message in context: 
http://www.nabble.com/wicket1.3-on-websphere6.0.11.-tp14285196p14286715.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Does wicket support looping form elements...

2007-12-11 Thread nosd2

Hi All,

I have a large project I wrote in Echo1/Spring1 many years ago. I'm planning
to rewrite this application. I'm trying to choose between Wicket/Spring2 or
JSF/Seam. Because I used Echo you can tell I'm a believer in the advantages
of Wicket over JSF.

Critical to my choice is the ability to 'mount' user created eforms. So
basically i'll need to loop over some SurveyQuestion objects and create
wicket field components for some of the form elements on the page. In Echo
it wasn't hard because you could either use the HtmlTemplate page (as we do
for most of the app - hence the interest in wicket) or you can 'build' the
page/forms by hand without a html template. JSF will allow me to loop in the
view. I had planned to use Velocity/Freemarker integration to get this
effect with Wicket but I just read in Pro Wicket that you cannot use these
panels for form elements.

I've read something about wicket fragments and the fact that you can use a
wicket List/Loop object to display a list of panels or fragments but I'm
thinking this was designed for master-detail type views and not really for
programatically looping over a form definition and building a form. 

I'd very much appreciate if anyone illuminate me as to whether I will be
able to build this in wicket or not? 

Regards

-- 
View this message in context: 
http://www.nabble.com/Does-wicket-support-looping-form-elements...-tp14286678p14286678.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: "Streaming" a huge ZIP file

2007-12-11 Thread Igor Vaynberg
getrequestcycle().setrequesttarget(new irequesttarget() {
respond(response r) { outputstream out=r.getoutputstream(); stream
your date into out; }}}

-igor


On Dec 11, 2007 2:52 PM, Gabor Szokoli <[EMAIL PROTECTED]> wrote:
> I guess I forgot to mentionthe single most important aspect of my question:
> The archive not present on the file system, it is dynamically
> assembled on the fly from individual files.
> (the whole point is downloading multiple files in one go.)
>
>
> Gabor Szokoli
>
>
> On Dec 11, 2007 11:45 PM, Jeremy Levy <[EMAIL PROTECTED]> wrote:
> > Gabor,
> >
> > Try DownloadLink
> > http://wicket.sourceforge.net/apidocs/wicket/markup/html/link/DownloadLink.html
> >
> > J
> >
> >
> > On Dec 11, 2007 5:39 PM, Gabor Szokoli <[EMAIL PROTECTED]> wrote:
> >
> > > Hi there,
> > >
> > > The downside of an easy-to-use framework is the influx of users with
> > > little understanding of the underlying servlet technology, like me.
> > > Observe:
> > >
> > > I'd like to provide a ZIP file (could be TAR, anything Windows PCs can
> > > save and later extract from) as a download, one that is potentially
> > > too big to be kept in memory in full.
> > > So I guess I'd need to "stream" it in chunks, or as a java stream or
> > > channel.
> > > Can I do that from wicket?
> > > Or does the servlet interface require a fully assembled response in
> > > memory?
> > >
> > > Currently I assemble the ZIP file in a byte array in full, but it
> > > feels awkward. Would extending WebResource fit the bill?
> > >
> > >ByteArrayOutputStream bout = new
> > > ByteArrayOutputStream();
> > >ZipOutputStream zout = new ZipOutputStream(bout);
> > >// Add entries
> > >zout.finish();
> > >zout.close();
> > >
> > >Resource resource = new
> > > ByteArrayResource("application/zip",
> > > bout.toByteArray());
> > >ResourceStreamRequestTarget target = new
> > > ResourceStreamRequestTarget(resource.getResourceStream());
> > >target.setFileName(new
> > > SimpleDateFormat("MMddHHmmss").format(Calendar.getInstance
> > > ().getTime())
> > > + ".zip");
> > >getRequestCycle().setRequestTarget(target);
> > >
> > >
> > > All suggestions are welcome.
> > >
> > >
> > > Gabor Szokoli
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: "Streaming" a huge ZIP file

2007-12-11 Thread Gabor Szokoli
I guess I forgot to mentionthe single most important aspect of my question:
The archive not present on the file system, it is dynamically
assembled on the fly from individual files.
(the whole point is downloading multiple files in one go.)


Gabor Szokoli

On Dec 11, 2007 11:45 PM, Jeremy Levy <[EMAIL PROTECTED]> wrote:
> Gabor,
>
> Try DownloadLink
> http://wicket.sourceforge.net/apidocs/wicket/markup/html/link/DownloadLink.html
>
> J
>
>
> On Dec 11, 2007 5:39 PM, Gabor Szokoli <[EMAIL PROTECTED]> wrote:
>
> > Hi there,
> >
> > The downside of an easy-to-use framework is the influx of users with
> > little understanding of the underlying servlet technology, like me.
> > Observe:
> >
> > I'd like to provide a ZIP file (could be TAR, anything Windows PCs can
> > save and later extract from) as a download, one that is potentially
> > too big to be kept in memory in full.
> > So I guess I'd need to "stream" it in chunks, or as a java stream or
> > channel.
> > Can I do that from wicket?
> > Or does the servlet interface require a fully assembled response in
> > memory?
> >
> > Currently I assemble the ZIP file in a byte array in full, but it
> > feels awkward. Would extending WebResource fit the bill?
> >
> >ByteArrayOutputStream bout = new
> > ByteArrayOutputStream();
> >ZipOutputStream zout = new ZipOutputStream(bout);
> >// Add entries
> >zout.finish();
> >zout.close();
> >
> >Resource resource = new
> > ByteArrayResource("application/zip",
> > bout.toByteArray());
> >ResourceStreamRequestTarget target = new
> > ResourceStreamRequestTarget(resource.getResourceStream());
> >target.setFileName(new
> > SimpleDateFormat("MMddHHmmss").format(Calendar.getInstance
> > ().getTime())
> > + ".zip");
> >getRequestCycle().setRequestTarget(target);
> >
> >
> > All suggestions are welcome.
> >
> >
> > Gabor Szokoli
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: "Streaming" a huge ZIP file

2007-12-11 Thread Jeremy Levy
Gabor,

Try DownloadLink
http://wicket.sourceforge.net/apidocs/wicket/markup/html/link/DownloadLink.html

J

On Dec 11, 2007 5:39 PM, Gabor Szokoli <[EMAIL PROTECTED]> wrote:

> Hi there,
>
> The downside of an easy-to-use framework is the influx of users with
> little understanding of the underlying servlet technology, like me.
> Observe:
>
> I'd like to provide a ZIP file (could be TAR, anything Windows PCs can
> save and later extract from) as a download, one that is potentially
> too big to be kept in memory in full.
> So I guess I'd need to "stream" it in chunks, or as a java stream or
> channel.
> Can I do that from wicket?
> Or does the servlet interface require a fully assembled response in
> memory?
>
> Currently I assemble the ZIP file in a byte array in full, but it
> feels awkward. Would extending WebResource fit the bill?
>
>ByteArrayOutputStream bout = new
> ByteArrayOutputStream();
>ZipOutputStream zout = new ZipOutputStream(bout);
>// Add entries
>zout.finish();
>zout.close();
>
>Resource resource = new
> ByteArrayResource("application/zip",
> bout.toByteArray());
>ResourceStreamRequestTarget target = new
> ResourceStreamRequestTarget(resource.getResourceStream());
>target.setFileName(new
> SimpleDateFormat("MMddHHmmss").format(Calendar.getInstance
> ().getTime())
> + ".zip");
>getRequestCycle().setRequestTarget(target);
>
>
> All suggestions are welcome.
>
>
> Gabor Szokoli
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


wicket1.3 on websphere6.0.11.

2007-12-11 Thread narup

Hello All,

I recently did an upgrade from wicket1.2.6 to wicket1.3 and also
successfully deployed in a websphere, but my cancel and apply buttons on the
page and modal window are not working everywhere. I don't get any error in
the log file also.

Interesting thing is it works everything fine in Jetty server, in localhost.
So if anyone of you have had this problem before can please let me know. Not
sure but websphere should not have any problem with AJAX.

Thanks 
Puran
-- 
View this message in context: 
http://www.nabble.com/wicket1.3-on-websphere6.0.11.-tp14285196p14285196.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



"Streaming" a huge ZIP file

2007-12-11 Thread Gabor Szokoli
Hi there,

The downside of an easy-to-use framework is the influx of users with
little understanding of the underlying servlet technology, like me.
Observe:

I'd like to provide a ZIP file (could be TAR, anything Windows PCs can
save and later extract from) as a download, one that is potentially
too big to be kept in memory in full.
So I guess I'd need to "stream" it in chunks, or as a java stream or channel.
Can I do that from wicket?
Or does the servlet interface require a fully assembled response in memory?

Currently I assemble the ZIP file in a byte array in full, but it
feels awkward. Would extending WebResource fit the bill?

ByteArrayOutputStream bout = new 
ByteArrayOutputStream();
ZipOutputStream zout = new ZipOutputStream(bout);
// Add entries
zout.finish();
zout.close();

Resource resource = new 
ByteArrayResource("application/zip",
bout.toByteArray());
ResourceStreamRequestTarget target = new
ResourceStreamRequestTarget(resource.getResourceStream());
target.setFileName(new
SimpleDateFormat("MMddHHmmss").format(Calendar.getInstance().getTime())
+ ".zip");
getRequestCycle().setRequestTarget(target);


All suggestions are welcome.


Gabor Szokoli

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Overlay panel on ajax call

2007-12-11 Thread Jeremy Levy
I would assume this can be done entirely using CSS.. Try something like:

div#greyBackground
{position:absolute;z-index:2;top:0;left:0;width:100%;height:100%;background:rgb(230,230,230);opacity:.75;filter:alpha(opacity=75);text-decoration:none;}

and use the wicket simpleattributemodifier to change the style attribute
display option.

J

On Dec 11, 2007 10:01 AM, Alex Objelean <[EMAIL PROTECTED]> wrote:

>
> Use ajaxCallDecorator and javascript. There is a jquery plugin, called
> blockUI. You can use it, or write something similar to get the same
> behavior.
>
> Regards,
> Alex.
>
>
> Newgro wrote:
> >
> > Hi *,
> >
> > i have a long running task. The result will be presented in a panel. The
> > panel is already present if the task is started. I would like to disable
> > the panel until the task is done. The presentation of the panel should
> be
> > "semi-transparent" with a "running circle".
> >
> > How can i reach this? Can anybody show me a hint?
> >
> > i tried the LazyLoadPanel. The problem with it is that it's completely
> > invisible.
> >
> > Thanks
> > Per
> >
>
> --
> View this message in context:
> http://www.nabble.com/Overlay-panel-on-ajax-call-tp14270197p14275684.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Create button to open popup Window.

2007-12-11 Thread Jeremy Levy
You may want to check out PopupSettings as well.

http://wicketstuff.org/wicket13doc/org/apache/wicket/markup/html/link/PopupSettings.html

Jeremy

On Dec 10, 2007 5:33 PM, Christian Alejandro Marquez Grabia <
[EMAIL PROTECTED]> wrote:

> Hi
>
> Maybe you should look at this example using Modal Windows
>
> http://www.wicket-library.com/wicket-examples/ajax/modal-window.1
>
> Cheers,
> Chris
>
> On 12/10/07, Karen Schaper <[EMAIL PROTECTED]> wrote:
> >
> > Hi,
> >
> > I am very new to wicket.  My background is with jsp.
> >
> > I'd like to add a button that will open a popup window that contains
> > mulitple checkboxes.  The user will select a few checkboxes and then
> those
> > choices will be listed back on the main page ( using ajax??)
> >
> > Right now I'm trying to figure out how in wicket to have my button open
> a
> > popup window.  I don't want to submit the form but have some type of
> > onclick
> > event.
> >
> > Any insight is greatly appreciated.
> >
> > Thanks
> >
> > Karen
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>


RE: Creating a form submit listener using IBehavior

2007-12-11 Thread Clay Lehman
Are you trying to submit the form from within an ajax event?  
If so you can simply do: 
target.appendJavascript(getForm().getMarkupId()+".submit()");//get the
markupId for the form and append javascript to submit it

In any case, it seems like form.submit() might do what you are looking
for?

-Clay

-Original Message-
From: Ryan [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 11, 2007 1:56 PM
To: users@wicket.apache.org
Subject: Creating a form submit listener using IBehavior

All,

I have a use case where I would like to submit a form via javascript and
have wicket map this submission back to a java onSubmit method (using
wicket
1.3-rc1). On the surface this is very similar to adding a SubmitLink,
hiding
the submit link markup elements, then using a javascript function to
trigger
the onclick handler for that SubmitLink. This approach works however I
would
like to find a more elegant solution.. Something that can be added to
any
form and not require changes to that form or its markup. Adding a hidden
link seems hackish.

This lead me to my first attempt which was to create a behavior that is
added to the form that emulate's SubmitLink.getTriggerJavascript and
render
that javascript into a function. This doesn't look like it will work out
because getTriggerJavascript uses a package private method
Form.getHiddenFieldId() and also relies on the fact that the SubmitLink
itself is a component within the Form (I am trying to create a
behavior). My
second attempt was to make use of
Form.getJsForInterfaceUrl(interfaceUrl)
passing in a url generated using form.urlFor(behavior,
IBehaviorListener.INTERFACE). I could then use my behavior to add a
javascript function that executes the javascript from
Form.getJsForInterfaceUrl(interfaceUrl). This is not working for two
reasons:

1) Form.getTriggerJavascript (line 1045 in wicket 1.3-rc1) requires the
request target to be an instance of ListenerInterfaceRequestTarget (
IBehaviorListener.INSTANCE is creating a BehaviorRequestTarget).
2) requestTarget.getTarget() is returning the form instead of my
behavior,
so even if Form.getTriggerJavascript accepted BehaviorRequestTarget it
would
not execute my behavior.

Clearly I am missing something about hooking into the submit process for
a
form. Could someone that has a better understanding of this area of
wicket
point me in the right direction?

Ryan

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Creating a form submit listener using IBehavior

2007-12-11 Thread Igor Vaynberg
this is not possible currently. behaviors are not yet fully fledged
citizens when it comes to url generation.
https://issues.apache.org/jira/browse/WICKET-289

-igor


On Dec 11, 2007 10:56 AM, Ryan <[EMAIL PROTECTED]> wrote:
> All,
>
> I have a use case where I would like to submit a form via javascript and
> have wicket map this submission back to a java onSubmit method (using wicket
> 1.3-rc1). On the surface this is very similar to adding a SubmitLink, hiding
> the submit link markup elements, then using a javascript function to trigger
> the onclick handler for that SubmitLink. This approach works however I would
> like to find a more elegant solution.. Something that can be added to any
> form and not require changes to that form or its markup. Adding a hidden
> link seems hackish.
>
> This lead me to my first attempt which was to create a behavior that is
> added to the form that emulate's SubmitLink.getTriggerJavascript and render
> that javascript into a function. This doesn't look like it will work out
> because getTriggerJavascript uses a package private method
> Form.getHiddenFieldId() and also relies on the fact that the SubmitLink
> itself is a component within the Form (I am trying to create a behavior). My
> second attempt was to make use of Form.getJsForInterfaceUrl(interfaceUrl)
> passing in a url generated using form.urlFor(behavior,
> IBehaviorListener.INTERFACE). I could then use my behavior to add a
> javascript function that executes the javascript from
> Form.getJsForInterfaceUrl(interfaceUrl). This is not working for two
> reasons:
>
> 1) Form.getTriggerJavascript (line 1045 in wicket 1.3-rc1) requires the
> request target to be an instance of ListenerInterfaceRequestTarget (
> IBehaviorListener.INSTANCE is creating a BehaviorRequestTarget).
> 2) requestTarget.getTarget() is returning the form instead of my behavior,
> so even if Form.getTriggerJavascript accepted BehaviorRequestTarget it would
> not execute my behavior.
>
> Clearly I am missing something about hooking into the submit process for a
> form. Could someone that has a better understanding of this area of wicket
> point me in the right direction?
>
> Ryan
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Creating a form submit listener using IBehavior

2007-12-11 Thread Ryan
All,

I have a use case where I would like to submit a form via javascript and
have wicket map this submission back to a java onSubmit method (using wicket
1.3-rc1). On the surface this is very similar to adding a SubmitLink, hiding
the submit link markup elements, then using a javascript function to trigger
the onclick handler for that SubmitLink. This approach works however I would
like to find a more elegant solution.. Something that can be added to any
form and not require changes to that form or its markup. Adding a hidden
link seems hackish.

This lead me to my first attempt which was to create a behavior that is
added to the form that emulate's SubmitLink.getTriggerJavascript and render
that javascript into a function. This doesn't look like it will work out
because getTriggerJavascript uses a package private method
Form.getHiddenFieldId() and also relies on the fact that the SubmitLink
itself is a component within the Form (I am trying to create a behavior). My
second attempt was to make use of Form.getJsForInterfaceUrl(interfaceUrl)
passing in a url generated using form.urlFor(behavior,
IBehaviorListener.INTERFACE). I could then use my behavior to add a
javascript function that executes the javascript from
Form.getJsForInterfaceUrl(interfaceUrl). This is not working for two
reasons:

1) Form.getTriggerJavascript (line 1045 in wicket 1.3-rc1) requires the
request target to be an instance of ListenerInterfaceRequestTarget (
IBehaviorListener.INSTANCE is creating a BehaviorRequestTarget).
2) requestTarget.getTarget() is returning the form instead of my behavior,
so even if Form.getTriggerJavascript accepted BehaviorRequestTarget it would
not execute my behavior.

Clearly I am missing something about hooking into the submit process for a
form. Could someone that has a better understanding of this area of wicket
point me in the right direction?

Ryan


Re: dropdownchoice

2007-12-11 Thread Igor Vaynberg
here is the version that stores the id in the model instead...maybe at
some point it can make its way into extensions or core


import java.util.List;

import org.apache.wicket.markup.html.form.DropDownChoice;
import org.apache.wicket.markup.html.form.IChoiceRenderer;
import org.apache.wicket.model.IModel;

public class DropDownIdChoice extends DropDownChoice
{

public DropDownIdChoice(String id, IModel model, IModel choices,
IChoiceRenderer renderer,
Class type)
{
super(id, model, choices, renderer);
setType(type);
}

@Override
public String getModelValue()
{
final Object id = getModelObject();
if (id != null)
{
return getConverter(getType()).convertToString(id, getLocale());
}
else
{
return NO_SELECTION_VALUE;
}
}
}

-igor


On Dec 11, 2007 9:58 AM, Ivaylo Kovatchev <[EMAIL PROTECTED]> wrote:
>
> Fair question. Why return the Id, instead of just using a Property model to
> bind the member field of an object to a child component's model?
>
> Thanks for your insight.
>
> Yevgeni: If you do that you will have to have an object (can be the same one
> that extends DropDownChoice) implement IChoiceRenderer, so that you can see
> the field you are interested in on the dropdown. And also do not forget to
> say
> setChoiceRenderer(this);
> In the constructor.
>
>
> Johan Compagner wrote:
> >
> > yes this is true, you have to have a selected object that comes from the
> > choices
> > Why is this so hard to understand? I find that completely logical.
> >
> > Maybe with generics (1.4) this will be more clear
> >
> > *
> >
> > public* DropDownChoice(String id, IModel model, IModel>
> > choices,
> > IChoiceRenderer renderer)
> >
> > So if your model object ins an integer, Then you also have to have a List
> > of
> > integers..
> >
> > Are you guys working with pojos like: Person.getAddressId() instead of
> > Person.getAddress() ??
> >
> > johan
> > On Dec 11, 2007 5:05 PM, Ivaylo Kovatchev <[EMAIL PROTECTED]>
> > wrote:
> >
>
> --
> View this message in context: 
> http://www.nabble.com/dropdownchoice-tp14233301p14279580.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Component.visitParents visits the calling component as well

2007-12-11 Thread Igor Vaynberg
hm, i dont think it is correct. wondering if we can change it this
late in the game though...open a jira issue please.

eelco its your baby...is this intentional or is it a bug?

-igor


On Dec 11, 2007 3:22 AM, Bart Molenkamp <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I see that Component.visitParents() also visits the component on
> which the call is made. Is this behavior correct?
>
> If so, I think that the method name is a little bit confusing. The
> method MarkupContainer.visitChildren() doesn't visit the calling
> component, but only it's children (as the method name suggests).
>
> Thanks,
> Bart.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Server cannot find /app url after migration to 1.3 filter

2007-12-11 Thread narup

Well i also had a similar problem,actually websphere doesn't handle servlet
filters properly. So upgrading wicket to 1.3 and if you are using
org.apache.wicket.protocol.http.WicketFilter
instead of wicket servlet then have to do change
Setting com.ibm.ws.webcontainer.invokefilterscompatibility property to true
in

Servers > Server > Web Container Settings > Web Container > Custom
Properties.

select New and then enter
"com.ibm.ws.webcontainer.invokefilterscompatibility" as the property name
and "true" as the value
- save the update and restart the server 

Hope this works


smallufo wrote:
> 
> 2007/10/13, smallufo <[EMAIL PROTECTED]>:
>>
>> Hi ,
>> I had a strong suspicion that WicketFilter (from 1.3 b3)  not compatible
>> with Resin ( I tried 2.1.17 and latest 3.0.24 )
> 
> 
> I just grabbed the latest 1.3 b4 , the problem remains.
> 
> I also found that the following filter-mapping works :
>   
>   
> 
> while the following doesn't work  :
> 
>   
> 
> 
>   
>   
> When I try to connect to foo.bar.com:8080/app , it throws :
> 
> java.lang.IllegalArgumentException: Error initializing WicketFilter - you
> have no  element with a url-pattern that uses filter:
> wicket
> 
> It seems that WicketFilter cannot parse @filter-name and @url-pattern of
>  tag.
> (But it can correctly parse @filter-name , @filter-class of  tag.)
> I have to change it to :
> 
>   
> wicket
> /app/*
>   
> 
> But 1.3b4 's filter still cannot intercept "/app" at port 80.
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Server-cannot-find--app-url-after-migration-to-1.3-filter-tp12998876p14279914.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: dropdownchoice

2007-12-11 Thread Ivaylo Kovatchev

Fair question. Why return the Id, instead of just using a Property model to
bind the member field of an object to a child component's model?

Thanks for your insight.

Yevgeni: If you do that you will have to have an object (can be the same one
that extends DropDownChoice) implement IChoiceRenderer, so that you can see
the field you are interested in on the dropdown. And also do not forget to
say
setChoiceRenderer(this);
In the constructor.


Johan Compagner wrote:
> 
> yes this is true, you have to have a selected object that comes from the
> choices
> Why is this so hard to understand? I find that completely logical.
> 
> Maybe with generics (1.4) this will be more clear
> 
> *
> 
> public* DropDownChoice(String id, IModel model, IModel>
> choices,
> IChoiceRenderer renderer)
> 
> So if your model object ins an integer, Then you also have to have a List
> of
> integers..
> 
> Are you guys working with pojos like: Person.getAddressId() instead of
> Person.getAddress() ??
> 
> johan
> On Dec 11, 2007 5:05 PM, Ivaylo Kovatchev <[EMAIL PROTECTED]>
> wrote:
> 

-- 
View this message in context: 
http://www.nabble.com/dropdownchoice-tp14233301p14279580.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Google Wicket Public Calendar

2007-12-11 Thread Johan Compagner
I thought we already had one, but couldn't find it so i created one:


http://www.google.com/calendar/embed?src=cGQwY29vanBodDduc3Fib3Q3dTJxNW1jNDhAZ3JvdXAuY2FsZW5kYXIuZ29vZ2xlLmNvbQ


People who want to contribute to this calendar please feel free to ask me so
that we can have a nice
wicket calendar with User Group Meetings, Conferences and other Events.

Martijn will set the release date in the calender for 1.3 and 1.4 ;)

johan


Re: dropdownchoice

2007-12-11 Thread Johan Compagner
yes this is true, you have to have a selected object that comes from the
choices
Why is this so hard to understand? I find that completely logical.

Maybe with generics (1.4) this will be more clear

*

public* DropDownChoice(String id, IModel model, IModel> choices,
IChoiceRenderer renderer)

So if your model object ins an integer, Then you also have to have a List of
integers..

Are you guys working with pojos like: Person.getAddressId() instead of
Person.getAddress() ??

johan
On Dec 11, 2007 5:05 PM, Ivaylo Kovatchev <[EMAIL PROTECTED]>
wrote:

>
> I am not sure what the design decision was behind this and perhaps one of
> the
> Wicket Gurus can weigh in on this but I ran into something very similar
> recently, and here are my thoughts:
>
> I think you are mixing the model object that backs the Dropdown and the
> actual Broker object. They are not the same thing. For example, having
> Broker id's in the final rendered HTML is a potential security risk.
>
> That being said, I could not find a elegant solution to the same exact
> problem. I ended up subclassing DropdownChoice. Adapted to your code, it
> looked something like:
>
> private HashMapmap = new HashMap();
> ...
> //get a list of the String that will be your choices
> for(Broker b : (Application)
> getApplication()).getBrokerDao().getUniqueBrokers())
> {
>   map.put(b.getName(), b);
> }
> setChoices(new ArrayList(map.keySet()));
> ...
> public HashMap getMap()
> {
>   return map;
> }
>
> Then, in your onSubmit() method for the containing component you can
> access
> the Id of each broker like this:
>
> brokerDropDown.getMap().get(modelObject.getBrokerName()).getId()
>
>
>
> I hate this approach. I would love to have someone point me in a better
> direction.
>
>
> Yevgeni Kovelman wrote:
> >
> > I have the following problem, I have a dropdownchoice component.  The
> load
> > method returns a list of Broker objects which have an id and displayName
> > attributes.  Although currently not in this code, I will use the
> > iChoiceRenderer to populate the appropriate values.  The Request
> instance
> > object is a backing object which contains brokerId as an attribute.
> >
> >
> >
> > My question is it possible to populate the instance.brokerId with the
> > broker
> > id that gets rendered by iChoiceRenderer.  Currently I get an ClassCast
> > exception because the loaded model is of type Broker and the
> > instance.brokerId is long.
> >
> >
> >
> >  Request instance = new Request();
> >
> >  // instance has broker as a long attribute
> >
> >
> >
> >   Form form = new Form("entryForm", new
> CompoundPropertyModel(instance));
> >
> >   add(form);
> >
> >
> >
> > DropDownChoice broker =
> >
> > new DropDownChoice("broker",
> >
> > new PropertyModel(instance, "broker"),
> >
> > new LoadableDetachableModel()
> >
> > {
> >
> > @Override
> >
> > protected Object load()
> >
> > {
> >
> > return ((Application) getApplication())
> >
> >  .getBrokerDao().getUniqueBrokers();
> >
> > }
> >
> > }
> >
> > );
> >
> > broker.setRequired(true);
> >
> > form.add(broker);
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/dropdownchoice-tp14233301p14276903.html
> Sent from the Wicket - User mailing list archive at 
> Nabble.com
> .
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: dropdownchoice

2007-12-11 Thread Ivaylo Kovatchev

I am not sure what the design decision was behind this and perhaps one of the
Wicket Gurus can weigh in on this but I ran into something very similar
recently, and here are my thoughts:

I think you are mixing the model object that backs the Dropdown and the
actual Broker object. They are not the same thing. For example, having
Broker id's in the final rendered HTML is a potential security risk.

That being said, I could not find a elegant solution to the same exact
problem. I ended up subclassing DropdownChoice. Adapted to your code, it
looked something like:

private HashMapmap = new HashMap();
...
//get a list of the String that will be your choices
for(Broker b : (Application)
getApplication()).getBrokerDao().getUniqueBrokers())
{
   map.put(b.getName(), b);
}
setChoices(new ArrayList(map.keySet()));
...
public HashMap getMap()
{
   return map;
}

Then, in your onSubmit() method for the containing component you can access
the Id of each broker like this:

brokerDropDown.getMap().get(modelObject.getBrokerName()).getId()



I hate this approach. I would love to have someone point me in a better
direction.


Yevgeni Kovelman wrote:
> 
> I have the following problem, I have a dropdownchoice component.  The load
> method returns a list of Broker objects which have an id and displayName
> attributes.  Although currently not in this code, I will use the
> iChoiceRenderer to populate the appropriate values.  The Request instance
> object is a backing object which contains brokerId as an attribute.
> 
>  
> 
> My question is it possible to populate the instance.brokerId with the
> broker
> id that gets rendered by iChoiceRenderer.  Currently I get an ClassCast
> exception because the loaded model is of type Broker and the
> instance.brokerId is long.  
> 
>  
> 
>  Request instance = new Request();
> 
>  // instance has broker as a long attribute
> 
>  
> 
>   Form form = new Form("entryForm", new CompoundPropertyModel(instance));
> 
>   add(form);  
> 
>  
> 
> DropDownChoice broker = 
> 
> new DropDownChoice("broker",
> 
> new PropertyModel(instance, "broker"),
> 
> new LoadableDetachableModel()
> 
> {
> 
> @Override
> 
> protected Object load() 
> 
> {
> 
> return ((Application) getApplication())
> 
>  .getBrokerDao().getUniqueBrokers();
> 
> }
> 
> }
> 
> );
> 
> broker.setRequired(true);
> 
> form.add(broker);
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/dropdownchoice-tp14233301p14276903.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: JRPdfResource onResourceRequested() file dialog not displayed when using AjaxFallbackLink

2007-12-11 Thread Clay Lehman
I had a similar problem with showing a file download dialog from an ajax
event, I got around it by doing
target.appendJavascript(getMarkupId()+".submit()");

which submits the form, and then forwarding the user to the file in the
onSubmit() method of the form.

Hope this helps...

-Clay

-Original Message-
From: lizz [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 11, 2007 5:01 AM
To: users@wicket.apache.org
Subject: JRPdfResource onResourceRequested() file dialog not displayed
when using AjaxFallbackLink


I am creating a potentially large dynamic jasper report that is can be
opened
or saved using a wicket Link . In the onClick method the report is
created
(1) and displayed (2) :

JRPdfResource pdfr = ReportFactory.createPdfResource(data);//1:
create
the report
pdfr.onResourceRequested(); //2: open the open or save dialog

Since the report may be very large step 1 will take quite some time. I
would
like to notify the user that this will take some time using the
browsers
"wait icon" like the one in the LazyLoadingPanel wicket example. I would
also prevent the user from clicking in the browser while the report is
generated using wickets Modal Window.

To do this I have to use AjaxFallbackLink but the open or save dialog
(2)
isnt displayed when using ajax.

Any suggestions?  
-- 
View this message in context:
http://www.nabble.com/JRPdfResource-onResourceRequested%28%29-file-dialo
g-not-displayed-when-using-AjaxFallbackLink-tp14270835p14270835.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Overlay panel on ajax call

2007-12-11 Thread Alex Objelean

Use ajaxCallDecorator and javascript. There is a jquery plugin, called
blockUI. You can use it, or write something similar to get the same
behavior.

Regards, 
Alex.


Newgro wrote:
> 
> Hi *,
> 
> i have a long running task. The result will be presented in a panel. The
> panel is already present if the task is started. I would like to disable
> the panel until the task is done. The presentation of the panel should be
> "semi-transparent" with a "running circle".
> 
> How can i reach this? Can anybody show me a hint?
> 
> i tried the LazyLoadPanel. The problem with it is that it's completely
> invisible.
> 
> Thanks
> Per
> 

-- 
View this message in context: 
http://www.nabble.com/Overlay-panel-on-ajax-call-tp14270197p14275684.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: When to use getModelObject, getConvertedInput, getInput

2007-12-11 Thread Johan Compagner
you shouldn't call getConvertedInput() or getInput yourself except if you
where making a special formcomponent itself.
The model of an component lives as long as the component does.

But the dropdownchoice (or all select tag components) have another special
thing call IChoiceRenderer
That first tries to convert the string to an option object.

johan


On Dec 11, 2007 1:47 PM, wicket user <[EMAIL PROTECTED]> wrote:

> Hi,
>
> This is more a question of understanding models and input of a particular
> component, lets say DropDownChoice (DDC) for example.
>
> You give it a model initially on creation, this has nothing to do with, in
> the case of a DDC the selected values as that is supplied by the Choices
> paramater in the constuctor.
>
> So we now have a DDC configured.
>
> A user comes along and selects a value, if we have and
> AjaxFormComponentUpdatingBehavior associated we see that the
> getModelObject
> returns null as well as getConvertedInput but getInput actually has
> something but it's in string form. Is this because we are intercepting the
> event before the input is converted to the model?
>
> Basically I'm never sure when to use which accessor and the trial and
> error
> method that I have been using so far is starting to scare me. I guess the
> lifecycle of model is what I really need to understand and googling hasn't
> thrown up much. I have read the wiki article on models but it doesn't go
> into details such as this...
>
> Anyway, it will be a nice thing to not have nagging me over xmas!
>
> thanks
> simon
>


When to use getModelObject, getConvertedInput, getInput

2007-12-11 Thread wicket user
Hi,

This is more a question of understanding models and input of a particular
component, lets say DropDownChoice (DDC) for example.

You give it a model initially on creation, this has nothing to do with, in
the case of a DDC the selected values as that is supplied by the Choices
paramater in the constuctor.

So we now have a DDC configured.

A user comes along and selects a value, if we have and
AjaxFormComponentUpdatingBehavior associated we see that the getModelObject
returns null as well as getConvertedInput but getInput actually has
something but it's in string form. Is this because we are intercepting the
event before the input is converted to the model?

Basically I'm never sure when to use which accessor and the trial and error
method that I have been using so far is starting to scare me. I guess the
lifecycle of model is what I really need to understand and googling hasn't
thrown up much. I have read the wiki article on models but it doesn't go
into details such as this...

Anyway, it will be a nice thing to not have nagging me over xmas!

thanks
simon


Component.visitParents visits the calling component as well

2007-12-11 Thread Bart Molenkamp
Hi,

I see that Component.visitParents() also visits the component on
which the call is made. Is this behavior correct?

If so, I think that the method name is a little bit confusing. The
method MarkupContainer.visitChildren() doesn't visit the calling
component, but only it's children (as the method name suggests).

Thanks,
Bart.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



JRPdfResource onResourceRequested() file dialog not displayed when using AjaxFallbackLink

2007-12-11 Thread lizz

I am creating a potentially large dynamic jasper report that is can be opened
or saved using a wicket Link . In the onClick method the report is created
(1) and displayed (2) :

JRPdfResource pdfr = ReportFactory.createPdfResource(data);//1: create
the report
pdfr.onResourceRequested(); //2: open the open or save dialog

Since the report may be very large step 1 will take quite some time. I would
like to notify the user that this will take some time using the  browsers
"wait icon" like the one in the LazyLoadingPanel wicket example. I would
also prevent the user from clicking in the browser while the report is
generated using wickets Modal Window.

To do this I have to use AjaxFallbackLink but the open or save dialog (2)
isnt displayed when using ajax.

Any suggestions?  
-- 
View this message in context: 
http://www.nabble.com/JRPdfResource-onResourceRequested%28%29-file-dialog-not-displayed-when-using-AjaxFallbackLink-tp14270835p14270835.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Overlay panel on ajax call

2007-12-11 Thread Newgro

Hi *,

i have a long running task. The result will be presented in a panel. The
panel is already present if the task is started. I would like to disable the
panel until the task is done. The presentation of the panel should be
"semi-transparent" with a "running circle".

How can i reach this? Can anybody show me a hint?

i tried the LazyLoadPanel. The problem with it is that it's completely
invisible.

Thanks
Per
-- 
View this message in context: 
http://www.nabble.com/Overlay-panel-on-ajax-call-tp14270197p14270197.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]