[Wicket-user] FW: wicket scriptaculous drag and drop

2007-05-30 Thread Apaar Trivedi


-Original Message-
From: Ryan Sonnek [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 30, 2007 12:45 PM
To: Apaar Trivedi
Subject: Re: wicket scriptaculous drag and drop

Thanks for the feedback.  This question might be applicable to the
wicket user mailing list.  My suggestion is to use the
SortableListView for users that can drag/drop and a normal ListView
for users that can not sort.

something like:
if (canSort) {
  add(new SortableListView());
} else {
  add(new ListView());
}

I think this should be possible.

On 5/30/07, Apaar Trivedi [EMAIL PROTECTED] wrote:




 Hi Ryan,



 We are using the wicket scriptaculous drag and drop contribution for
an app
 we are building.  I am wondering if there is anyway to disable to drag
and
 drop nature of the listview.  For instance, if we have several types
of
 users, and some users can re order the list, but others cannot, we
would
 like to disable the sorting feature for those who can't use it.



 Any help on how to do this?  The constraints options do not seem to
prohibit
 the movement, and it seems to be only able to move vertically be
default.
 Fyi, I am using the contrib. from the wicket 1.3 trunk.  Thank you for
any
 help!





 Apaar Trivedi

 Consultant

 O: (512) 469-9300 x 128

 M: (512) 363-9290

 Blue Fish Development Group

 http://www.bluefishgroup.com



-
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] tinyMCE + weblogic problems

2007-05-23 Thread Apaar Trivedi
Hey guys, When we try to use tiny mce for wicket 1.3 w/ weblogic we get
this error in our startup:

 

javax.servlet.ServletException:
org/apache/commons/collections/set/ListOrderedSet

at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.
java:532)

at
weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:32)

at
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:
27)

at
com.dell.ren.servlet.RenAuthenticationFilter.doFilter(RenAuthenticationF
ilter.java:161)

at
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:
27)

at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.r
un(WebAppServletContext.java:7049)

at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSu
bject.java:321)

at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121
)

at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServl
etContext.java:3732)

at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.
java:2773)

at
weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)

at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)

 

And this prevents us from being able to use tinyMCE.  Any ideas?  Any
help is appreciated.  Thanks!

 

 

-
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] loading a Flash resource

2007-05-08 Thread Apaar Trivedi
Can anyone give me some ideas on how I can load Flash resource from
byte[] and render it on a wicket page?

 

thanks

 

 

 

-
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] loading a Flash resource

2007-05-08 Thread Apaar Trivedi
This looks like it could be very useful.  But what I mean  from a byte[]
is that my user will select a swf from their file system and 'store' it.
Essentially what happens is I upload their file and then store it as a
byte[] in Hibernate.  So later when I get it out, I would need to be
able to re construct it from the byte[]. 

 

Does this method allow for that?  After looking over it, would it be
possible to stream the flash byte[] through renderHead or something like
that?

 

Thanks

 



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Andrew
Lombardi
Sent: Tuesday, May 08, 2007 4:00 PM
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] loading a Flash resource

 

What do you mean by loading a Flash resource from byte[]?  Its probably
easiest just to utilize Wicket and create a Flash object to be rendered
on the page.  There's a page in the Wiki about how to do this:

 

The following:
http://cwiki.apache.org/WICKET/creating-a-behavior-to-use-a-javascript-l
ibrary.html

 

uses SWFObject.js to load the flash.

 

Hope that helps.

 

 

On May 8, 2007, at 1:29 PM, Apaar Trivedi wrote:





Can anyone give me some ideas on how I can load Flash resource from
byte[] and render it on a wicket page?

 

thanks

 

 

 


-

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

 

 

To our success!

 

 mehttp://www.mysticcoders.com/images/me-24px.jpg Andrew Lombardi:
Mystic Coders, LLC http://www.mysticcoders.com/  - Coding Magic
contact | [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]  |
mobile: 714-697-8046 | office/fax: 714-948-2382 | aim: nlpjunke 

This message is for the named person's use only. You must not, directly
or indirectly, use, disclose, distribute, print, or copy any part of
this message if you are not the intended recipient.





 

-
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] TinyMCE for wicket 1.3 not a panel???

2007-05-03 Thread Apaar Trivedi
Hey all, I am trying to get a TinyMCEPanel jar for Wicket 1.3.  I've
gotten the tinymce contrib. from the wicketstuff trunk, and attempted to
compile and package it using the maven script.  It compiles just fine
but when I go to build the packages, I get this error in a few place:

 

