Re: Customize AjaxEditableLabel

2011-07-04 Thread Martin Grigorov
Check 
org.apache.wicket.extensions.ajax.markup.html.AjaxEditableMultiLineLabel

If this doesn't fit your needs then advise from
org.apache.wicket.extensions.ajax.markup.html.AjaxEditableChoiceLabel
as well

On Tue, Jul 5, 2011 at 8:38 AM, PDiefent  wrote:
> Here are some code sniplets, perhaps you can see what's wrong - I definitely
> don't call super newEditor().
>
> The next problem I will get is that the ContentEditorLabel closes when I
> click on an other field in the form. I would prefer a modal behaviour what
> means that I have to use the buttons to close the ne edit fields ...
>
>
> private class ContentEditorLabel extends AjaxEditableLabel {
>                private static final long serialVersionUID = 1L;
>                public ContentEditorLabel(String id) {
>                        super(id);
>
>                }
>                @Override
>                protected final FormComponent newEditor(
>                                MarkupContainer parent, String componentId,
>                                IModel model) {
>
>                        final SwiftFieldInput editor = new 
> SwiftFieldInput(componentId, model){
>                                private static final long serialVersionUID = 
> 1L;
>
>                                @Override
>                                public IConverter getConverter(Class type)
>                                {
>                                        IConverter c = 
> ContentEditorLabel.this.getConverter(type);
>                                        return c != null ? c : 
> super.getConverter(type);
>                                }
>
>                                @Override
>                                protected void onModelChanged()
>                                {
>                                        super.onModelChanged();
>                                        
> ContentEditorLabel.this.onModelChanged();
>                                }
>
>                                @Override
>                                protected void onModelChanging()
>                                {
>                                        super.onModelChanging();
>                                        
> ContentEditorLabel.this.onModelChanging();
>                                }
>                        };
>                        editor.setOutputMarkupId(true);
>                        editor.setVisible(false);
>                        editor.add(new EditorAjaxBehavior());
>                        return editor;
>                }
>        };
>
> package com.csc.pts.web.panels.swift;
>
> import org.apache.wicket.markup.html.form.FormComponent;
> import org.apache.wicket.markup.html.form.FormComponentPanel;
> import org.apache.wicket.markup.html.form.TextArea;
> import org.apache.wicket.model.IModel;
> import org.apache.wicket.model.Model;
>
> public class SwiftFieldInput extends FormComponentPanel {
>        private static final long serialVersionUID = 1L;
>
>        private final FormComponent contentArea;
>        String test;
>        public SwiftFieldInput(String id, IModel model) {
>                super(id,model);
>
>                contentArea = new TextArea("contentarea",new 
> Model());
>                add(contentArea);
>        }
>
>        @Override
>        protected void onModelChanged() {
>                super.onModelChanged();
>                String content = getModelObject();
>                if (content != null)
>                        contentArea.setModelObject(content);
>                else
>                        contentArea.setModelObject(null);
>        }
> }
>
>
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/Customize-AjaxEditableLabel-tp3643409p3645206.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com


Re: Customize AjaxEditableLabel

2011-07-04 Thread PDiefent
Here are some code sniplets, perhaps you can see what's wrong - I definitely
don't call super newEditor().

The next problem I will get is that the ContentEditorLabel closes when I
click on an other field in the form. I would prefer a modal behaviour what
means that I have to use the buttons to close the ne edit fields ...


private class ContentEditorLabel extends AjaxEditableLabel {
private static final long serialVersionUID = 1L;
public ContentEditorLabel(String id) {
super(id);

}   
@Override
protected final FormComponent newEditor(
MarkupContainer parent, String componentId,
IModel model) {

final SwiftFieldInput editor = new 
SwiftFieldInput(componentId, model){
private static final long serialVersionUID = 1L;

@Override
public IConverter getConverter(Class type)
{
IConverter c = 
ContentEditorLabel.this.getConverter(type);
return c != null ? c : 
super.getConverter(type);
}

@Override
protected void onModelChanged()
{
super.onModelChanged();

ContentEditorLabel.this.onModelChanged();
}

@Override
protected void onModelChanging()
{
super.onModelChanging();

ContentEditorLabel.this.onModelChanging();
}
}; 
editor.setOutputMarkupId(true);
editor.setVisible(false);
editor.add(new EditorAjaxBehavior());
return editor;
}
};

package com.csc.pts.web.panels.swift;

import org.apache.wicket.markup.html.form.FormComponent;
import org.apache.wicket.markup.html.form.FormComponentPanel;
import org.apache.wicket.markup.html.form.TextArea;
import org.apache.wicket.model.IModel;
import org.apache.wicket.model.Model;

public class SwiftFieldInput extends FormComponentPanel {
private static final long serialVersionUID = 1L;

private final FormComponent contentArea;
String test;
public SwiftFieldInput(String id, IModel model) {
super(id,model);

contentArea = new TextArea("contentarea",new 
Model());
add(contentArea);
}

@Override
protected void onModelChanged() {
super.onModelChanged();
String content = getModelObject();
if (content != null)
contentArea.setModelObject(content);
else
contentArea.setModelObject(null);
}
}



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Customize-AjaxEditableLabel-tp3643409p3645206.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Wicket and OSGi

2011-07-04 Thread Andreas Pieber
Hey Harald,

On Mon, Jul 4, 2011 at 10:47 PM, Harald Wellmann  wrote:
> thanks for providing the pointers and the brand new intro in the Pax Wicket
> wiki.

I'm very sorry for the lack of documentation. But I planed to get it
done, provide the documentation and do the project marketing then. I
missed to recognize the BIG need for pax-wicket. Sorry for that.

> This is now at least something to get started, and I'm beginning to see that
> there is some overlap with wicket-osgi or even the chance of wicket-osgi
> becoming obsolete in the near future as Pax Wicket matures or just shifts
> its priorities a little from hacking to documenting all its goodies ;-)

You're highly welcomed to work out the problems with us together. I
would be very happy if I don't have to document everything from
top-to-bottom but could rather start at your special needs and extend
pax-wicket and the documentation where required. Any idea/discussion
on IRC/lists is highly welcomed. In addition, as typical for ops4j
projects, anyone is welcomed to create an account and start
hacking/writing docs :)

> Some points after a very quick first look and comparison:
>
> - Pax Wicket head does not compile
> (https://ops4j1.jira.com/browse/PAXWICKET-164)

Not true :) This is really a JDK bug. If you upgrade to the latest JDK
version it works.

> - Pax Wicket is based on Wicket 1.4.17, wicket-osgi on 1.5-SNAPSHOT

True for the moment. But I don't think that the upgrade will cost that
much and most of the user base is still on 1.4.x. In fact it is
possible to port your existing 1.4.x wicket app (typically) within
hours. I did this to several of the apps at my company and it worked
like a charm.

> - Wicket 1.4.17 uses DynamicImport-Package: * - are you sure Pax Wicket
> would work without that?

I'm because we do NOT use the standard wicket packages. We pack wicket
into the pax-wicket package and reexport them. If you're familiar with
the maven-bundle-plugin feel free to take a look here
(https://github.com/ops4j/org.ops4j.pax.wicket/blob/master/service/pom.xml)
and see what I mean.

> - The official Wicket 1.5 artifacts are not OSGi friendly, so if you upgrade
> Pax Wicket to 1.5, you'd have to use wicket-bundle from Wicketstuff, just
> like wicket-osgi. (Of course, I'd much prefer the Wicket core project to
> provide properly osgified artifacts without split packages and dynamic
> imports so we could scrap wicket-bundle...)

I'm completely with you. Since it doesn't make much sense to use a
different wicket version than pax-wicket I like our current approach
to repack all libs directly in pax-wicket. But I've no problem to be
convinced to use the wicketstuff wicket bundles or adapted wicket core
packages.

Kind regards,
Andreas

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

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



Re: Wicket and OSGi

2011-07-04 Thread Andreas Pieber
Hey Martin,

On Mon, Jul 4, 2011 at 10:24 PM, Martin Grigorov  wrote:
> Good work!

Thank you :)

