Re: Configure http and https with apache and jboss

2011-06-30 Thread Martin Grigorov
On Wed, Jun 29, 2011 at 8:58 PM, Vishal Popat vishal.po...@cipriati.co.uk wrote: I am trying to configure my web app to use http and https. I am using the following code in my Application class: protected IRequestCycleProcessor newRequestCycleProcessor() {        HttpsConfig config = new

Re: Why RelativePathPrefixHandler calculates path from context path ?

2011-06-30 Thread guillaume.mary
Martin Grigorov-4 wrote: Because the resources are supposed to be next to WEB-INF folder. Wicket should handle the requests to dynamic resources (pages, callback listeners, etc.), while the static resources better should be handled by the web container. Why do you use 'resources' ? I

Re: Why RelativePathPrefixHandler calculates path from context path ?

2011-06-30 Thread Martin Grigorov
Hi, On Thu, Jun 30, 2011 at 10:26 AM, guillaume.mary guillaume.m...@interview-efm.com wrote: Martin Grigorov-4 wrote: Because the resources are supposed to be next to WEB-INF folder. Wicket should handle the requests to dynamic resources (pages, callback listeners, etc.), while the static

Re: Configure http and https with apache and jboss

2011-06-30 Thread vp143
The MyHttpsRequestCycleProcessor was just used to debug i.e. no changes of code. The same problem is there without my custom class. You say the httpsPort is being ignored. How can I check this? What should be outputted if I print the url as nothing is being outputted? -- View this message in

Application with name 'xxxx' already exists.

2011-06-30 Thread me
Hi, the last hours I wanted to give the 1.5-RC a try. But there is one Exception which doesn't have an effect but it's just irritating: After deploying a Web-Application (The Hello-World-Example) on a GF 3.1. I'll receive this error: SCHWERWIEGEND: WebModule[/X-web]PWC1270: Exception

Re: Configure http and https with apache and jboss

2011-06-30 Thread Martin Grigorov
Put a breakpoint at org.apache.wicket.protocol.https.SwitchProtocolRequestTarget.respond(RequestCycle) and see what port is passed to org.apache.wicket.protocol.https.SwitchProtocolRequestTarget.getUrl(String, Integer, HttpServletRequest) On Thu, Jun 30, 2011 at 11:01 AM, vp143

Re: Application with name 'xxxx' already exists.

2011-06-30 Thread Martin Grigorov
This can happen when you have two WicketFilter declarations in web.xml with the same name. On Thu, Jun 30, 2011 at 9:00 AM, me mli...@e-beyond.de wrote: Hi, the last hours I wanted to give the 1.5-RC a try. But there is one Exception which doesn't have an effect but it's just irritating:

Re: Configure http and https with apache and jboss

2011-06-30 Thread vp143
The port being passed was null. The code in HttpsRequestCycleProcessor that sets the port is: Integer port = null; if (protocol == Protocol.HTTP) { if (processor.getConfig().getHttpPort() != 80) { port =

Re: Configure http and https with apache and jboss

2011-06-30 Thread Martin Grigorov
Right. 443 is not needed if the protocol is HTTPS. It should be something in the setup of the web servers ... On Thu, Jun 30, 2011 at 1:04 PM, vp143 vishal.po...@cipriati.co.uk wrote: The port being passed was null. The code in HttpsRequestCycleProcessor that sets the port is:                

Re: Configure http and https with apache and jboss

2011-06-30 Thread vp143
One additional point... if I take out protected IRequestCycleProcessor newRequestCycleProcessor() { HttpsConfig config = new HttpsConfig(80, 443); return new HttpsRequestCycleProcessor(config); } and I navigate manually to an https link i.e. https://myserver.com/login. Everything

Re: Configure http and https with apache and jboss

2011-06-30 Thread Martin Grigorov
On Thu, Jun 30, 2011 at 1:34 PM, vp143 vishal.po...@cipriati.co.uk wrote: One additional point... if I take out protected IRequestCycleProcessor newRequestCycleProcessor() {        HttpsConfig config = new HttpsConfig(80, 443);        return new HttpsRequestCycleProcessor(config); } and I

Re: Configure http and https with apache and jboss

2011-06-30 Thread vp143
/myapp is only used within the apache httpd.conf and not accessing it through the browser. The pages are accessed like http://myserver.com/ and hopefully https://myserver.com/login A debug output from getUrl shows the link obtained is https://myserver.com/myapp/login (I think from

Behaviors beforeRender broken

2011-06-30 Thread Christian Huber
Hi all, I wanted to use a Behavior to customize the components in my application (Wicket 1.4.2) by modifying some properties in the behaviors beforeRender method. But I had to find that this method is never called, neither is afterRender. The other methods of the behavior are invoked but

Re: WicketStuff artifacts naming strategy

2011-06-30 Thread Bruno Borges
The preffix is 'wicketstuff-', not 'org.wicketstuff.' Is this ok? *Bruno Borges* www.brunoborges.com.br +55 21 76727099 On Wed, Jun 29, 2011 at 4:01 AM, Harald Wellmann harald.wellm...@gmx.dewrote: For Maven OSGi bundle artifacts, there is a quasi-convention to have artifactId =

Re: WicketStuff artifacts naming strategy

2011-06-30 Thread James Carman
I haven't seen that syntax before of having the group id in the artifact id, at least not with the longer group ids (reverse domain). On Thu, Jun 30, 2011 at 11:02 AM, Bruno Borges bruno.bor...@gmail.com wrote: The preffix is 'wicketstuff-', not 'org.wicketstuff.' Is this ok? *Bruno Borges*

Re: WicketStuff artifacts naming strategy

2011-06-30 Thread Bruno Borges
Yes, me neither. That's why I asked. The preffix I'm using is wicketstuff-, but Harald mentioned org.wicketstuff. I don't want to use that, it's too verbose. *Bruno Borges* www.brunoborges.com.br +55 21 76727099 On Thu, Jun 30, 2011 at 12:06 PM, James Carman ja...@carmanconsulting.comwrote:

Re: WicketStuff artifacts naming strategy

2011-06-30 Thread Martin Grigorov
Harald said that org.wicketstuff. convention is used by OSGi-ed projects. On Thu, Jun 30, 2011 at 6:09 PM, Bruno Borges bruno.bor...@gmail.com wrote: Yes, me neither. That's why I asked. The preffix I'm using is wicketstuff-, but Harald mentioned org.wicketstuff. I don't want to use that,

Re: WicketStuff artifacts naming strategy

2011-06-30 Thread Bruno Borges
But is it necessary to rename the artifactId to OSGify a module? I'm just asking. Not that I'm going back to rename all again. :-) *Bruno Borges* www.brunoborges.com.br +55 21 76727099 On Thu, Jun 30, 2011 at 12:20 PM, Martin Grigorov mgrigo...@apache.orgwrote: Harald said that

Re: WicketStuff artifacts naming strategy

2011-06-30 Thread James Carman
And repetitive Sent from my Android device. Please excuse typos and brevity. On Jun 30, 2011 11:12 AM, Bruno Borges bruno.bor...@gmail.com wrote: Yes, me neither. That's why I asked. The preffix I'm using is wicketstuff-, but Harald mentioned org.wicketstuff. I don't want to use that, it's

Re: Behaviors beforeRender broken

2011-06-30 Thread Igor Vaynberg
mixin IComponentConfigurationBehavior (1.4.17+ i believe) and implement visibility toggling in onconfigure(component) of your behavior. -igor On Thu, Jun 30, 2011 at 7:03 AM, Christian Huber hub...@butterbrot.org wrote: Hi all, I wanted to use a Behavior to customize the components in my

Re: WicketStuff artifacts naming strategy

2011-06-30 Thread Martin Grigorov
The Maven artifact id is not important. The name of the produced .jar is what matters, right ? Harald just said that there is a convention in OSGi world to work with such named .jars (com.acme.blah) On Thu, Jun 30, 2011 at 6:31 PM, James Carman jcar...@carmanconsulting.com wrote: And repetitive

Re: WicketStuff artifacts naming strategy

2011-06-30 Thread Igor Vaynberg
i think the groupid/artifactid do matter because some containers have bundle deployers that pull things from the maven repo...i think -igor On Thu, Jun 30, 2011 at 8:38 AM, Martin Grigorov mgrigo...@apache.org wrote: The Maven artifact id is not important. The name of the produced .jar is what

Re: Unwanted authentication persistence

2011-06-30 Thread Scott Reed
I figured out that the sign-in panel was storing the authentication data in a cookie from when we had first tried it before we turned off the remember-me option and now it's getting it back from there even though we have turned off that option. Was a simple tweak to fix it. On 6/28/2011 3:15

Re: Behaviors beforeRender broken

2011-06-30 Thread Christian Huber
I tried adding a dummy implementation of that interface that logs every method call to custom subclass of link. While the links get rendered regularly the only methods that get invoked are isTemporary, bind, isEnabled and detach. All other methods are never called, am I missing something here?

Re: Behaviors beforeRender broken

2011-06-30 Thread Martin Grigorov
Are you still talking about 1.4.2 or for 1.4.16/17 ? If the problem still exists in 1.4.17 then please create a ticket with a quickstart. On Thu, Jun 30, 2011 at 7:48 PM, Christian Huber hub...@butterbrot.org wrote: I tried adding a dummy implementation of that interface that logs every method

Re: Behaviors beforeRender broken

2011-06-30 Thread Igor Vaynberg
just a hunch, but if the component to which the behavior is attached to is not visible then none of the methods like before/after render will be called since component is not rendering. -igor On Thu, Jun 30, 2011 at 9:48 AM, Christian Huber hub...@butterbrot.org wrote: I tried adding a dummy

Re: WicketStuff artifacts naming strategy

2011-06-30 Thread Clint Checketts
I seem to recall the Maven guys recommending against periods in artifactIds. Can't find the link for the info though... maybe it was just soething they mentioned in the class. The purpose was to reduce confusion between artifactIds and groupIds. -Clint On Thu, Jun 30, 2011 at 11:14 AM, Igor

Re: WicketStuff artifacts naming strategy

2011-06-30 Thread Bruno Borges
The Pull request #42 is ready to be merged. Please review and vote. https://github.com/wicketstuff/core/pull/42 There's one modification I made that is not related to the repository. It is here: https://github.com/wicketstuff/core/pull/42/files#r55594 *Bruno Borges* www.brunoborges.com.br

Re: jsp check AuthenticatedWebSession.get().isSignedIn()

2011-06-30 Thread Pedro Santos
Hi, you can share this info in the HttpServletSession. On Tue, Jun 28, 2011 at 4:57 PM, fachhoch fachh...@gmail.com wrote: I have very few jsp pages and for these pages I want to check that user is authenticated. I tried calling AuthenticatedWebSession.get().isSignedIn()   and I getting this

Re: jsp check AuthenticatedWebSession.get().isSignedIn()

2011-06-30 Thread Bruno Borges
If you are calling a jsp file, Wicket is not being processed. And so, Application.get() won't return a valid object. In your newSession() method, add something your project understand to HttpSession as Pedro said. *Bruno Borges* www.brunoborges.com.br +55 21 76727099 On Thu, Jun 30, 2011 at

Re: jsp check AuthenticatedWebSession.get().isSignedIn()

2011-06-30 Thread Martin Grigorov
WicketSessionFilter is also an option. On Thu, Jun 30, 2011 at 9:59 PM, Bruno Borges bruno.bor...@gmail.com wrote: If you are calling a jsp file, Wicket is not being processed. And so, Application.get() won't return a valid object. In your newSession() method, add something your project

Re: Behaviors beforeRender broken

2011-06-30 Thread Christian Huber
I just created a quick start with 1.4.17 where I added my behavior to the single label created in the template page. This time in addition to the methods mentioned below also getStatelessHint gets called but still beforeRender etc are not called. The label is still fully rendered. As Martin

Re: WicketStuff artifacts naming strategy

2011-06-30 Thread Bruno Borges
Hell, it has been merged. pull request #42 merged to master. I've updated the wiki already asking for new JAR modules to follow this naming strategy. Thank you all for the support. *Bruno Borges* www.brunoborges.com.br +55 21 76727099 On Thu, Jun 30, 2011 at 3:14 PM, Bruno Borges

What is the status of wicketstuff dojo?

2011-06-30 Thread Steve Swinsburg
Hi, Does anyone know what the status of wicketstuff dojo is? I have an application that was written in Wicket 1.3 which I have converted to 1.4, likewise for dojo. However there are classes missing from the 1.4 release that were being used in the 1.3 release, specifically:

Re: What is the status of wicketstuff dojo?

2011-06-30 Thread Steve Swinsburg
I found the old source. There is a LOT of stuff missing in the 1.4 release compared to the 1.3 release. 1.3: https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/attic/wicketstuff-dojo/src/main/java/org/wicketstuff/dojo/markup/html/ 1.4:

Re: What is the status of wicketstuff dojo?

2011-06-30 Thread Attila Király
That is the 1.5 branch of wicketstuff. The 1.4 is in https://github.com/wicketstuff/core/tree/core-1.4.x/jdk-1.5-parent/dojo-parent/dojo-api/src/main/java/org/wicketstuff/dojo11/markup/html Dojo is disabled in the 1.5 branch (enabled in 1.4), probably because there was noone to maintain it.