c:\Eclipse_WS\wicketstuff\wicket-stuff_trunk\wicket-contrib-tinymce\src\
test\wicket\contrib\tinymce\TinyMCEPanelTest.java:[63,39] incompatible
types

found   : wicket.contrib.tinymce.TinyMCEPanel

required: org.apache.wicket.markup.html.panel.Panel

 

and basically this is occurring everywhere the TinyMCEPanel object is
being returned.  This mcepanel is definitely a sub class of a wicket
panel, and I am confident the maven script is using wicket 1.3 incubator
snapshot.  When I remove the test classes I can build the package just
fine.  But when I attempt to use this mce jar in my wicket application,
I cannot add this TinyMCEPanel object to the markup container because it
thinks it is not a component.  Basically the same problem the test is
having.  

 

Does anyone know what is going on with this, or is there a pre-built jar
against wicket 1.3 out there which works?

 

Any help is appreciated.  Thanks.

 

-Par

 

-
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] Recommendation for multipart upload in modal windowin 1.3?

2007-05-01 Thread Apaar Trivedi
I would recommend using a page inside of a modal window, this way the
form submit wont close the window. ;-)

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
jamieballing
Sent: Tuesday, May 01, 2007 6:47 PM
To: wicket-user@lists.sourceforge.net
Subject: [Wicket-user] Recommendation for multipart upload in modal
windowin 1.3?


We need to have a file upload control on a modal window that updates via
ajax. I know that 1.2 had issues with this, but does 1.3 support it? 

In any event, how would you recommend we approach this?
-- 
View this message in context:
http://www.nabble.com/Recommendation-for-multipart-upload-in-modal-windo
w-in-1.3--tf3677936.html#a10277955
Sent from the Wicket - User mailing list archive at Nabble.com.



-
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] Aajx error handling weirdness

2007-04-04 Thread Apaar Trivedi
Hey guys, I have a weird issue.  

 

I am using the globalFailureHandler to catch my ajax errors, and also
have overridden RequestCycle to forward to my own error page.  But when
an error occurs during an ajax request, I get two different responses
depending on what mode my application is in.

 

In deployment mode, my error will cause a forward to the error page.

 

In development mode my error will be handled by the global failure
handler, basically only javascript error handling.  If I am in
development mode and do NOT register the global failure handler, then my
error is not handled and only appears in my tomcat console.

 

How can I control this behavior and choose how my errors are handled,
regardless of what mode my application is in?

 

 

I am using wicket 1.2.4, and even retro fitted this patch:
http://issues.apache.org/jira/browse/WICKET-313

 

-
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.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] patch question: wicket 313

2007-04-04 Thread Apaar Trivedi
Hey all, I've applied this patch
http://issues.apache.org/jira/browse/WICKET-313   to wicket 1.2.4 and it
doesn't seem to have changed the way my errors are handled in
ajaxRequestTarget.  Am I missing other patches that this depends on?

 

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.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Ajax error handling: deployment vs developmentmode

2007-03-29 Thread Apaar Trivedi

It appears that the patch is only for versions 1.3 and 2.0, and we are
using 1.2.4, hence it won't apply correctly.

The failure handler you mentioned works quite well, thank you for that,
but it only seems to work in development mode.  Basically here is what
is happening for me:

In development mode, I can only handle my errors using the failure
handler
In deployment mode, I can only handle my errors using the re-direct to
the error page via RequestCycle.

What I would like is to be able to use both in either mode in Wicket
1.2.4.  Is this possible?

Thanks


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Jean-Baptiste Quenot
Sent: Friday, March 23, 2007 6:39 PM
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] Ajax error handling: deployment vs
developmentmode

* Apaar Trivedi:

 I understand that  if my app is in deployment  mode then all run
 time exceptions, including anything which happens during an Ajax
 request  will be  caught by  my RequestCycle.onRuntimeException,
 and this is working fine.  But how can I replicate this behavior
 during  development  mode?   During  development  mode  my  ajax
 runtime exceptions merely  show up in my Tomcat  console, and do
 not forward to the error page.

This is fixed already, see:

Use standard exception handling in AjaxRequestTarget
http://issues.apache.org/jira/browse/WICKET-313

However I didn't notice  different behavior between deployment and
development when I had this problem.

 Also, how  can I conceivably  handle these errors on  the client
 side, say for instance I experience an ajax runtime error during
 some request and  I would like to display a  friendly message in
 my window, instead of forwarding to the error page, how can this
 be done?

Just define wicketGlobalFailureHandler() JS function in your document.