> Do you have any plans to upgrade PAX-Wicket to Wicket 1.5 ?
> I saw that you have custom Output|Input ObjectStream impls.
> In Wicket 1.5 IObjectStreamFactory class is gone, so you'll need to
> use the new ISerializer interface.

Definitely. I know that there are some infrastructural changes in 1.5
which means that there will be a pax-wicket release for 1.4.x and one
for 1.5.x. TBH I'm not sure right now how I want to tackle this.
Either aligning the major (major.minor.micro) version to the
pax-wicket or provide two complete different versions (0.8.0.w15 and
0.8.0.w14). Anyhow I will provide a 1.5 compatible version within the
next 1-2 months.

> For more info you can check
> https://issues.apache.org/jira/browse/WICKET-3778
> https://github.com/wicketstuff/core/tree/master/jdk-1.5-parent/gae-initializer-parent/gae-initializer/src/main/java/org/wicketstuff/gae
> https://github.com/wicketstuff/core/tree/master/jdk-1.6-parent/serializer-kryo
>
> The GAE code is exactly what you'll need to do for PAX.

Thank you very much for those pointers. This does not look as it would
create any big problems if added to the pax-wicket model.

Kind regards,
Andreas

>
> On Mon, Jul 4, 2011 at 9:19 PM, pieber  wrote:
>> Hey,
>>
>> Sorry that I jump in so late, but it needed some time to spread the news of
>> this list if you're not a subscriber of the wicket user list :)
>>
>> I've taken up the development of pax-wicket which is a framework for the
>> integration of wicket to the osgi platform. While pax-wicket provides
>> various other features at it's core we've solved the classloader,
>> serialization and injection (spring & blueprint). While most of you may
>> already know about pax-wicket
>> (http://ops4j1.jira.com/wiki/display/paxwicket/Pax+Wicket and
>> https://github.com/ops4j/org.ops4j.pax.wicket) there had been LOTS of
>> changes in the last months and it is much easier to use by now! OK, with
>> that said back to the problem at hand.
>>
>> @WICKET-3737: We've used a similar approach as you've described. We
>> automatically attache Classresolver and InjectionResolver services to each
>> bundle and delegate the classloading to the bundle which contains the class.
>> This also allows to use classes not exported :) In fact you use case is
>> quite simple to implement with pax-wicket.
>>
>> @SpringWicket annotation: We use the same approach as you've described. The
>> only difference is that we extend the model a little bit further to allow
>> import from the blueprint AND spring context from one bundle. Otherwise we
>> limit the import to the bundle creating the blueprint or spring context.
>>
>> Feel free to give it a look. I've registered again and stay here and at the
>> pax lists for help and further infos :) I'm also available in the wicket and
>> pax IRC channels (pieber). Feel free to ping me.
>>
>> Kind regards,
>> Andreas
>>
>> --
>> View this message in context: 
>> http://apache-wicket.1842946.n4.nabble.com/Wicket-and-OSGi-tp3617698p3644390.html
>> Sent from the Users forum mailing list archive at Nabble.com.
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>
>
>
> --
> Martin Grigorov
> jWeekend
> Training, Consulting, Development
> http://jWeekend.com
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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



Re: AjaxFormComponentUpdatingBehavior causes javascript error

2011-07-04 Thread armandoxxx
got it ... was missing 

super.onComponentTag(theTag);


in text area

regards

Armando

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/AjaxFormComponentUpdatingBehavior-causes-javascript-error-tp3644889p3644928.html
Sent from the Users forum mailing list archive at Nabble.com.

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



AjaxFormComponentUpdatingBehavior causes javascript error

2011-07-04 Thread armandoxxx
Hi guys 

got a little problem with AjaxFormComponentUpdatingBehavior.

I put a form in a panel and add text area to it. 

this.messageForm = new Form("messageForm",
(IModel)this.getDefaultModel());
this.messageForm.setOutputMarkupId(true);
this.message = new TextArea("messageArea", new
Model("Vpišite sporočilo ...")) {

private static final long serialVersionUID = 
7090971229354611969L;

@Override
protected void onComponentTag(final ComponentTag 
theTag) {
if (PhonePanel.this.photoWrapper.isVisible()) {
theTag.put("style", "height: " + (375 
-30 -
DropchopApplication.DEFAULT_PHOTO_HEIGHT) + "px;");
}
}

};
this.message.add(
new AjaxFormComponentUpdatingBehavior("onblur") {

private static final long serialVersionUID = 
-3755174800992307122L;

@Override
protected void onUpdate(final AjaxRequestTarget 
theTarget) {
Component comp = getComponent();

TextArea textarea = (TextArea)comp;

String message = (String) 
textarea.getConvertedInput();
LOG.info("Current message:" + message);

theTarget.addComponent(PhonePanel.this.messageForm);
}

}
);
this.message.setOutputMarkupId(true);

this.messageForm.add(this.message);


this.sendMessageLink = new AjaxSubmitLink("sendMessageLink",
this.messageForm) {;

private static final long serialVersionUID = 
8597958558044823747L;

@Override
protected void onSubmit(AjaxRequestTarget target, 
Form form) {
// TODO Auto-generated method stub

}
};



when ever onblur event occurs I get javascript errors

Uncaught TypeError: Cannot read property 'id' of null (wicket-ajax.js:479)
Wicket.Form.serializeElement (wicket-ajax.js:479)
(anonymous function) (messaging:174)
onblur (messaging:175)


Does anyone know whats going on ? 

Regards

Armando

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/AjaxFormComponentUpdatingBehavior-causes-javascript-error-tp3644889p3644889.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: wicketstuff-push Documentation?

2011-07-04 Thread Sebastian

Hi Jake,

there is currently not any more documentation.

When you use push as decribed in the WIKI (EventHandler+PushNode) then 
you will need an additional message dispatching service (which often is 
the case in enterprise environments). If you want to communicate within 
a wicket application only, e.g. between pages or users, than you can use 
the channel feature provided by push: you create a named messaging 
channel using IPushService.createChannel(), connect the node you 
installed into a component to that channel using 
IPushService.connectToChannel(,) and send events to a 
channel using IPushService.publish(, ).


Regards,

Seb

On 04.07.2011 20:48, jbrookover wrote:

Hey all,

Just explored the wicketstuff-push examples.  Everything works great.

The only problem is that I'm overwhelmed with the code.  I'm new to
"pushing;" I had no idea what Comet was before yesterday.  I understand the
fundamentals of AjaxTimerBehavior polling, but push-timer and push-core go
way beyond that: channels, listeners, etc.

Question: Is there documentation beyond the GitHub Wiki and the
push-examples module?

If not, I'll just dive in the old fashioned way, but I was hoping to get a
better understanding before doing so.  In return, I'll try to put some
JavaDoc in the source as I start playing around.

Thanks!

Jake

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wicketstuff-push-Documentation-tp3644319p3644319.html
Sent from the Users forum mailing list archive at Nabble.com.

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






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



Re: Wicket and OSGi

2011-07-04 Thread Harald Wellmann

Hi Andreas,

thanks for providing the pointers and the brand new intro in the Pax 
Wicket wiki.


This is now at least something to get started, and I'm beginning to see 
that there is some overlap with wicket-osgi or even the chance of 
wicket-osgi becoming obsolete in the near future as Pax Wicket matures 
or just shifts its priorities a little from hacking to documenting all 
its goodies ;-)


Some points after a very quick first look and comparison:

