Re: Question about IAuthorizationStrategy

2008-04-30 Thread Igor Vaynberg
how about because of the fact we cant magically intercept
instantiation before it happens without using some magic like managed
aop container or load time/compile time bytecode instrumentation

-igor


On Wed, Apr 30, 2008 at 11:35 PM, Ned Collyer <[EMAIL PROTECTED]> wrote:
>
>  Why is isInstantiationAuthorized(Class componentClass) only called after
>  instantiation?
>
>  eg,
>  isInstantiationAuthorized(component.getClass())
>
>  Been driving me crazy - u'd expect this to be called before instantiation.
>
>  I'm curious because it's probably been done for a good reason.
>  --
>  View this message in context: 
> http://www.nabble.com/Question-about-IAuthorizationStrategy-tp16993036p16993036.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]



Question about IAuthorizationStrategy

2008-04-30 Thread Ned Collyer

Why is isInstantiationAuthorized(Class componentClass) only called after
instantiation?

eg,
isInstantiationAuthorized(component.getClass())

Been driving me crazy - u'd expect this to be called before instantiation.

I'm curious because it's probably been done for a good reason.
-- 
View this message in context: 
http://www.nabble.com/Question-about-IAuthorizationStrategy-tp16993036p16993036.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: Remember last page before page expired

2008-04-30 Thread Eyal Golan
Thanks,
I did this and it's working:
if (!continueToOriginalDestination()) {
PageParameters pageParameters = new PageParameters();
pageParameters.put("pageId", "");
PortalWebPage page = new PortalWebPage(pageParameters);
setResponsePage(page);
}

the thing is, that it like magic to me.
Is this the way?
I did not do anything else ...

On Tue, Apr 29, 2008 at 11:20 PM, Johan Compagner <[EMAIL PROTECTED]>
wrote:

> See pagemap.redirectToResponsePage() and continueToXxxx method
>
> On 4/29/08, Eyal Golan <[EMAIL PROTECTED]> wrote:
> > I have a Login page that is redirected if the session is expired (for
> > example, if I shut of the server and put it on again).
> > In the Login page, I redirect to my base page:
> > PortalWebPage page = new PortalWebPage(pageParameters);
> > setResponsePage(page);
> >
> > this happens in the submit.
> >
> > my question:
> > I want to keep the last visited page (and the parameters it has) so I
> won't
> > redirect to PortalWebPage but to this last page.
> > Is it possible?
> > --
> > Eyal Golan
> > [EMAIL PROTECTED]
> >
> > Visit: http://jvdrums.sourceforge.net/
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Eyal Golan
[EMAIL PROTECTED]

Visit: http://jvdrums.sourceforge.net/


keeping parameters when reloading a page

2008-04-30 Thread Eyal Golan
Hello all,
I have a page that has a variable called configurationName (private String
configurationName;)
I set it using a DropDown component:
DropDownChoice namesSelect =
new DropDownChoice("confNames", new PropertyModel(this,
"configurationName"),
configurationNames);

The problem is that when I reload the page (press F5 for example), the field
is set back to null.
What is the best way of keeping (remembering) the field?
(is it using Parameters or something else).

thanks


-- 
Eyal Golan
[EMAIL PROTECTED]

Visit: http://jvdrums.sourceforge.net/


Listeners for hierarchical components

2008-04-30 Thread Martin Makundi
Hi!

Are there any standard listeners or interfaces for
interlinking/chaining hierarchical components?

In my recent experience if a lower-level model changes, its decendants must be
a) reloaded according to the changed parent element state
*** in general this can be lazy-loaded
(http://wicketstuff.org/wicket13/ajax/choice.1), but for listViews you
must call the removeAll to make it refresh with new elements.
b) added to AjaxRequestTarget

I think this is a generic chaining situation that might have a
standard solution in Wicket.

**
Martin

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



Re: Updating multiple PropertyModels

2008-04-30 Thread Martin Makundi
>  Would the following work for you?  It uses a combination of
>  CompoundPropertyModel and setObjectModel.
> Address address = (Address)form.getModelObject();
> someService.updateAddress(address);
> form.setModelObject(someService.getAddress());
> tgt.addComponent(form);

No. I do not have a simple form. I have multiple listchoicess and
hierarchical listviews.

**
Martin

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



Re: Updating multiple PropertyModels

2008-04-30 Thread sdmsec


Martin Makundi wrote:
> 
> Please give me an example:
> 

Would the following work for you?  It uses a combination of
CompoundPropertyModel and setObjectModel.

class Address {
public String getStreet()...
public void setStreet(String street)...
public String getCity()...
public void setCity(String city)...
}

Form form1 = new Form("form1");
form1.setOutputMarkupId(true);
form1.setModel(new CompoundPropertyModel(someService.getAddress()));
TextField street = new TextField("street");
form1.add(street);
TextField city = new TextField("city");
form1.add(city);
AjaxButton submit = new AjaxButton("submit") {
@Override
protected void onSubmit(AjaxRequestTarget tgt, Form form) {
Address address = (Address)form.getModelObject();
someService.updateAddress(address);
form.setModelObject(someService.getAddress());
tgt.addComponent(form);
};
};
form1.add(submit);
add(form1);
-- 
View this message in context: 
http://www.nabble.com/Updating-multiple-PropertyModels-tp16944966p16993026.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: My first Wicket question

2008-04-30 Thread Martin Makundi
Here is a tutorial:
http://cwiki.apache.org/WICKET/lifecycle-of-a-wicket-application.html

2008/5/1 David Chang <[EMAIL PROTECTED]>:
>
>  I just started to learn Wicket.
>
>  This question may seem naive to many people and please
>  forgive me.
>
>  a WebPage component is created for each session and
>  its data members are not shared by different sessions.
>  Correct?
>
>  Thanks!
>
>  p.s. Where can I find a useful FAQ list to answer
>  questions similar to that? Thanks!
>
>
>
>   
> 
>  Be a better friend, newshound, and
>  know-it-all with Yahoo! Mobile.  Try it now.  
> http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
>
>  -
>  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: Wiket 2.0 time frame

2008-04-30 Thread Jonathan Locke


there will be no wicket 2.0 (no breaking changes).  wicket 1.4 and 1.5 are
next.  

wicket already provides a good amount of support for statelessness in 1.3
and it seems unlikely it will provide much more than it does now.  

i personally think "stateless" web ui is nearly always a fantasy or an
architectural mistake.


bhitai wrote:
> 
> Hi all,
> First of all, I feel that this forum is great, and the technology being
> developed by the Wicket folks is simply amazing. I am trying to pitch
> Wicket to my organization that has a Spring mvc implementation in place
> (yet the web 2.0 requirements are far beyond what it can handle -  hence
> the need for re-investigation). The insistence of Spring designers on
> stateless-ness has made this idea of transitioning to a session-heavy
> framework a rather tough one. I'm therefore curious to know about the
> timeline for Wicket 2.0, which I believe will support stateless
> components? Can you guys suggest some interim strategies (mitigating
> factors) in the meanwhile? 
> 
> thanks
> jaf
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Wiket-2.0-time-frame-tp16992791p16992814.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]



My first Wicket question

2008-04-30 Thread David Chang

I just started to learn Wicket.

This question may seem naive to many people and please
forgive me.

a WebPage component is created for each session and
its data members are not shared by different sessions.
Correct?

Thanks!

p.s. Where can I find a useful FAQ list to answer
questions similar to that? Thanks!


  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

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



Re: Wiket 2.0 time frame

2008-04-30 Thread Igor Vaynberg
wicket has support for stateless components and delayed sessions
creation since 1.3. see StatelessForm and StatelessLink. stateless
components in wicket are meant to only be used when there is no
choice, eg, for parts of the application crawlable by search engines.
the main focus will always be stateful components that scale with our
programming model. i am not really sure if more stateless support is
planned for wicket 1.5/2.0, maybe others have thoughts on that.

-igor


On Wed, Apr 30, 2008 at 7:15 PM, bhitai <[EMAIL PROTECTED]> wrote:
>
>  Hi all,
>  First of all, I feel that this forum is great, and the technology being
>  developed by the Wicket folks is simply amazing. I am trying to pitch Wicket
>  to my organization that has a Spring mvc implementation in place (yet the
>  web 2.0 requirements are far beyond what it can handle -  hence the need for
>  re-investigation). The insistence of Spring designers on stateless-ness has
>  made this idea of transitioning to a session-heavy framework a rather tough
>  one. I'm therefore curious to know about the timeline for Wicket 2.0, which
>  I believe will support stateless components? Can you guys suggest some
>  interim strategies (mitigating factors) in the meanwhile?
>
>  thanks
>  jaf
>
>  --
>  View this message in context: 
> http://www.nabble.com/Wiket-2.0-time-frame-tp16992791p16992791.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]



Wiket 2.0 time frame

2008-04-30 Thread bhitai

Hi all,
First of all, I feel that this forum is great, and the technology being
developed by the Wicket folks is simply amazing. I am trying to pitch Wicket
to my organization that has a Spring mvc implementation in place (yet the
web 2.0 requirements are far beyond what it can handle -  hence the need for
re-investigation). The insistence of Spring designers on stateless-ness has
made this idea of transitioning to a session-heavy framework a rather tough
one. I'm therefore curious to know about the timeline for Wicket 2.0, which
I believe will support stateless components? Can you guys suggest some
interim strategies (mitigating factors) in the meanwhile? 

thanks
jaf

-- 
View this message in context: 
http://www.nabble.com/Wiket-2.0-time-frame-tp16992791p16992791.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: How to run some javascript some # of seconds after page is loaded

2008-04-30 Thread Matthew Young
Alright, that worked.  Thanks!

On Wed, Apr 30, 2008 at 6:13 PM, Igor Vaynberg <[EMAIL PROTECTED]>
wrote:

> window.setTimeout(function() {Effect.Fade('feedback-id');}, 7000)
>
> -igor
>
>
> On Wed, Apr 30, 2008 at 6:08 PM, Matthew Young <[EMAIL PROTECTED]> wrote:
> > I have a feedback panel on the page I want to fade way after 7 seconds.
>  I
> >  tried adding this to the page:
> >
> > private static AbstractBehavior feedbackSelfDisappear = new
> >  AbstractBehavior() {
> > private static final long serialVersionUID = 1L;
> > @Override public void renderHead(IHeaderResponse response) {
> > super.renderHead(response);
> >
> >
>  
> response.renderOnDomReadyJavascript("window.setTimeout(Effect.Fade('feedback-id'),
> >  7000)");
> > }
> > };
> >
> >
> >  But the fade happens immediately without delay.  I tried these and all
> the
> >  same:
> >
> >
> >
>  response.renderOnDomReadyJavascript("setTimeout(Effect.Fade('feedback-id'),
> >  7000)");
> >
> >
>  
> response.renderOnLoadReadyJavascript("window.setTimeout(Effect.Fade('feedback-id'),
> >  7000)");
> >
> >
>  response.renderOnLoadReadyJavascript("setTimeout(Effect.Fade('feedback-id'),
> >  7000)");
> >
> >  What's the right way to get make this happen?
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: How to run some javascript some # of seconds after page is loaded

2008-04-30 Thread Igor Vaynberg
window.setTimeout(function() {Effect.Fade('feedback-id');}, 7000)

-igor


On Wed, Apr 30, 2008 at 6:08 PM, Matthew Young <[EMAIL PROTECTED]> wrote:
> I have a feedback panel on the page I want to fade way after 7 seconds.  I
>  tried adding this to the page:
>
> private static AbstractBehavior feedbackSelfDisappear = new
>  AbstractBehavior() {
> private static final long serialVersionUID = 1L;
> @Override public void renderHead(IHeaderResponse response) {
> super.renderHead(response);
>
>  
> response.renderOnDomReadyJavascript("window.setTimeout(Effect.Fade('feedback-id'),
>  7000)");
> }
> };
>
>
>  But the fade happens immediately without delay.  I tried these and all the
>  same:
>
>
>  response.renderOnDomReadyJavascript("setTimeout(Effect.Fade('feedback-id'),
>  7000)");
>
>  
> response.renderOnLoadReadyJavascript("window.setTimeout(Effect.Fade('feedback-id'),
>  7000)");
>
>  response.renderOnLoadReadyJavascript("setTimeout(Effect.Fade('feedback-id'),
>  7000)");
>
>  What's the right way to get make this happen?
>

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



How to run some javascript some # of seconds after page is loaded

2008-04-30 Thread Matthew Young
I have a feedback panel on the page I want to fade way after 7 seconds.  I
tried adding this to the page:

private static AbstractBehavior feedbackSelfDisappear = new
AbstractBehavior() {
private static final long serialVersionUID = 1L;
@Override public void renderHead(IHeaderResponse response) {
super.renderHead(response);

response.renderOnDomReadyJavascript("window.setTimeout(Effect.Fade('feedback-id'),
7000)");
}
};


But the fade happens immediately without delay.  I tried these and all the
same:


response.renderOnDomReadyJavascript("setTimeout(Effect.Fade('feedback-id'),
7000)");

response.renderOnLoadReadyJavascript("window.setTimeout(Effect.Fade('feedback-id'),
7000)");

response.renderOnLoadReadyJavascript("setTimeout(Effect.Fade('feedback-id'),
7000)");

What's the right way to get make this happen?


RE: AJAX fails with error failure code 0x80040111

2008-04-30 Thread Michael Mehrle
I'm also getting 'busy channel - postponing' when I keep clicking on the save 
button.

Anybody? Have no idea how to fix this... The same panel worked just fine 30 
minutes ago, have not added any new code and it suddenly started happening. 

Michael

-Original Message-
From: Michael Mehrle [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 30, 2008 4:54 PM
To: users@wicket.apache.org
Subject: RE: AJAX fails with error failure code 0x80040111

More info: after a minute or so I see this exception in the console:

[DEBUG LoadAdDataInterceptor] Loaded AdData:[EMAIL PROTECTED] 
[ERROR RequestCycle] After 1 minute the Pagemap null is still locked by: 
Thread[btpool0-1,5,main], giving up trying to get the page for path: 
6:FooTabbedPanel:panel:createFooForm:recurringFooLink 
org.apache.wicket.WicketRuntimeException: After 1 minute the Pagemap null is 
still locked by: Thread[btpool0-1,5,main], giving up trying to get the page for 
path: 6:FooTabbedPanel:panel:createFooForm:recurringFooLink
at org.apache.wicket.Session.getPage(Session.java:740)
at 
org.apache.wicket.request.AbstractRequestCycleProcessor.resolveRenderedPage(AbstractRequestCycleProcessor.java:448)
at 
org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:139)
at org.apache.wicket.RequestCycle.step(RequestCycle.java:1224)
at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1331)
at org.apache.wicket.RequestCycle.request(RequestCycle.java:493)
at 
org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:363)
at 
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:194)
at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
at 
com.bar.common.filter.InterceptorFilter.doFilter(InterceptorFilter.java:60)
at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
at 
com.bar.common.filter.RequestInfoGatheringFilter.doFilter(RequestInfoGatheringFilter.java:33)
at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
at 
org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)
at 
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75)
at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
at 
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
at 
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at 
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at 
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
at 
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211)
at 
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
at 
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
at org.mortbay.jetty.Server.handle(Server.java:313)
at 
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:506)
at 
org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:830)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
at 
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:396)
at 
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)

-Original Message-
From: Michael Mehrle [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 30, 2008 4:40 PM
To: users@wicket.apache.org
Subject: AJAX fails with error failure code 0x80040111

I've got a modal with various AJAX components inside a form. I'm suddenly start 
getting this error, when pressing the save button:

ERROR: 
Exception evaluating AJAX status: [Exception... "Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIXMLHttpRequest.status]"  nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)"  location: "JS frame :: http://localhost:8000/app/resources/org.apache.wicket.ajax.WicketAjaxReference/wicket-ajax.js :: anonymous :: line 905"  data: no]
ERROR: Received Ajax response with code: unavailable
INFO: Invoking post-call handler(s)...

Also, the Ajax debug window is accessible again after pressing the save button, 
so the 'modality' of the modal has been removed. However, it still shows on the 
screen and the remainder of the page is dimmed out.

Any ideas? 

Michael


-
To unsubscribe, e-mail: [EM

RE: AJAX fails with error failure code 0x80040111

2008-04-30 Thread Michael Mehrle
More info: after a minute or so I see this exception in the console:

[DEBUG LoadAdDataInterceptor] Loaded AdData:[EMAIL PROTECTED] 
[ERROR RequestCycle] After 1 minute the Pagemap null is still locked by: 
Thread[btpool0-1,5,main], giving up trying to get the page for path: 
6:FooTabbedPanel:panel:createFooForm:recurringFooLink 
org.apache.wicket.WicketRuntimeException: After 1 minute the Pagemap null is 
still locked by: Thread[btpool0-1,5,main], giving up trying to get the page for 
path: 6:FooTabbedPanel:panel:createFooForm:recurringFooLink
at org.apache.wicket.Session.getPage(Session.java:740)
at 
org.apache.wicket.request.AbstractRequestCycleProcessor.resolveRenderedPage(AbstractRequestCycleProcessor.java:448)
at 
org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:139)
at org.apache.wicket.RequestCycle.step(RequestCycle.java:1224)
at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1331)
at org.apache.wicket.RequestCycle.request(RequestCycle.java:493)
at 
org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:363)
at 
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:194)
at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
at 
com.bar.common.filter.InterceptorFilter.doFilter(InterceptorFilter.java:60)
at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
at 
com.bar.common.filter.RequestInfoGatheringFilter.doFilter(RequestInfoGatheringFilter.java:33)
at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
at 
org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)
at 
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75)
at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
at 
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
at 
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at 
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at 
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
at 
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211)
at 
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
at 
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
at org.mortbay.jetty.Server.handle(Server.java:313)
at 
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:506)
at 
org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:830)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
at 
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:396)
at 
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)