There is a plug-and-play implementation for Dojo here FYI:
http://wicket-stuff.svn.sourceforge.net/viewvc/wicket-stuff/branches/wic
ket-1.3/wicket-contrib-dojo/src/main/java/wicket/contrib/dojo/markup/htm
l/floatingpane/AjaxErrorBehavior.java?revision=1755view=markup

Cheers,
-- 
 Jean-Baptiste Quenot
aka  John Banana   Qwerty
http://caraldi.com/jbq/


-
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.phpp=sourceforgeCID=DEVDE
V
___
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.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Ajax error handling: deployment vs development mode

2007-03-23 Thread Apaar Trivedi
Hey all,

 

I understand that if my app is in deployment mode then all run time
exceptions, including anything which happens during an Ajax request will
be caught by my RequestCycle.onRuntimeException, and this is working
fine.  But how can I replicate this behavior during development mode?
During development mode my ajax runtime exceptions merely show up in my
Tomcat console, and do not forward to the error page.

 

Also, how can I conceivably handle these errors on the client side, say
for instance I experience an ajax runtime error during some request and
I would like to display a friendly message in my window, instead of
forwarding to the error page, how can this be done?  

 

Thanks for any help on these questions!

-Par

-
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.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] AbstractBehavior or AjaxFormSubmitBehavior exception handling

2007-03-14 Thread Apaar Trivedi
Hey guys, 

 

When I have an exception (in this case a NullPointerException) occur
during the onSubmit of an AjaxFormSubmitBehavior, neither onException or
onError is being called.  Why is that?  I thought these methods existed
specifically to catch these types of problems?

 

Thanks

Par

 

-
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.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] AbstractBehavior or AjaxFormSubmitBehaviorexception handling

2007-03-14 Thread Apaar Trivedi
Something like the following code:

 

Button searchButton = new Button(searchButton, new
StringResourceModel(searchButton, this, null));

searchButton.add(new MyAjaxFormSubmitBehaviorWithIndicator(form,
onclick) {

 

protected void onError(AjaxRequestTarget arg0) {

super.onError(arg0);

}



public void onException(Component target, RuntimeException
e) {  -- Does not get called

super.onException(target, e);

}

 

protected void onSubmit(AjaxRequestTarget target) {


Collection ldapUsers = getUsersOrGroupsFromLdap() --
causes a null pointer exception 

target.addComponent(this);

}

}

 

So in the following code, AbstractBehavior.onException does not get
called, and it is also not being handled by
RequestCycle.onRuntimException, since I have overridden that to catch
run time exceptions already, I know it is not being called.  This is
making it rather difficult to implement ajax error handling for this
situation.

 

Alternatively, I have a similar piece of code where I explicitly do a
'throw new MyRuntimeException()', and this DOES get handled by
RequestCycle.onRuntimeException.

 

Any ideas?

 

Thanks

 



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Igor
Vaynberg
Sent: Wednesday, March 14, 2007 11:05 AM
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] AbstractBehavior or
AjaxFormSubmitBehaviorexception handling

 

onexception where? onerror is called when a form validation error
occurs.

-igor



On 3/14/07, Apaar Trivedi  [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  wrote:

Hey guys, 

 

When I have an exception (in this case a NullPointerException) occur
during the onSubmit of an AjaxFormSubmitBehavior, neither onException or
onError is being called.  Why is that?  I thought these methods existed
specifically to catch these types of problems?

 

Thanks

Par

 



-
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.phpp=sourceforgeCID=DEVDE
V
___
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.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] onFailure AjaxCallDecorators and modal windows

2007-03-13 Thread Apaar Trivedi
Does no one have an answer to this question?

 

 

 



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Apaar
Trivedi
Sent: Monday, March 12, 2007 4:50 PM
To: wicket-user@lists.sourceforge.net
Subject: [Wicket-user] onFailure AjaxCallDecorators and modal windows

 

Hey guys,

 

I am trying to automatically close a modal window if an exception occurs
within its ajax requests or submits.

 

For example, if I press a button in a modal, and that ajax request
causes an exception, I'd like to close the modal before allowing wicket
to handle the runtime exception.  To achieve this I have tried to use a
onFailure post processing call decorator, but an exception does not seem
to trigger this event.

 

What triggers an 'onFailure' and causes the decorated script to run?

 

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.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] onFailure AjaxCallDecorators and modal windows

2007-03-12 Thread Apaar Trivedi
Hey guys,

 

I am trying to automatically close a modal window if an exception occurs
within its ajax requests or submits.

 