- Pax Wicket head does not compile 
(https://ops4j1.jira.com/browse/PAXWICKET-164)


- Pax Wicket is based on Wicket 1.4.17, wicket-osgi on 1.5-SNAPSHOT

- Wicket 1.4.17 uses DynamicImport-Package: * - are you sure Pax Wicket 
would work without that?


- The official Wicket 1.5 artifacts are not OSGi friendly, so if you 
upgrade Pax Wicket to 1.5, you'd have to use wicket-bundle from 
Wicketstuff, just like wicket-osgi. (Of course, I'd much prefer the 
Wicket core project to provide properly osgified artifacts without split 
packages and dynamic imports so we could scrap wicket-bundle...)


Cheers,
Harald


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



Re: Wicket 1.5 shared image resource and modal windows.

2011-07-04 Thread Anders Smestad
Done: https://issues.apache.org/jira/browse/WICKET-3869

A

On Mon, Jul 4, 2011 at 7:46 PM, Martin Grigorov  wrote:
> See how http://wicketstuff.org/wicket/images/ creates the images.
> If you can create a quickstart application that shows the problem then
> attach it to a ticket.
>
> On Mon, Jul 4, 2011 at 6:42 PM, Anders Smestad  
> wrote:
>> Hi. I have a simple (test) page with an ajax link that displays a
>> modal window when clicked.
>>
>> The modal window contains some text and an image-link. The image is
>> added to a link as
>>
>> link.add(new Image("image", sharedResourceReference);
>>
>> When displaying the modal window, everything displays correctly, but
>> firstly, there is a warning in the log that says:
>>
>> WARN  - ResourceReferenceRegistry  - Resource reference not added to
>> registry. reference.canBeRegistered() == false
>>
>> Then, not every time, but often, the stacktrace included at the bottom
>> of this message appears in the log when using Internet Explorer. Using
>> the network inspector tool (F12) in internet explorer shows that the
>> image is first requested once, then the request is aborted (result:
>> "(Aborted)"), then the same image is requested another time, this time
>> it receives a 200 and the image is downloaded.
>>
>> None of these problems materialize when using other browsers than
>> internet explorer.
>>
>> The image is a symbol for a link, and is a static image that will not
>> change between redeployments of the application.
>>
>> What is the proper way to use such images. I have tried different approaches,
>> * Using the  in markup
>> * Using PackageResourceReference from java code
>> * Using SharedResourceReference as described above
>> * Registring the Image to the
>> Application.get().getSharedResources().add("name", ...); and
>> dereferencing it using new SharedResourceReference("name"), then
>> adding it to the link.
>>
>> It seems that either the image link gets rendered with the
>> -ts00.ext (timestamp) extension, or the ?wicket:antiCache is
>> appended, both seems unnecessary since it is a static image which
>> could very well be cached on the browser.
>>
>> The SharedResourceReference seems like it would be the right class to
>> use, but when adding the image to the page, the .canBeRegistered() ==
>> false is displayed.
>>
>> So finally, this is the question: What is the correct way to include
>> static images, css and javascript resources in wicket, it seems there
>> are multiple ways to do this, but none seems to do what I want. I also
>> the resources to be contained with the component it is used with.
>>
>> Thanks in advance!
>>
>> A
>>
>> Stacktrace from log when using Internet Explorer.
>>
>> ERROR - DefaultExceptionMapper     - Connection lost, give up responding.
>> org.apache.wicket.protocol.http.servlet.ResponseIOException:
>> org.mortbay.jetty.EofException
>>        at 
>> org.apache.wicket.protocol.http.servlet.ServletWebResponse.write(ServletWebResponse.java:120)
>>        at 
>> org.apache.wicket.protocol.http.HeaderBufferingWebResponse.write(HeaderBufferingWebResponse.java:168)
>>        at 
>> org.apache.wicket.request.resource.PackageResource$1.writeData(PackageResource.java:239)
>>        at 
>> org.apache.wicket.request.resource.AbstractResource.respond(AbstractResource.java:448)
>>        at 
>> org.apache.wicket.request.handler.resource.ResourceRequestHandler.respond(ResourceRequestHandler.java:77)
>>        at 
>> org.apache.wicket.request.handler.resource.ResourceReferenceRequestHandler.respond(ResourceReferenceRequestHandler.java:92)
>>        at 
>> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:717)
>>        at 
>> org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:63)
>>        at 
>> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:212)
>>        at 
>> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:253)
>>        at 
>> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:160)
>>        at 
>> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:216)
>>        at 
>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1112)
>>        at 
>> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:363)
>>        at 
>> org.mortbay.jetty.security.ConstraintsSecurityHandler.handle(ConstraintsSecurityHandler.java:220)
>>        at 
>> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
>>        at 
>> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:822)
>>        at 
>> org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:305)
>>        at 
>> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:229)
>>        at 
>> org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:113)
>>        at 
>> org.mort

Re: Wicket and OSGi

2011-07-04 Thread Martin Grigorov
Andreas,

Good work!

Do you have any plans to upgrade PAX-Wicket to Wicket 1.5 ?
I saw that you have custom Output|Input ObjectStream impls.
In Wicket 1.5 IObjectStreamFactory class is gone, so you'll need to
use the new ISerializer interface.

For more info you can check
https://issues.apache.org/jira/browse/WICKET-3778
https://github.com/wicketstuff/core/tree/master/jdk-1.5-parent/gae-initializer-parent/gae-initializer/src/main/java/org/wicketstuff/gae
https://github.com/wicketstuff/core/tree/master/jdk-1.6-parent/serializer-kryo

The GAE code is exactly what you'll need to do for PAX.

On Mon, Jul 4, 2011 at 9:19 PM, pieber  wrote:
> Hey,
>
> Sorry that I jump in so late, but it needed some time to spread the news of
> this list if you're not a subscriber of the wicket user list :)
>
> I've taken up the development of pax-wicket which is a framework for the
> integration of wicket to the osgi platform. While pax-wicket provides
> various other features at it's core we've solved the classloader,
> serialization and injection (spring & blueprint). While most of you may
> already know about pax-wicket
> (http://ops4j1.jira.com/wiki/display/paxwicket/Pax+Wicket and
> https://github.com/ops4j/org.ops4j.pax.wicket) there had been LOTS of
> changes in the last months and it is much easier to use by now! OK, with
> that said back to the problem at hand.
>
> @WICKET-3737: We've used a similar approach as you've described. We
> automatically attache Classresolver and InjectionResolver services to each
> bundle and delegate the classloading to the bundle which contains the class.
> This also allows to use classes not exported :) In fact you use case is
> quite simple to implement with pax-wicket.
>
> @SpringWicket annotation: We use the same approach as you've described. The
> only difference is that we extend the model a little bit further to allow
> import from the blueprint AND spring context from one bundle. Otherwise we
> limit the import to the bundle creating the blueprint or spring context.
>
> Feel free to give it a look. I've registered again and stay here and at the
> pax lists for help and further infos :) I'm also available in the wicket and
> pax IRC channels (pieber). Feel free to ping me.
>
> Kind regards,
> Andreas
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/Wicket-and-OSGi-tp3617698p3644390.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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



Re: wicketstuff-push Documentation?

2011-07-04 Thread Martin Grigorov
https://github.com/wicketstuff/core/wiki/Push


On Mon, Jul 4, 2011 at 8:48 PM, jbrookover  wrote:
> Hey all,
>
> Just explored the wicketstuff-push examples.  Everything works great.
>
> The only problem is that I'm overwhelmed with the code.  I'm new to
> "pushing;" I had no idea what Comet was before yesterday.  I understand the
> fundamentals of AjaxTimerBehavior polling, but push-timer and push-core go
> way beyond that: channels, listeners, etc.
>
> Question: Is there documentation beyond the GitHub Wiki and the
> push-examples module?
>
> If not, I'll just dive in the old fashioned way, but I was hoping to get a
> better understanding before doing so.  In return, I'll try to put some
> JavaDoc in the source as I start playing around.
>
> Thanks!
>
> Jake
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/wicketstuff-push-Documentation-tp3644319p3644319.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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



Re: Wicket and OSGi

2011-07-04 Thread pieber
Hey,

Sorry that I jump in so late, but it needed some time to spread the news of
this list if you're not a subscriber of the wicket user list :)

I've taken up the development of pax-wicket which is a framework for the
integration of wicket to the osgi platform. While pax-wicket provides
various other features at it's core we've solved the classloader,
serialization and injection (spring & blueprint). While most of you may
already know about pax-wicket
(http://ops4j1.jira.com/wiki/display/paxwicket/Pax+Wicket and
https://github.com/ops4j/org.ops4j.pax.wicket) there had been LOTS of
changes in the last months and it is much easier to use by now! OK, with
that said back to the problem at hand.

@WICKET-3737: We've used a similar approach as you've described. We
automatically attache Classresolver and InjectionResolver services to each
bundle and delegate the classloading to the bundle which contains the class.
This also allows to use classes not exported :) In fact you use case is
quite simple to implement with pax-wicket.