-Original Message-
From: Michael Mehrle [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 30, 2008 4:40 PM
To: users@wicket.apache.org
Subject: AJAX fails with error failure code 0x80040111

I've got a modal with various AJAX components inside a form. I'm suddenly start 
getting this error, when pressing the save button:

ERROR: 
Exception evaluating AJAX status: [Exception... "Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIXMLHttpRequest.status]"  nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)"  location: "JS frame :: http://localhost:8000/app/resources/org.apache.wicket.ajax.WicketAjaxReference/wicket-ajax.js :: anonymous :: line 905"  data: no]
ERROR: Received Ajax response with code: unavailable
INFO: Invoking post-call handler(s)...

Also, the Ajax debug window is accessible again after pressing the save button, 
so the 'modality' of the modal has been removed. However, it still shows on the 
screen and the remainder of the page is dimmed out.

Any ideas? 

Michael


-
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]



AJAX fails with error failure code 0x80040111

2008-04-30 Thread Michael Mehrle
I've got a modal with various AJAX components inside a form. I'm suddenly start 
getting this error, when pressing the save button:

ERROR: 
Exception evaluating AJAX status: [Exception... "Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIXMLHttpRequest.status]"  nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)"  location: "JS frame :: http://localhost:8000/app/resources/org.apache.wicket.ajax.WicketAjaxReference/wicket-ajax.js :: anonymous :: line 905"  data: no]
ERROR: Received Ajax response with code: unavailable
INFO: Invoking post-call handler(s)...

Also, the Ajax debug window is accessible again after pressing the save button, 
so the 'modality' of the modal has been removed. However, it still shows on the 
screen and the remainder of the page is dimmed out.

Any ideas? 

Michael


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



Re: Gzipping of pages (HTML output, not only resources)

2008-04-30 Thread Johan Compagner
Use a custom BufferdResponse. Thats in my eyes the way to go. If we
need to fix some api for that please let me know

On 4/30/08, Stefan Simik <[EMAIL PROTECTED]> wrote:
>
> Hi Igor,
>
> thanx for response. I looked at the IResponseFilter class and thoght about ,
> how could I implement
> the gzipping of  the "text/html"  responses.
>
>
> But I have found potential 2 problems, which I am not sure, how to solve
> from the context of
> IResponseFilter#filter(...) method only:
>
> 1. Only text/html responses should be filtered. How to filter only these
> types of responses ?
> Or how to detect the mime-type of response from the context of
> IResponseFilter#filter(...)  method ?
>
> 2. When the response-content will be gzipped, new header "Content-Encoding:
> gzip" should be set.
> How it is possible to add new header to existing response from context
> of IResponseFilter#filter(...)  method ?
>
>
> At first look, it seems for me, that the IResponseFilter#filter(..)  method
> was intended for changing
> text content of the response only, and it is not very suitable for complex
> modifying of Response.
>
> I am very interested in this and I would like to create the bullet-proof
> solution, how to gzip
> HTML responses from wicket.
>
> Thx
> Stefan
>
>
>
>
>
>
> igor.vaynberg wrote:
> >
> > there is also IResponseFilter
> >
> > -igor
> >
> >
> > On Thu, Apr 24, 2008 at 6:08 AM, Stefan Simik <[EMAIL PROTECTED]>
> > wrote:
> >>
> >>
> >>
> >>  Stefan Simik wrote:
> >>  >
> >>  > 1. IDEA
> >>  > 
> >>  >   a) totally disable gzip in wicket --
> >>  > getResourceSettings().setDisableGZipCompression(true);
> >>  >   b) use Gzip filter BEFORE wicket-filter. This Gzip filter will
> >> compress
> >>  > all the communication -
> >>  >   HTML, resources  . Images and some mime-types should be
> >> omitted.
> >>  >
> >>
> >>  Probably, there is one drawback in IDEA 1.
> >>  Wicket already caches the processed(gzipped) result, what is very
> >> useful.
> >>  This functionality should be moved to the Gzip filter, which can be a
> >> lot of
> >>  effort.
> >>
> >>  --
> >>  View this message in context:
> >>
> http://www.nabble.com/Gzipping-of-pages-%28HTML-output%2C-not-only-resources%29-tp16849900p16850433.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]
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Gzipping-of-pages-%28HTML-output%2C-not-only-resources%29-tp16849900p16991360.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: ListView is not gettting updated

2008-04-30 Thread Johan Compagner
And thats logical, your code looks weird.
You cant set the model of a radio also on the group.
Then the submit will update the selected in the radio groups model.
Butthen the radio model is also uopdated. So that one is still
selected..

On 4/30/08, Patel, Sanjay <[EMAIL PROTECTED]> wrote:
> I already tried it but it is not working.
>
> I have to do following (which I don't want) to update the listView after
> I submit the form.
>
> listView.setModel(new Model((Serializable) updatedList));
>
> -Original Message-
> From: Igor Vaynberg [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, April 30, 2008 2:02 PM
> To: users@wicket.apache.org
> Subject: Re: ListView is not gettting updated
>
> listview.setreuseitems(true), read listview's javadoc
>
> -igor
>
> On Wed, Apr 30, 2008 at 10:59 AM, Patel, Sanjay <[EMAIL PROTECTED]>
> wrote:
> >
> >  Hi,
> >
> >  I am using ListView and and each item in the listview is RadioGroup.
> > Now  the problem is, If radio1 is selected and I select radio2 and
> > submit  the form the selection goes back to radio1. What is wrong with
>
> > following  code?
> >
> >  final ListView listView = new ListView("abc", myList) {
> > protected final void populateItem(final
> > ListItem
> >  item) {
> > final MyObject object = (MyObject)
> > item.getModelObject();
> > final RadioGroup radioGroup = new
> > RadioGroup("radio-group", new Model());
> >
> > final Model radioModel1 = new
> > Model(myObject1);
> > final Model radioModel2 = new
> > Model(myObject2);
> > final Model radioModel3 = new
> > Model(myObject3);
> >
> > radioGroup.add(new Radio("radio1",
> > radioModel1));
> > radioGroup.add(new Radio("radio2",
> > radioModel2));
> > radioGroup.add(new Radio("radio2",
> > radioModel3));
> >
> > // set default value for radio.
> > if (object.isTrue() != null &&
> >  object.isTrue()) {
> >
> >  radioGroup.setModel(radioModel1);
> > } else if (object.isFalse() != null &&
> >  object.isFalse()) {
> >
> >  radioGroup.setModel(radioModel2);
> > } else {
> >
> >  radioGroup.setModel(radioModel3);
> > }
> > item.add(radioGroup);
> > }
> > };
> > form.add(listView);
> >
> >
> >  -
> >  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: Disabling dynamic ajax header contribution

2008-04-30 Thread Johan Compagner
The question i have is, are you also constantly repainting all or many
components.

I dont know if we could enhance this, maybe we could check a state
that if it is rendered once we dont have to do it any more... But dont
know the problems that could arise then.

On 4/30/08, legol <[EMAIL PROTECTED]> wrote:
>
> Thanks for reply,
> It turned out that it wasn't main reason why my application works so slow,
> but it's good to know why it is not possible.
>
> Thx,
> pzdr
> legol
>
>
> igor.vaynberg wrote:
> >
> > no, currently it is not possible. the reason we do not do it is that
> > you can use component replacement to add a new component into the
> > hierarchy which will need to add its own contributions which are not
> > yet on the client.
> >
> > -igor
> >
> >
> > On Wed, Apr 30, 2008 at 7:08 AM, legol <[EMAIL PROTECTED]> wrote:
> >>
> >>  Hi all!
> >>  I have problem with multiple ajax header contribution. Is it possible to
> >>  turn it off and add static reference to ajax js in head? I have pages
> >> where
> >>  I always use ajax so it could be added on start. On my page i have so
> >> much
> >>  ajax components that ajax response grows very large because of these
> >>  contributions (even half of generated response are these contibutions).
> >>  Beacause of that my application works very slow. If there is any
> >> possibility
> >>  to turn it off pls help.
> >>
> >>  thx
> >>  pzdr
> >>  legol
> >>  --
> >>  View this message in context:
> >>
> http://www.nabble.com/Disabling-dynamic-ajax-header-contribution-tp16983332p16983332.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]
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Disabling-dynamic-ajax-header-contribution-tp16983332p16989770.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: [Wicket 1.3.3] Possible wicket:enclosure regression.

2008-04-30 Thread Igor Vaynberg
i think our bamboo instance might be having problems. so yes you can
try there, if that snapshot is too old you can try checking out from
source and mvn installing it

-igor


On Wed, Apr 30, 2008 at 1:50 PM, Alex Jacoby <[EMAIL PROTECTED]> wrote:
> Thanks.
>
>  Is this the right place to download 1.3.4?
>
>
> http://wicketstuff.org/maven/repository/org/apache/wicket/wicket/1.3-SNAPSHOT/
>
>  Cheers,
>  Alex
>
>
>
>  On Apr 30, 2008, at 4:45 PM, Igor Vaynberg wrote:
>
>
> > also fixed for 1.3.4...
> >
> > -igor
> >
> > On Wed, Apr 30, 2008 at 1:37 PM, Alex Jacoby <[EMAIL PROTECTED]> wrote:
> >
> > > Forget it, I found it in JIRA - says it's fixed for 1.4.  Now I just
> need to
> > > find where to download it :)
> > >
> > > https://issues.apache.org/jira/browse/WICKET-1536
> > >
> > > Alex
> > >
> > >
> > >
> > > On Apr 30, 2008, at 4:32 PM, Alex Jacoby wrote:
> > >
> > >
> > >
> > > >
> > > > I just upgraded to 1.3.3 today and I'm having enclosure problems too
> -- it
> > > > seems like their state isn't updated after the page is constructed.
> Is
> > > >
> > > this
> > >
> > > > fixed in trunk?
> > > >
> > > > Searched the list but haven't found anything yet.
> > > >
> > > > Thanks,
> > > > Alex
> > > >
> > > >
> > > > Fabio Fioretti wrote:
> > > >
> > > >
> > > > >
> > > > > Hi All,
> > > > >
> > > > > I'm experiencing a possible regression for wicket:enclosure in
> Wicket
> > > > > 1.3.3 (maybe related to the couple of patches that involved
> enclosures
> > > > > for 1.3.3). It thought of a regression because the following code
> > > > > works just fine in 1.3.1, even if I haven't tested it in 1.3.2.
> > > > >
> > > > > Basically, I have a RadioGroup with a couple of options. When the
> user
> > > > > selects the second option, a text field and link (wrapped in an
> > > > > enclosure) should appear next to the option. If she/he selects the
> > > > > first option, they should disappear again. Their visibility
> management
> > > > > is based on the enclosure.
> > > > > [snip]
> > > > >
> > > > >
> > > > >
> > > >
> > > > --
> > > > View this message in context:
> > > >
> > >
> http://www.nabble.com/-Wicket-1.3.3--Possible-wicket%3Aenclosure-regression.-tp16480916p16991013.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]
> > >
> > >
> > >
> >
> > -
> > 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: submit form to bookmarkable page

2008-04-30 Thread Catalin Marinas

I got something working with the example code below (Hello.class is
bookmarkable and mounted). What we would need in Wicket is a
BookmarkableForm class:

StatelessForm form = new StatelessForm("form") {
@Override
protected void onComponentTag(final ComponentTag tag) {
super.onComponentTag(tag);
tag.put("action", urlFor(Hello.class, new 
PageParameters()));
}
@Override
protected void onComponentTagBody(final MarkupStream 
markupStream,

final ComponentTag openTag) {
super.renderComponentTagBody(markupStream, 
openTag);
}
};

I'm not sure that's the best way but I wanted to avoid calling
onComponentTagBody in Form which generates the hidden fields. Ideally, I
should use a WebMarkupContainer but, as you noticed, it adds the changes the
elementname with formname:elementname. Somehow, the Form class manages to
avoid this even though it inherits WebMarkupContainer but I couldn't figure
out. Does anyone now how it does this?

Thanks,

Catalin



Doug Donohoe wrote:
> 
> Obviously, if you post with "GET" method, you don't get those dialogs.   A
> post and redirect means two hits to the server where-as a GET is only one. 
> Using the GET method makes your average web page bookmarkable.
> 
> The code I used was basically this:
> 
>super.onComponentTag(tag)
>tag.put("action", urlFor(Foo.class, params);
> 
> That doesn't work.  It still submits using the 'interface' stuff -
> apparently because of hidden fields.  I tried using a WebMarkupContainer
> instead of a form, but that fails due to the ? in the URL.  Also, for some
> reason the form elements are renamed 'formname:elementname' when using a
> WebMarkupContainer.
> 
> I really like Wicket quite a bit, but this issue with forms and constant
> 'session expired' messages are my biggest sticking point.
> 
> -Doug
> 
> 
> igor.vaynberg wrote:
>> 
>> thats what stateless forms are for. after a submit you want a redirect
>> anyways so that a refresh doesnt popup that annoying post values
>> dialog.
>> 
>> overriding oncomponenttag() should work just fine, you just have to
>> make sure to call super first.
>> 
>> -igor
>> 
>> 
>> On Mon, Apr 28, 2008 at 7:08 PM, Doug Donohoe <[EMAIL PROTECTED]> wrote:
>>>
>>>  Overriding onComponentTag doesn't seem to work.  The URL that gets
>>> generated
>>>  (using urlFor) starts with a question mark which isn't included when
>>> the
>>>  form is submitted.   The only thing passed down is the form parameters,
>>>  which obviously doesn't work since the page is missing.  I'm using the
>>>  default URL encoding strategy - was saving that investigation for
>>> later.
>>>  Maybe I need to bump that up in the queue.
>>>
>>>  I'll also look at using a stateless form next (and redirecting to a
>>>  bookmarkable page so the URL is nice).
>>>
>>>  Just a general comment on this.  I basically want a form that can be
>>>  submitted at any time, regardless if a session is there or not.   This
>>> is a
>>>  common use case (e.g., google, login, search) and for all the excellent
>>>  stuff in wicket, this seems very hard to do.
>>>
>>>  Does anyone else have advice on how to do nice-looking-urls using
>>> GET-method
>>>  form posts?  In other words, if I wanted to build Google's home page in
>>>  wicket and be able to bookmark search results, how would I do it?  If
>>> anyone
>>>  has an example they can share, I would appreciate it.
>>>
>>>  Regards,
>>>
>>>  -Doug
>>>
>>>
>>>
>>>
>>>  igor.vaynberg wrote:
>>>  >
>>>  > override the form's action value in its oncomponenttag callback with
>>> a
>>>  > url to a bookmarkable page. but then you have to parse all posted
>>>  > values yourself.
>>>  >
>>>  > if you dont care about the url you can use a statelessform instead
>>> and
>>>  > probably avoid a bunch of headache.
>>>  >
>>>  > -igor
>>>  >
>>>  >
>>>  > On Sat, Apr 26, 2008 at 6:36 AM, Doug Donohoe <[EMAIL PROTECTED]>
>>> wrote:
>>>  >>
>>>  >>  Hi,
>>>  >>
>>>  >>  I'm like to submit a form using bookmarkable page style, so that
>>>  >>
>>>  >>  a) the form can always be submitted, regardless if the session is
>>>  >> expired or
>>>  >>  not (think of a Google search submission e.g.,
>>>  >>  http://www.google.com/search?q=wicket)
>>>  >>
>>>  >>  b) the form remembers PageParameters that were there when the page
>>> was
>>>  >>  generated (think of google advanced search where you change the
>>> number
>>>  >> of
>>>  >>  items per page and that is remembered in subsequent searches e.g.,
>>>  >>  http://www.google.com/search?q=wicket&num=30)
>>>  >>
>>>  >>  How do I tell the form to submit using bookmarkable format (using
>>> the
>>>  >>  assigned URL encoding strategy)?
>>>  >

mountBookmarkablePage is throwing error when using sitemesh

2008-04-30 Thread venky221

Hi All,

We are using Sitemesh2.2.1 along with wicket1.3.1 in our product.

The sitemesh JSP page contains SCRIPT and LINK tags to include styles and
functions that will determine the header and footer for the wicket pages.

When I use the URL like http://localhost.../helpDetails?topic=xyz where as
helpDetails is the page, it works fine.
But when I try using http://localhost../helpDetails/topic/xyz/, wicket
throws error for all the entries like SCRIPT and LINK tags in the sitemesh
jsp page.

We are using mountBookmarkablePage as the url stratergy.

The error message is as follows

ERROR - RequestCycle.logRuntimeException(1399) | URL fragment has unmatched
key/value pair: subtopic/display_css/style.css
java.lang.IllegalStateException: URL fragment has unmatched key/value pair:
subtopic/display_css/style.css
at
org.apache.wicket.request.target.coding.AbstractRequestTargetUrlCodingStrategy.decodeParameters(AbstractRequestTargetUrlCodingStrategy.java:174)
at
org.apache.wicket.request.target.coding.BookmarkablePageRequestTargetUrlCodingStrategy.decode(BookmarkablePageRequestTargetUrlCodingStrategy.java:76)
at
org.apache.wicket.protocol.http.request.WebRequestCodingStrategy.targetForRequest(WebRequestCodingStrategy.java:475)
at
org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:175)
at org.apache.wicket.RequestCycle.step(RequestCycle.java:1224)