For example, if I press a button in a modal, and that ajax request
causes an exception, I'd like to close the modal before allowing wicket
to handle the runtime exception.  To achieve this I have tried to use a
onFailure post processing call decorator, but an exception does not seem
to trigger this event.

 

What triggers an 'onFailure' and causes the decorated script to run?

 

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.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Ajax Indicators for custom components

2007-03-08 Thread Apaar Trivedi
Hey all,

 

I've got a custom component (drop down of AjaxLinks) which extends
Panel.  I would like for this component to be able to use an ajax
indicator.  How can I do this?  Can I just have that component implement
IAjaxIndicatorAware?  When I use the indicatorAppender as part of this,
it does not seem to work.  Any help is appreciated.  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.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Ajax Indicators for custom components

2007-03-08 Thread Apaar Trivedi
Hey all,

 

I've got a custom component (drop down of AjaxLinks) which extends
Panel.  I would like for this component to be able to use an ajax
indicator.  How can I do this?  Can I just have that component implement
IAjaxIndicatorAware?  When I use the indicatorAppender as part of this,
it does not seem to work.  Any help is appreciated.  Thanks.

 

 

Sorry if this is a double post, my previous one did not seem to appear.

-
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.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] paging navigation behavior

2007-03-07 Thread Apaar Trivedi
I have a paging nav class which extends AjaxPagingNavigator and I would
like to create a paging navigator behavior for it (which implements
IAjaxIndicatorAware).  I have made a class which extends the
AjaxPagingNavigationBehavior, but i am having trouble finding the
IAjaxLink and IPageable to construct the navigation behavior.

 

Also, the paging navigator is backed by a DataView.  Any hints?  Thanks

-Par

-
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.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Ajax indicators and form submits

2007-03-01 Thread Apaar Trivedi
I have setup an AjaxIndicator to show up when I press a button, but the
onclick event seems to be overridden when I set this up.  For my button,
the onclick event is tied to a form submit, causing the form to update.
But when I had an onclick behavior which pops up the indicator, the form
no longer gets submitted, but the indicator does pop up.

 

how can I also make the form submit happen for an onclick?  Below is the
code which I am referring to:

 

public class AjaxIndicator extends WebMarkupContainer{



public AjaxIndicator (String id){

super(id);

setOutputMarkupId(true);

}



/* (non-Javadoc)

 * @see
wicket.Component#onComponentTag(wicket.markup.ComponentTag)

 */

protected void onComponentTag(ComponentTag tag) {

// TODO Auto-generated method stub

super.onComponentTag(tag);

tag.put(src,
http://localhost:8080/dell-ren/i/temp/ajax-loader.gif;);



} 

}





private void setupPanel() {



final AjaxIndicator imgContainer = new
AjaxIndicator(indicatorImg);

form.add (imgContainer);



class usersOrGroupsBehavior extends
AjaxFormComponentUpdatingBehavior implements IAjaxIndicatorAware {

usersOrGroupsBehavior(){

super(onclick);

}

 

/* (non-Javadoc)

 * @see
wicket.ajax.IAjaxIndicatorAware#getAjaxIndicatorMarkupId()

 */

public String getAjaxIndicatorMarkupId() {

return imgContainer.getMarkupId();

}

 

/* (non-Javadoc)

 * @see
wicket.ajax.form.AjaxFormComponentUpdatingBehavior#onUpdate(wicket.ajax.
AjaxRequestTarget)

 */

protected void onUpdate(AjaxRequestTarget arg0) {



try {

Thread.sleep(5000);

} catch (InterruptedException e) {

}



}

}  

 

 

Button searchButton = new Button(searchButton, new
StringResourceModel(searchButton, this, null));

searchButton.add(new AjaxFormSubmitBehavior(form, onclick) {

protected void onSubmit(AjaxRequestTarget target) {

try {

Thread.sleep(5000);

} catch (InterruptedException e) {

throw
RenRuntimeException.wrapWithRenRuntimeException(e);

}

Collection ldapUsers =
getUsersOrGroupsFromLdap(getLdapQuery(), getGroupsToSearchWithin());

populateUsersOrGroupsList(ldapUsers);

 

// make the add button visible once we've populated the
selectable users list

addButton.setVisible(true);

target.addComponent(UserGroupPickerPanel.this);

 

}

});



searchButton.add(new usersOrGroupsBehavior());

}

-
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.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Custom exception page

2007-01-24 Thread Apaar Trivedi
Thank you for that but I also need to be able to display the original
exception being thrown, so this method did not work for me.

 

 



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Marc-Andre Houle
Sent: Wednesday, January 24, 2007 10:02 AM
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] Custom exception page

 