@SpringWicket annotation: We use the same approach as you've described. The
only difference is that we extend the model a little bit further to allow
import from the blueprint AND spring context from one bundle. Otherwise we
limit the import to the bundle creating the blueprint or spring context.

Feel free to give it a look. I've registered again and stay here and at the
pax lists for help and further infos :) I'm also available in the wicket and
pax IRC channels (pieber). Feel free to ping me.

Kind regards,
Andreas

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-and-OSGi-tp3617698p3644390.html
Sent from the Users forum mailing list archive at Nabble.com.

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



wicketstuff-push Documentation?

2011-07-04 Thread jbrookover
Hey all,

Just explored the wicketstuff-push examples.  Everything works great. 

The only problem is that I'm overwhelmed with the code.  I'm new to
"pushing;" I had no idea what Comet was before yesterday.  I understand the
fundamentals of AjaxTimerBehavior polling, but push-timer and push-core go
way beyond that: channels, listeners, etc.

Question: Is there documentation beyond the GitHub Wiki and the
push-examples module?  

If not, I'll just dive in the old fashioned way, but I was hoping to get a
better understanding before doing so.  In return, I'll try to put some
JavaDoc in the source as I start playing around.

Thanks!

Jake

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wicketstuff-push-Documentation-tp3644319p3644319.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: error - serialization

2011-07-04 Thread Carl-Eric Menzel
Can you show some code?

Carl-Eric

On Mon, 4 Jul 2011 08:02:16 +0200
"Miroslav F."  wrote:

> Driver is in classpath and is initialized. When I start tomcat, it
> works (load images
> from database) but when i redeploy or reload page (F5) it complains
> about "java.sql.SQLException: No suitable driver found...". I have to
> restart tomcat and than
> it works again.
>  
> 
> > -Original Message-
> > From: Carl-Eric Menzel [mailto:cmen...@wicketbuch.de] 
> > Sent: Sunday, 03. July 2011 23:22
> > To: users@wicket.apache.org
> > Subject: Re: error - serialization
> > 
> > That means you don't have the appropriate driver jar in your 
> > classpath.
> > You need the PostgreSQL driver jar, put it on your classpath, 
> > and initialize it.
> > 
> > Carl-Eric
> > www.wicketbuch.de
> > 
> > On Sun, 3 Jul 2011 23:08:40 +0200
> > "Miroslav F."  wrote:
> > 
> > > Still problem with "no suitable driver found"
> > > 
> > > Does someone has experience with this and solved it?
> > > 
> > > Miro
> > 
> > -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> > 
> > 
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 

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



Re: Wicket/Spring/Junit/Maven - Don't understand what's going on.

2011-07-04 Thread Niranjan Rao
Unfortunately, can not help you much here. I followed the exact steps in
the tutorial and never got this error.

Regards,

- Niranjan
On Mon, 2011-07-04 at 13:51 -0300, Bruno Borges wrote:
> I'm working on this right now and I found this problem:
> 
> java.lang.IllegalStateException: the application key does not seem to be set
> properly or this method is called before WicketServlet is set, which leads
> to the wrong behavior
> at
> org.apache.wicket.protocol.http.WebApplication.getApplicationKey(WebApplication.java:164)
> at org.apache.wicket.Application.internalInit(Application.java:1045)
> at
> org.apache.wicket.protocol.http.WebApplication.internalInit(WebApplication.java:549)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
> at java.lang.reflect.Method.invoke(Method.java:611)
> at
> org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
> at
> org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
> at
> org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:685)
> at
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
> at
> org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
> at
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
> at
> org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:621)
> ...
> 
> I followed the same tutorial as you and I'm working with Embedded Derby
> datasource. Is there any way to come around this issue or am I missing
> something?
> 
> 
> *Bruno Borges*
> www.brunoborges.com.br
> +55 21 76727099
> 
> 
> 
> On Mon, Jul 4, 2011 at 2:26 AM, Niranjan Rao  wrote:
> 
> > Sorry for the delay in the response folks and thanks for the help.
> >
> > My gut feeling is also same - differences of classpaths. That's why I
> > actually added println statements in the code to see what classpath code
> > is seeing.
> >
> > I am working on isolated test case that I can send to this DL. Should be
> > done by tomorrow.
> >
> > Regards,
> >
> > Niranjan
> >
> > On Sun, 2011-07-03 at 10:22 -0700, Igor Vaynberg wrote:
> > > yep. thats probably the cause. to elaborate a little more: eclipse
> > > does not separate between a test class path and normal class path,
> > > while maven does.
> > >
> > > -igor
> > >
> > > On Sun, Jul 3, 2011 at 3:01 AM, Harald Wellmann 
> > wrote:
> > > > Without a stacktrace or more details about your setup, I can only
> > guess...
> > > > Most likely it's not a Wicket problem.
> > > >
> > > > I'd say your applicationContext.xml is in the wrong place where Maven
> > can't
> > > > see it, and Eclipse just happens to see it because m2eclipse cannot map
> > > > Maven classpaths 1:1 to Eclipse.
> > > >
> > > > In the blog you cited, this line looks suspicious to me:
> > > >
> > > > @ContextConfiguration(locations =
> > > > {"classpath:WEB-INF/applicationContext.xml"})
> > > >
> > > > If you have a default Maven project structure, then WEB-INF is under
> > > > src/main/webapp, and this is not on the test classpath for Surefire.
> > > >
> > > > Regards,
> > > >
> > > > Harald
> > > >
> > > >
> > > >
> > > > -
> > > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > > > For additional commands, e-mail: users-h...@wicket.apache.org
> > > >
> > > >
> > >
> > > -
> > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > > For additional commands, e-mail: users-h...@wicket.apache.org
> > >
> >
> >
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >



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



Re: Wicket 1.5 shared image resource and modal windows.

2011-07-04 Thread Martin Grigorov
See how http://wicketstuff.org/wicket/images/ creates the images.
If you can create a quickstart application that shows the problem then
attach it to a ticket.

On Mon, Jul 4, 2011 at 6:42 PM, Anders Smestad  wrote:
> Hi. I have a simple (test) page with an ajax link that displays a
> modal window when clicked.
>
> The modal window contains some text and an image-link. The image is
> added to a link as
>
> link.add(new Image("image", sharedResourceReference);
>
> When displaying the modal window, everything displays correctly, but
> firstly, there is a warning in the log that says:
>
> WARN  - ResourceReferenceRegistry  - Resource reference not added to
> registry. reference.canBeRegistered() == false
>
> Then, not every time, but often, the stacktrace included at the bottom
> of this message appears in the log when using Internet Explorer. Using
> the network inspector tool (F12) in internet explorer shows that the
> image is first requested once, then the request is aborted (result:
> "(Aborted)"), then the same image is requested another time, this time
> it receives a 200 and the image is downloaded.
>
> None of these problems materialize when using other browsers than
> internet explorer.
>
> The image is a symbol for a link, and is a static image that will not
> change between redeployments of the application.
>
> What is the proper way to use such images. I have tried different approaches,
> * Using the  in markup
> * Using PackageResourceReference from java code
> * Using SharedResourceReference as described above
> * Registring the Image to the
> Application.get().getSharedResources().add("name", ...); and
> dereferencing it using new SharedResourceReference("name"), then
> adding it to the link.
>
> It seems that either the image link gets rendered with the
> -ts00.ext (timestamp) extension, or the ?wicket:antiCache is
> appended, both seems unnecessary since it is a static image which
> could very well be cached on the browser.
>
> The SharedResourceReference seems like it would be the right class to
> use, but when adding the image to the page, the .canBeRegistered() ==
> false is displayed.
>
> So finally, this is the question: What is the correct way to include
> static images, css and javascript resources in wicket, it seems there
> are multiple ways to do this, but none seems to do what I want. I also
> the resources to be contained with the component it is used with.
>
> Thanks in advance!
>
> A
>
> Stacktrace from log when using Internet Explorer.
>
> ERROR - DefaultExceptionMapper     - Connection lost, give up responding.
> org.apache.wicket.protocol.http.servlet.ResponseIOException:
> org.mortbay.jetty.EofException
>        at 
> org.apache.wicket.protocol.http.servlet.ServletWebResponse.write(ServletWebResponse.java:120)
>        at 
> org.apache.wicket.protocol.http.HeaderBufferingWebResponse.write(HeaderBufferingWebResponse.java:168)
>        at 
> org.apache.wicket.request.resource.PackageResource$1.writeData(PackageResource.java:239)
>        at 
> org.apache.wicket.request.resource.AbstractResource.respond(AbstractResource.java:448)
>        at 
> org.apache.wicket.request.handler.resource.ResourceRequestHandler.respond(ResourceRequestHandler.java:77)
>        at 
> org.apache.wicket.request.handler.resource.ResourceReferenceRequestHandler.respond(ResourceReferenceRequestHandler.java:92)
>        at 
> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:717)
>        at 
> org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:63)
>        at 
> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:212)
>        at 
> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:253)
>        at 
> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:160)
>        at 
> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:216)
>        at 
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1112)
>        at 
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:363)
>        at 
> org.mortbay.jetty.security.ConstraintsSecurityHandler.handle(ConstraintsSecurityHandler.java:220)
>        at 
> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
>        at 
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:822)
>        at 
> org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:305)
>        at 
> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:229)
>        at 
> org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:113)
>        at 
> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
>        at org.mortbay.jetty.Server.handle(Server.java:324)
>        at 
> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:550)
>        at 
> o