ERROR - RequestCycle.logRuntimeException(1399) | URL fragment has unmatched
key/value pair: subtopic/js/jquery-1.2.3.js
java.lang.IllegalStateException: URL fragment has unmatched key/value pair:
subtopic/js/jquery-1.2.3.js
at
org.apache.wicket.request.target.coding.AbstractRequestTargetUrlCodingStrategy.decodeParameters(AbstractRequestTargetUrlCodingStrategy.java:174)
at
org.apache.wicket.request.target.coding.BookmarkablePageRequestTargetUrlCodingStrategy.decode(BookmarkablePageRequestTargetUrlCodingStrategy.java:76)
at
org.apache.wicket.protocol.http.request.WebRequestCodingStrategy.targetForRequest(WebRequestCodingStrategy.java:475)
at
org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:175)
at org.apache.wicket.RequestCycle.step(RequestCycle.java:1224)


Thanks,
Venkat.
-- 
View this message in context: 
http://www.nabble.com/mountBookmarkablePage-is-throwing-error-when-using-sitemesh-tp16992714p16992714.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]



Caching time of resources - could it be as general setting ?

2008-04-30 Thread Stefan Simik

Hi Wicketeers,

Is it possible to take CACHING TIME for resources from some settings ?

Now, this time is hardcoded in WebResource#setHeaders(...) method to 1 hour
value.
I know, wicket is great for creating complex dynamic applications, but I
there is often
no need to reload the CSS and javascript files so often.

It is not problem to override this method in subclasses and use own value,
but when I have
done it, I can tell, that it is a too much effort of subclassing, because
many important wicket 
components are subclasses of the WebResource class and even more components
work with these subclasses which must be changed too, so there is whole
dependency tree, which has to be changed, because of caching only one
generic setting value.


For example - if somebody want to have all javascripts and css files cached
for a time of 1 week,
because they are not changed and there is no need to download them more
often, it is needed 
to create custom subclasses for:
RESOURCES
  - custom PackageResource (which extends WebResource)
  - then dependent JavascriptPackageResource, 
  - dependent CompressedPackageResource
RESOURCE REFERENCES
  - then custom ResourceReference (which will work new custom
PackageResource)
  - then dependent JavascriptResourceReference
  - dependent CompressedResourceReference

...
I think, it would be very good to separate this as general setting for
caching resources
in some wicket settings, where it can be overriden without so much
subclassing effort, which
bubble up the hierarchy now.

Stefan

-- 
View this message in context: 
http://www.nabble.com/Caching-time-of-resources---could-it-be-as-general-setting---tp16992127p16992127.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: Gzipping of pages (HTML output, not only resources)

2008-04-30 Thread Stefan Simik

Hi Igor,

thanx for response. I looked at the IResponseFilter class and thoght about ,
how could I implement
the gzipping of  the "text/html"  responses.


But I have found potential 2 problems, which I am not sure, how to solve
from the context of
IResponseFilter#filter(...) method only:

1. Only text/html responses should be filtered. How to filter only these
types of responses ? 
Or how to detect the mime-type of response from the context of
IResponseFilter#filter(...)  method ?

2. When the response-content will be gzipped, new header "Content-Encoding:
gzip" should be set.
How it is possible to add new header to existing response from context
of IResponseFilter#filter(...)  method ?


At first look, it seems for me, that the IResponseFilter#filter(..)  method
was intended for changing
text content of the response only, and it is not very suitable for complex
modifying of Response.

I am very interested in this and I would like to create the bullet-proof
solution, how to gzip
HTML responses from wicket.

Thx
Stefan






igor.vaynberg wrote:
> 
> there is also IResponseFilter
> 
> -igor
> 
> 
> On Thu, Apr 24, 2008 at 6:08 AM, Stefan Simik <[EMAIL PROTECTED]>
> wrote:
>>
>>
>>
>>  Stefan Simik wrote:
>>  >
>>  > 1. IDEA
>>  > 
>>  >   a) totally disable gzip in wicket --
>>  > getResourceSettings().setDisableGZipCompression(true);
>>  >   b) use Gzip filter BEFORE wicket-filter. This Gzip filter will
>> compress
>>  > all the communication -
>>  >   HTML, resources  . Images and some mime-types should be
>> omitted.
>>  >
>>
>>  Probably, there is one drawback in IDEA 1.
>>  Wicket already caches the processed(gzipped) result, what is very
>> useful.
>>  This functionality should be moved to the Gzip filter, which can be a
>> lot of
>>  effort.
>>
>>  --
>>  View this message in context:
>> http://www.nabble.com/Gzipping-of-pages-%28HTML-output%2C-not-only-resources%29-tp16849900p16850433.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]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Gzipping-of-pages-%28HTML-output%2C-not-only-resources%29-tp16849900p16991360.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: [Wicket 1.3.3] Possible wicket:enclosure regression.

2008-04-30 Thread Alex Jacoby

Thanks.

Is this the right place to download 1.3.4?

http://wicketstuff.org/maven/repository/org/apache/wicket/wicket/1.3-SNAPSHOT/

Cheers,
Alex

On Apr 30, 2008, at 4:45 PM, Igor Vaynberg wrote:


also fixed for 1.3.4...

-igor

On Wed, Apr 30, 2008 at 1:37 PM, Alex Jacoby <[EMAIL PROTECTED]>  
wrote:
Forget it, I found it in JIRA - says it's fixed for 1.4.  Now I  
just need to

find where to download it :)

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

Alex



On Apr 30, 2008, at 4:32 PM, Alex Jacoby wrote:




I just upgraded to 1.3.3 today and I'm having enclosure problems  
too -- it
seems like their state isn't updated after the page is  
constructed.  Is

this

fixed in trunk?

Searched the list but haven't found anything yet.

Thanks,
Alex


Fabio Fioretti wrote:



Hi All,

I'm experiencing a possible regression for wicket:enclosure in  
Wicket
1.3.3 (maybe related to the couple of patches that involved  
enclosures

for 1.3.3). It thought of a regression because the following code
works just fine in 1.3.1, even if I haven't tested it in 1.3.2.

Basically, I have a RadioGroup with a couple of options. When the  
user

selects the second option, a text field and link (wrapped in an
enclosure) should appear next to the option. If she/he selects the
first option, they should disappear again. Their visibility  
management

is based on the enclosure.
[snip]




--
View this message in context:

http://www.nabble.com/-Wicket-1.3.3--Possible-wicket%3Aenclosure-regression.-tp16480916p16991013.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]




-
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: [Wicket 1.3.3] Possible wicket:enclosure regression.

2008-04-30 Thread Igor Vaynberg
also fixed for 1.3.4...

-igor

On Wed, Apr 30, 2008 at 1:37 PM, Alex Jacoby <[EMAIL PROTECTED]> wrote:
> Forget it, I found it in JIRA - says it's fixed for 1.4.  Now I just need to
> find where to download it :)
>
>  https://issues.apache.org/jira/browse/WICKET-1536
>
>  Alex
>
>
>
>  On Apr 30, 2008, at 4:32 PM, Alex Jacoby wrote:
>
>
> >
> > I just upgraded to 1.3.3 today and I'm having enclosure problems too -- it
> > seems like their state isn't updated after the page is constructed.  Is
> this
> > fixed in trunk?
> >
> > Searched the list but haven't found anything yet.
> >
> > Thanks,
> > Alex
> >
> >
> > Fabio Fioretti wrote:
> >
> > >
> > > Hi All,
> > >
> > > I'm experiencing a possible regression for wicket:enclosure in Wicket
> > > 1.3.3 (maybe related to the couple of patches that involved enclosures
> > > for 1.3.3). It thought of a regression because the following code
> > > works just fine in 1.3.1, even if I haven't tested it in 1.3.2.
> > >
> > > Basically, I have a RadioGroup with a couple of options. When the user
> > > selects the second option, a text field and link (wrapped in an
> > > enclosure) should appear next to the option. If she/he selects the
> > > first option, they should disappear again. Their visibility management
> > > is based on the enclosure.
> > > [snip]
> > >
> > >
> >
> > --
> > View this message in context:
> http://www.nabble.com/-Wicket-1.3.3--Possible-wicket%3Aenclosure-regression.-tp16480916p16991013.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]
>
>

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



Re: [Wicket 1.3.3] Possible wicket:enclosure regression.

2008-04-30 Thread Alex Jacoby
Forget it, I found it in JIRA - says it's fixed for 1.4.  Now I just  
need to find where to download it :)


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

Alex

On Apr 30, 2008, at 4:32 PM, Alex Jacoby wrote:



I just upgraded to 1.3.3 today and I'm having enclosure problems too  
-- it
seems like their state isn't updated after the page is constructed.   
Is this

fixed in trunk?

Searched the list but haven't found anything yet.

Thanks,
Alex


Fabio Fioretti wrote:


Hi All,

I'm experiencing a possible regression for wicket:enclosure in Wicket
1.3.3 (maybe related to the couple of patches that involved  
enclosures

for 1.3.3). It thought of a regression because the following code
works just fine in 1.3.1, even if I haven't tested it in 1.3.2.

Basically, I have a RadioGroup with a couple of options. When the  
user

selects the second option, a text field and link (wrapped in an
enclosure) should appear next to the option. If she/he selects the
first option, they should disappear again. Their visibility  
management

is based on the enclosure.
[snip]



--
View this message in context: 
http://www.nabble.com/-Wicket-1.3.3--Possible-wicket%3Aenclosure-regression.-tp16480916p16991013.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: Gzipping of pages (HTML output, not only resources)

2008-04-30 Thread Stefan Simik

Hi Artur, 

I looked at the uploads, but cannot find out, what exactly is the
problematic part with closing streams.

I find one stream-closing code in FileUpload - #closeStreams()  method.
This method closes all possibly opened InputStream-s for uploaded file.
Here, I don't see
any problem in gzipping HTML responses.
Could you please more elaborate on this - where the problem occurs ? I would
like to make
the HTML gzipping a bullet-proof solution ;)

I tried to work with basic upload form and it worked fine for me.

Stefan



Artur W. wrote:
> 
> This filter works most of the time for me. The only problem is when I want
> to upload a file.
> I use UploadWebRequest and UploadProgressBar. AFAIK FileUpload closes the
> stream and because of it the filter throws exception.
> 
> Artur
> 

-- 
View this message in context: 
http://www.nabble.com/Gzipping-of-pages-%28HTML-output%2C-not-only-resources%29-tp16849900p16991091.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: [Wicket 1.3.3] Possible wicket:enclosure regression.

2008-04-30 Thread Alex Jacoby

I just upgraded to 1.3.3 today and I'm having enclosure problems too -- it
seems like their state isn't updated after the page is constructed.  Is this
fixed in trunk?

Searched the list but haven't found anything yet.

Thanks,
Alex


Fabio Fioretti wrote:
> 
> Hi All,
> 
> I'm experiencing a possible regression for wicket:enclosure in Wicket
> 1.3.3 (maybe related to the couple of patches that involved enclosures
> for 1.3.3). It thought of a regression because the following code
> works just fine in 1.3.1, even if I haven't tested it in 1.3.2.
> 
> Basically, I have a RadioGroup with a couple of options. When the user
> selects the second option, a text field and link (wrapped in an
> enclosure) should appear next to the option. If she/he selects the
> first option, they should disappear again. Their visibility management
> is based on the enclosure.
> [snip]
> 

-- 
View this message in context: 
http://www.nabble.com/-Wicket-1.3.3--Possible-wicket%3Aenclosure-regression.-tp16480916p16991013.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: StatelessForm doesn't work with GET method

2008-04-30 Thread Doug Donohoe

I created a JIRA issue:

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


Doug Donohoe wrote:
> 
> As part of my effort to submit a form to a bookmarkable page, I discovered
> this bug when trying to uses a stateless form with the GET method of a
> form.  I've documented my saga at 
> 
> http://wiki.donohoedigital.com/wiki/Wiki.jsp?page=Bookmarkable%20Form%20Submission%20in%20Wicket
> 
> The original thread was
> http://www.nabble.com/submit-form-to-bookmarkable-page-to16912974.html
> 
> Post method seems to work fine.  The error message is:
> 
> WicketMessage: Internal error parsing wicket:interface =
> %3A1%3Aform%3A%3AIFormSubmitListener%3A%3A
> 
> Root cause:
> 
> org.apache.wicket.WicketRuntimeException: Internal error parsing
> wicket:interface = %3A1%3Aform%3A%3AIFormSubmitListener%3A%3A
> at
> org.apache.wicket.protocol.http.request.WebRequestCodingStrategy.addInterfaceParameters(WebRequestCodingStrategy.java:583)
> at
> org.apache.wicket.protocol.http.request.WebRequestCodingStrategy.addInterfaceParameters(WebRequestCodingStrategy.java:554)
> at
> org.apache.wicket.protocol.http.request.WebRequestCodingStrategy.decode(WebRequestCodingStrategy.java:199)
> at org.apache.wicket.Request.getRequestParameters(Request.java:171)
> at org.apache.wicket.RequestCycle.step(RequestCycle.java:1224)
> at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1331)
> at org.apache.wicket.RequestCycle.request(RequestCycle.java:493)
> at
> org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:363)
> at
> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:194)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
> at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
> at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
> at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
> at java.lang.Thread.run(Thread.java:613)
> 
> 

-- 
View this message in context: 
http://www.nabble.com/StatelessForm-doesn%27t-work-with-GET-method-tp16983393p16990943.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: getter called multiple times on PropertyModel with ListView

2008-04-30 Thread Martijn Dashorst
Read the models document on the wiki. It has helped many others.

/shameless plug: chapter 4 of WIA also explains detachable models in detail.

Martijn