There is always the classic : 
 getApplicationSettings ().setInternalErrorPage
(MyCustomErrorPage.class);

But that will not give you the exception thrown.

On 1/24/07, Apaar Trivedi [EMAIL PROTECTED] wrote:

Hi all, I am trying to make a custom exception page.

I have created a class which overrides the onRuntimeException method in
RequestCycle and wicket does not seem to be using.  Do I need to tell it
to use this class, somehow?  Is there anything else I can do?  Basically

I need a custom error page which can display the exception being thrown.

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.phpp=sourceforgeCID=DEVDE
V
___
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.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Custom exception page

2007-01-24 Thread Apaar Trivedi
Thank you, I am working on this and making some progress.  I am having
trouble implementing the methods for getProcessor(), newClientInfo() and
redirectTo() when I extend the RequestCycle.

What should getProcessor and newClientInfo be returning?  

Thanks

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Eelco
Hillenius
Sent: Wednesday, January 24, 2007 10:23 AM
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] Custom exception page

Override WebApplication#getDefaultRequestCycleFactory and provide the
factory to create your custom request cycle. For instance:

public class MyApplication extends WebApplication implements
IRequestCycleFactory {

protected IRequestCycleFactory getDefaultRequestCycleFactory() {
return this;
}

public RequestCycle newRequestCycle(Session session, Request
request,
Response response) {
return new MyRequestCycle(session, request, response);
}
...

where you let your application class be the factory.

Eelco


On 1/24/07, Apaar Trivedi [EMAIL PROTECTED] wrote:
 Hi all, I am trying to make a custom exception page.

 I have created a class which overrides the onRuntimeException method
in
 RequestCycle and wicket does not seem to be using.  Do I need to tell
it
 to use this class, somehow?  Is there anything else I can do?
Basically
 I need a custom error page which can display the exception being
thrown.

 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.phpp=sourceforgeCID=DEVDE
V
 ___
 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.phpp=sourceforgeCID=DEVDE
V
___
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.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Custom exception page

2007-01-24 Thread Apaar Trivedi
When I do this, does my application still need to implement
IRequestCycleFactory? 

If so, how do I return my extended WebRequestCycle though I must be
implementing newWebRequestCycle?  If I sound confused on this, I
certainly am, so thanks for your patience.

What I have right now is extending WebRequestCycle and using that to
override onRuntimeException.


And in my extended application I am implementing IRequestCycleFactory.  



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Eelco
Hillenius
Sent: Wednesday, January 24, 2007 11:06 AM
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] Custom exception page

You should extend WebRequestCycle rather than RequestCycle.

Eelco

On 1/24/07, Apaar Trivedi [EMAIL PROTECTED] wrote:
 Thank you, I am working on this and making some progress.  I am having
 trouble implementing the methods for getProcessor(), newClientInfo()
and
 redirectTo() when I extend the RequestCycle.

 What should getProcessor and newClientInfo be returning?

 Thanks

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Eelco
 Hillenius
 Sent: Wednesday, January 24, 2007 10:23 AM
 To: wicket-user@lists.sourceforge.net
 Subject: Re: [Wicket-user] Custom exception page

 Override WebApplication#getDefaultRequestCycleFactory and provide the
 factory to create your custom request cycle. For instance:

 public class MyApplication extends WebApplication implements
 IRequestCycleFactory {

 protected IRequestCycleFactory getDefaultRequestCycleFactory()
{
 return this;
 }

 public RequestCycle newRequestCycle(Session session, Request
 request,
 Response response) {
 return new MyRequestCycle(session, request, response);
 }
 ...

 where you let your application class be the factory.

 Eelco


 On 1/24/07, Apaar Trivedi [EMAIL PROTECTED] wrote:
  Hi all, I am trying to make a custom exception page.
 
  I have created a class which overrides the onRuntimeException method
 in
  RequestCycle and wicket does not seem to be using.  Do I need to
tell
 it
  to use this class, somehow?  Is there anything else I can do?
 Basically
  I need a custom error page which can display the exception being
 thrown.
 
  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.phpp=sourceforgeCID=DEVDE
 V
  ___
  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.phpp=sourceforgeCID=DEVDE
 V
 ___
 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.phpp=sourceforgeCID=DEVDE
V
 ___
 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.phpp=sourceforgeCID=DEVDE
V
___
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.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user