Re: Wicket/Spring/Junit/Maven - Don't understand what's going on.

2011-07-04 Thread Bruno Borges
I'm working on this right now and I found this problem:

java.lang.IllegalStateException: the application key does not seem to be set
properly or this method is called before WicketServlet is set, which leads
to the wrong behavior
at
org.apache.wicket.protocol.http.WebApplication.getApplicationKey(WebApplication.java:164)
at org.apache.wicket.Application.internalInit(Application.java:1045)
at
org.apache.wicket.protocol.http.WebApplication.internalInit(WebApplication.java:549)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at
org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:685)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at
org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at
org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:621)
...

I followed the same tutorial as you and I'm working with Embedded Derby
datasource. Is there any way to come around this issue or am I missing
something?


*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099



On Mon, Jul 4, 2011 at 2:26 AM, Niranjan Rao  wrote:

> Sorry for the delay in the response folks and thanks for the help.
>
> My gut feeling is also same - differences of classpaths. That's why I
> actually added println statements in the code to see what classpath code
> is seeing.
>
> I am working on isolated test case that I can send to this DL. Should be
> done by tomorrow.
>
> Regards,
>
> Niranjan
>
> On Sun, 2011-07-03 at 10:22 -0700, Igor Vaynberg wrote:
> > yep. thats probably the cause. to elaborate a little more: eclipse
> > does not separate between a test class path and normal class path,
> > while maven does.
> >
> > -igor
> >
> > On Sun, Jul 3, 2011 at 3:01 AM, Harald Wellmann 
> wrote:
> > > Without a stacktrace or more details about your setup, I can only
> guess...
> > > Most likely it's not a Wicket problem.
> > >
> > > I'd say your applicationContext.xml is in the wrong place where Maven
> can't
> > > see it, and Eclipse just happens to see it because m2eclipse cannot map
> > > Maven classpaths 1:1 to Eclipse.
> > >
> > > In the blog you cited, this line looks suspicious to me:
> > >
> > > @ContextConfiguration(locations =
> > > {"classpath:WEB-INF/applicationContext.xml"})
> > >
> > > If you have a default Maven project structure, then WEB-INF is under
> > > src/main/webapp, and this is not on the test classpath for Surefire.
> > >
> > > Regards,
> > >
> > > Harald
> > >
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > > For additional commands, e-mail: users-h...@wicket.apache.org
> > >
> > >
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Wicket 1.5 shared image resource and modal windows.

2011-07-04 Thread Anders Smestad
Hi. I have a simple (test) page with an ajax link that displays a
modal window when clicked.

The modal window contains some text and an image-link. The image is
added to a link as

link.add(new Image("image", sharedResourceReference);

When displaying the modal window, everything displays correctly, but
firstly, there is a warning in the log that says:

WARN  - ResourceReferenceRegistry  - Resource reference not added to
registry. reference.canBeRegistered() == false

Then, not every time, but often, the stacktrace included at the bottom
of this message appears in the log when using Internet Explorer. Using
the network inspector tool (F12) in internet explorer shows that the
image is first requested once, then the request is aborted (result:
"(Aborted)"), then the same image is requested another time, this time
it receives a 200 and the image is downloaded.

None of these problems materialize when using other browsers than
internet explorer.

The image is a symbol for a link, and is a static image that will not
change between redeployments of the application.

What is the proper way to use such images. I have tried different approaches,
* Using the  in markup
* Using PackageResourceReference from java code
* Using SharedResourceReference as described above
* Registring the Image to the
Application.get().getSharedResources().add("name", ...); and
dereferencing it using new SharedResourceReference("name"), then
adding it to the link.

It seems that either the image link gets rendered with the
-ts00.ext (timestamp) extension, or the ?wicket:antiCache is
appended, both seems unnecessary since it is a static image which
could very well be cached on the browser.

The SharedResourceReference seems like it would be the right class to
use, but when adding the image to the page, the .canBeRegistered() ==
false is displayed.

So finally, this is the question: What is the correct way to include
static images, css and javascript resources in wicket, it seems there
are multiple ways to do this, but none seems to do what I want. I also
the resources to be contained with the component it is used with.

Thanks in advance!

A

Stacktrace from log when using Internet Explorer.

ERROR - DefaultExceptionMapper - Connection lost, give up responding.
org.apache.wicket.protocol.http.servlet.ResponseIOException:
org.mortbay.jetty.EofException
at 
org.apache.wicket.protocol.http.servlet.ServletWebResponse.write(ServletWebResponse.java:120)
at 
org.apache.wicket.protocol.http.HeaderBufferingWebResponse.write(HeaderBufferingWebResponse.java:168)
at 
org.apache.wicket.request.resource.PackageResource$1.writeData(PackageResource.java:239)
at 
org.apache.wicket.request.resource.AbstractResource.respond(AbstractResource.java:448)
at 
org.apache.wicket.request.handler.resource.ResourceRequestHandler.respond(ResourceRequestHandler.java:77)
at 
org.apache.wicket.request.handler.resource.ResourceReferenceRequestHandler.respond(ResourceReferenceRequestHandler.java:92)
at 
org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:717)
at 
org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:63)
at 
org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:212)
at 
org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:253)
at 
org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:160)
at 
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:216)
at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1112)
at 
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:363)
at 
org.mortbay.jetty.security.ConstraintsSecurityHandler.handle(ConstraintsSecurityHandler.java:220)
at 
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at 
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:822)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:305)
at 
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:229)
at 
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:113)
at 
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:324)
at 
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:550)
at 
org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:876)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:535)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:209)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:407)
at 
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.j

Re: to integrate wicket with hibernate using spring

2011-07-04 Thread James Carman
You may also want to check out wicketopia.

http://wicketopia.sourceforge.net