On 4/30/08, Andrew Broderick <[EMAIL PROTECTED]> wrote:
> Thanks. It does work, and the load() method only gets called once when the 
> view renders. However, I am still confused as to why it works. In other 
> words, why LoadableDetachableModel only gets called once, whereas 
> PropertyModel gets called multiple times on rendering the ListView. For 
> instance, the JavaDocs for this class say: " LoadableDetachableModel holds a 
> temporary, transient model object". If anything, it seems like that would get 
> called MORE than PropertyModel, not less, in case the "temporary, transient 
> model object" gets changed. Just struggling to really understand how models 
> work, because they seem so key to understanding Wicket.
>
>  Thanks
>
>
>
>  -Original Message-
>  From: Hoover, William [mailto:[EMAIL PROTECTED]
>  Sent: Tuesday, April 29, 2008 3:09 PM
>  To: users@wicket.apache.org
>  Subject: RE: getter called multiple times on PropertyModel with ListView
>
>  // It solves your problem because the call to load will be made each
>  time your view renders
>  final LoadableDetachableModel articlesLoadableModel = new
>  LoadableDetachableModel() {
> private static final long serialVersionUID = 1L;
>
> /**
>  * [EMAIL PROTECTED]
>  */
> @Override
> protected final Object load() {
> return new PropertyModel(YourPage.this, "articles");
> }
>  };
>  final ListView newsDetails = new ListView("newsDetails",
>  articlesLoadableModel){
> private static final long serialVersionUID = 1L;
>
> /**
>  * [EMAIL PROTECTED]
>  */
> @Override
>   protected final void populateItem(final ListItem item) {
> ...
>   }
>  };
>  add(newsDetails);
>
>  -Original Message-
>  From: Andrew Broderick [mailto:[EMAIL PROTECTED]
>  Sent: Tuesday, April 29, 2008 2:19 PM
>  To: 'users@wicket.apache.org'
>  Subject: RE: getter called multiple times on PropertyModel with ListView
>
>  Cannot instantiate LoadableDetachableModel directly .. it is abstract.
>  Besides, how does it help solve the problem?
>
>  Thanks
>
>  -Original Message-
>  From: Igor Vaynberg [mailto:[EMAIL PROTECTED]
>  Sent: Tuesday, April 29, 2008 12:49 PM
>  To: users@wicket.apache.org
>  Subject: Re: getter called multiple times on PropertyModel with ListView
>
>   ListView newsDetails = new ListView("newsDetails", new
>  LoadableDetachableModel(new PropertyModel(this, "articles")))
>
>  -igor
>
>  On Tue, Apr 29, 2008 at 10:46 AM, Andrew Broderick
>  <[EMAIL PROTECTED]> wrote:
>  > Hi,
>  >
>  >  I have a page where I am using a PropertyModel to populate a
>  ListView, so it will change when the underlying contents change:
>  >
>  > ListView newsDetails = new ListView("newsDetails", new
>  PropertyModel(this, "articles"))
>  > {
>  >   protected void populateItem(ListItem item)
>  >   {
>  >
>  > final NewsDetails nd = (NewsDetails)
>  item.getModelObject();
>  > item.add(new Label("articleDate",
>  nd.getArticleDate()));
>  > item.add(new Label("articleTime",
>  nd.getArticleTime()));
>  > item.add(new Label("newsShortDesc",
>  nd.getNewsShortDesc()));
>  > newsUrlLink.add(new Label("newsTitle",
>  nd.getNewsTitle()));
>  > item.add(newsUrlLink);
>  >   }
>  > };
>  > add(newsDetails);
>  >
>  >  The page class, obviously, has a getter named getArticles():
>  >
>  >
>  >   public List getArticles()
>  >   {
>  > 
>  >  }
>  >
>  >  However, this seems to get called multiple times when the listview is
>  being populated, not just once at the beginning of each time the page is
>  displayer. Why is this happening? It results in many more hits to the
>  database than are necessary.
>  >
>  >  Thanks,
>  >
>  >  Andrew B
>  >
>  >  ___
>  >
>  >  The  information in this email or in any file attached  hereto is
>  > intended only for the personal and confiden-  tial  use  of  the
>  > individual or entity to which it is  addressed and may contain
>  > information that is  propri-  etary  and  confidential.  If you are
>  > not the intended  recipient of this message you are hereby notified
>  > that  any  review, dissemination, distribution or copying of  this
>  > message is strictly prohibited.  This  communica-  tion  is  for
>  > information purposes only and should not  be regarded as an offer to
>  > sell or as  a  solicitation  of an offer to buy any financial product.
>
>  > Email trans-  mission cannot be guaranteed to be  secure  or  error-
>  > free. P6

RE: getter called multiple times on PropertyModel with ListView

2008-04-30 Thread Andrew Broderick
Thanks. It does work, and the load() method only gets called once when the view 
renders. However, I am still confused as to why it works. In other words, why 
LoadableDetachableModel only gets called once, whereas PropertyModel gets 
called multiple times on rendering the ListView. For instance, the JavaDocs for 
this class say: " LoadableDetachableModel holds a temporary, transient model 
object". If anything, it seems like that would get called MORE than 
PropertyModel, not less, in case the "temporary, transient model object" gets 
changed. Just struggling to really understand how models work, because they 
seem so key to understanding Wicket.

Thanks


-Original Message-
From: Hoover, William [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 29, 2008 3:09 PM
To: users@wicket.apache.org
Subject: RE: getter called multiple times on PropertyModel with ListView

// It solves your problem because the call to load will be made each
time your view renders
final LoadableDetachableModel articlesLoadableModel = new
LoadableDetachableModel() {
private static final long serialVersionUID = 1L;

/**
 * [EMAIL PROTECTED]
 */
@Override
protected final Object load() {
return new PropertyModel(YourPage.this, "articles");
}
};
final ListView newsDetails = new ListView("newsDetails",
articlesLoadableModel){
private static final long serialVersionUID = 1L;

/**
 * [EMAIL PROTECTED]
 */
@Override
  protected final void populateItem(final ListItem item) {
...
  }
};
add(newsDetails);

-Original Message-
From: Andrew Broderick [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 29, 2008 2:19 PM
To: 'users@wicket.apache.org'
Subject: RE: getter called multiple times on PropertyModel with ListView

Cannot instantiate LoadableDetachableModel directly .. it is abstract.
Besides, how does it help solve the problem?

Thanks

-Original Message-
From: Igor Vaynberg [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 29, 2008 12:49 PM
To: users@wicket.apache.org
Subject: Re: getter called multiple times on PropertyModel with ListView

 ListView newsDetails = new ListView("newsDetails", new
LoadableDetachableModel(new PropertyModel(this, "articles")))

-igor

On Tue, Apr 29, 2008 at 10:46 AM, Andrew Broderick
<[EMAIL PROTECTED]> wrote:
> Hi,
>
>  I have a page where I am using a PropertyModel to populate a
ListView, so it will change when the underlying contents change:
>
> ListView newsDetails = new ListView("newsDetails", new
PropertyModel(this, "articles"))
> {
>   protected void populateItem(ListItem item)
>   {
>
> final NewsDetails nd = (NewsDetails)
item.getModelObject();
> item.add(new Label("articleDate",
nd.getArticleDate()));
> item.add(new Label("articleTime",
nd.getArticleTime()));
> item.add(new Label("newsShortDesc",
nd.getNewsShortDesc()));
> newsUrlLink.add(new Label("newsTitle",
nd.getNewsTitle()));
> item.add(newsUrlLink);
>   }
> };
> add(newsDetails);
>
>  The page class, obviously, has a getter named getArticles():
>
>
>   public List getArticles()
>   {
> 
>  }
>
>  However, this seems to get called multiple times when the listview is
being populated, not just once at the beginning of each time the page is
displayer. Why is this happening? It results in many more hits to the
database than are necessary.
>
>  Thanks,
>
>  Andrew B
>
>  ___
>
>  The  information in this email or in any file attached  hereto is
> intended only for the personal and confiden-  tial  use  of  the
> individual or entity to which it is  addressed and may contain
> information that is  propri-  etary  and  confidential.  If you are
> not the intended  recipient of this message you are hereby notified
> that  any  review, dissemination, distribution or copying of  this
> message is strictly prohibited.  This  communica-  tion  is  for
> information purposes only and should not  be regarded as an offer to
> sell or as  a  solicitation  of an offer to buy any financial product.

> Email trans-  mission cannot be guaranteed to be  secure  or  error-
> free. P6070214
>

-
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: RadiogGroup throws 'SetRenderBodyOnly' related IllegalStateException

2008-04-30 Thread igor . vaynberg
common case for radiogroup is not to show up in markup, so it defaults to true

-igor


On 4/30/08, Michael Mehrle <[EMAIL PROTECTED]> wrote:
> Actually, this seems like a false alarm. I set it but didn't do a
> 'clean' - once I cleaned/restarted the app it was gone. Strange thought
> that I would have to set it to false in the first place...
>
> Thanks!
>
> Michael
>
> -Original Message-
> From: Igor Vaynberg [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, April 30, 2008 11:00 AM
> To: users@wicket.apache.org
> Subject: Re: RadiogGroup throws 'SetRenderBodyOnly' related
> IllegalStateException
>
> what happened when you called setRenderBodyOnly(false)?
>
> -igor
>
>
> On Wed, Apr 30, 2008 at 10:20 AM, Michael Mehrle
> <[EMAIL PROTECTED]> wrote:
> > I'm just having too much fun with RadioGroups lately. I've got a
> >  RadioGroup inside a panel, that's inside a modal. When clicking and
> >  saving the form I get the following exception:
> >
> >
> >
> >  RROR RequestCycle] Ajax render cannot be called on component that has
> >  setRenderBodyOnly enabled. Component: [MarkupContainer [Component id
> =
> >  FooSchedule.intervalOfMonth, page =
> >  com.bar.Foo.web.create.CreateFooPage, path =
> >
> 6:FooTabbedPanel:panel:recurringFooModalWindow:content:submitForm:monthl
> >  yLayer:FooSchedule.intervalOfMonth.RadioGroup, isVisible = true,
> >  isVersioned = false]]
> >
> >  java.lang.IllegalStateException: Ajax render cannot be called on
> >  component that has setRenderBodyOnly enabled. Component:
> >  [MarkupContainer [Component id = FooSchedule.intervalOfMonth, page =
> >  com.bar.Foo.web.create.CreateFooPage, path =
> >
> 6:FooTabbedPanel:panel:recurringFooModalWindow:content:submitForm:monthl
> >  yLayer:FooSchedule.intervalOfMonth.RadioGroup, isVisible = true,
> >  isVersioned = false]]
> >
> > at
> >
> org.apache.wicket.ajax.AjaxRequestTarget.respondComponent(AjaxRequestTar
> >  get.java:675)
> >
> >
> >
> >  I even tried to set setRenderBodyOnly(false), which didn't work.
> >
> >
> >
> >  Any input would be appreciated.
> >
> >
> >
> >  Thanks,
> >
> >
> >
> >  Michael
> >
> >
>
> -
> 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: Disabling dynamic ajax header contribution

2008-04-30 Thread legol

Thanks for reply,
It turned out that it wasn't main reason why my application works so slow,
but it's good to know why it is not possible.

Thx,
pzdr 
legol


igor.vaynberg wrote:
> 
> no, currently it is not possible. the reason we do not do it is that
> you can use component replacement to add a new component into the
> hierarchy which will need to add its own contributions which are not
> yet on the client.
> 
> -igor
> 
> 
> On Wed, Apr 30, 2008 at 7:08 AM, legol <[EMAIL PROTECTED]> wrote:
>>
>>  Hi all!
>>  I have problem with multiple ajax header contribution. Is it possible to
>>  turn it off and add static reference to ajax js in head? I have pages
>> where
>>  I always use ajax so it could be added on start. On my page i have so
>> much
>>  ajax components that ajax response grows very large because of these
>>  contributions (even half of generated response are these contibutions).
>>  Beacause of that my application works very slow. If there is any
>> possibility
>>  to turn it off pls help.
>>
>>  thx
>>  pzdr
>>  legol
>>  --
>>  View this message in context:
>> http://www.nabble.com/Disabling-dynamic-ajax-header-contribution-tp16983332p16983332.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]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Disabling-dynamic-ajax-header-contribution-tp16983332p16989770.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]



finding out user's original destination

2008-04-30 Thread Andrew Broderick
Hi,

In the onSubmit() of my SignInPanel, I have the following:

if (!continueToOriginalDestination())
{
  
setResponsePage(getApplication().getSessionSettings().getPageFactory().newPage(
  getApplication().getHomePage(), 
(PageParameters)null));
}

What I want to do is find out where the user is heading at this point, so I can 
conditionally either allow them to go there or send them to the home page. 
Note, this is not for authorization purposes; I just want to be able to control 
the page flow.

Thanks

___

The  information in this email or in any file attached
hereto is intended only for the personal and confiden-
tial  use  of  the individual or entity to which it is
addressed and may contain information that is  propri-
etary  and  confidential.  If you are not the intended
recipient of this message you are hereby notified that
any  review, dissemination, distribution or copying of
this message is strictly prohibited.  This  communica-
tion  is  for information purposes only and should not
be regarded as an offer to sell or as  a  solicitation
of an offer to buy any financial product. Email trans-
mission cannot be guaranteed to be  secure  or  error-
free. P6070214


AjaxSelfUpdatingTimerBehavior with AjaxTabbedPanel and AbstractTab

2008-04-30 Thread rtow

I have a AjaxTabbedPanel contains few AbstractTabs.  There is a component
(dataPanel) in one of the AbstractTab (say tab#2).  

dataPanel.add(new AjaxSelfUpdatingTimerBehavior(Duration.seconds(5)){
@Override
protected void onPostProcessTarget(AjaxRequestTarget target)
{
//dataPanel.reQuery();  
}
});
this.dataPanel.setOutputMarkupId(true);

If click the tab#2 the first time, I can see the reQuery running every 5
seconds.  It works fine.  But the reQuery stop working if I click other tab
then come back to tab#2.  I also observed that refresh the browser will make
the reQuery running again.

Why the AjaxSelfUpdatingTimerBehavior stop working if move to other tab?  Is
there a way to re-run the AjaxSelfUpdatingTimerBehavior?

Thanks!
rtow

-- 
View this message in context: 
http://www.nabble.com/AjaxSelfUpdatingTimerBehavior-with-AjaxTabbedPanel-and-AbstractTab-tp16989421p16989421.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: wicket-spring-annot 1.4-m1?

2008-04-30 Thread Gerolf Seitz
such information is usually found in the migration notes:
http://cwiki.apache.org/WICKET/migrate-14.html

  Gerolf

On Wed, Apr 30, 2008 at 4:49 PM, James Carman <[EMAIL PROTECTED]>
wrote:

> ok, thanks.  That makes sense.
>
> On Wed, Apr 30, 2008 at 10:32 AM, Leszek Gawron <[EMAIL PROTECTED]>
> wrote:
> > James Carman wrote:
> >
> > > Is this gone now that 1.4 is JDK5+?  Is this stuff just bundled in
> > > with wicket-spring?
> > >
> >
> >  yes
> >
> >  --
> >  Leszek Gawron http://www.mobilebox.pl/krs.html
> >  CTO at MobileBox Ltd.
> >
> >
> >
> >
> >  -
> >  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: ListView is not gettting updated

2008-04-30 Thread Patel, Sanjay
I already tried it but it is not working.

I have to do following (which I don't want) to update the listView after
I submit the form.

listView.setModel(new Model((Serializable) updatedList)); 

-Original Message-
From: Igor Vaynberg [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 30, 2008 2:02 PM
To: users@wicket.apache.org
Subject: Re: ListView is not gettting updated

listview.setreuseitems(true), read listview's javadoc

-igor

On Wed, Apr 30, 2008 at 10:59 AM, Patel, Sanjay <[EMAIL PROTECTED]>
wrote:
>
>  Hi,
>
>  I am using ListView and and each item in the listview is RadioGroup. 
> Now  the problem is, If radio1 is selected and I select radio2 and 
> submit  the form the selection goes back to radio1. What is wrong with

> following  code?
>
>  final ListView listView = new ListView("abc", myList) {
> protected final void populateItem(final 
> ListItem
>  item) {
> final MyObject object = (MyObject)  
> item.getModelObject();
> final RadioGroup radioGroup = new  
> RadioGroup("radio-group", new Model());
>
> final Model radioModel1 = new  
> Model(myObject1);
> final Model radioModel2 = new  
> Model(myObject2);
> final Model radioModel3 = new  
> Model(myObject3);
>
> radioGroup.add(new Radio("radio1",  
> radioModel1));
> radioGroup.add(new Radio("radio2",  
> radioModel2));
> radioGroup.add(new Radio("radio2",  
> radioModel3));
>
> // set default value for radio.
> if (object.isTrue() != null &&
>  object.isTrue()) {
>
>  radioGroup.setModel(radioModel1);
> } else if (object.isFalse() != null &&
>  object.isFalse()) {
>
>  radioGroup.setModel(radioModel2);
> } else {
>
>  radioGroup.setModel(radioModel3);
> }
> item.add(radioGroup);
> }
> };
> form.add(listView);
>
>
>  -
>  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: RadiogGroup throws 'SetRenderBodyOnly' related IllegalStateException

2008-04-30 Thread Michael Mehrle
Actually, this seems like a false alarm. I set it but didn't do a
'clean' - once I cleaned/restarted the app it was gone. Strange thought
that I would have to set it to false in the first place... 

Thanks!

Michael

-Original Message-
From: Igor Vaynberg [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 30, 2008 11:00 AM
To: users@wicket.apache.org
Subject: Re: RadiogGroup throws 'SetRenderBodyOnly' related
IllegalStateException

what happened when you called setRenderBodyOnly(false)?

-igor


On Wed, Apr 30, 2008 at 10:20 AM, Michael Mehrle
<[EMAIL PROTECTED]> wrote:
> I'm just having too much fun with RadioGroups lately. I've got a
>  RadioGroup inside a panel, that's inside a modal. When clicking and
>  saving the form I get the following exception:
>
>
>
>  RROR RequestCycle] Ajax render cannot be called on component that has
>  setRenderBodyOnly enabled. Component: [MarkupContainer [Component id
=
>  FooSchedule.intervalOfMonth, page =
>  com.bar.Foo.web.create.CreateFooPage, path =
>
6:FooTabbedPanel:panel:recurringFooModalWindow:content:submitForm:monthl
>  yLayer:FooSchedule.intervalOfMonth.RadioGroup, isVisible = true,
>  isVersioned = false]]
>
>  java.lang.IllegalStateException: Ajax render cannot be called on
>  component that has setRenderBodyOnly enabled. Component:
>  [MarkupContainer [Component id = FooSchedule.intervalOfMonth, page =
>  com.bar.Foo.web.create.CreateFooPage, path =
>
6:FooTabbedPanel:panel:recurringFooModalWindow:content:submitForm:monthl
>  yLayer:FooSchedule.intervalOfMonth.RadioGroup, isVisible = true,
>  isVersioned = false]]
>
> at
>
org.apache.wicket.ajax.AjaxRequestTarget.respondComponent(AjaxRequestTar
>  get.java:675)
>
>
>
>  I even tried to set setRenderBodyOnly(false), which didn't work.
>
>
>
>  Any input would be appreciated.
>
>
>
>  Thanks,
>
>
>
>  Michael
>
>

-
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: Is it possible to hide /?wicket:.. from the URLs

2008-04-30 Thread Ryan Gravener
Are you worried about what is in the html as well?  IE:

resources/org.apache.wicket.markup.html.WicketEventReference/wicket-event.js


On Wed, Apr 30, 2008 at 3:52 AM, Peter Ertl <[EMAIL PROTECTED]> wrote:

> A "poor man's solution" could be:
>
> You could rewrite your URL through e.g. a front-end apache and
> mod_rewrite.
>
> response: convert any occurrence of '?wicket' to '?foobar' in url
> request: convert '?foobar' to '?wicket'
>
>
>
> Am 30.04.2008 um 03:57 schrieb Johan Compagner:
>
>
>  Currently it is not easy to get wicket out of all the urls. This
> > prefix is a static final that is used on many places, i want to make
> > that configurable in a next release.
> >
> > By default wicket will generate  relative paths. You can get a
> > absolute one with i believe RequestUtils. But this is still without
> > host/port i think, why do you want that? For generating emails or
> > something like that?
> >
> > On 4/30/08, Ritz123 <[EMAIL PROTECTED]> wrote:
> >
> > >
> > > Hi,
> > >
> > > Was wondering if its possible to hide "wicket" name from the URLs
> > > (stateless
> > > and stateful). One might not want to show their end users that wicket
> > > is
> > > being used behind the scenes.
> > >
> > > Also I noticed even if page has bookmarkable links - the links show
> > > relative
> > > ../../../../mount/params!! Is there anyway to have complete(absolute
> > > urls)
> > > with the hostname?
> > > --
> > > View this message in context:
> > >
> > > http://www.nabble.com/Is-it-possible-to-hide---wicket%3A..-from-the-URLs-tp16972147p16972147.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]
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Ryan Gravener
http://wmwm.us/wmwm-date


Re: ListView is not gettting updated

2008-04-30 Thread Igor Vaynberg
listview.setreuseitems(true), read listview's javadoc

-igor

On Wed, Apr 30, 2008 at 10:59 AM, Patel, Sanjay <[EMAIL PROTECTED]> wrote:
>
>  Hi,
>
>  I am using ListView and and each item in the listview is RadioGroup. Now
>  the problem is, If radio1 is selected and I select radio2 and submit
>  the form the selection goes back to radio1. What is wrong with following
>  code?
>
>  final ListView listView = new ListView("abc", myList) {
> protected final void populateItem(final ListItem
>  item) {
> final MyObject object = (MyObject)
>  item.getModelObject();
> final RadioGroup radioGroup = new
>  RadioGroup("radio-group", new Model());
>
> final Model radioModel1 = new
>  Model(myObject1);
> final Model radioModel2 = new
>  Model(myObject2);
> final Model radioModel3 = new
>  Model(myObject3);
>
> radioGroup.add(new Radio("radio1",
>  radioModel1));
> radioGroup.add(new Radio("radio2",
>  radioModel2));
> radioGroup.add(new Radio("radio2",
>  radioModel3));
>
> // set default value for radio.
> if (object.isTrue() != null &&
>  object.isTrue()) {
>
>  radioGroup.setModel(radioModel1);
> } else if (object.isFalse() != null &&
>  object.isFalse()) {
>
>  radioGroup.setModel(radioModel2);
> } else {
>
>  radioGroup.setModel(radioModel3);
> }
> item.add(radioGroup);
> }
> };
> form.add(listView);
>
>
>  -
>  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]



ListView is not gettting updated

2008-04-30 Thread Patel, Sanjay
 
Hi,

I am using ListView and and each item in the listview is RadioGroup. Now
the problem is, If radio1 is selected and I select radio2 and submit
the form the selection goes back to radio1. What is wrong with following
code? 

final ListView listView = new ListView("abc", myList) {
protected final void populateItem(final ListItem
item) {
final MyObject object = (MyObject)
item.getModelObject();
final RadioGroup radioGroup = new
RadioGroup("radio-group", new Model());

final Model radioModel1 = new
Model(myObject1);
final Model radioModel2 = new
Model(myObject2);
final Model radioModel3 = new
Model(myObject3);

radioGroup.add(new Radio("radio1",
radioModel1));
radioGroup.add(new Radio("radio2",
radioModel2));
radioGroup.add(new Radio("radio2",
radioModel3));

// set default value for radio.
if (object.isTrue() != null &&
object.isTrue()) {

radioGroup.setModel(radioModel1);
} else if (object.isFalse() != null &&
object.isFalse()) {

radioGroup.setModel(radioModel2);
} else {

radioGroup.setModel(radioModel3);
}
item.add(radioGroup);
}
};
form.add(listView);


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



Re: RadiogGroup throws 'SetRenderBodyOnly' related IllegalStateException

2008-04-30 Thread Igor Vaynberg
what happened when you called setRenderBodyOnly(false)?

-igor


On Wed, Apr 30, 2008 at 10:20 AM, Michael Mehrle <[EMAIL PROTECTED]> wrote:
> I'm just having too much fun with RadioGroups lately. I've got a
>  RadioGroup inside a panel, that's inside a modal. When clicking and
>  saving the form I get the following exception:
>
>
>
>  RROR RequestCycle] Ajax render cannot be called on component that has
>  setRenderBodyOnly enabled. Component: [MarkupContainer [Component id =
>  FooSchedule.intervalOfMonth, page =
>  com.bar.Foo.web.create.CreateFooPage, path =
>  6:FooTabbedPanel:panel:recurringFooModalWindow:content:submitForm:monthl
>  yLayer:FooSchedule.intervalOfMonth.RadioGroup, isVisible = true,
>  isVersioned = false]]
>
>  java.lang.IllegalStateException: Ajax render cannot be called on
>  component that has setRenderBodyOnly enabled. Component:
>  [MarkupContainer [Component id = FooSchedule.intervalOfMonth, page =
>  com.bar.Foo.web.create.CreateFooPage, path =
>  6:FooTabbedPanel:panel:recurringFooModalWindow:content:submitForm:monthl
>  yLayer:FooSchedule.intervalOfMonth.RadioGroup, isVisible = true,
>  isVersioned = false]]
>
> at
>  org.apache.wicket.ajax.AjaxRequestTarget.respondComponent(AjaxRequestTar
>  get.java:675)
>
>
>
>  I even tried to set setRenderBodyOnly(false), which didn't work.
>
>
>
>  Any input would be appreciated.
>
>
>
>  Thanks,
>
>
>
>  Michael
>
>

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



Setting component required during runtime?

2008-04-30 Thread Michael Mehrle
I've got RadioGroup A that I need to set to required when another radio
in RadioGroup B is selected. 

Is this possible and how? I imagine 'theoretically' the way to do this
is by hooking into the other radio's event handler. However, as the
other radio has already been rendered at that point this might not work
properly.

 

Michael



Re: Disabling dynamic ajax header contribution

2008-04-30 Thread Igor Vaynberg
no, currently it is not possible. the reason we do not do it is that
you can use component replacement to add a new component into the
hierarchy which will need to add its own contributions which are not
yet on the client.

-igor


On Wed, Apr 30, 2008 at 7:08 AM, legol <[EMAIL PROTECTED]> wrote:
>
>  Hi all!
>  I have problem with multiple ajax header contribution. Is it possible to
>  turn it off and add static reference to ajax js in head? I have pages where
>  I always use ajax so it could be added on start. On my page i have so much
>  ajax components that ajax response grows very large because of these
>  contributions (even half of generated response are these contibutions).
>  Beacause of that my application works very slow. If there is any possibility
>  to turn it off pls help.
>
>  thx
>  pzdr
>  legol
>  --
>  View this message in context: 
> http://www.nabble.com/Disabling-dynamic-ajax-header-contribution-tp16983332p16983332.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: Updating multiple PropertyModels

2008-04-30 Thread Martin Makundi
Well. I do not have hierarchical models.

I have just one single-level model which is used in several propertymodels.

I will try if it works to wrap it.

**
Martin

2008/4/30 Per Newgro <[EMAIL PROTECTED]>:
> Am Mittwoch, 30. April 2008 08:29:10 schrieb Martin Makundi:
>
>
>  > Hi!
>  >
>  > Please give me an example:
>  > MyData myData = new MyData(name, address); // pseudo
>  >
>  > add(new Label("name", new PropertyModel(myData, "name"));
>  > add(new Label("address", new PropertyModel(myData, "address"));
>  >
>  > // now I have an ajax button or something...
>  > @Override
>  > protected void onUpdate(AjaxRequestTarget target) {
>  >int stateChangeKey = (Integer) thisGadget.getModelObject();
>  >myData =
>  > ComplexBusinessLogicService.loadNewDataAccordingToState(stateChangeKey);
>  > }
>
>  I normally do it the following way
>  At the highest entry point (page mostly)
>  MyBusinessModelWithoutWicketStuff myModel = Service.createTheBusinessModel();
>  CompoundPropertyModel model = new CompoundPropertyModel(myModel);
>  myPage.setModel(model);
>  IModel pathToMySubModel = new PropertyModel(model, "property1");
>  MyPanel p1 = new MyPanel("id1", pathToMySubModel);
>  IModel pathToMyDeepestModel =
>   new PropertyModel(pathToMySubModel, "deepestModel");
>  MyPanel p2 = new MyPanel("id2", pathToMyDeepestModel);
>  and so on.
>
>  I imagine myself the connected property models as a path to my data.
>  Only the highest level component has the business instance set. All others
>  simply get the path to it.
>
>
>  > Now you mean if I wrap the myData into an IModel I do not need to
>  > change anything else except the first line:
>  > MyData myData = new MyData(name, address); // pseudo
>  > IModel myDataIModel = new MyIModel(myData);
>  >
>  > and replace it in the property models? Wow. So PropertyModel will be
>  > smart enough here on its own.
>  Simply try it. It works great.
>
>  cheers
>  Per
>
>
>
>  -
>  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: Updating multiple PropertyModels

2008-04-30 Thread Per Newgro
Am Mittwoch, 30. April 2008 08:29:10 schrieb Martin Makundi:

> Hi!
>
> Please give me an example:
> MyData myData = new MyData(name, address); // pseudo
>
> add(new Label("name", new PropertyModel(myData, "name"));
> add(new Label("address", new PropertyModel(myData, "address"));
>
> // now I have an ajax button or something...
> @Override
> protected void onUpdate(AjaxRequestTarget target) {
>int stateChangeKey = (Integer) thisGadget.getModelObject();
>myData =
> ComplexBusinessLogicService.loadNewDataAccordingToState(stateChangeKey);
> }

I normally do it the following way
At the highest entry point (page mostly)
MyBusinessModelWithoutWicketStuff myModel = Service.createTheBusinessModel();
CompoundPropertyModel model = new CompoundPropertyModel(myModel);
myPage.setModel(model);
IModel pathToMySubModel = new PropertyModel(model, "property1");
MyPanel p1 = new MyPanel("id1", pathToMySubModel);
IModel pathToMyDeepestModel = 
  new PropertyModel(pathToMySubModel, "deepestModel");
MyPanel p2 = new MyPanel("id2", pathToMyDeepestModel);
and so on.

I imagine myself the connected property models as a path to my data.
Only the highest level component has the business instance set. All others 
simply get the path to it.

> Now you mean if I wrap the myData into an IModel I do not need to
> change anything else except the first line:
> MyData myData = new MyData(name, address); // pseudo
> IModel myDataIModel = new MyIModel(myData);
>
> and replace it in the property models? Wow. So PropertyModel will be
> smart enough here on its own.
Simply try it. It works great.

cheers
Per

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



RadiogGroup throws 'SetRenderBodyOnly' related IllegalStateException

2008-04-30 Thread Michael Mehrle
I'm just having too much fun with RadioGroups lately. I've got a
RadioGroup inside a panel, that's inside a modal. When clicking and
saving the form I get the following exception:

 

RROR RequestCycle] Ajax render cannot be called on component that has
setRenderBodyOnly enabled. Component: [MarkupContainer [Component id =
FooSchedule.intervalOfMonth, page =
com.bar.Foo.web.create.CreateFooPage, path =
6:FooTabbedPanel:panel:recurringFooModalWindow:content:submitForm:monthl
yLayer:FooSchedule.intervalOfMonth.RadioGroup, isVisible = true,
isVersioned = false]] 

java.lang.IllegalStateException: Ajax render cannot be called on
component that has setRenderBodyOnly enabled. Component:
[MarkupContainer [Component id = FooSchedule.intervalOfMonth, page =
com.bar.Foo.web.create.CreateFooPage, path =
6:FooTabbedPanel:panel:recurringFooModalWindow:content:submitForm:monthl
yLayer:FooSchedule.intervalOfMonth.RadioGroup, isVisible = true,
isVersioned = false]]

at
org.apache.wicket.ajax.AjaxRequestTarget.respondComponent(AjaxRequestTar
get.java:675)

 

I even tried to set setRenderBodyOnly(false), which didn't work.

 

Any input would be appreciated.

 

Thanks,

 

Michael



Re: loadStringResource(Component component, String key) - correct method to check if the component IS a Page?

2008-04-30 Thread Igor Vaynberg
On Wed, Apr 30, 2008 at 2:55 AM, Ned Collyer <[EMAIL PROTECTED]> wrote:
>
>  Still - would be nice if the
>  MarkupInheritanceResolver$TransparentWebMarkupContainer somehow indicated it
>  was the the page (and returned the pages model).

Component c=...;
boolean page=(c==c.getPage());

-igor



>
>  I can live without it.
>
>
>
>  igor.vaynberg wrote:
>  >
>  > hm. dont know if doing localization based on type of model object is a
>  > great idea. there are many usecases where model type is quiet
>  > aribitrary, and as you have found out yourself you dont know what
>  > component you get passed in, so you just need to handle it in a way
>  > that makes sense to you.
>  >
>  > -igor
>  >
>
>  --
>  View this message in context: 
> http://www.nabble.com/loadStringResource%28Component-component%2C-String-key%29---correct-method-to-check-if-the-component-IS-a-Page--tp16930303p16979272.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: submit form to bookmarkable page

2008-04-30 Thread Doug Donohoe

If you create a form that looks like:

  
When the form is posted, the stuff after the ? in the action is ignored. It is replaced with the form values (hidden or otherwise). -Doug Martijn Dashorst wrote: > > On 4/30/08, Doug Donohoe <[EMAIL PROTECTED]> wrote: >> Setting the action to the page URL doesn't quite work with default >> wicket >> URLs since they pass information in the query string and browsers ignore >> anything after the '?' in a GET action. > > Huh? Query string encoding is how browsers submit forms using GET. > Wicket works just fine with that. You can retrieve the parameters > using the PageParameters page constructor (mount the page using a > QueryStringUrlCodingStrategy) > > Martijn > > -- > Buy Wicket in Action: http://manning.com/dashorst > Apache Wicket 1.3.3 is released > Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.3 > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/submit-form-to-bookmarkable-page-tp16912974p16985299.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: submit form to bookmarkable page

2008-04-30 Thread Martijn Dashorst
On 4/30/08, Doug Donohoe <[EMAIL PROTECTED]> wrote:
>  Setting the action to the page URL doesn't quite work with default wicket
>  URLs since they pass information in the query string and browsers ignore
>  anything after the '?' in a GET action.

Huh? Query string encoding is how browsers submit forms using GET.
Wicket works just fine with that. You can retrieve the parameters
using the PageParameters page constructor (mount the page using a
QueryStringUrlCodingStrategy)

Martijn

-- 
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.3 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.3

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



Re: wicket-spring-annot 1.4-m1?

2008-04-30 Thread James Carman
ok, thanks.  That makes sense.

On Wed, Apr 30, 2008 at 10:32 AM, Leszek Gawron <[EMAIL PROTECTED]> wrote:
> James Carman wrote:
>
> > Is this gone now that 1.4 is JDK5+?  Is this stuff just bundled in
> > with wicket-spring?
> >
>
>  yes
>
>  --
>  Leszek Gawron http://www.mobilebox.pl/krs.html
>  CTO at MobileBox Ltd.
>
>
>
>
>  -
>  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: wicket-spring-annot 1.4-m1?

2008-04-30 Thread Leszek Gawron

James Carman wrote:

Is this gone now that 1.4 is JDK5+?  Is this stuff just bundled in
with wicket-spring?


yes

--
Leszek Gawron http://www.mobilebox.pl/krs.html
CTO at MobileBox Ltd.


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



Re: wicket-spring-annot 1.4-m1?

2008-04-30 Thread Martijn Dashorst
yes

On 4/30/08, James Carman <[EMAIL PROTECTED]> wrote:
> Is this gone now that 1.4 is JDK5+?  Is this stuff just bundled in
>  with wicket-spring?
>
>  -
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.3 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.3

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



Re: Javascript error in wicket

2008-04-30 Thread Vitaly Tsaplin
   This file exists. I can open it...

On Wed, Apr 30, 2008 at 2:52 PM, Peter Ertl <[EMAIL PROTECTED]> wrote:
> that's not wicket but firefox...
>
>  try reading the filename:
>
>
> > file:///C:/Program%20Files/Mozilla%20Firefox/components/nsSessionStore.js
> >
>
>
>  Am 30.04.2008 um 12:17 schrieb Vitaly Tsaplin:
>
>
> >
> >
> >
> >  Hi everyone,
> >
> >  Firebug is complaining as follows:
> >
> > [Exception... "Component is not available" nsresult: "0x80040111
> > (NS_ERROR_NOT_AVAILABLE)" location: "JS frame ::
> > file:///C:/Program%20Files/Mozilla%20Firefox/components/nsSessionStore.js
> > :: sss_saveState :: line 1753" data: no]
> > [Break on this error] oState.session = { state: ((this._loadState ==
> > STATE_RUNNING) ? STATE_RUNNIN...
> >
> >  Any ideas?
> >
> >  Vitaly
> >
> > -
> > 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: submit form to bookmarkable page

2008-04-30 Thread Doug Donohoe

Setting the action to the page URL doesn't quite work with default wicket
URLs since they pass information in the query string and browsers ignore
anything after the '?' in a GET action.

I'd have to set some hidden fields like wicket:bookmarkablePage=[.] as
well as the other fields the page depends on (anything in PageParameters). 
I haven't pursued this yet, but will.  I'm not sure if Form has a way to add
arbitrary hidden fields.

Another problem with using a WebMarkupContainer instead of a form is that
the form children get renamed to 'form:days' and 'form:games' instead of
just 'days' and 'games'.  I haven't looked into that either.  The issue with
this is that the params come down as form:days=X&form:games=Y instead of
just days=X&games=Y.

For posterity, I've documented most of my lessons on my wiki:

http://wiki.donohoedigital.com/wiki/Wiki.jsp?page=Main

-Doug


Johan Compagner wrote:
> 
> What you want is just stateless forms, but if you just want to do a
> get to a page then your page with the form can be really simple
> 
> Just 1 markup container for the form tag that just has an atribute
> modifier that sets the action to the page url.
> 
> On 4/29/08, Doug Donohoe <[EMAIL PROTECTED]> wrote:
>>
>> Obviously, if you post with "GET" method, you don't get those dialogs.  
>> A
>> post and redirect means two hits to the server where-as a GET is only
>> one.
>> Using the GET method makes your average web page bookmarkable.
>>
>> The code I used was basically this:
>>
>>super.onComponentTag(tag)
>>tag.put("action", urlFor(Foo.class, params);
>>
>> That doesn't work.  It still submits using the 'interface' stuff -
>> apparently because of hidden fields.  I tried using a WebMarkupContainer
>> instead of a form, but that fails due to the ? in the URL.  Also, for
>> some
>> reason the form elements are renamed 'formname:elementname' when using a
>> WebMarkupContainer.
>>
>> I really like Wicket quite a bit, but this issue with forms and constant
>> 'session expired' messages are my biggest sticking point.
>>
>> -Doug
>>
>>
>> igor.vaynberg wrote:
>> >
>> > thats what stateless forms are for. after a submit you want a redirect
>> > anyways so that a refresh doesnt popup that annoying post values
>> > dialog.
>> >
>> > overriding oncomponenttag() should work just fine, you just have to
>> > make sure to call super first.
>> >
>> > -igor
>> >
>> >
>> > On Mon, Apr 28, 2008 at 7:08 PM, Doug Donohoe <[EMAIL PROTECTED]>
>> wrote:
>> >>
>> >>  Overriding onComponentTag doesn't seem to work.  The URL that gets
>> >> generated
>> >>  (using urlFor) starts with a question mark which isn't included when
>> the
>> >>  form is submitted.   The only thing passed down is the form
>> parameters,
>> >>  which obviously doesn't work since the page is missing.  I'm using
>> the
>> >>  default URL encoding strategy - was saving that investigation for
>> later.
>> >>  Maybe I need to bump that up in the queue.
>> >>
>> >>  I'll also look at using a stateless form next (and redirecting to a
>> >>  bookmarkable page so the URL is nice).
>> >>
>> >>  Just a general comment on this.  I basically want a form that can be
>> >>  submitted at any time, regardless if a session is there or not.  
>> This
>> >> is a
>> >>  common use case (e.g., google, login, search) and for all the
>> excellent
>> >>  stuff in wicket, this seems very hard to do.
>> >>
>> >>  Does anyone else have advice on how to do nice-looking-urls using
>> >> GET-method
>> >>  form posts?  In other words, if I wanted to build Google's home page
>> in
>> >>  wicket and be able to bookmark search results, how would I do it?  If
>> >> anyone
>> >>  has an example they can share, I would appreciate it.
>> >>
>> >>  Regards,
>> >>
>> >>  -Doug
>> >>
>> >>
>> >>
>> >>
>> >>  igor.vaynberg wrote:
>> >>  >
>> >>  > override the form's action value in its oncomponenttag callback
>> with a
>> >>  > url to a bookmarkable page. but then you have to parse all posted
>> >>  > values yourself.
>> >>  >
>> >>  > if you dont care about the url you can use a statelessform instead
>> and
>> >>  > probably avoid a bunch of headache.
>> >>  >
>> >>  > -igor
>> >>  >
>> >>  >
>> >>  > On Sat, Apr 26, 2008 at 6:36 AM, Doug Donohoe <[EMAIL PROTECTED]>
>> >> wrote:
>> >>  >>
>> >>  >>  Hi,
>> >>  >>
>> >>  >>  I'm like to submit a form using bookmarkable page style, so that
>> >>  >>
>> >>  >>  a) the form can always be submitted, regardless if the session is
>> >>  >> expired or
>> >>  >>  not (think of a Google search submission e.g.,
>> >>  >>  http://www.google.com/search?q=wicket)
>> >>  >>
>> >>  >>  b) the form remembers PageParameters that were there when the
>> page
>> >> was
>> >>  >>  generated (think of google advanced search where you change the
>> >> number
>> >>  >> of
>> >>  >>  items per page and that is remembered in subsequent searches
>> e.g.,
>> >>  >>  http://www.google.com/search?q=wicket&num=30)
>> >>  >>
>> >>  >>  How do I tell the form to submit us

Re: Alternative method to initialise page

2008-04-30 Thread John Patterson

Well yeah, I don't do that... don't know how common redirect to render is
either.  Just thinking of how the delay in initialisation might effect
memory.  Prob not much for most apps.


Johan Compagner wrote:
> 
> That is bad programming anyway. Why make a next page already??
> 
> On 4/30/08, John Patterson <[EMAIL PROTECTED]> wrote:
>>
>> I was thinking that another benefit of initialising the page after
>> construction is less memory use when using "redirect to render", when
>> there
>> are many invisible components, or in situations where a page instance is
>> created to pass to another page as the next page or return page.
>>
>>
>> igor.vaynberg wrote:
>> >
>> > heh, even though we switched to int we are pretty close to running out
>> > of flag bits already :) but oh well :)
>> >
>> > -igor
>> >
>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Alternative-method-to-initialise-page-tp16742636p16975470.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]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Alternative-method-to-initialise-page-tp16742636p16983680.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]



wicketstuff-dojo 1.1?

2008-04-30 Thread Jason Froehlich

All,

Is there a wicketstuff-dojo project that is based off of dojo 1.1?  The 
only one I could find was based off of dojo 0.4.


Thanks,
Jason


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



StatelessForm doesn't work with GET method

2008-04-30 Thread Doug Donohoe

As part of my effort to submit a form to a bookmarkable page, I discovered
this bug when trying to uses a stateless form with the GET method of a form. 
I've documented my saga at 

http://wiki.donohoedigital.com/wiki/Wiki.jsp?page=Bookmarkable%20Form%20Submission%20in%20Wicket

The original thread was
http://www.nabble.com/submit-form-to-bookmarkable-page-to16912974.html

Post method seems to work fine.  The error message is:

WicketMessage: Internal error parsing wicket:interface =
%3A1%3Aform%3A%3AIFormSubmitListener%3A%3A

Root cause:

org.apache.wicket.WicketRuntimeException: Internal error parsing
wicket:interface = %3A1%3Aform%3A%3AIFormSubmitListener%3A%3A
at
org.apache.wicket.protocol.http.request.WebRequestCodingStrategy.addInterfaceParameters(WebRequestCodingStrategy.java:583)
at
org.apache.wicket.protocol.http.request.WebRequestCodingStrategy.addInterfaceParameters(WebRequestCodingStrategy.java:554)
at
org.apache.wicket.protocol.http.request.WebRequestCodingStrategy.decode(WebRequestCodingStrategy.java:199)
at org.apache.wicket.Request.getRequestParameters(Request.java:171)
at org.apache.wicket.RequestCycle.step(RequestCycle.java:1224)
at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1331)
at org.apache.wicket.RequestCycle.request(RequestCycle.java:493)
at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:363)
at
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:194)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:613)

-- 
View this message in context: 
http://www.nabble.com/StatelessForm-doesn%27t-work-with-GET-method-tp16983393p16983393.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]



Disabling dynamic ajax header contribution

2008-04-30 Thread legol

Hi all!
I have problem with multiple ajax header contribution. Is it possible to
turn it off and add static reference to ajax js in head? I have pages where
I always use ajax so it could be added on start. On my page i have so much
ajax components that ajax response grows very large because of these
contributions (even half of generated response are these contibutions).
Beacause of that my application works very slow. If there is any possibility
to turn it off pls help.

thx
pzdr
legol
-- 
View this message in context: 
http://www.nabble.com/Disabling-dynamic-ajax-header-contribution-tp16983332p16983332.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]



wicket-spring-annot 1.4-m1?

2008-04-30 Thread James Carman
Is this gone now that 1.4 is JDK5+?  Is this stuff just bundled in
with wicket-spring?

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



Re: Javascript error in wicket

2008-04-30 Thread Peter Ertl

that's not wicket but firefox...

try reading the filename:

file:///C:/Program%20Files/Mozilla%20Firefox/components/nsSessionStore.js



Am 30.04.2008 um 12:17 schrieb Vitaly Tsaplin:


  Hi everyone,

 Firebug is complaining as follows:

[Exception... "Component is not available" nsresult: "0x80040111
(NS_ERROR_NOT_AVAILABLE)" location: "JS frame ::
file:///C:/Program%20Files/Mozilla%20Firefox/components/nsSessionStore.js
:: sss_saveState :: line 1753" data: no]
[Break on this error] oState.session = { state: ((this._loadState ==
STATE_RUNNING) ? STATE_RUNNIN...

  Any ideas?

  Vitaly

-
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: ssl post to creditor company

2008-04-30 Thread Mathias P.W Nilsson

OK! This is the best I have come up with so far.

In My AjaxFallbackButton#onSubmit I check the form and I everything was ok I
append a javascript target.appendJavascript( "makeCallBack( 'http//:new url'
)");

And in html page

function makeCallBack( URL ){
  document.forms[ "login" ].action = URL;
  document.forms[ "login" ].submit();
}

Cons with this approach?
-- 
View this message in context: 
http://www.nabble.com/ssl-post-to-creditor-company-tp16978155p16982340.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: Wicket 1.4 and Wicketstuff/Dojo/DragAndDrop

2008-04-30 Thread Ryan Sonnek
i'll try to test out the example app to see if something is broken with 1.4.

On Wed, Apr 30, 2008 at 1:23 AM, Stefan Lindner <[EMAIL PROTECTED]> wrote:

> Now it works but I had to specify the javacript libraries explicit in the
> header section. The auto generated header contribution of libraries did not
> work. I hat a similar problem with WicketStuff Dojo.
>
> Stefan
>
> -Ursprüngliche Nachricht-
> Von: Stefan Lindner [mailto:[EMAIL PROTECTED]
> Gesendet: Dienstag, 29. April 2008 17:01
> An: users@wicket.apache.org
> Betreff: Re: Wicket 1.4 and Wicketstuff/Dojo/DragAndDrop
>
> I got everything to compile and deploy but not to work. No drag. The
> DraggableBehavior added to a Markupcontainer leads to some javascript code
> [new Draggable("product_1", {})] but nothing happens when I klick on the
> MarkupContainer and move the mouse. I think I wait until you did the thin.
>
> Stefan.
>
> -Ursprüngliche Nachricht-
> Von: Ryan Sonnek [mailto:[EMAIL PROTECTED]
> Gesendet: Montag, 28. April 2008 14:55
> An: users@wicket.apache.org
> Betreff: Re: Wicket 1.4 and Wicketstuff/Dojo/DragAndDrop
> Wichtigkeit: Hoch
>
> i'll try to create a 1.4 branch of the scriptaculous project sometime this
> week.  of course patches are always welcome.  =)
>
> On Mon, Apr 28, 2008 at 7:20 AM, Maurice Marrink <[EMAIL PROTECTED]>
> wrote:
>
> > The source is located at sourceforge
> >
> > http://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wic
> > ket-contrib-scriptaculous
> >
> > As for when it will be available for wicket 1.4?, i have no idea since
> > i have nothing to do with that project.
> > Perhaps Ryan Sonnek can answer that.
> >
> > Maurice
> >
> > On Mon, Apr 28, 2008 at 2:13 PM, Stefan Lindner <[EMAIL PROTECTED]>
> > wrote:
> > > Dear Maurice,
> > >
> > >  Can you give me a timeframe for the availability of WicketStuff
> > Scriptaculous for wicket 1.4? The Drag and Drop will lnot work, becaus
> > a component no langer has a public 'addBeahivor' method. This is now
> > replaced by a simple 'add(Ibehavior...)' method. The 'DraggableTarget'
> > class seems to internally make a call to 'addBeahivor' which no longer
> exists?
> > >
> > >  As an alternativ way: Where can I find the source (subversion
> > repository)? It's not on sourceforge.
> > >
> > >  Kind Regards
> > >  Stefan
> > >
> > >  -Ursprüngliche Nachricht-
> > >  Von: Maurice Marrink [mailto:[EMAIL PROTECTED]
> > >  Gesendet: Freitag, 25. April 2008 16:03
> > >
> > > An: users@wicket.apache.org
> > >  Betreff: Re: Wicket 1.4 and Wicketstuff/Dojo/DragAndDrop
> > >  Wichtigkeit: Hoch
> > >
> > >
> > > snapshots should be available, And i think a 1.4-m1 should be
> > > available
> > any time soon too.
> > >
> > >  Maurice
> > >
> > >  On Fri, Apr 25, 2008 at 3:49 PM, Ryan Sonnek
> > > <[EMAIL PROTECTED]>
> > wrote:
> > >
> > >
> > > > the wicketstuff-scriptaculous project has drag/drop support.  I
> > >  > haven't  updated it to reflect 1.4 changes yet.
> > >  >
> > >  >  are 1.4 snapshots available for wicket yet on the bamboo
> > > snapshot  > repository?
> > >  >
> > >  >
> > >  >
> > >  >  On Fri, Apr 25, 2008 at 5:38 AM, Stefan Lindner
> > > <[EMAIL PROTECTED]>
> > wrote:
> > >  >
> > >  >  > Ok, before I lay ma hands on it: Is there another LIVING
> > > project,  > that  > deals with drag and drop for wicket? Are there
> > > other users of  > wicketstuff  > dojo out there, who want to migrate
> to wicket 1.4?
> > Does
> > >  > it still make sense  > to investigate in wicketstuff/doho? Are
> > > there  > commercial solutions fprt drag  > and drop?
> > >  >  >
> > >  >  > Stefan
> > >  >  >
> > >  >  > -Ursprüngliche Nachricht-  >  > Von: Gerolf Seitz
> > > [mailto:[EMAIL PROTECTED]  > Gesendet:
> > >  > Freitag, 25. April 2008 09:02  > An: users@wicket.apache.org  >
> > > > Betreff: Re: Wicket 1.4 and Wicketstuff/Dojo/DragAndDrop  >  > all
> > > of  > the mentioned project maintainers have been away for some time
> now.
> > >  >  > you might need to lay your own hands on it.
> > >  >  > i would guess nobody objects to such efforts.
> > >  >  >
> > >  >  >  Gerolf
> > >  >  >
> > >  >  > On Thu, Apr 24, 2008 at 6:53 PM, Stefan Lindner  >
> > > <[EMAIL PROTECTED]>  > wrote:
> > >  >  >
> > >  >  > > Is there a Wicketstuff/dojo version that works together with
> > Wicket 1.4?
> > >  >  > > Is Wicketstuff/Dojo still alive? The latest news on the
> > > webpage  > state  > > that Wicketstuff/Dojo is still based upon wicket
> 1.3 beta.
> > >  >  > >
> > >  >  > > Stefan
> > >  >  > >
> > >  >  > >
> > >  >
> > > 
> > > -  >  > > 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

Unable to close modalwindow

2008-04-30 Thread tsuresh

Hello All,
I am unable to close modalwindow which contains a panel with the form.My
code snippet in page is as 

follows:
.

  final DataView dataView = new DataView("rows", new
ListDataProvider(folderList)) {

public void populateItem(final Item item) {
FolderWrapper fw = (FolderWrapper)
item.getModelObject();
item.add(new CheckBox("checkbox", new PropertyModel(fw,
"selected")));
item.add(new Label("subKeyword",
fw.getKeyword().getSubKeyword()));
item.add(new Label("description",
fw.getKeyword().getDescription()));
item.add(new Label("email",
fw.getKeyword().getEmail()));

AjaxLink editLink = new AjaxLink("edit") {

public void onClick(AjaxRequestTarget target) {
FolderWrapper selectedKeyword =
(FolderWrapper)getParent().getModelObject();
modalS.setContent(new
FolderEditPanel(modalS.getContentId(),  
  selectedKeyword.getKeyword(), modalS));
modalS.setTitle("Details:");
modalS.show(target);
}
};

modalS = new ModalWindow("modalS");
modalS.setInitialWidth(450);
modalS.setInitialHeight(200);
modalS.setWindowClosedCallback(new
ModalWindow.WindowClosedCallback() {

public void onClose(AjaxRequestTarget target) {
modalS.close(target);
}
});
editLink.add(modalS);
item.add(editLink);

.


And the Panel which contains edit form :

  public FolderEditPanel(String id, Keyword keyword, final ModalWindow
window) {
super(id);
selectedKeyword = keyword;
Form folderEditForm = new FolderEditForm("form");
folderEditForm.setOutputMarkupId(true);
add(folderEditForm);
folderEditForm.add(new AjaxButton("ok") {

@Override
protected void onSubmit(AjaxRequestTarget target, Form form) {
try {
selectedKeyword.edit();
} catch (SQLException e) {
String err = e.getMessage();
}
window.close(target);
}
});
}

But similar codes works fine when I don't use wrapper(i.e FolderWrapper to
add checkbox to select 

items). 

Thanks,
tsuresh

-- 
View this message in context: 
http://www.nabble.com/Unable-to-close-modalwindow-tp16981993p16981993.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]



problems uploading files w/ Safari 3.1.1

2008-04-30 Thread Alex Jacoby
I don't think this is a wicket issue, but curious if any else is  
noticing problems uploading files to tomcat-hosted apps with the  
latest version of Safari (3.1.1).  The first upload attempt hangs, but  
if you cancel and try again, it works.  Each subsequent upload does  
the same thing: hang, cancel, work.


It only manifests when redirecting through apache to tomcat.  If I  
connect directly to tomcat it's not a problem.  I've seen it on wicket  
and non-wicket code.


I saw these discussions but haven't tried their proposed solutions yet:

http://www.webmasterworld.com/macintosh_webmaster/3300569.htm

http://blog.airbladesoftware.com/2007/8/17/note-to-self-prevent-uploads-hanging-in-safari

Alex

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



Re: loadStringResource(Component component, String key) - correct method to check if the component IS a Page?

2008-04-30 Thread Ned Collyer
err... i mean...

mypanel extends panel {
 mypanel(id, Person person) {
setModel(new Model(new Person()))
 }

but u get the drift ;)

On Wed, Apr 30, 2008 at 7:55 PM, Ned Collyer <[EMAIL PROTECTED]> wrote:
>
>
>
> mypanel extends panel {
>  mypanel(id, Person person) {
> setModel(new Person())
>  }
> }
>
>
>


Re: How to debug Back Button

2008-04-30 Thread Marco Aurélio Silva
That's what I tried, but the page wasn't there :(
But, I updated to wicket 1.2.7 and now it is working better... I still
getting the page expired but only when click on back and next a lot of
time...

Thank you for your help!




On Tue, Apr 29, 2008 at 3:16 PM, Johan Compagner <[EMAIL PROTECTED]> wrote:
> Just test the pagemap accessstack what exactly happens.
>
>  Place a few breakpoints there, if you press the backbutton, then ie
>  does a call to the server an ff doesnt? But that shouldnt be to much
>  of a problem. That page just should be there.
>
>
>
>  On 4/29/08, Marco Aurélio Silva <[EMAIL PROTECTED]> wrote:
>  > I put a breakpoint on Wicket.Session
>  > on method
>  > public final Page getPage(final String pageMapName, final String path,
>  > final int versionNumber)
>  >
>  > It seems Firefox is nothing making a request when I navigate with back
>  > and forward button. On IE  the call to this line:
>  >
>  > Page page = pageMap.get(Integer.parseInt(id), versionNumber);
>  >
>  > the page returns null, that's why I got the page expired :/
>  >
>  > Any suggestion?
>  >
>  >
>  >
>  > On Tue, Apr 29, 2008 at 9:35 AM, Marco Aurélio Silva <[EMAIL PROTECTED]>
>  > wrote:
>  > > Move to 1.3 now is not an option :(
>  > >
>  > >
>  > >
>  > >  On Mon, Apr 28, 2008 at 5:55 PM, Johan Compagner <[EMAIL PROTECTED]>
>  > wrote:
>  > >  > Dont know why it is different in ie compared to ff, but do upgrade to
>  > >  >  1.3 because then page expired are pretty much none excistent.
>  > >  >
>  > >  >
>  > >  >
>  > >  >  On 4/28/08, Marco Aurélio Silva <[EMAIL PROTECTED]> wrote:
>  > >  >  > Hi All
>  > >  >  >
>  > >  >  > I'm using wicket 1.2.6 and I'm having problems with back button on
>  > IE.
>  > >  >  > I can go back with back button of browser, but when I try to go
>  > >  >  > forward, I get a Page Expired. The log is set to debug, but I can't
>  > >  >  > find anything in log file to help me  find out what is causing 
> this.
>  > I
>  > >  >  > don't know if there is a problem in my code because in Firefox I 
> can
>  > >  >  > navigate back and forward with browser buttons without any problem.
>  > >  >  >
>  > >  >  > My doubt is where should I look to found the problem?
>  > >  >  >
>  > >  >  > Thanks in advance!
>  > >  >  >
>  > >  >  > Marco
>  > >  >  >
>  > >  >  >
>  > -
>  > >  >  > 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]
>  >
>  >
>
>  --
>  Sent from Gmail for mobile | mobile.google.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: ssl post to creditor company

2008-04-30 Thread Mathias P.W Nilsson

I've read some more and one solution is to make a form with body onload send
form. This will however make the page flicker wich is very ugly.
-- 
View this message in context: 
http://www.nabble.com/ssl-post-to-creditor-company-tp16978155p16981148.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: [Inmethod-grid] column resize event?

2008-04-30 Thread ChuckDeal

Thanks, that's the right idea, but how can I use that to affect the client? 
It does not receive the target object from the event.  Also, it would be
nice if it included which columns changed.  

Or better yet, add a onColumnChanged method to AbstractColumn and then have
SubmitColumnStateBehavior call that method for each changed column (passing
a target object so that the client can be altered as a result of the
change).

Chuck


martin-g wrote:
> 
> see com.inmethod.grid.common.AbstractGrid.onColumnStateChanged()
> 
> On Tue, 2008-04-29 at 12:24 -0700, ChuckDeal wrote:
>> Would it be possible to get a column resize event added?
>> 
>> I am attempting to use a Dojo Combobox as the editable cell content.  The
>> grid has a css style defined for edited cells that forces the combobox
>> text
>> element to 100% of the column width.  That has a cool effect when
>> editting,
>> but has the side effect of forcing the dropdown's button outside the
>> viewport for the column.  I was hoping to hook onto the column resize
>> event
>> to execute a javascript function that would intelligently resize the
>> combobox according to the size of the column.  
>> 
>> Using percentages for the combobox width works, but at small and large
>> column sizes, you can see the imperfection in that method.
>> 
>> Is there another (non css expression) strategy I could use to apply a
>> formula to the width attribute of the input element?
>> 
>> Chuck
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/-Inmethod-grid--column-resize-event--tp16968211p16980669.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: JmxPanel

2008-04-30 Thread Paolo Di Tommaso
Cool, good to know.

Thanks, Paolo

On Wed, Apr 30, 2008 at 11:59 AM, Gerolf Seitz <[EMAIL PROTECTED]>
wrote:

> heh, didn't think of that ;)
> the correct way would be to override the methode getDomainFilter
> and return IDomainFilter.ALL (or something like that)
>
> Gerolf
>
> On Wed, Apr 30, 2008 at 11:49 AM, Paolo Di Tommaso <
> [EMAIL PROTECTED]> wrote:
>
> > YESS! You are right, now it works.
> >
> > Thank you, Paolo
> >
> >
> >
> > On Wed, Apr 30, 2008 at 11:15 AM, Benjamin Ernst <
> [EMAIL PROTECTED]
> > >
> > wrote:
> >
> > > Hi Paolo,
> > >
> > > I had just the same problem as you.
> > >
> > > The "display:none" has nothing to do with this. It just hides the root
> > of
> > > the tree.
> > >
> > > The problem was that the domain is skipped, because it doesen´t have
> the
> > > same name as my Application.
> > >
> > > So I removed the the filter part from the createTreeModel()-Method in
> > the
> > > JmxPanel.java like this:
> > >
> > > // process all available domains
> > >for (int i = 0; i < domains.length; i++)
> > >{
> > >// skip unwanted domains
> > > *//if (!getDomainFilter().accept(domains[i]))
> > > //{
> > > //continue;
> > > //}*
> > >// create domain tree node and add to root
> > >JmxTreeNode domain = new JmxTreeNode(domains[i], null);
> > >rootNode.add(domain);
> > >..
> > >
> > > Now I can see all domains in my jmx-Panel
> > >
> > > I hope it helps.
> > >
> > > Benjamin
> > >
> > >
> > >
> > >
> > >
> > > On Wed, Apr 23, 2008 at 11:09 PM, Paolo Di Tommaso <
> > > [EMAIL PROTECTED]> wrote:
> > >
> > > > No. Just a plain html page without any custom css.
> > > >
> > > > What version of Wicket/Wicket-stuff-jmx-panel are you using ?
> > > >
> > > >
> > > > Thanks,
> > > >
> > > > // Paolo
> > > >
> > > > On Wed, Apr 23, 2008 at 7:20 PM, Gerolf Seitz <
> [EMAIL PROTECTED]>
> > > > wrote:
> > > >
> > > > > nope, did the same thing you did.
> > > > > do you have any custom css that might cause this?
> > > > >
> > > > >  Gerolf
> > > > >
> > > > > On Wed, Apr 23, 2008 at 7:02 PM, Paolo Di Tommaso <
> > > > > [EMAIL PROTECTED]>
> > > > > wrote:
> > > > >
> > > > > > Absolutely, JMX feature is enabled.
> > > > > >
> > > > > > I'm adding a JmxPanel in my page using a simple:
> > > > > >
> > > > > > add(new JmxPanel("jmx"));
> > > > > >
> > > > > >
> > > > > > but nothing is displayed ..
> > > > > >
> > > > > > You have it working? Have you used any trick?
> > > > > >
> > > > > > // Paolo
> > > > > >
> > > > > >
> > > > > > On Wed, Apr 23, 2008 at 3:46 PM, Gerolf Seitz <
> > > [EMAIL PROTECTED]>
> > > > > > wrote:
> > > > > >
> > > > > > > Paolo,
> > > > > > > I'm not sure where the "display:none" comes from,
> > > > > > > but i'm pretty sure it's not from the JmxPanel.
> > > > > > >
> > > > > > > do you have jmx enabled at all?
> > > > > > >
> > > > > > > Gerolf
> > > > > > >
> > > > > > > On Thu, Apr 17, 2008 at 9:07 AM, Paolo Di Tommaso <
> > > > > > > [EMAIL PROTECTED]>
> > > > > > > wrote:
> > > > > > >
> > > > > > > > Guys,
> > > > > > > >
> > > > > > > > someone has soem experience with the nice JmxPanel describe
> > > here?
> > > > > > > >
> > > > > > > >
> http://chillenious.wordpress.com/2007/08/29/jmx-wicket-panel/
> > > > > > > >
> > > > > > > > Adding a JmxPanel instance to my page I always get the
> > following
> > > > > EMPTY
> > > > > > > > panel
> > > > > > > > ..
> > > > > > > >
> > > > > > > >
> > > > > > > > 
> > > > > > > > 
> > > > > > > > 
> > > > > > > >  
> > > > > > > >  
> > > > > > > >  
> > > > > > > >
> > > > > > > > 
> > > > > > > > 
> > > > > > > > 
> > > > > > > > 
> > > > > > > > 
> > > > > > > >
> > > > > > > >
> > > > > > > > Any ideas ?
> > > > > > > >
> > > > > > > > Thanks.
> > > > > > > >
> > > > > > > > // Paolo
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>


[Announce] Wicketstuff : Wicket Iolite

2008-04-30 Thread Nino Saturnino Martinez Vazquez Wael

Hi

Today I want to announce the Wicketstuff Wicket-iolite. Which are a  
maven archetype much like wicket quickstart archetype. In fact it's 
based on that one. The main difference is that Iolite has spring and JPA 
/ Hibernate setup for you in its current state, Hibernate can generate 
the db tables for you if you want to. Currently it uses HSQL as 
database, but it's just a matter of uncommenting some lines if you want 
to connect to mysql. This makes it extremely quick to get projects going.


Wicket Iolite, is meant as a convenience helper, I for one hate doing 
trivial stuff. Opinions & patches are highly appriciated



http://wicketstuff.org/confluence/display/STUFFWIKI/Wicket-Iolite

Future developments could be:

   * Adding template entites via command line
   * Using other providers than Hibernate
   * Alternate IOC than spring

As you can see when generating a project, im currently having trouble 
with package names, since this is a multi module maven archetype (im 
including all java as resource). So any hints or help would be great.



--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


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



Re: ssl post to creditor company

2008-04-30 Thread Mathias P.W Nilsson

I think I'm not marking myself very clear. Here is the scenario

1. User fills in wicket form with credit card information delivery method
2. Wicket form handles the post to check that everything is correct
3. A post to an external link must be done. The browser should follow. I
must leave my url and go to an online banking url. 

How can this be done with wicket. The HTTP connection and HTTPClient from
apache only post and I'm still in my webpage. I need to perform a http post
that redirects my browser window.

Now, someone might say that I should do this with a normal form post bu it
needs to be in wicket. I have inherited subclasses for layout.

Anyone?
-- 
View this message in context: 
http://www.nabble.com/ssl-post-to-creditor-company-tp16978155p16979995.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: ssl post to creditor company

2008-04-30 Thread Jonas
I'm not familiar with your HttpClient class, but I have used
java.net.HttpURLConnection
as (very simple...) http client in the past, which can be instructed
to follow redirects.
You can create one of those using
java.net.URL("http://whatever.com/";).openConnection().
You'll probably have to format/encode the parameters in the message
body yourself, HttpURLConnection
won't do that for you. But that shouldn't be too hard...

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



Javascript error in wicket

2008-04-30 Thread Vitaly Tsaplin
   Hi everyone,

  Firebug is complaining as follows:

 [Exception... "Component is not available" nsresult: "0x80040111
(NS_ERROR_NOT_AVAILABLE)" location: "JS frame ::
file:///C:/Program%20Files/Mozilla%20Firefox/components/nsSessionStore.js
:: sss_saveState :: line 1753" data: no]
[Break on this error] oState.session = { state: ((this._loadState ==
STATE_RUNNING) ? STATE_RUNNIN...

   Any ideas?

   Vitaly

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



Re: ssl post to creditor company

2008-04-30 Thread Mathias P.W Nilsson

Still can't get this to work I have a post that is handled in my wicket
page.

After checking the parameters I try to post it with HTTPClient

HttpClient client = new HttpClient();
PostMethod post = new PostMethod("http://URL";); 
post.addParameter( "UserName", "test");
post.addParameter( "Password", "test");
try {
  client.executeMethod(post);
  System.out.println(post.getStatusLine() );
}catch( Exception nex ){
   nex.printStackTrace();
} finally {
   post.releaseConnection();
}


But the bank requires a redirect. Is this even possible?
-- 
View this message in context: 
http://www.nabble.com/ssl-post-to-creditor-company-tp16978155p16979369.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]



wicket webapp starts and stops immediately

2008-04-30 Thread Sebastiaan van Erk

Hi,

I've got a bit of strange error which I don't understand. I'm using the 
tomcat sysdeo plugin to start my Wicket webapp (which I always do in 
development), but all of a sudden for this webapp I get that it starts 
and immediately stops again.


If I do "update context" the webapp is reloaded and it stays, i.e., it 
is not immediately stopped again.


Does anybody have any idea what could be causing this? I don't know 
where to look anymore...


Regards,
Sebastiaan

P.S., as a second question, I *always* get those listener warnings, but 
if I remove the spring listener then Wicket tells me it can't find an 
application and that I might have not added the listener... How can I 
get rid of the warnings?



2008-04-30 11:56:12,796 INFO  - 
[org.apache.wicket.protocol.http.WebApplication:656] 
[WebSiteApplication] Started Wicket version 1.3.3 in development mode


*** WARNING: Wicket is running in DEVELOPMENT mode.  ***
***   ^^^***
*** Do NOT deploy to your live server(s) without changing this.  ***
*** See Application#getConfigurationType() for more information. ***

Apr 30, 2008 11:56:13 AM org.apache.catalina.core.StandardContext 
addApplicationListener
INFO: The listener "listeners.ContextListener" is already configured for 
this context. The duplicate definition has been ignored.
Apr 30, 2008 11:56:13 AM org.apache.catalina.core.StandardContext 
addApplicationListener
INFO: The listener "listeners.SessionListener" is already configured for 
this context. The duplicate definition has been ignored.

Apr 30, 2008 11:56:13 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Apr 30, 2008 11:56:13 AM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
2008-04-30 11:56:13,369 DEBUG - 
[org.apache.wicket.protocol.http.pagestore.FileChannelPool:302] 
Destroying FileChannel pool

Apr 30, 2008 11:56:13 AM org.apache.catalina.core.ApplicationContext log
INFO: Closing Spring root WebApplicationContext
2008-04-30 11:56:13,480 INFO  - 
[org.springframework.context.support.AbstractApplicationContext:822] 
Closing 
[EMAIL PROTECTED]: 
display name [Root WebApplicationContext]; startup date [Wed Apr 30 
11:56:10 CEST 2008]; root of context hierarchy
2008-04-30 11:56:13,482 DEBUG - 
[org.springframework.context.support.AbstractApplicationContext:258] 
Publishing event in context 
[EMAIL PROTECTED]: 
[EMAIL PROTECTED]: 
display name [Root WebApplicationContext]; startup date [Wed Apr 30 
11:56:10 CEST 2008]; root of context hierarchy]
2008-04-30 11:56:13,488 DEBUG - 
[org.springframework.context.support.AbstractApplicationContext:258] 
Publishing event in context 
[EMAIL PROTECTED]: 
[EMAIL PROTECTED]: 
display name [Root WebApplicationContext]; startup date [Wed Apr 30 
11:56:10 CEST 2008]; root of context hierarchy]
2008-04-30 11:56:13,489 INFO  - 
[org.springframework.beans.factory.support.DefaultSingletonBeanRegistry:340] 
Destroying singletons in 
[EMAIL PROTECTED]: 
defining beans [overrideConfigurer,wicketApplication]; root of factory 
hierarchy

Apr 30, 2008 11:56:13 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Apr 30, 2008 11:56:13 AM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Apr 30, 2008 11:56:13 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/92  config=null
Apr 30, 2008 11:56:13 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 7727 ms


smime.p7s
Description: S/MIME Cryptographic Signature


Re: JmxPanel

2008-04-30 Thread Gerolf Seitz
heh, didn't think of that ;)
the correct way would be to override the methode getDomainFilter
and return IDomainFilter.ALL (or something like that)

Gerolf

On Wed, Apr 30, 2008 at 11:49 AM, Paolo Di Tommaso <
[EMAIL PROTECTED]> wrote:

> YESS! You are right, now it works.
>
> Thank you, Paolo
>
>
>
> On Wed, Apr 30, 2008 at 11:15 AM, Benjamin Ernst <[EMAIL PROTECTED]
> >
> wrote:
>
> > Hi Paolo,
> >
> > I had just the same problem as you.
> >
> > The "display:none" has nothing to do with this. It just hides the root
> of
> > the tree.
> >
> > The problem was that the domain is skipped, because it doesen´t have the
> > same name as my Application.
> >
> > So I removed the the filter part from the createTreeModel()-Method in
> the
> > JmxPanel.java like this:
> >
> > // process all available domains
> >for (int i = 0; i < domains.length; i++)
> >{
> >// skip unwanted domains
> > *//if (!getDomainFilter().accept(domains[i]))
> > //{
> > //continue;
> > //}*
> >// create domain tree node and add to root
> >JmxTreeNode domain = new JmxTreeNode(domains[i], null);
> >rootNode.add(domain);
> >..
> >
> > Now I can see all domains in my jmx-Panel
> >
> > I hope it helps.
> >
> > Benjamin
> >
> >
> >
> >
> >
> > On Wed, Apr 23, 2008 at 11:09 PM, Paolo Di Tommaso <
> > [EMAIL PROTECTED]> wrote:
> >
> > > No. Just a plain html page without any custom css.
> > >
> > > What version of Wicket/Wicket-stuff-jmx-panel are you using ?
> > >
> > >
> > > Thanks,
> > >
> > > // Paolo
> > >
> > > On Wed, Apr 23, 2008 at 7:20 PM, Gerolf Seitz <[EMAIL PROTECTED]>
> > > wrote:
> > >
> > > > nope, did the same thing you did.
> > > > do you have any custom css that might cause this?
> > > >
> > > >  Gerolf
> > > >
> > > > On Wed, Apr 23, 2008 at 7:02 PM, Paolo Di Tommaso <
> > > > [EMAIL PROTECTED]>
> > > > wrote:
> > > >
> > > > > Absolutely, JMX feature is enabled.
> > > > >
> > > > > I'm adding a JmxPanel in my page using a simple:
> > > > >
> > > > > add(new JmxPanel("jmx"));
> > > > >
> > > > >
> > > > > but nothing is displayed ..
> > > > >
> > > > > You have it working? Have you used any trick?
> > > > >
> > > > > // Paolo
> > > > >
> > > > >
> > > > > On Wed, Apr 23, 2008 at 3:46 PM, Gerolf Seitz <
> > [EMAIL PROTECTED]>
> > > > > wrote:
> > > > >
> > > > > > Paolo,
> > > > > > I'm not sure where the "display:none" comes from,
> > > > > > but i'm pretty sure it's not from the JmxPanel.
> > > > > >
> > > > > > do you have jmx enabled at all?
> > > > > >
> > > > > > Gerolf
> > > > > >
> > > > > > On Thu, Apr 17, 2008 at 9:07 AM, Paolo Di Tommaso <
> > > > > > [EMAIL PROTECTED]>
> > > > > > wrote:
> > > > > >
> > > > > > > Guys,
> > > > > > >
> > > > > > > someone has soem experience with the nice JmxPanel describe
> > here?
> > > > > > >
> > > > > > > http://chillenious.wordpress.com/2007/08/29/jmx-wicket-panel/
> > > > > > >
> > > > > > > Adding a JmxPanel instance to my page I always get the
> following
> > > > EMPTY
> > > > > > > panel
> > > > > > > ..
> > > > > > >
> > > > > > >
> > > > > > > 
> > > > > > > 
> > > > > > > 
> > > > > > >  
> > > > > > >  
> > > > > > >  
> > > > > > >
> > > > > > > 
> > > > > > > 
> > > > > > > 
> > > > > > > 
> > > > > > > 
> > > > > > >
> > > > > > >
> > > > > > > Any ideas ?
> > > > > > >
> > > > > > > Thanks.
> > > > > > >
> > > > > > > // Paolo
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>


Re: loadStringResource(Component component, String key) - correct method to check if the component IS a Page?

2008-04-30 Thread Ned Collyer

Sure I can appreciate that :) However I define my panels to accept certain
objects to chuck into the model, so thats fine.

It means I can provide translations for pojos from non wicket jars using a
method similar to wickets nice 1 class, 1 property file approach.

Eg,

mypanel extends panel {
  mypanel(id, Person person) {
 setModel(new Person())
  }
}


MyNonWicketProject.jar
  Person.class
  Person.properties
entity=Person
name=Name
surname=Surname


Great for generating forms, and combined with generics becomes quite
powerful.

My usecase and requirement of wicket is probably non typical (which is why
wicket rocks because I can customise it) - I have a large team each
developing different modules, and things like translations need to be
available in non wicket environments.  Everything is translatable.

Still - would be nice if the
MarkupInheritanceResolver$TransparentWebMarkupContainer somehow indicated it
was the the page (and returned the pages model).

I can live without it.


igor.vaynberg wrote:
> 
> hm. dont know if doing localization based on type of model object is a
> great idea. there are many usecases where model type is quiet
> aribitrary, and as you have found out yourself you dont know what
> component you get passed in, so you just need to handle it in a way
> that makes sense to you.
> 
> -igor
> 

-- 
View this message in context: 
http://www.nabble.com/loadStringResource%28Component-component%2C-String-key%29---correct-method-to-check-if-the-component-IS-a-Page--tp16930303p16979272.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: JmxPanel

2008-04-30 Thread Paolo Di Tommaso
YESS! You are right, now it works.

Thank you, Paolo



On Wed, Apr 30, 2008 at 11:15 AM, Benjamin Ernst <[EMAIL PROTECTED]>
wrote:

> Hi Paolo,
>
> I had just the same problem as you.
>
> The "display:none" has nothing to do with this. It just hides the root of
> the tree.
>
> The problem was that the domain is skipped, because it doesen´t have the
> same name as my Application.
>
> So I removed the the filter part from the createTreeModel()-Method in the
> JmxPanel.java like this:
>
> // process all available domains
>for (int i = 0; i < domains.length; i++)
>{
>// skip unwanted domains
> *//if (!getDomainFilter().accept(domains[i]))
> //{
> //continue;
> //}*
>// create domain tree node and add to root
>JmxTreeNode domain = new JmxTreeNode(domains[i], null);
>rootNode.add(domain);
>..
>
> Now I can see all domains in my jmx-Panel
>
> I hope it helps.
>
> Benjamin
>
>
>
>
>
> On Wed, Apr 23, 2008 at 11:09 PM, Paolo Di Tommaso <
> [EMAIL PROTECTED]> wrote:
>
> > No. Just a plain html page without any custom css.
> >
> > What version of Wicket/Wicket-stuff-jmx-panel are you using ?
> >
> >
> > Thanks,
> >
> > // Paolo
> >
> > On Wed, Apr 23, 2008 at 7:20 PM, Gerolf Seitz <[EMAIL PROTECTED]>
> > wrote:
> >
> > > nope, did the same thing you did.
> > > do you have any custom css that might cause this?
> > >
> > >  Gerolf
> > >
> > > On Wed, Apr 23, 2008 at 7:02 PM, Paolo Di Tommaso <
> > > [EMAIL PROTECTED]>
> > > wrote:
> > >
> > > > Absolutely, JMX feature is enabled.
> > > >
> > > > I'm adding a JmxPanel in my page using a simple:
> > > >
> > > > add(new JmxPanel("jmx"));
> > > >
> > > >
> > > > but nothing is displayed ..
> > > >
> > > > You have it working? Have you used any trick?
> > > >
> > > > // Paolo
> > > >
> > > >
> > > > On Wed, Apr 23, 2008 at 3:46 PM, Gerolf Seitz <
> [EMAIL PROTECTED]>
> > > > wrote:
> > > >
> > > > > Paolo,
> > > > > I'm not sure where the "display:none" comes from,
> > > > > but i'm pretty sure it's not from the JmxPanel.
> > > > >
> > > > > do you have jmx enabled at all?
> > > > >
> > > > > Gerolf
> > > > >
> > > > > On Thu, Apr 17, 2008 at 9:07 AM, Paolo Di Tommaso <
> > > > > [EMAIL PROTECTED]>
> > > > > wrote:
> > > > >
> > > > > > Guys,
> > > > > >
> > > > > > someone has soem experience with the nice JmxPanel describe
> here?
> > > > > >
> > > > > > http://chillenious.wordpress.com/2007/08/29/jmx-wicket-panel/
> > > > > >
> > > > > > Adding a JmxPanel instance to my page I always get the following
> > > EMPTY
> > > > > > panel
> > > > > > ..
> > > > > >
> > > > > >
> > > > > > 
> > > > > > 
> > > > > > 
> > > > > >  
> > > > > >  
> > > > > >  
> > > > > >
> > > > > > 
> > > > > > 
> > > > > > 
> > > > > > 
> > > > > > 
> > > > > >
> > > > > >
> > > > > > Any ideas ?
> > > > > >
> > > > > > Thanks.
> > > > > >
> > > > > > // Paolo
> > > > > >
> > > > >
> > > >
> > >
> >
>


Re: Alternative method to initialise page

2008-04-30 Thread Johan Compagner
That is bad programming anyway. Why make a next page already??

On 4/30/08, John Patterson <[EMAIL PROTECTED]> wrote:
>
> I was thinking that another benefit of initialising the page after
> construction is less memory use when using "redirect to render", when there
> are many invisible components, or in situations where a page instance is
> created to pass to another page as the next page or return page.
>
>
> igor.vaynberg wrote:
> >
> > heh, even though we switched to int we are pretty close to running out
> > of flag bits already :) but oh well :)
> >
> > -igor
> >
>
>
> --
> View this message in context:
> http://www.nabble.com/Alternative-method-to-initialise-page-tp16742636p16975470.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: ssl post to creditor company

2008-04-30 Thread Mathias P.W Nilsson

Ok!

I guess I'll have to do this outside of wicket. HTTPClient or something like
that. Is this correct?
-- 
View this message in context: 
http://www.nabble.com/ssl-post-to-creditor-company-tp16978155p16979016.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: JmxPanel

2008-04-30 Thread Benjamin Ernst
Hi Paolo,

I had just the same problem as you.

The "display:none" has nothing to do with this. It just hides the root of
the tree.

The problem was that the domain is skipped, because it doesen´t have the
same name as my Application.

So I removed the the filter part from the createTreeModel()-Method in the
JmxPanel.java like this:

// process all available domains
for (int i = 0; i < domains.length; i++)
{
// skip unwanted domains
*//if (!getDomainFilter().accept(domains[i]))
//{
//continue;
//}*
// create domain tree node and add to root
JmxTreeNode domain = new JmxTreeNode(domains[i], null);
rootNode.add(domain);
..

Now I can see all domains in my jmx-Panel

I hope it helps.

Benjamin





On Wed, Apr 23, 2008 at 11:09 PM, Paolo Di Tommaso <
[EMAIL PROTECTED]> wrote:

> No. Just a plain html page without any custom css.
>
> What version of Wicket/Wicket-stuff-jmx-panel are you using ?
>
>
> Thanks,
>
> // Paolo
>
> On Wed, Apr 23, 2008 at 7:20 PM, Gerolf Seitz <[EMAIL PROTECTED]>
> wrote:
>
> > nope, did the same thing you did.
> > do you have any custom css that might cause this?
> >
> >  Gerolf
> >
> > On Wed, Apr 23, 2008 at 7:02 PM, Paolo Di Tommaso <
> > [EMAIL PROTECTED]>
> > wrote:
> >
> > > Absolutely, JMX feature is enabled.
> > >
> > > I'm adding a JmxPanel in my page using a simple:
> > >
> > > add(new JmxPanel("jmx"));
> > >
> > >
> > > but nothing is displayed ..
> > >
> > > You have it working? Have you used any trick?
> > >
> > > // Paolo
> > >
> > >
> > > On Wed, Apr 23, 2008 at 3:46 PM, Gerolf Seitz <[EMAIL PROTECTED]>
> > > wrote:
> > >
> > > > Paolo,
> > > > I'm not sure where the "display:none" comes from,
> > > > but i'm pretty sure it's not from the JmxPanel.
> > > >
> > > > do you have jmx enabled at all?
> > > >
> > > > Gerolf
> > > >
> > > > On Thu, Apr 17, 2008 at 9:07 AM, Paolo Di Tommaso <
> > > > [EMAIL PROTECTED]>
> > > > wrote:
> > > >
> > > > > Guys,
> > > > >
> > > > > someone has soem experience with the nice JmxPanel describe here?
> > > > >
> > > > > http://chillenious.wordpress.com/2007/08/29/jmx-wicket-panel/
> > > > >
> > > > > Adding a JmxPanel instance to my page I always get the following
> > EMPTY
> > > > > panel
> > > > > ..
> > > > >
> > > > >
> > > > > 
> > > > > 
> > > > > 
> > > > >  
> > > > >  
> > > > >  
> > > > >
> > > > > 
> > > > > 
> > > > > 
> > > > > 
> > > > > 
> > > > >
> > > > >
> > > > > Any ideas ?
> > > > >
> > > > > Thanks.
> > > > >
> > > > > // Paolo
> > > > >
> > > >
> > >
> >
>


ssl post to creditor company

2008-04-30 Thread Mathias P.W Nilsson

Hi!

I must integrate my wicket webapplication with a creditor company. It is a
https post with a lot of parameters. I need to check all parameters first
and the forward the post to the billing company. Any suggestions on how to
do that?
-- 
View this message in context: 
http://www.nabble.com/ssl-post-to-creditor-company-tp16978155p16978155.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: After Upload File via ModalWindow and IFrame, the TreeModels UserOject Attributes are null

2008-04-30 Thread geke

I have attached my source Files. There are a few files, I hope it don`t slay
to you;-)

If I take out the iFrame from the modal window everything works fine.

Hope anyone can help me.


Cristi Manole wrote:
> 
> I don't think it's because of the iFrame. If you take it out of the modal
> page content, will that stop messing up the linktree?
> 
> can you provide more code?
> 
> On Mon, Apr 28, 2008 at 2:15 PM, geke <[EMAIL PROTECTED]> wrote:
> 
>>
>> Hello,
>>
>> I´m upload a file via a modal window and an iFrame. It`s described in
>>
>> http://www.dooriented.com/blog/2008/04/23/wicket-ajax-like-file-upload-on-a-modal-window
>> .
>>
>> Also I have a LinkTree on my site. But after closing the modal window,
>> the
>> tree models userObject has a reference, but the attributes of the
>> userObject
>> are all null. Hence after the onClicked event on nodes in my tree, there
>> are
>> no Nodes visible.
>> That is even the modal window is closed without a fileupload. It seems to
>> me, that there is a problem with the iFrame.
>>
>> I´m thankfully for any inspiration
>>
>> --
>> View this message in context:
>> http://www.nabble.com/After-Upload-File-via-ModalWindow-and-IFrame%2C-the-TreeModels-UserOject-Attributes-are-null-tp16936673p16936673.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]
>>
>>
> 
> 
http://www.nabble.com/file/p16977821/Tree_Modal_FileUpload.zip
Tree_Modal_FileUpload.zip 
-- 
View this message in context: 
http://www.nabble.com/After-Upload-File-via-ModalWindow-and-IFrame%2C-the-TreeModels-UserOject-Attributes-are-null-tp16936673p16977821.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: Is it possible to hide /?wicket:.. from the URLs

2008-04-30 Thread Peter Ertl

A "poor man's solution" could be:

You could rewrite your URL through e.g. a front-end apache and  
mod_rewrite.


response: convert any occurrence of '?wicket' to '?foobar' in url
request: convert '?foobar' to '?wicket'



Am 30.04.2008 um 03:57 schrieb Johan Compagner:


Currently it is not easy to get wicket out of all the urls. This
prefix is a static final that is used on many places, i want to make
that configurable in a next release.

By default wicket will generate  relative paths. You can get a
absolute one with i believe RequestUtils. But this is still without
host/port i think, why do you want that? For generating emails or
something like that?

On 4/30/08, Ritz123 <[EMAIL PROTECTED]> wrote:


Hi,

Was wondering if its possible to hide "wicket" name from the URLs  
(stateless
and stateful). One might not want to show their end users that  
wicket is

being used behind the scenes.

Also I noticed even if page has bookmarkable links - the links show  
relative
../../../../mount/params!! Is there anyway to have  
complete(absolute urls)

with the hostname?
--
View this message in context:
http://www.nabble.com/Is-it-possible-to-hide---wicket%3A..-from-the-URLs-tp16972147p16972147.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]



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



Re: Spring 2.5 and Wicket, our vision about integration (a few explanations)

2008-04-30 Thread Igor Vaynberg
this way is documented in the Spring wiki page...

-igor


On Wed, Apr 30, 2008 at 12:47 AM, Sergio García <[EMAIL PROTECTED]> wrote:
>
>
>
>  igor.vaynberg wrote:
>  >
>  > anywho. why even talk about this? there is absolutely nothing stopping
>  > you from doing this is there?
>  >
>  > -igor
>  >
>
>  Of course not. I only want to expose another way of doing something.
>
>
>  --
>  View this message in context: 
> http://www.nabble.com/Spring-2.5-and-Wicket%2C-our-vision-about-integration-tp16930960p16977391.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: Jquery Attached Behaviors Disappearing During Ajax Calls

2008-04-30 Thread Peter Ertl
Have you tried putting that javascript behavior into an wicket  
behavior attached to the component?


something like...

  textbox.add(new MyJQueryCustomBehavior())



Am 30.04.2008 um 09:41 schrieb carloc:



Hi,

I'm using JQuery together with Wicket. I have this problem that  
whenever I

update a component through ajax, the behaviors I attached using jquery
disappear already.

For example I have a textbox which has this

$('textbox').click(function() {
alert('hello')
})

This would work while the textbox has not yet been updated.
But whenever the component has been replaced by Wicket

target.addComponent(textbox)

It will be replaced by a new component and the behavior that was  
binded is

no longer there.

Is there a workaround to this?

Thanks
Carlo
--
View this message in context: 
http://www.nabble.com/Jquery-Attached-Behaviors-Disappearing-During-Ajax-Calls-tp16977307p16977307.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: Spring 2.5 and Wicket, our vision about integration (a few explanations)

2008-04-30 Thread Sergio García



igor.vaynberg wrote:
> 
> anywho. why even talk about this? there is absolutely nothing stopping
> you from doing this is there?
> 
> -igor
> 

Of course not. I only want to expose another way of doing something. 


-- 
View this message in context: 
http://www.nabble.com/Spring-2.5-and-Wicket%2C-our-vision-about-integration-tp16930960p16977391.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]



Jquery Attached Behaviors Disappearing During Ajax Calls

2008-04-30 Thread carloc

Hi,

I'm using JQuery together with Wicket. I have this problem that whenever I
update a component through ajax, the behaviors I attached using jquery
disappear already.

For example I have a textbox which has this

$('textbox').click(function() {
alert('hello')
})

This would work while the textbox has not yet been updated.
But whenever the component has been replaced by Wicket

target.addComponent(textbox)

It will be replaced by a new component and the behavior that was binded is
no longer there.

Is there a workaround to this?

Thanks
Carlo
-- 
View this message in context: 
http://www.nabble.com/Jquery-Attached-Behaviors-Disappearing-During-Ajax-Calls-tp16977307p16977307.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]