Sent from tablet device.  Please excuse typos and brevity.
On Jul 4, 2011 11:56 AM, "Martin Grigorov"  wrote:
> Here is a Maven command which will get you started:
>
> mvn archetype:generate -B
> -DarchetypeCatalog=
http://legup.googlecode.com/svn/repo/archetype-catalog.xml
> -DarchetypeArtifactId=spring-jpa-archetype
> -DarchetypeGroupId=com.jweekend -DarchetypeVersion=0.8.4
> -DgroupId=com.mycompany -DartifactId=mycompany -Dversion=1.0-SNAPSHOT
> -Dpackage=com.mycompany
>
> It is generated by the tool at http://www.jweekend.com/dev/LegUp
>
> On Mon, Jul 4, 2011 at 5:53 PM, Bruno Borges 
wrote:
>> Wicket is a presentation framework. Your task is to integrate Spring and
>> Hibernate in the first place. Later, you can just use Hibernate objects
>> returned by Spring methods into Wicket with classes of type IModel.
Although
>> I don't recommend that. IMO you should work with detatched objects, value
>> objects or something.
>>
>> You can also read about the pattern "Open Session in View" for web
>> development with Hibernate. Some consider it an anti-pattern. But
usually,
>> it becomes an anti-pattern if overused IMO.
>>
>> But anyway, you must read. A lot. :-)
>>
>> *Bruno Borges*
>> www.brunoborges.com.br
>> +55 21 76727099
>>
>>
>>
>> On Mon, Jul 4, 2011 at 12:48 PM, hariharansrc wrote:
>>
>>> i want to integrate wicket with hibernate using spring what can i do to
do
>>> that
>>> i know wicket and hibernate to some extent is it necessary to learn
spring
>>> framework for integrating that
>>>
>>> i searched spring hibernate integration i found some materials then what
>>> wicket actually does int that regard
>>>
>>> --
>>> View this message in context:
>>>
http://apache-wicket.1842946.n4.nabble.com/to-integrate-wicket-with-hibernate-using-spring-tp3643931p3643931.html
>>> Sent from the Users forum mailing list archive at Nabble.com.
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>
>>>
>>
>
>
>
> --
> Martin Grigorov
> jWeekend
> Training, Consulting, Development
> http://jWeekend.com
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>


Re: resetting form components

2011-07-04 Thread Andrea Del Bene

You should   add form reference to Ajax target.

target.addComponent(form)


Remeber to call setOutputMarkupId on form instance.

thanks it worked but how do i refresh the ManageAATemplatePanel now?

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/resetting-form-components-tp3640382p3643093.html
Sent from the Users forum mailing list archive at Nabble.com.

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






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



Re: to integrate wicket with hibernate using spring

2011-07-04 Thread Martin Grigorov
Here is a Maven command which will get you started:

mvn archetype:generate -B
-DarchetypeCatalog=http://legup.googlecode.com/svn/repo/archetype-catalog.xml
-DarchetypeArtifactId=spring-jpa-archetype
-DarchetypeGroupId=com.jweekend -DarchetypeVersion=0.8.4
-DgroupId=com.mycompany -DartifactId=mycompany -Dversion=1.0-SNAPSHOT
-Dpackage=com.mycompany

It is generated by the tool at http://www.jweekend.com/dev/LegUp

On Mon, Jul 4, 2011 at 5:53 PM, Bruno Borges  wrote:
> Wicket is a presentation framework. Your task is to integrate Spring and
> Hibernate in the first place. Later, you can just use Hibernate objects
> returned by Spring methods into Wicket with classes of type IModel. Although
> I don't recommend that. IMO you should work with detatched objects, value
> objects or something.
>
> You can also read about the pattern "Open Session in View" for web
> development with Hibernate. Some consider it an anti-pattern. But usually,
> it becomes an anti-pattern if overused IMO.
>
> But anyway, you must read. A lot. :-)
>
> *Bruno Borges*
> www.brunoborges.com.br
> +55 21 76727099
>
>
>
> On Mon, Jul 4, 2011 at 12:48 PM, hariharansrc wrote:
>
>> i want to integrate wicket with hibernate using spring what can i do to do
>> that
>> i know wicket and hibernate to some extent is it necessary to learn spring
>> framework for integrating that
>>
>> i searched spring hibernate integration i found some materials then what
>> wicket actually does int that regard
>>
>> --
>> View this message in context:
>> http://apache-wicket.1842946.n4.nabble.com/to-integrate-wicket-with-hibernate-using-spring-tp3643931p3643931.html
>> Sent from the Users forum mailing list archive at Nabble.com.
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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



Re: to integrate wicket with hibernate using spring

2011-07-04 Thread Bruno Borges
Wicket is a presentation framework. Your task is to integrate Spring and
Hibernate in the first place. Later, you can just use Hibernate objects
returned by Spring methods into Wicket with classes of type IModel. Although
I don't recommend that. IMO you should work with detatched objects, value
objects or something.

You can also read about the pattern "Open Session in View" for web
development with Hibernate. Some consider it an anti-pattern. But usually,
it becomes an anti-pattern if overused IMO.

But anyway, you must read. A lot. :-)

*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099



On Mon, Jul 4, 2011 at 12:48 PM, hariharansrc wrote:

> i want to integrate wicket with hibernate using spring what can i do to do
> that
> i know wicket and hibernate to some extent is it necessary to learn spring
> framework for integrating that
>
> i searched spring hibernate integration i found some materials then what
> wicket actually does int that regard
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/to-integrate-wicket-with-hibernate-using-spring-tp3643931p3643931.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


to integrate wicket with hibernate using spring

2011-07-04 Thread hariharansrc
i want to integrate wicket with hibernate using spring what can i do to do
that 
i know wicket and hibernate to some extent is it necessary to learn spring
framework for integrating that 

i searched spring hibernate integration i found some materials then what
wicket actually does int that regard

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/to-integrate-wicket-with-hibernate-using-spring-tp3643931p3643931.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: WicketFilter.init() called twice with Glassfish

2011-07-04 Thread Bertrand Guay-Paquet

Thanks for sharing this information Attila!

The folks at Glassfish suggested I use URIs as well.

I created WICKET-3867 to change URLs to URIs.


On 04/07/2011 1:48 AM, Attila Király wrote:

Using java.net.URL in Set-s and Map-s is a no-no. Wicket should use
java.net.URI instead. See [1] for an example.

Attila

[1] "More Joy of Sets" example with URL from Google Tech Talks:
http://www.youtube.com/watch?v=wDN_EYUvUq0#t=9m58s

2011/7/3 Bertrand Guay-Paquet


When I said "second set", I meant that the same URLs are added, which is
indeed strange considering that they are added to a HashSet!

After more digging, I found that the URLs are not in fact equal as
determined by URL.equals(). The URLs with the same string value differ in
their "host" property which is used by URL.equals(). One "set" of URLs has a
host == null and the other has host == "". The actual host comparison is
done in URLStreamHandler.hostsEqual().




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



Re: Customize AjaxEditableLabel

2011-07-04 Thread Martin Grigorov
Unless you call super.newEditor() in your implementation it should not
know the TextField.
Paste your code in some pastebin service (e.g. www.pastie.com)

On Mon, Jul 4, 2011 at 4:10 PM, PDiefent  wrote:
> I tried it like AjaxEditableLabel does itself, but now I get the default
> input field plus the new fields in the panel! How do I erase the default
> text field?
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/Customize-AjaxEditableLabel-tp3643409p3643712.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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



Re: Form Component models not updating .. why ?

2011-07-04 Thread armandoxxx
Dude .. thank you .. I owe you shit loads of beer ;) 

hehe 

Regards 

Armando

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Form-Component-model-not-updating-why-tp3643631p3643760.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Customize AjaxEditableLabel

2011-07-04 Thread PDiefent
I tried it like AjaxEditableLabel does itself, but now I get the default
input field plus the new fields in the panel! How do I erase the default
text field?

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Customize-AjaxEditableLabel-tp3643409p3643712.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Form Component models not updating .. why ?

2011-07-04 Thread Pedro Santos
Hi Armando, form still shows values inside of text field because you
code it to do that in the last line:

public cleanUp(){
  (...)
  this.updateFormComponentModels();  <--
Form#updateFormComponentModels updates all form fields based on field
sent in request, ignoring anything you set before.
}


On Mon, Jul 4, 2011 at 10:23 AM, armandoxxx  wrote:
> Hi guys need a little help with my form and form component models ...
>
>
>
>
>
> public class GroupForm extends Form {
>
>        private static final Logger     LOG = 
> LoggerFactory.getLogger(GroupForm.class);
>        private static final long       serialVersionUID = 
> 5581378542894937666L;
>
>        private RequiredTextField       groupNameField;
>        private FieldFeedbackPanel                      groupNameErrorPanel;
>
>        private AjaxFallbackButton                      submitButton;
>        private AjaxFallbackButton                      resetButton;
>
>        public GroupForm(final String theId, IModel theModel) {
>                super(theId, theModel);
>        }
>
>
>
>        @Override
>        protected void onInitialize() {
>                super.onInitialize();
>                this.setOutputMarkupId(true);
>
>                if (this.theNotifiable == null) {
>                        throw new IllegalArgumentException("The notifiable 
> panel cannot be
> null");
>                }
>
>                this.groupNameField                     = new 
> RequiredTextField("name");
>                this.groupNameErrorPanel        = new 
> FieldFeedbackPanel("groupNameErrorPanel",
> this.groupNameField);
>
>                this.submitButton       = new 
> AjaxFallbackButton("submitButton", this) {
>
>                        private static final long serialVersionUID = 
> -4104483939487007113L;
>
>
>                        @Override
>                        protected void onSubmit(final AjaxRequestTarget 
> theTarget, final Form
> theForm) {
>                                UserDao userDao = 
> ((SystemPage)this.getPage()).getUserDao();
>                                User    user    = 
> ((SystemPage)this.getPage()).getUser();
>                                T               group   = 
> (T)theForm.getDefaultModelObject();
>                                try {
>                                        userDao.storeUserGroup(user, group);
>                                } catch (Exception e) {
>                                        LOG.error("Cannot store user group!", 
> e);
>                                        throw new RuntimeException(e);
>                                }
>                                ((GroupForm)theForm).cleanUp();
>                                theTarget.addComponent(theForm);
>
>                        }
>
>                        protected void onError(final AjaxRequestTarget 
> theTarget, final Form
> theForm) {
>                                theTarget.addComponent(theForm);
>                        };
>                };
>
>                this.resetButton = new AjaxFallbackButton("resetButton", this) 
> {
>
>                        private static final long serialVersionUID = 
> 3649778402022830666L;
>
>                        @Override
>                        protected void onSubmit(final AjaxRequestTarget 
> theTarget, final Form
> theForm) {
>                                GroupForm.this.cleanUp();
>                                theTarget.addComponent(theForm);
>                        }
>                };
>
>                this.resetButton.setDefaultFormProcessing(false);
>
>                this.add(this.groupNameField);
>                this.add(this.submitButton);
>                this.add(this.resetButton);
>                this.add(this.groupNameErrorPanel);
>        }
>
>
>        public GroupForm cleanUp() {
>                UserGroup group = new UserGroup();
>                this.clearInput();
>                this.modelChanging();
>                this.setModelObject((T)group);
>                this.modelChanged();
>                this.updateFormComponentModels();
>
>                return this;
>        }
> }
>
>
>
> this is how i create this form on a panel
>
> UserGroup group = new UserGroup();
>  new GroupForm("groupEditForm", new
> CompoundPropertyModel(group)));
>
>
> I want to know why my form still shows values inside of text field even thou
> cleanUp() method is called
> and why on reset button (which is not a RESET button in markup) form is
> cleared ... I don't get it .. :(
>
> Please help
>
> Regards
>
> Armando
>
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/Form-Component-models-not-updating-why-tp3643631p3643631.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>



-- 
Pedro Henrique Oliveira dos Santos

--

Re: 1.5 rc5.2 IVisitor on page?

2011-07-04 Thread Andrea Del Bene

mmm...I didn't find any wiki about it.

I sorta figured it had something todo with the fact that
onbeforerender was called at a later time than onConfigure.

Is there a good description of the timeline of these methods somewhere?

2011/7/4 Andrea Del Bene:

Hi nino,

AbstractRepeater class (superclass of ListView) calls onPopulate during
onBeforeRender, so as long as this event is not triggered listviews should
be empty.

changing it from onconfigure to onbeforerender does the trick.. Im not
sure what the difference are though..

2011/7/4 nino martinez wael:

Hi

I've had an interesting experience,  I have a visitor that searches
for certain panels on a page. The page contains a few listviews and 2
forms as children these 2 contain the panels that the listviews also
contain. In the onConfig of the webpage I call the visitor.

So the strange thing is that the visitor in the initial render of the
page only finds the 2 form panels, and not the ones in the listviews,
in the subsequent renders via ajax or page refresh it does find them.

What could be the cause?

regards nino





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



Form Component models not updating .. why ?

2011-07-04 Thread armandoxxx
Hi guys need a little help with my form and form component models ...





public class GroupForm extends Form {

private static final Logger LOG = 
LoggerFactory.getLogger(GroupForm.class);
private static final long   serialVersionUID = 5581378542894937666L;

private RequiredTextField   groupNameField;
private FieldFeedbackPanel  groupNameErrorPanel;

private AjaxFallbackButton  submitButton;
private AjaxFallbackButton  resetButton;

public GroupForm(final String theId, IModel theModel) {
super(theId, theModel);
}



@Override
protected void onInitialize() {
super.onInitialize();
this.setOutputMarkupId(true);

if (this.theNotifiable == null) {
throw new IllegalArgumentException("The notifiable 
panel cannot be
null");
}

this.groupNameField = new 
RequiredTextField("name");
this.groupNameErrorPanel= new 
FieldFeedbackPanel("groupNameErrorPanel",
this.groupNameField);

this.submitButton   = new 
AjaxFallbackButton("submitButton", this) {

private static final long serialVersionUID = 
-4104483939487007113L;


@Override
protected void onSubmit(final AjaxRequestTarget 
theTarget, final Form
theForm) {
UserDao userDao = 
((SystemPage)this.getPage()).getUserDao();
Useruser= 
((SystemPage)this.getPage()).getUser();
T   group   = 
(T)theForm.getDefaultModelObject();
try {
userDao.storeUserGroup(user, group);
} catch (Exception e) {
LOG.error("Cannot store user group!", 
e);
throw new RuntimeException(e);
}
((GroupForm)theForm).cleanUp();
theTarget.addComponent(theForm);

}

protected void onError(final AjaxRequestTarget 
theTarget, final Form
theForm) {
theTarget.addComponent(theForm);
};
};

this.resetButton = new AjaxFallbackButton("resetButton", this) {

private static final long serialVersionUID = 
3649778402022830666L;

@Override
protected void onSubmit(final AjaxRequestTarget 
theTarget, final Form
theForm) {
GroupForm.this.cleanUp();
theTarget.addComponent(theForm);
}
};

this.resetButton.setDefaultFormProcessing(false);

this.add(this.groupNameField);
this.add(this.submitButton);
this.add(this.resetButton);
this.add(this.groupNameErrorPanel);
}


public GroupForm cleanUp() {
UserGroup group = new UserGroup();
this.clearInput();
this.modelChanging();
this.setModelObject((T)group);
this.modelChanged();
this.updateFormComponentModels();

return this;
}
}



this is how i create this form on a panel

UserGroup group = new UserGroup();
 new GroupForm("groupEditForm", new
CompoundPropertyModel(group)));


I want to know why my form still shows values inside of text field even thou
cleanUp() method is called 
and why on reset button (which is not a RESET button in markup) form is
cleared ... I don't get it .. :( 

Please help 

Regards

Armando


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Form-Component-models-not-updating-why-tp3643631p3643631.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Customize AjaxEditableLabel

2011-07-04 Thread Martin Grigorov
AjaxEditableLabel itself, I guess.
See how it creates TextField.

On Mon, Jul 4, 2011 at 1:49 PM, PDiefent  wrote:
> Thanks for your fast response.
> Is there a QuickStart available how to implement it?
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/Customize-AjaxEditableLabel-tp3643409p3643435.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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



Re: Customize AjaxEditableLabel

2011-07-04 Thread PDiefent
Thanks for your fast response. 
Is there a QuickStart available how to implement it?

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Customize-AjaxEditableLabel-tp3643409p3643435.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Customize AjaxEditableLabel

2011-07-04 Thread Martin Grigorov
See 
org.apache.wicket.extensions.ajax.markup.html.AjaxEditableLabel.newEditor(MarkupContainer,
String, IModel)
Return FormComponentPanel.

On Mon, Jul 4, 2011 at 1:30 PM, Peter Diefenthaeler  wrote:
> Hallo,
> is it possible to customize AjaxEditableLabel in a way that I can replace
> the TextEditField with a panel? I have to display a little Form with a
> text area component and some buttons. A modal window doesn't work for me
> because I want to show the panel exactly at the position of the label.
> Thanks, Peter
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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



Customize AjaxEditableLabel

2011-07-04 Thread Peter Diefenthaeler
Hallo,
is it possible to customize AjaxEditableLabel in a way that I can replace 
the TextEditField with a panel? I have to display a little Form with a 
text area component and some buttons. A modal window doesn't work for me 
because I want to show the panel exactly at the position of the label.
Thanks, Peter 


Re: [OT] Configure wicket.configuration outside web.xml in Tomcat 6

2011-07-04 Thread Mike Mander

Thanks Bas,

you solved my problem. I don't use tomcat within eclipse. I use the 
standard jetty server with Start class. I wasn't clear at this point.


But you brought me the light. I set "deployment" as 
configuration-param-value to my web.xml. And in Start class i set the 
system property "wicket.configuration" to "development". And it works.


Thanks and Cheers
Per

Am 04.07.2011 12:56, schrieb Bas Gooren:

Hi,

As suggested on the mailing list once, what I've been using for a 
while now is having "deployment" in web.xml, and adding 
-Dwicket.configuration=development to my tomcat command line from 
Eclipse.


This way you always package a production-ready jar/war/ear and can run 
in development mode locally.


Bas

Op 4-7-2011 9:46, schreef Mike Mander:

Hi,

i'm trying to configure my wicket.configuration property without 
adding it to web.xml. I use tomcat 6.
Adding wicket.configuration=deployment in 
CATALINA_HOME/conf/catalina.properties was not working.
App starts in development mode (after tomcat restart / param not 
present in web.xml). Adding the property to command line is only the 
last option for me. Because i'm stupid i bet i will forget it 
somewhere :-).


Background is: If i add the property to web.xml
a) i have to change it for all production apps on server
b) and i have to deploy all apps twice in production. Firstly with 
the "default" configured web.xml (development) and then hotdeploy 
with the changed web.xml (deployment).


This leads often to perm gen space which is another problem (I know 
it and it's not part of this problem :-).


Maybe someone has a good plan on this issue.

Thanks
Per

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






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



Re: [OT] Configure wicket.configuration outside web.xml in Tomcat 6

2011-07-04 Thread Bas Gooren

Hi,

As suggested on the mailing list once, what I've been using for a while 
now is having "deployment" in web.xml, and adding 
-Dwicket.configuration=development to my tomcat command line from Eclipse.


This way you always package a production-ready jar/war/ear and can run 
in development mode locally.


Bas

Op 4-7-2011 9:46, schreef Mike Mander:

Hi,

i'm trying to configure my wicket.configuration property without 
adding it to web.xml. I use tomcat 6.
Adding wicket.configuration=deployment in 
CATALINA_HOME/conf/catalina.properties was not working.
App starts in development mode (after tomcat restart / param not 
present in web.xml). Adding the property to command line is only the 
last option for me. Because i'm stupid i bet i will forget it 
somewhere :-).


Background is: If i add the property to web.xml
a) i have to change it for all production apps on server
b) and i have to deploy all apps twice in production. Firstly with the 
"default" configured web.xml (development) and then hotdeploy with the 
changed web.xml (deployment).


This leads often to perm gen space which is another problem (I know it 
and it's not part of this problem :-).


Maybe someone has a good plan on this issue.

Thanks
Per

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



Re: 1.5 rc5.2 IVisitor on page?

2011-07-04 Thread nino martinez wael
I sorta figured it had something todo with the fact that
onbeforerender was called at a later time than onConfigure.

Is there a good description of the timeline of these methods somewhere?

2011/7/4 Andrea Del Bene :
> Hi nino,
>
> AbstractRepeater class (superclass of ListView) calls onPopulate during
> onBeforeRender, so as long as this event is not triggered listviews should
> be empty.
>>
>> changing it from onconfigure to onbeforerender does the trick.. Im not
>> sure what the difference are though..
>>
>> 2011/7/4 nino martinez wael:
>>>
>>> Hi
>>>
>>> I've had an interesting experience,  I have a visitor that searches
>>> for certain panels on a page. The page contains a few listviews and 2
>>> forms as children these 2 contain the panels that the listviews also
>>> contain. In the onConfig of the webpage I call the visitor.
>>>
>>> So the strange thing is that the visitor in the initial render of the
>>> page only finds the 2 form panels, and not the ones in the listviews,
>>> in the subsequent renders via ajax or page refresh it does find them.
>>>
>>> What could be the cause?
>>>
>>> regards nino
>>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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



Re: 1.5 rc5.2 IVisitor on page?

2011-07-04 Thread Andrea Del Bene

Hi nino,

AbstractRepeater class (superclass of ListView) calls onPopulate during 
onBeforeRender, so as long as this event is not triggered listviews 
should be empty.

changing it from onconfigure to onbeforerender does the trick.. Im not
sure what the difference are though..

2011/7/4 nino martinez wael:

Hi

I've had an interesting experience,  I have a visitor that searches
for certain panels on a page. The page contains a few listviews and 2
forms as children these 2 contain the panels that the listviews also
contain. In the onConfig of the webpage I call the visitor.

So the strange thing is that the visitor in the initial render of the
page only finds the 2 form panels, and not the ones in the listviews,
in the subsequent renders via ajax or page refresh it does find them.

What could be the cause?

regards nino


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






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



Re: 1.5 rc5.2 IVisitor on page?

2011-07-04 Thread nino martinez wael
changing it from onconfigure to onbeforerender does the trick.. Im not
sure what the difference are though..

2011/7/4 nino martinez wael :
> Hi
>
> I've had an interesting experience,  I have a visitor that searches
> for certain panels on a page. The page contains a few listviews and 2
> forms as children these 2 contain the panels that the listviews also
> contain. In the onConfig of the webpage I call the visitor.
>
> So the strange thing is that the visitor in the initial render of the
> page only finds the 2 form panels, and not the ones in the listviews,
> in the subsequent renders via ajax or page refresh it does find them.
>
> What could be the cause?
>
> regards nino
>

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



1.5 rc5.2 IVisitor on page?

2011-07-04 Thread nino martinez wael
Hi

I've had an interesting experience,  I have a visitor that searches
for certain panels on a page. The page contains a few listviews and 2
forms as children these 2 contain the panels that the listviews also
contain. In the onConfig of the webpage I call the visitor.

So the strange thing is that the visitor in the initial render of the
page only finds the 2 form panels, and not the ones in the listviews,
in the subsequent renders via ajax or page refresh it does find them.

What could be the cause?

regards nino

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



[OT] Configure wicket.configuration outside web.xml in Tomcat 6

2011-07-04 Thread Mike Mander

Hi,

i'm trying to configure my wicket.configuration property without adding 
it to web.xml. I use tomcat 6.
Adding wicket.configuration=deployment in 
CATALINA_HOME/conf/catalina.properties was not working.
App starts in development mode (after tomcat restart / param not present 
in web.xml). Adding the property to command line is only the last option 
for me. Because i'm stupid i bet i will forget it somewhere :-).


Background is: If i add the property to web.xml
a) i have to change it for all production apps on server
b) and i have to deploy all apps twice in production. Firstly with the 
"default" configured web.xml (development) and then hotdeploy with the 
changed web.xml (deployment).


This leads often to perm gen space which is another problem (I know it 
and it's not part of this problem :-).


Maybe someone has a good plan on this issue.

Thanks
Per

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



Re: resetting form components

2011-07-04 Thread ruchi
thanks it worked but how do i refresh the ManageAATemplatePanel now?

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/resetting-form-components-tp3640382p3643093.html
Sent from the Users forum mailing list archive at Nabble.com.

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