Re: FileUploadField selection event

2010-02-10 Thread dpmihai

Thanks for this tip.

I wonder if there is a possibility to create a behavior and add this to it.
I know that FileUploadField does not work with Ajax , so writing  an
AjaxFormComponentUpdatingBehavior does not work.
Does anyone know a solution to this?


ananthakumaran wrote:
> 
> 
> 
> 
> 
> 
> On Tue, Feb 9, 2010 at 3:22 AM, dpmihai  wrote:
> 
>>
>> What I really want is that after file selection automatically set the
>> text
>> of
>> another TextField (inside my form) with a string derived from selected
>> file
>> name.
>>
>>
>>
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>>
>>
>> --
>> View this message in context:
>> http://old.nabble.com/FileUploadField-selection-event-tp27512780p27513776.html
>> Sent from the Wicket - User 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
>>
>>
> 
> 
> -- 
> 
> Anantha Kumaran
> 
> 

-- 
View this message in context: 
http://old.nabble.com/FileUploadField-selection-event-tp27512780p27527078.html
Sent from the Wicket - User 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: FileUploadField selection event

2010-02-10 Thread Andrew Lombardi
I do believe in the latest versions of wicket 1.4 Ajax and  
fileuploadfield works via a hidden iframe


Sent from my iPhone

On Feb 10, 2010, at 12:01 AM, dpmihai  wrote:



Thanks for this tip.

I wonder if there is a possibility to create a behavior and add this  
to it.

I know that FileUploadField does not work with Ajax , so writing  an
AjaxFormComponentUpdatingBehavior does not work.
Does anyone know a solution to this?


ananthakumaran wrote:







On Tue, Feb 9, 2010 at 3:22 AM, dpmihai  wrote:



What I really want is that after file selection automatically set  
the

text
of
another TextField (inside my form) with a string derived from  
selected

file
name.





--- 
--

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




--
View this message in context:
http://old.nabble.com/FileUploadField-selection-event-tp27512780p27513776.html
Sent from the Wicket - User 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





--

Anantha Kumaran




--
View this message in context: 
http://old.nabble.com/FileUploadField-selection-event-tp27512780p27527078.html
Sent from the Wicket - User 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: Layout manager

2010-02-10 Thread Ernesto Reinaldo Barreiro
Hi Eyal,

Yesterday I was looking to [1] and there it is shown how to build a
dashboard using wiquery... Maybe it is not exactly what you need but I guess
yoy can use the same tools to build what you need.

Regards,

Ernesto

[1]-http://wiquery.googlecode.com/svn/examples/wiquery-presentation-examples

On Tue, Feb 2, 2010 at 10:56 AM, Eyal Golan  wrote:

> Hello,
> Is there any Wicket project for making a layout manager similar to iGoogle
> or http://www.netvibes.com/#General
> We found a project with ExtJS that is not supported anymore . Is there a
> Wicket project for that? or for any other similar?
> Can Wiquery help with this?
>
> Thanks for helping out,
>
>
> Eyal Golan
> egola...@gmail.com
>
> Visit: http://jvdrums.sourceforge.net/
> LinkedIn: http://www.linkedin.com/in/egolan74
>
> P  Save a tree. Please don't print this e-mail unless it's really necessary
>


Re: removing validators

2010-02-10 Thread Igor Vaynberg
instead of using the two minimum validators you can implement your own
that performs/delegates validation based on the convertedinput value
of the first ddc.

-igor

On Tue, Feb 9, 2010 at 11:13 PM, Tony Wu  wrote:
> In total I have 4 DropDownChoices:
>
> I have a DropDownChoice which allows a user to select whether they are an
> adult or minor. I have another FormComponentPanel with 3 DropDownChoices
> representing their birthdate (year, month, day) with a setConvertedValue set
> to how old they are. I have 2 validators (MinimumValidator(18) for adults,
> and MaximumValidator(17) for minors) that need to be added dynamically based
> on the DropDownChoice (adult vs. minor). So my code is dynamically doing
> FormComponentPanel.add(---min or max validator--).
>
> However, if a user selects minor from the first dropdown, and the other
> dropdowns with a birthday that puts them at, say age 30.. I will get a form
> validation error - which is good since the Maximum validator kicked in for
> minors. But if I change the dropdown from minor to adult, the code does a
> removeAll() (which should remove all children from FormComponentPanel),
> readds the drop down, and then adds the MinimumValidator(18). At this point,
> it seems like both validators are still in effect - so this is:
>
> 1. Clunky
> 2. Doesn't work (the minimum validator seems to still be there even after a
> removeAll, which makes ANY birthday selection at this point invalid since
> both validators are in effect)
>
> Any ideas on how to remove validators or best approach this? The crux of the
> problem is I want to switch the Component's validator from one, to another.
>
> Thanks,
> Tony
>

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



Re: Layout manager

2010-02-10 Thread Josh Kamau
Hello,
Is there any Wicket project for making a layout manager similar to iGoogle
or http://www.netvibes.com/#General
We found a project with ExtJS that is not supported anymore . Is there a
Wicket project for that? or for any other similar?
Can Wiquery help with this?

Thanks for helping out,

I am looking for the same thing and i think i may have to learn JQuery and
benefit from the hundreds of plugins availabe.  I have been looking at
WiQuery and i like the widgets but the layout is not implemented yet. (I
perused the javadocs and didnt see the Layout class. The layout in the
example seems to use JQuery.ui.layout directly)

regards.


On Tue, Feb 2, 2010 at 12:56 PM, Eyal Golan  wrote:

> Hello,
> Is there any Wicket project for making a layout manager similar to iGoogle
> or http://www.netvibes.com/#General
> We found a project with ExtJS that is not supported anymore . Is there a
> Wicket project for that? or for any other similar?
> Can Wiquery help with this?
>
> Thanks for helping out,
>
>
> Eyal Golan
> egola...@gmail.com
>
> Visit: http://jvdrums.sourceforge.net/
> LinkedIn: http://www.linkedin.com/in/egolan74
>
> P  Save a tree. Please don't print this e-mail unless it's really necessary
>


Re: Layout manager

2010-02-10 Thread Ernesto Reinaldo Barreiro
Check out [1] and look for  LayoutPlugin.java and Layou.java.

Ernesto

[1]-http://wiquery.googlecode.com/svn/examples/wiquery-presentation-examples


On Wed, Feb 10, 2010 at 10:05 AM, Josh Kamau  wrote:

> Hello,
> Is there any Wicket project for making a layout manager similar to iGoogle
> or http://www.netvibes.com/#General
> We found a project with ExtJS that is not supported anymore . Is there a
> Wicket project for that? or for any other similar?
> Can Wiquery help with this?
>
> Thanks for helping out,
>
> I am looking for the same thing and i think i may have to learn JQuery and
> benefit from the hundreds of plugins availabe.  I have been looking at
> WiQuery and i like the widgets but the layout is not implemented yet. (I
> perused the javadocs and didnt see the Layout class. The layout in the
> example seems to use JQuery.ui.layout directly)
>
> regards.
>
>
> On Tue, Feb 2, 2010 at 12:56 PM, Eyal Golan  wrote:
>
> > Hello,
> > Is there any Wicket project for making a layout manager similar to
> iGoogle
> > or http://www.netvibes.com/#General
> > We found a project with ExtJS that is not supported anymore . Is there a
> > Wicket project for that? or for any other similar?
> > Can Wiquery help with this?
> >
> > Thanks for helping out,
> >
> >
> > Eyal Golan
> > egola...@gmail.com
> >
> > Visit: http://jvdrums.sourceforge.net/
> > LinkedIn: http://www.linkedin.com/in/egolan74
> >
> > P  Save a tree. Please don't print this e-mail unless it's really
> necessary
> >
>


Re: Layout manager

2010-02-10 Thread Eyal Golan
Thanks Ernesto.
Luckily our company gave us legal permission to use Wiquery :)

I will check it out.


Eyal Golan
egola...@gmail.com

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's really necessary


On Wed, Feb 10, 2010 at 11:12 AM, Ernesto Reinaldo Barreiro <
reier...@gmail.com> wrote:

> Check out [1] and look for  LayoutPlugin.java and Layou.java.
>
> Ernesto
>
> [1]-
> http://wiquery.googlecode.com/svn/examples/wiquery-presentation-examples
>
>
> On Wed, Feb 10, 2010 at 10:05 AM, Josh Kamau 
> wrote:
>
> > Hello,
> > Is there any Wicket project for making a layout manager similar to
> iGoogle
> > or http://www.netvibes.com/#General
> > We found a project with ExtJS that is not supported anymore . Is there a
> > Wicket project for that? or for any other similar?
> > Can Wiquery help with this?
> >
> > Thanks for helping out,
> >
> > I am looking for the same thing and i think i may have to learn JQuery
> and
> > benefit from the hundreds of plugins availabe.  I have been looking at
> > WiQuery and i like the widgets but the layout is not implemented yet. (I
> > perused the javadocs and didnt see the Layout class. The layout in the
> > example seems to use JQuery.ui.layout directly)
> >
> > regards.
> >
> >
> > On Tue, Feb 2, 2010 at 12:56 PM, Eyal Golan  wrote:
> >
> > > Hello,
> > > Is there any Wicket project for making a layout manager similar to
> > iGoogle
> > > or http://www.netvibes.com/#General
> > > We found a project with ExtJS that is not supported anymore . Is there
> a
> > > Wicket project for that? or for any other similar?
> > > Can Wiquery help with this?
> > >
> > > Thanks for helping out,
> > >
> > >
> > > Eyal Golan
> > > egola...@gmail.com
> > >
> > > Visit: http://jvdrums.sourceforge.net/
> > > LinkedIn: http://www.linkedin.com/in/egolan74
> > >
> > > P  Save a tree. Please don't print this e-mail unless it's really
> > necessary
> > >
> >
>


Re: Layout manager

2010-02-10 Thread Josh Kamau
Ernesto;

Thanks for your response.

What i meant is the the Layout* class(es) are not in the wiquery-1.0.jar
along side the dialog, datepicker, etc. I have added the jar into the class
path and i cant use the layout . i can use the date picker  and the dialog.

On Wed, Feb 10, 2010 at 12:12 PM, Ernesto Reinaldo Barreiro <
reier...@gmail.com> wrote:

> Check out [1] and look for  LayoutPlugin.java and Layou.java.
>
> Ernesto
>
> [1]-
> http://wiquery.googlecode.com/svn/examples/wiquery-presentation-examples
>
>
> On Wed, Feb 10, 2010 at 10:05 AM, Josh Kamau 
> wrote:
>
> > Hello,
> > Is there any Wicket project for making a layout manager similar to
> iGoogle
> > or http://www.netvibes.com/#General
> > We found a project with ExtJS that is not supported anymore . Is there a
> > Wicket project for that? or for any other similar?
> > Can Wiquery help with this?
> >
> > Thanks for helping out,
> >
> > I am looking for the same thing and i think i may have to learn JQuery
> and
> > benefit from the hundreds of plugins availabe.  I have been looking at
> > WiQuery and i like the widgets but the layout is not implemented yet. (I
> > perused the javadocs and didnt see the Layout class. The layout in the
> > example seems to use JQuery.ui.layout directly)
> >
> > regards.
> >
> >
> > On Tue, Feb 2, 2010 at 12:56 PM, Eyal Golan  wrote:
> >
> > > Hello,
> > > Is there any Wicket project for making a layout manager similar to
> > iGoogle
> > > or http://www.netvibes.com/#General
> > > We found a project with ExtJS that is not supported anymore . Is there
> a
> > > Wicket project for that? or for any other similar?
> > > Can Wiquery help with this?
> > >
> > > Thanks for helping out,
> > >
> > >
> > > Eyal Golan
> > > egola...@gmail.com
> > >
> > > Visit: http://jvdrums.sourceforge.net/
> > > LinkedIn: http://www.linkedin.com/in/egolan74
> > >
> > > P  Save a tree. Please don't print this e-mail unless it's really
> > necessary
> > >
> >
>


Re: Layout manager

2010-02-10 Thread Ernesto Reinaldo Barreiro
No they are not... they are on the example project I mentioned... They are
kind of extensions (IWiQueryPlugins) and as far as I understand the
developers want to keep the core clean. Maybe you should contact them and
ask if you can just pack them on ajar file and use them on you project. I
think you should use them over the hastely build code I sent to you;-)

Best,

Ernesto


On Wed, Feb 10, 2010 at 10:24 AM, Josh Kamau  wrote:

> Ernesto;
>
> Thanks for your response.
>
> What i meant is the the Layout* class(es) are not in the wiquery-1.0.jar
> along side the dialog, datepicker, etc. I have added the jar into the class
> path and i cant use the layout . i can use the date picker  and the dialog.
>
> On Wed, Feb 10, 2010 at 12:12 PM, Ernesto Reinaldo Barreiro <
> reier...@gmail.com> wrote:
>
> > Check out [1] and look for  LayoutPlugin.java and Layou.java.
> >
> > Ernesto
> >
> > [1]-
> > http://wiquery.googlecode.com/svn/examples/wiquery-presentation-examples
> >
> >
> > On Wed, Feb 10, 2010 at 10:05 AM, Josh Kamau 
> > wrote:
> >
> > > Hello,
> > > Is there any Wicket project for making a layout manager similar to
> > iGoogle
> > > or http://www.netvibes.com/#General
> > > We found a project with ExtJS that is not supported anymore . Is there
> a
> > > Wicket project for that? or for any other similar?
> > > Can Wiquery help with this?
> > >
> > > Thanks for helping out,
> > >
> > > I am looking for the same thing and i think i may have to learn JQuery
> > and
> > > benefit from the hundreds of plugins availabe.  I have been looking at
> > > WiQuery and i like the widgets but the layout is not implemented yet.
> (I
> > > perused the javadocs and didnt see the Layout class. The layout in the
> > > example seems to use JQuery.ui.layout directly)
> > >
> > > regards.
> > >
> > >
> > > On Tue, Feb 2, 2010 at 12:56 PM, Eyal Golan 
> wrote:
> > >
> > > > Hello,
> > > > Is there any Wicket project for making a layout manager similar to
> > > iGoogle
> > > > or http://www.netvibes.com/#General
> > > > We found a project with ExtJS that is not supported anymore . Is
> there
> > a
> > > > Wicket project for that? or for any other similar?
> > > > Can Wiquery help with this?
> > > >
> > > > Thanks for helping out,
> > > >
> > > >
> > > > Eyal Golan
> > > > egola...@gmail.com
> > > >
> > > > Visit: http://jvdrums.sourceforge.net/
> > > > LinkedIn: http://www.linkedin.com/in/egolan74
> > > >
> > > > P  Save a tree. Please don't print this e-mail unless it's really
> > > necessary
> > > >
> > >
> >
>


Frames for layout

2010-02-10 Thread Josh Kamau
Hi Team;

Just wondering, can i use Frames for application layout? The kind of
application am talking about will run within a LAN and therefore
bookmarkability  and Search engine friendliness are not major issues.

regards.


wicket table and resultset

2010-02-10 Thread Ivan Dudko
On Fri, Feb 22, 2008 at 8:54 AM, Igor Vaynberg wrote:

while wicket has first class support for editing beans, it is by no
means the only way. it is quiet trivial to create a ColumnModel that
is like a property model but reads data from a resultset object and
populates a prepared statement object...

all im saying is that you dont have to box yourself into the bean mindset

-igor

Can you give an example of how to use resultset with datatable or
other repeater?

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



Wicket Multi-Threading with access to the session

2010-02-10 Thread Matthias Keller

Hi

We have a complex application which needs to calculate some very 
expensive things. Those could easily be parallelized so we thought about 
having a thread pool to do that.
Unfortunately, that code needs access to the localizer and the 
application (for some configuration values) so we're setting the Session 
and the Application explicitly in that thread using  Application.set() 
and  Session.set().
But this always leads to a strange error - I suspect it has something to 
do with the 'duplicated' session or application?


Any hints about how to do this correctly? Do we need to do something 
special with the session or application at the end of the thread?


Thanks!

Matt


Here's the stacktrace:

WicketMessage: Method onFormSubmitted of interface 
org.apache.wicket.markup.html.form.IFormSubmitListener targeted at component 
[MarkupContainer [Component id = SignupForm]] threw an exception

Root cause:

ExceptionConverter: java.io.IOException: No message found for 
the.document.has.no.pages

Complete stack:

org.apache.wicket.WicketRuntimeException: Method onFormSubmitted of interface 
org.apache.wicket.markup.html.form.IFormSubmitListener targeted at component 
[MarkupContainer [Component id = SignupForm]] threw an exception
at 
org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:194)
at 
org.apache.wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents(ListenerInterfaceRequestTarget.java:73)
at 
org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:91)
at 
org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1175)
at org.apache.wicket.RequestCycle.step(RequestCycle.java:1252)
at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1353)
at org.apache.wicket.RequestCycle.request(RequestCycle.java:493)
at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:355)

java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at java.lang.reflect.Method.invoke(Method.java:597)
at 
org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:183)
at 
org.apache.wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents(ListenerInterfaceRequestTarget.java:73)
at 
org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:91)
at 
org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1175)
at org.apache.wicket.RequestCycle.step(RequestCycle.java:1252)
at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1353)
at org.apache.wicket.RequestCycle.request(RequestCycle.java:493)
at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:355)





smime.p7s
Description: S/MIME Cryptographic Signature


Re: Wicket Multi-Threading with access to the session

2010-02-10 Thread Ernesto Reinaldo Barreiro
Why not just "collect" the information you need and pass it to the thread?
Can't you know in advance which localized values you are going to need?

Best,

Ernesto


On Wed, Feb 10, 2010 at 12:08 PM, Matthias Keller
wrote:

> Hi
>
> We have a complex application which needs to calculate some very expensive
> things. Those could easily be parallelized so we thought about having a
> thread pool to do that.
> Unfortunately, that code needs access to the localizer and the application
> (for some configuration values) so we're setting the Session and the
> Application explicitly in that thread using  Application.set() and
>  Session.set().
> But this always leads to a strange error - I suspect it has something to do
> with the 'duplicated' session or application?
>
> Any hints about how to do this correctly? Do we need to do something
> special with the session or application at the end of the thread?
>
> Thanks!
>
> Matt
>
>
> Here's the stacktrace:
>
> WicketMessage: Method onFormSubmitted of interface
> org.apache.wicket.markup.html.form.IFormSubmitListener targeted at component
> [MarkupContainer [Component id = SignupForm]] threw an exception
>
> Root cause:
>
> ExceptionConverter: java.io.IOException: No message found for
> the.document.has.no.pages
>
> Complete stack:
>
> org.apache.wicket.WicketRuntimeException: Method onFormSubmitted of
> interface org.apache.wicket.markup.html.form.IFormSubmitListener targeted at
> component [MarkupContainer [Component id = SignupForm]] threw an exception
> at
> org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:194)
> at
> org.apache.wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents(ListenerInterfaceRequestTarget.java:73)
> at
> org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:91)
> at
> org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1175)
> at org.apache.wicket.RequestCycle.step(RequestCycle.java:1252)
> at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1353)
> at org.apache.wicket.RequestCycle.request(RequestCycle.java:493)
> at
> org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:355)
>
> java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at
> org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:183)
> at
> org.apache.wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents(ListenerInterfaceRequestTarget.java:73)
> at
> org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:91)
> at
> org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1175)
> at org.apache.wicket.RequestCycle.step(RequestCycle.java:1252)
> at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1353)
> at org.apache.wicket.RequestCycle.request(RequestCycle.java:493)
> at
> org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:355)
>
>
>
>


Re: Wicket Multi-Threading with access to the session

2010-02-10 Thread Matthias Keller

Hi Ernesto

Thanks for your reply. This would basically be possible but very 
complicated because the threads need dozens to hundreds of values, so it 
would be a very tedious and complicated task to collect everything in 
advance just to pass it to those threads.


Matt

On 2010-02-10 12:18, Ernesto Reinaldo Barreiro wrote:

Why not just "collect" the information you need and pass it to the thread?
Can't you know in advance which localized values you are going to need?

Best,

Ernesto


On Wed, Feb 10, 2010 at 12:08 PM, Matthias Keller
wrote:

   

Hi

We have a complex application which needs to calculate some very expensive
things. Those could easily be parallelized so we thought about having a
thread pool to do that.
Unfortunately, that code needs access to the localizer and the application
(for some configuration values) so we're setting the Session and the
Application explicitly in that thread using  Application.set() and
  Session.set().
But this always leads to a strange error - I suspect it has something to do
with the 'duplicated' session or application?

Any hints about how to do this correctly? Do we need to do something
special with the session or application at the end of the thread?

Thanks!

Matt


Here's the stacktrace:

WicketMessage: Method onFormSubmitted of interface
org.apache.wicket.markup.html.form.IFormSubmitListener targeted at component
[MarkupContainer [Component id = SignupForm]] threw an exception

Root cause:

ExceptionConverter: java.io.IOException: No message found for
the.document.has.no.pages

Complete stack:

org.apache.wicket.WicketRuntimeException: Method onFormSubmitted of
interface org.apache.wicket.markup.html.form.IFormSubmitListener targeted at
component [MarkupContainer [Component id = SignupForm]] threw an exception
at
org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:194)
at
org.apache.wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents(ListenerInterfaceRequestTarget.java:73)
at
org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:91)
at
org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1175)
at org.apache.wicket.RequestCycle.step(RequestCycle.java:1252)
at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1353)
at org.apache.wicket.RequestCycle.request(RequestCycle.java:493)
at
org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:355)

java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:183)
at
org.apache.wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents(ListenerInterfaceRequestTarget.java:73)
at
org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:91)
at
org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1175)
at org.apache.wicket.RequestCycle.step(RequestCycle.java:1252)
at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1353)
at org.apache.wicket.RequestCycle.request(RequestCycle.java:493)
at
org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:355)




 
   



--
matthias.kel...@ergon.ch  +41 44 268 83 98
Ergon Informatik AG, Kleinstrasse 15, CH-8008 Zürich
http://www.ergon.ch
__
e r g o nsmart people - smart software




smime.p7s
Description: S/MIME Cryptographic Signature


Re: [announce] better look & modern css for wicket examples contest

2010-02-10 Thread nino martinez wael
done.  and looking forward to see something.

2010/2/10 Vijay Kiran 

> Can you add me as well, I'm interested in participating..
>
> My sf.net username: vijaykiran
>
> ./Vijay
>
> On 10-Feb-2010, at 7:52 AM, nino martinez wael wrote:
>
> > No problem, I just set the deadline to have one..
> >
> > 2010/2/9 Peter Jones 
> >
> >> Thanks!  (Don't expect any activity for a while)
> >>
> >> 2010/2/9 nino martinez wael 
> >>
> >>> you've been added.
> >>>
> >>> 2010/2/8 Peter Jones 
> >>>
>  My username is "superpaj".  I think I'm following you.  I'll holler if
> >> I
>  have any questions.
> 
>  Thanks
>  Pete
> 
>  On Mon, Feb 8, 2010 at 12:50 PM, Igor Vaynberg <
> >> igor.vaynb...@gmail.com
> > wrote:
> 
> > as long as whatever it is you do can be applied as a patch...
> >
> > -igor
> >
> > On Mon, Feb 8, 2010 at 10:34 AM, nino martinez wael
> >  wrote:
> >> just post your sourceforge username... I'll give you access to
> >> store
> > things
> >> in svn..
> >>
> >> So you checkout wicketexamples from apache.. Disconnect it apply
> >> your
> > design
> >> stuff, and can store it at sourceforge in sandbox under your sf
> >> name.
> > Okay?
> >>
> >> 2010/2/8 Peter Jones 
> >>
> >>> Hi,
> >>>
> >>> I'm excited by this idea for two reasons: 1) it would be a good
> >>> design
> >>> exercise and 2) it might help out the Wicket cause... Oh, and 3) I
> > suspect
> >>> my wife would look hot in a Wicket T-shirt!
> >>>
> >>> I'm not promising anything - we've got a big release mid-March
> >> (yes,
> > we're
> >>> using Wicket) - but I'd like to get commit rights just in case;
> >> what
>  do
> > I
> >>> need to do?
> >>>
> >>> Thanks,
> >>> Pete
> >>>
> >>> On Mon, Feb 8, 2010 at 4:44 AM, nino martinez wael <
> >>> nino.martinez.w...@gmail.com> wrote:
> >>>
>  I agree, and the contest are about Wicket Examples not the
>  quickstart.
> 
>  2010/2/8 Martijn Dashorst 
> 
> > I don't like to add more bells and whistles to the quickstart.
> >>> If
>  we
> > add graphics, JS and other stuff, you'd have to remove it for
>  every
> > project. I like the fact that I can grab the quickstart and
> >> just
> > start
> > hacking without having to strip it from superfluous muck.
> >
> > I do like the changes Kinabalu proposed though: simple, low
>  profile
> > and removed easily enough.
> >
> > Martijn
> >
> > On Mon, Feb 8, 2010 at 11:05 AM, nino martinez wael
> >  wrote:
> >> Design as in graphical. While I do think the changes you
> >> made
>  are
>  equally
> >> important.
> >>
> >> The graphical perspective was what begun the contest. It
>  would'nt
> > certainly
> >> not hurt that the quickstart or the examples looked more
> >>> slick.
> >>> However
> > any
> >> out come are a win-win.
> >>
> >> regards Nino
> >>
> >> 2010/2/8 Andrew Lombardi 
> >>
> >>> Design as in programming?  or design as in graphical?
> >>>
> >>> I think the intent I gathered from mbrictson was to put a
> > semi-nicer
> > look
> >>> on a plain page, and provide useful links for new folks.
>  Things
> >>> like
> > the
> >>> examples which should be perused a lot while first learning
> > Wicket.
> >>>
> >>> It's a quickstart, it should take on a tone of simplicity.
>  Just
> >>> like
> > the
> >>> Django quickstart, which doesn't aim to do anything other
> >>> than
> > shove
>  you
> > in
> >>> the right direction
> >>>
> >>> On Feb 7, 2010, at 11:23 PM, nino martinez wael wrote:
> >>>
>  Yeah I know. But some would probably use it as a starting
>  point
> > in
> > design
> >>> as
>  well.
> 
>  2010/2/7 Andrew Lombardi 
> 
> > This isn't a modification for all the wicket examples,
> >>> this
>  is
> >>> just
> > for
> >>> the
> > maven archetype, the examples are a much larger
> >>> undertaking.
> >
> > Focus here was to make it simple, and provide some
>  references
> >>> that
> >>> people
> > could find useful.  There's no reason to extrapolate out
> >>> and
> >>> design
>  a
> >>> crazy
> > quickstart page because it will be deleted pretty
> >> quickly
>  (we
> >>> hope)
> >
> > On Feb 7, 2010, at 1:25 AM, nino martinez wael wrote:
> >
> >> Great. We need more people though to 

Re: Wicket Multi-Threading with access to the session

2010-02-10 Thread Pedro Santos
About share your application IStringResourceLoader objects with your thread
?

On Wed, Feb 10, 2010 at 9:25 AM, Matthias Keller
wrote:

> Hi Ernesto
>
> Thanks for your reply. This would basically be possible but very
> complicated because the threads need dozens to hundreds of values, so it
> would be a very tedious and complicated task to collect everything in
> advance just to pass it to those threads.
>
> Matt
>
>
> On 2010-02-10 12:18, Ernesto Reinaldo Barreiro wrote:
>
>> Why not just "collect" the information you need and pass it to the thread?
>> Can't you know in advance which localized values you are going to need?
>>
>> Best,
>>
>> Ernesto
>>
>>
>> On Wed, Feb 10, 2010 at 12:08 PM, Matthias Keller
>> wrote:
>>
>>
>>
>>> Hi
>>>
>>> We have a complex application which needs to calculate some very
>>> expensive
>>> things. Those could easily be parallelized so we thought about having a
>>> thread pool to do that.
>>> Unfortunately, that code needs access to the localizer and the
>>> application
>>> (for some configuration values) so we're setting the Session and the
>>> Application explicitly in that thread using  Application.set() and
>>>  Session.set().
>>> But this always leads to a strange error - I suspect it has something to
>>> do
>>> with the 'duplicated' session or application?
>>>
>>> Any hints about how to do this correctly? Do we need to do something
>>> special with the session or application at the end of the thread?
>>>
>>> Thanks!
>>>
>>> Matt
>>>
>>>
>>> Here's the stacktrace:
>>>
>>> WicketMessage: Method onFormSubmitted of interface
>>> org.apache.wicket.markup.html.form.IFormSubmitListener targeted at
>>> component
>>> [MarkupContainer [Component id = SignupForm]] threw an exception
>>>
>>> Root cause:
>>>
>>> ExceptionConverter: java.io.IOException: No message found for
>>> the.document.has.no.pages
>>>
>>> Complete stack:
>>>
>>> org.apache.wicket.WicketRuntimeException: Method onFormSubmitted of
>>> interface org.apache.wicket.markup.html.form.IFormSubmitListener targeted
>>> at
>>> component [MarkupContainer [Component id = SignupForm]] threw an
>>> exception
>>> at
>>>
>>> org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:194)
>>> at
>>>
>>> org.apache.wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents(ListenerInterfaceRequestTarget.java:73)
>>> at
>>>
>>> org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:91)
>>> at
>>>
>>> org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1175)
>>> at org.apache.wicket.RequestCycle.step(RequestCycle.java:1252)
>>> at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1353)
>>> at org.apache.wicket.RequestCycle.request(RequestCycle.java:493)
>>> at
>>> org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:355)
>>>
>>> java.lang.reflect.InvocationTargetException
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at
>>>
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>> at java.lang.reflect.Method.invoke(Method.java:597)
>>> at
>>>
>>> org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:183)
>>> at
>>>
>>> org.apache.wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents(ListenerInterfaceRequestTarget.java:73)
>>> at
>>>
>>> org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:91)
>>> at
>>>
>>> org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1175)
>>> at org.apache.wicket.RequestCycle.step(RequestCycle.java:1252)
>>> at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1353)
>>> at org.apache.wicket.RequestCycle.request(RequestCycle.java:493)
>>> at
>>> org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:355)
>>>
>>>
>>>
>>>
>>>
>>>
>>
>>
>
>
> --
> matthias.kel...@ergon.ch  +41 44 268 83 98
> Ergon Informatik AG, Kleinstrasse 15, CH-8008 Zürich
> http://www.ergon.ch
> __
> e r g o nsmart people - smart software
>
>
>


-- 
Pedro Henrique Oliveira dos Santos


Re: Wicket Multi-Threading with access to the session

2010-02-10 Thread Jonas
I guess you could safely share your IStringResourceLoaders, as they
are already shared
between multiple session (and thus potentially multiple threads).
If you really need to share the Session object between threads, you have
to roll some kind of locking. What I've done in the past is adding a
ReentrantLock
to the session, which every thread has to acquire before using the session.
For web request threads, this can be done in WebRequestCycle.
However, I would advise against sharing the whole session, but just to
share what's actually needed and guard the access to that.

cheers,
Jonas

On Wed, Feb 10, 2010 at 12:08 PM, Matthias Keller
 wrote:
> Hi
>
> We have a complex application which needs to calculate some very expensive
> things. Those could easily be parallelized so we thought about having a
> thread pool to do that.
> Unfortunately, that code needs access to the localizer and the application
> (for some configuration values) so we're setting the Session and the
> Application explicitly in that thread using  Application.set() and
>  Session.set().
> But this always leads to a strange error - I suspect it has something to do
> with the 'duplicated' session or application?
>
> Any hints about how to do this correctly? Do we need to do something special
> with the session or application at the end of the thread?
>
> Thanks!
>
> Matt
>
>
> Here's the stacktrace:
>
> WicketMessage: Method onFormSubmitted of interface
> org.apache.wicket.markup.html.form.IFormSubmitListener targeted at component
> [MarkupContainer [Component id = SignupForm]] threw an exception
>
> Root cause:
>
> ExceptionConverter: java.io.IOException: No message found for
> the.document.has.no.pages
>
> Complete stack:
>
> org.apache.wicket.WicketRuntimeException: Method onFormSubmitted of
> interface org.apache.wicket.markup.html.form.IFormSubmitListener targeted at
> component [MarkupContainer [Component id = SignupForm]] threw an exception
> at
> org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:194)
> at
> org.apache.wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents(ListenerInterfaceRequestTarget.java:73)
> at
> org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:91)
> at
> org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1175)
> at org.apache.wicket.RequestCycle.step(RequestCycle.java:1252)
> at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1353)
> at org.apache.wicket.RequestCycle.request(RequestCycle.java:493)
> at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:355)
>
> java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at
> org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:183)
> at
> org.apache.wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents(ListenerInterfaceRequestTarget.java:73)
> at
> org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:91)
> at
> org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1175)
> at org.apache.wicket.RequestCycle.step(RequestCycle.java:1252)
> at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1353)
> at org.apache.wicket.RequestCycle.request(RequestCycle.java:493)
> at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:355)
>
>
>
>

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



Re: Wicket Layout

2010-02-10 Thread Ernesto Reinaldo Barreiro
Cemal,

I successfully installed the demo application and studied it a bit... As a
conclusion I can say I wouldn't mind adapting  "my contributions" to follow
the standard you have defined for contributing plugins (IWiQueryPlugin).


> The link to ODLabs' WiQuery layout demo (from our last London Wicket
> Event) showing WiQuery layout was mentioned on another thread [1] so I
> didn't repeat it here. Also note a subsequent post there stating the
>

Maybe it would be useful to split the code of this demo and take out the
plugins into a separate project? wilayout? So that people could use it on
their projects alongside wiquery jar?


> fact that you need to change the POM to point at 1.0 (not 1.0=m2) of
> WiQuery which might save you a bit of head-scratching.
>
>
Thanks! Can't it be fixed on SVN so that others do not face the same
problem?


> I think all this is for the general good and provides more options for
> Wicket developers (as long as all this stuff stays well out of the
> core!). On the other hand, if you like the way WiQuery does things, of
> course we can advance that further too, in a WiQuery Plugins project

we have been talking about introducing for exactly this sort of thing.
>

Maybe create another google code project similar to Wicket-stuff? So, that
core do not get polluted with such plugins and commit access is less strict.
As said I wouldn't mind using the conventions you have defined.


> I know that Lionel has been in touch with you and I am I look forward
> to having a chat on Skype soon, thanks for sending me your details.
>
>
Hope we can talk soon. Today in the morning I noticed your request on
Skipe:-(

Cheers,

Ernesto


Re: Frames for layout

2010-02-10 Thread Martijn Dashorst
Yes, but don't do that. Frames were outlawed in 2001 and should stay that way.

You'll run into pagemap problems, backbutton problems etc.

Martijn

On Wed, Feb 10, 2010 at 10:53 AM, Josh Kamau  wrote:
> Hi Team;
>
> Just wondering, can i use Frames for application layout? The kind of
> application am talking about will run within a LAN and therefore
> bookmarkability  and Search engine friendliness are not major issues.
>
> regards.
>



-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.4 increases type safety for web applications
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.4

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



Panel.replaceWith() in a DataView

2010-02-10 Thread riccardo trombini

hi

i am writting a software for an article management. a user can post and 
edit articles. to do that i show all the users articles in a 
/*DataView*/. This lists every item in a TableRow.


ButtonPanel buttonPanel = new ButtonPanel("buttonPanel"); // extends Panel
Of course the user needs to delete these, for that i provide a button.
AjaxLink deleteButton = new AjaxLink("deleteButton"){
...
}
buttonPanel.add(deleteButton);

But i want to confirm this action befor i delete the article. my idea is 
to Replace the panel which holds the deleteButton with a ConfirmButton 
in another Panel. And afterwards delete or show the original article row.


I use the code i found on the wiki site : 
http://cwiki.apache.org/WICKET/getting-user-confirmation.html
but my ajax update won't send me any html markup which would replace the 
panel.


so my first question is, has anyone ever done this ? especially 
replacing a panel IN a DataView!


thank you very much for your help !









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



Re: Frames for layout

2010-02-10 Thread Ernesto Reinaldo Barreiro
Why not use the jquery based solution provided in another thread?

Ernesto


On Wed, Feb 10, 2010 at 10:53 AM, Josh Kamau  wrote:

> Hi Team;
>
> Just wondering, can i use Frames for application layout? The kind of
> application am talking about will run within a LAN and therefore
> bookmarkability  and Search engine friendliness are not major issues.
>
> regards.
>


SV: Frames for layout

2010-02-10 Thread Wilhelmsen Tor Iver
> Yes, but don't do that. Frames were outlawed in 2001 and should stay
> that way.

+1

Frames create a shedload of problems both for the developer and for the user

- Tor Iver

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



Re: Frames for layout

2010-02-10 Thread Josh Kamau
Ernesto;

Thanks for you comments.

I have been trying out the WiQuery layout solution though i had a fight with
it in the morning. I really needed it bundled into a jar file. I will try
the raw JQuery javascript during my next coffee break.

Thanks for the great support in this forum

Regards.

On Wed, Feb 10, 2010 at 3:44 PM, Ernesto Reinaldo Barreiro <
reier...@gmail.com> wrote:

> Why not use the jquery based solution provided in another thread?
>
> Ernesto
>
>
> On Wed, Feb 10, 2010 at 10:53 AM, Josh Kamau 
> wrote:
>
> > Hi Team;
> >
> > Just wondering, can i use Frames for application layout? The kind of
> > application am talking about will run within a LAN and therefore
> > bookmarkability  and Search engine friendliness are not major issues.
> >
> > regards.
> >
>


Re: Frames for layout

2010-02-10 Thread Ernesto Reinaldo Barreiro
Why dont' you contact the developers and ask them if you can simply copy and
paste the code into your project? Or just put it yourself into a jar file
(e.g. with an ant script)?

Cheers,

Ernesto

On Wed, Feb 10, 2010 at 1:58 PM, Josh Kamau  wrote:

> Ernesto;
>
> Thanks for you comments.
>
> I have been trying out the WiQuery layout solution though i had a fight
> with
> it in the morning. I really needed it bundled into a jar file. I will try
> the raw JQuery javascript during my next coffee break.
>
> Thanks for the great support in this forum
>
> Regards.
>
> On Wed, Feb 10, 2010 at 3:44 PM, Ernesto Reinaldo Barreiro <
> reier...@gmail.com> wrote:
>
> > Why not use the jquery based solution provided in another thread?
> >
> > Ernesto
> >
> >
> > On Wed, Feb 10, 2010 at 10:53 AM, Josh Kamau 
> > wrote:
> >
> > > Hi Team;
> > >
> > > Just wondering, can i use Frames for application layout? The kind of
> > > application am talking about will run within a LAN and therefore
> > > bookmarkability  and Search engine friendliness are not major issues.
> > >
> > > regards.
> > >
> >
>


Re: Frames for layout

2010-02-10 Thread Cemal Bayramoglu
Josh,

Thanks for taking a look at WiQuery.
If you'd like to raise any issues/questions via [1] I expect you'd get
some decent and timely help pretty quickly as people are using this in
production systems.

Regards - Cemal
jWeekend
OO & Java Technologies, Wicket
Consulting, Development, Training
http://jWeekend.com

[1] http://code.google.com/p/wiquery/

On 10 February 2010 12:58, Josh Kamau  wrote:
> Ernesto;
>
> Thanks for you comments.
>
> I have been trying out the WiQuery layout solution though i had a fight with
> it in the morning. I really needed it bundled into a jar file. I will try
> the raw JQuery javascript during my next coffee break.
>
> Thanks for the great support in this forum
>
> Regards.
>
> On Wed, Feb 10, 2010 at 3:44 PM, Ernesto Reinaldo Barreiro <
> reier...@gmail.com> wrote:
>
>> Why not use the jquery based solution provided in another thread?
>>
>> Ernesto
>>
>>
>> On Wed, Feb 10, 2010 at 10:53 AM, Josh Kamau 
>> wrote:
>>
>> > Hi Team;
>> >
>> > Just wondering, can i use Frames for application layout? The kind of
>> > application am talking about will run within a LAN and therefore
>> > bookmarkability  and Search engine friendliness are not major issues.
>> >
>> > regards.
>> >
>>
>

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



Re: Panel.replaceWith() in a DataView

2010-02-10 Thread Cemal Bayramoglu
Ricardo,

On a more general note, in case you haven't come across it yet, you
want to take a look at BRIX-CMS [1].

Regards - Cemal
jWeekend
OO & Java Technologies, Wicket
Consulting, Development, Training
http://jWeekend.com

[1] http://code.google.com/p/brix-cms/

On 10 February 2010 07:55, riccardo trombini
 wrote:
> hi
>
> i am writting a software for an article management. a user can post and edit
> articles. to do that i show all the users articles in a /*DataView*/. This
> lists every item in a TableRow.
>
> ButtonPanel buttonPanel = new ButtonPanel("buttonPanel"); // extends Panel
> Of course the user needs to delete these, for that i provide a button.
> AjaxLink deleteButton = new AjaxLink("deleteButton"){
> ...
> }
> buttonPanel.add(deleteButton);
>
> But i want to confirm this action befor i delete the article. my idea is to
> Replace the panel which holds the deleteButton with a ConfirmButton in
> another Panel. And afterwards delete or show the original article row.
>
> I use the code i found on the wiki site :
> http://cwiki.apache.org/WICKET/getting-user-confirmation.html
> but my ajax update won't send me any html markup which would replace the
> panel.
>
> so my first question is, has anyone ever done this ? especially replacing a
> panel IN a DataView!
>
> thank you very much for your help !
>
>
>
>
>
>
>
>
>
> -
> 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 Layout

2010-02-10 Thread Lionel Armanet

Hi,


reiern70 wrote:
> 
> I successfully installed the demo application and studied it a bit... As a
> conclusion I can say I wouldn't mind adapting  "my contributions" to
> follow
> the standard you have defined for contributing plugins (IWiQueryPlugin).
> 
> Maybe it would be useful to split the code of this demo and take out the
> plugins into a separate project? wilayout? So that people could use it on
> their projects alongside wiquery jar?
> 
> Maybe create another google code project similar to Wicket-stuff? So, that
> core do not get polluted with such plugins and commit access is less
> strict.
> As said I wouldn't mind using the conventions you have defined.
> 

That would be a great idea to provide a complete plugin for layout
management. We are thinking at the best solution to provide this
wiQuery-stuff-project (while Google code is maybe not the best solution to
have a "dump-it-all" project, we're open to the best suggestions for that
^^).

We have opened a discussion on our list [1], feel free to give your input.

Thanks,

Lionel

[1] :
http://groups.google.com/group/wiquery/browse_thread/thread/8f7f8dfaa34e0774


-- 
View this message in context: 
http://old.nabble.com/Wicket-Layout-tp27495561p27531711.html
Sent from the Wicket - User 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 Layout

2010-02-10 Thread Ernesto Reinaldo Barreiro
Hi Lionel,

For the time being I think I'll put anything I do on a google code project
and keep you (core devs) informed of things I add.

Best,

Ernesto


On Wed, Feb 10, 2010 at 3:07 PM, Lionel Armanet wrote:

>
> Hi,
>
>
> reiern70 wrote:
> >
> > I successfully installed the demo application and studied it a bit... As
> a
> > conclusion I can say I wouldn't mind adapting  "my contributions" to
> > follow
> > the standard you have defined for contributing plugins (IWiQueryPlugin).
> >
> > Maybe it would be useful to split the code of this demo and take out the
> > plugins into a separate project? wilayout? So that people could use it on
> > their projects alongside wiquery jar?
> >
> > Maybe create another google code project similar to Wicket-stuff? So,
> that
> > core do not get polluted with such plugins and commit access is less
> > strict.
> > As said I wouldn't mind using the conventions you have defined.
> >
>
> That would be a great idea to provide a complete plugin for layout
> management. We are thinking at the best solution to provide this
> wiQuery-stuff-project (while Google code is maybe not the best solution to
> have a "dump-it-all" project, we're open to the best suggestions for that
> ^^).
>
> We have opened a discussion on our list [1], feel free to give your input.
>
> Thanks,
>
> Lionel
>
> [1] :
>
> http://groups.google.com/group/wiquery/browse_thread/thread/8f7f8dfaa34e0774
>
>
> --
> View this message in context:
> http://old.nabble.com/Wicket-Layout-tp27495561p27531711.html
> Sent from the Wicket - User 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
>
>


adding the wicket project for debugging etc

2010-02-10 Thread Jeroen Dijkmeijer

Hi,

I think this is more of a maven question, so its also posted at the  
maven user list.
 I'm trying to understand wicket a bit more, and I would like it to  
add it as source tree to my project, but for for some reason I cant  
make it happen.
I have myproject-web, myproject-domain and myproject-parent. The  
latter specifying the former 2 as modules. I'm running myproject-web  
in tomcat which is configured in eclipse wtp. Myproject-web holds a  
reference to wicket as a dependency and I can see the myproject-domain  
project.
Now I would like to add wicket with the proper release tag as a source  
tree to the project, so I can set debug breakpoints, add log stmts,  
take short cuts, break code fix it. All to get a better understanding  
what's happening under the hood. Wicket in itself has many subprojects  
which i don't need all in the source tree (but I guess it would not be  
a disaster if they were).
So I checked out the wicket source from svn to some directory (The  
wicket project  has a parent pom in the root, and all the other  
projects are its siblings) Imported that directory into eclipse, and  
added the sub-project wicket as a module to myproject-parent, but that  
does not work for me. Also eclipse does not recognize the added wicket  
source tree, when opening the declaration it goes straight to the  
Wicket-Object.class and shows the attached source code instead of the  
code from the newly added source tree. I tried a few other things but  
that didnot show the source at best (often I could not even get tomcat  
start up)

I'm pretty sure its al very simple but somehow i cant get it to work.

regards,
Jeroen.

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



Re: adding the wicket project for debugging etc

2010-02-10 Thread Ernesto Reinaldo Barreiro
Do you know [1]? It is very easy to develop using that approach.

Regards,

Ernesto

[1]-http://wicket.apache.org/quickstart.html



On Wed, Feb 10, 2010 at 5:05 PM, Jeroen Dijkmeijer wrote:

> Hi,
>
> I think this is more of a maven question, so its also posted at the maven
> user list.
>  I'm trying to understand wicket a bit more, and I would like it to add it
> as source tree to my project, but for for some reason I cant make it happen.
> I have myproject-web, myproject-domain and myproject-parent. The latter
> specifying the former 2 as modules. I'm running myproject-web in tomcat
> which is configured in eclipse wtp. Myproject-web holds a reference to
> wicket as a dependency and I can see the myproject-domain project.
> Now I would like to add wicket with the proper release tag as a source tree
> to the project, so I can set debug breakpoints, add log stmts, take short
> cuts, break code fix it. All to get a better understanding what's happening
> under the hood. Wicket in itself has many subprojects which i don't need all
> in the source tree (but I guess it would not be a disaster if they were).
> So I checked out the wicket source from svn to some directory (The wicket
> project  has a parent pom in the root, and all the other projects are its
> siblings) Imported that directory into eclipse, and added the sub-project
> wicket as a module to myproject-parent, but that does not work for me. Also
> eclipse does not recognize the added wicket source tree, when opening the
> declaration it goes straight to the Wicket-Object.class and shows the
> attached source code instead of the code from the newly added source tree. I
> tried a few other things but that didnot show the source at best (often I
> could not even get tomcat start up)
> I'm pretty sure its al very simple but somehow i cant get it to work.
>
> regards,
> Jeroen.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Example for Combobox wanted

2010-02-10 Thread PDiefent

I don't understand. How do I create a textfield and a dropdown in one markup
field. And how to synchronize the two contents?
I didn't find any example in the wicket examples ...

nino martinez wael wrote:
> 
> Yes it's possible, just make a panel with a drop down and textfield, and
> ajax enable both.. It should be simple.. Have you checked the wicket
> examples?
> 
> 2010/2/8 Peter Diefenthaeler 
> 
>>
>> Hi,
>> I'm looking for an example of a ComboBox which is a combination of a
>> textfield and DropDownChoice.
>> It should be possible to type in a new value and submit it, or to select
>> from the values in the DropDownChoice and submit it.
>> The AJAX autocomplete example seems to be good, but you have to type in
>> one
>> character to get a choice ...
>> Thanks, Peter
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Example-for-Combobox-wanted-tp27495901p27534457.html
Sent from the Wicket - User 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: Listening key pressings on server side

2010-02-10 Thread Riyad Kalla
Roland,

It might be the browser + event that you are listening for that is the
issue. Try onkeyup, here's a ref:
http://www.tutorialized.com/view/tutorial/Get-key-press-event-using-JavaScript/9689

or onkeydown:
http://www.dreamincode.net/code/snippet1246.htm

Otherwise I think you had the right idea at the beginning with where
to add the listener to, hopefully it's just the event that is the
issue.

-R

On Wed, Feb 10, 2010 at 12:11 AM, Roland  wrote:
> Hello,
>
> I'd like to know whether there is a way to listen certain key pressings (key
> a,>,1,...) on server side in wicket.
>
> I've tried
> .html:
> 
> .java
> body = new WebMarkupContainer("body");
> body.add(new AjaxEventBehavior("onkeypress"){
>
>               protected void onEvent(final AjaxRequestTarget target) {
>                       LOG.debug("keypress");
>               }
>       });
> Problem here is that event is generated only for "onclick" event, in case of
> "onkeypress", nothing happens.
> And even if I would be able to catch the "onkeypress" event, I'd still have
> to figure out, which key was pressed.
>
> And also I've tried wicket-contrib-input-events
>
> add(new InputBehavior(new KeyType[] { KeyType.Left },
>                EventType.click));
>
>        add(new AjaxEventBehavior("onclick"){
>
>           �...@override
>            protected void onEvent(AjaxRequestTarget target) {
>                LOG.debug("Clicked left");
>
>            }
>
>        });
>
>
> But problem there is that EventType.onkeypress is not supported.
>
> Examples I made on main page, but eventually I would need to listen key
> pressings on modalwindow's panel, which is placed on a page.
>
> Thanks in advance,
> Roland
>

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



Re: adding the wicket project for debugging etc

2010-02-10 Thread Jeroen Dijkmeijer

Yeah seen it done it been there.
But that doesn't give me the wicket source, which I can debug, or  
modify.


On Feb 10, 2010, at 5:13 PM, Ernesto Reinaldo Barreiro wrote:


Do you know [1]? It is very easy to develop using that approach.

Regards,

Ernesto

[1]-http://wicket.apache.org/quickstart.html



On Wed, Feb 10, 2010 at 5:05 PM, Jeroen Dijkmeijer >wrote:



Hi,

I think this is more of a maven question, so its also posted at the  
maven

user list.
I'm trying to understand wicket a bit more, and I would like it to  
add it
as source tree to my project, but for for some reason I cant make  
it happen.
I have myproject-web, myproject-domain and myproject-parent. The  
latter
specifying the former 2 as modules. I'm running myproject-web in  
tomcat
which is configured in eclipse wtp. Myproject-web holds a reference  
to

wicket as a dependency and I can see the myproject-domain project.
Now I would like to add wicket with the proper release tag as a  
source tree
to the project, so I can set debug breakpoints, add log stmts, take  
short
cuts, break code fix it. All to get a better understanding what's  
happening
under the hood. Wicket in itself has many subprojects which i don't  
need all
in the source tree (but I guess it would not be a disaster if they  
were).
So I checked out the wicket source from svn to some directory (The  
wicket
project  has a parent pom in the root, and all the other projects  
are its
siblings) Imported that directory into eclipse, and added the sub- 
project
wicket as a module to myproject-parent, but that does not work for  
me. Also
eclipse does not recognize the added wicket source tree, when  
opening the

declaration it goes straight to the Wicket-Object.class and shows the
attached source code instead of the code from the newly added  
source tree. I
tried a few other things but that didnot show the source at best  
(often I

could not even get tomcat start up)
I'm pretty sure its al very simple but somehow i cant get it to work.

regards,
Jeroen.

-
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: Example for Combobox wanted

2010-02-10 Thread Riyad Kalla
Nino,

I think what PDiefent wants is literally to re-create the Swing
combobox component, so something like:

[TEXT_FIELD][BUTTON]

and when you click [BUTTON] it causes a DIV to appear with a list of
choices, but the user can also type their own in.

PD, the only way I can think to do this is just to distill the issue
down to it's simplest components in Wicket and give it a go.




where I imagine dropdownButton would be an AjaxButton of some kind
that would set the visibility of the popupListBox when clicked.
popupListBox would be a ListView of some kind.

This is all just guess-work from my part, I haven't tried to build a
component like this before. Sorry.

On Wed, Feb 10, 2010 at 10:25 AM, PDiefent  wrote:
>
> I don't understand. How do I create a textfield and a dropdown in one markup
> field. And how to synchronize the two contents?
> I didn't find any example in the wicket examples ...
>
> nino martinez wael wrote:
>>
>> Yes it's possible, just make a panel with a drop down and textfield, and
>> ajax enable both.. It should be simple.. Have you checked the wicket
>> examples?
>>
>> 2010/2/8 Peter Diefenthaeler 
>>
>>>
>>> Hi,
>>> I'm looking for an example of a ComboBox which is a combination of a
>>> textfield and DropDownChoice.
>>> It should be possible to type in a new value and submit it, or to select
>>> from the values in the DropDownChoice and submit it.
>>> The AJAX autocomplete example seems to be good, but you have to type in
>>> one
>>> character to get a choice ...
>>> Thanks, Peter
>>>
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>
>>>
>>
>>
>
> --
> View this message in context: 
> http://old.nabble.com/Example-for-Combobox-wanted-tp27495901p27534457.html
> Sent from the Wicket - User 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: adding the wicket project for debugging etc

2010-02-10 Thread Cemal Bayramoglu
Jeroen ,

mvn eclipse:eclipse -DdownloadSources=true

See http://wicket.apache.org/quickstart.html for full instructions.


Regards - Cemal
jWeekend
OO & Java Technologies, Wicket
Consulting, Development, Training
http://jWeekend.com




On 10 February 2010 17:44, Jeroen Dijkmeijer  wrote:
> Yeah seen it done it been there.
> But that doesn't give me the wicket source, which I can debug, or modify.
>
> On Feb 10, 2010, at 5:13 PM, Ernesto Reinaldo Barreiro wrote:
>
>> Do you know [1]? It is very easy to develop using that approach.
>>
>> Regards,
>>
>> Ernesto
>>
>> [1]-http://wicket.apache.org/quickstart.html
>>
>>
>>
>> On Wed, Feb 10, 2010 at 5:05 PM, Jeroen Dijkmeijer
>> wrote:
>>
>>> Hi,
>>>
>>> I think this is more of a maven question, so its also posted at the maven
>>> user list.
>>> I'm trying to understand wicket a bit more, and I would like it to add it
>>> as source tree to my project, but for for some reason I cant make it
>>> happen.
>>> I have myproject-web, myproject-domain and myproject-parent. The latter
>>> specifying the former 2 as modules. I'm running myproject-web in tomcat
>>> which is configured in eclipse wtp. Myproject-web holds a reference to
>>> wicket as a dependency and I can see the myproject-domain project.
>>> Now I would like to add wicket with the proper release tag as a source
>>> tree
>>> to the project, so I can set debug breakpoints, add log stmts, take short
>>> cuts, break code fix it. All to get a better understanding what's
>>> happening
>>> under the hood. Wicket in itself has many subprojects which i don't need
>>> all
>>> in the source tree (but I guess it would not be a disaster if they were).
>>> So I checked out the wicket source from svn to some directory (The wicket
>>> project  has a parent pom in the root, and all the other projects are its
>>> siblings) Imported that directory into eclipse, and added the sub-project
>>> wicket as a module to myproject-parent, but that does not work for me.
>>> Also
>>> eclipse does not recognize the added wicket source tree, when opening the
>>> declaration it goes straight to the Wicket-Object.class and shows the
>>> attached source code instead of the code from the newly added source
>>> tree. I
>>> tried a few other things but that didnot show the source at best (often I
>>> could not even get tomcat start up)
>>> I'm pretty sure its al very simple but somehow i cant get it to work.
>>>
>>> regards,
>>> Jeroen.
>>>
>>> -
>>> 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: adding the wicket project for debugging etc

2010-02-10 Thread Cemal Bayramoglu
... or checkout from SVN [1] if you want to modify Wicket sources
beyond what the debugger allows.

Regards - Cemal
jWeekend
OO & Java Technologies, Wicket
Consulting, Development, Training
http://jWeekend.com

[1] http://wicket.apache.org/building-from-svn.html

On 10 February 2010 17:53, Cemal Bayramoglu  wrote:
> Jeroen ,
>
> mvn eclipse:eclipse -DdownloadSources=true
>
> See http://wicket.apache.org/quickstart.html for full instructions.
>
>
> Regards - Cemal
> jWeekend
> OO & Java Technologies, Wicket
> Consulting, Development, Training
> http://jWeekend.com
>
>
>
>
> On 10 February 2010 17:44, Jeroen Dijkmeijer  wrote:
>> Yeah seen it done it been there.
>> But that doesn't give me the wicket source, which I can debug, or modify.
>>
>> On Feb 10, 2010, at 5:13 PM, Ernesto Reinaldo Barreiro wrote:
>>
>>> Do you know [1]? It is very easy to develop using that approach.
>>>
>>> Regards,
>>>
>>> Ernesto
>>>
>>> [1]-http://wicket.apache.org/quickstart.html
>>>
>>>
>>>
>>> On Wed, Feb 10, 2010 at 5:05 PM, Jeroen Dijkmeijer
>>> wrote:
>>>
 Hi,

 I think this is more of a maven question, so its also posted at the maven
 user list.
 I'm trying to understand wicket a bit more, and I would like it to add it
 as source tree to my project, but for for some reason I cant make it
 happen.
 I have myproject-web, myproject-domain and myproject-parent. The latter
 specifying the former 2 as modules. I'm running myproject-web in tomcat
 which is configured in eclipse wtp. Myproject-web holds a reference to
 wicket as a dependency and I can see the myproject-domain project.
 Now I would like to add wicket with the proper release tag as a source
 tree
 to the project, so I can set debug breakpoints, add log stmts, take short
 cuts, break code fix it. All to get a better understanding what's
 happening
 under the hood. Wicket in itself has many subprojects which i don't need
 all
 in the source tree (but I guess it would not be a disaster if they were).
 So I checked out the wicket source from svn to some directory (The wicket
 project  has a parent pom in the root, and all the other projects are its
 siblings) Imported that directory into eclipse, and added the sub-project
 wicket as a module to myproject-parent, but that does not work for me.
 Also
 eclipse does not recognize the added wicket source tree, when opening the
 declaration it goes straight to the Wicket-Object.class and shows the
 attached source code instead of the code from the newly added source
 tree. I
 tried a few other things but that didnot show the source at best (often I
 could not even get tomcat start up)
 I'm pretty sure its al very simple but somehow i cant get it to work.

 regards,
 Jeroen.

 -
 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 Multi-Threading with access to the session

2010-02-10 Thread Igor Vaynberg
pass the application, locale/style/variation into your thread and use
application.getlocalizer() to do the localization.

-igor

On Wed, Feb 10, 2010 at 3:08 AM, Matthias Keller
 wrote:
> Hi
>
> We have a complex application which needs to calculate some very expensive
> things. Those could easily be parallelized so we thought about having a
> thread pool to do that.
> Unfortunately, that code needs access to the localizer and the application
> (for some configuration values) so we're setting the Session and the
> Application explicitly in that thread using  Application.set() and
>  Session.set().
> But this always leads to a strange error - I suspect it has something to do
> with the 'duplicated' session or application?
>
> Any hints about how to do this correctly? Do we need to do something special
> with the session or application at the end of the thread?
>
> Thanks!
>
> Matt
>
>
> Here's the stacktrace:
>
> WicketMessage: Method onFormSubmitted of interface
> org.apache.wicket.markup.html.form.IFormSubmitListener targeted at component
> [MarkupContainer [Component id = SignupForm]] threw an exception
>
> Root cause:
>
> ExceptionConverter: java.io.IOException: No message found for
> the.document.has.no.pages
>
> Complete stack:
>
> org.apache.wicket.WicketRuntimeException: Method onFormSubmitted of
> interface org.apache.wicket.markup.html.form.IFormSubmitListener targeted at
> component [MarkupContainer [Component id = SignupForm]] threw an exception
> at
> org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:194)
> at
> org.apache.wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents(ListenerInterfaceRequestTarget.java:73)
> at
> org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:91)
> at
> org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1175)
> at org.apache.wicket.RequestCycle.step(RequestCycle.java:1252)
> at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1353)
> at org.apache.wicket.RequestCycle.request(RequestCycle.java:493)
> at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:355)
>
> java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at
> org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:183)
> at
> org.apache.wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents(ListenerInterfaceRequestTarget.java:73)
> at
> org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:91)
> at
> org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1175)
> at org.apache.wicket.RequestCycle.step(RequestCycle.java:1252)
> at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1353)
> at org.apache.wicket.RequestCycle.request(RequestCycle.java:493)
> at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:355)
>
>
>
>

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



Re: adding the wicket project for debugging etc

2010-02-10 Thread Igor Vaynberg
you can check out wicket from svn, mvn eclipse:eclipse and import the
projects into your workspace. then use something like
mvnlink.googlecode.com to make your projects use the imported wicket
projects as dependencies instead of jars.

-igor

On Wed, Feb 10, 2010 at 9:44 AM, Jeroen Dijkmeijer
 wrote:
> Yeah seen it done it been there.
> But that doesn't give me the wicket source, which I can debug, or modify.
>
> On Feb 10, 2010, at 5:13 PM, Ernesto Reinaldo Barreiro wrote:
>
>> Do you know [1]? It is very easy to develop using that approach.
>>
>> Regards,
>>
>> Ernesto
>>
>> [1]-http://wicket.apache.org/quickstart.html
>>
>>
>>
>> On Wed, Feb 10, 2010 at 5:05 PM, Jeroen Dijkmeijer
>> wrote:
>>
>>> Hi,
>>>
>>> I think this is more of a maven question, so its also posted at the maven
>>> user list.
>>> I'm trying to understand wicket a bit more, and I would like it to add it
>>> as source tree to my project, but for for some reason I cant make it
>>> happen.
>>> I have myproject-web, myproject-domain and myproject-parent. The latter
>>> specifying the former 2 as modules. I'm running myproject-web in tomcat
>>> which is configured in eclipse wtp. Myproject-web holds a reference to
>>> wicket as a dependency and I can see the myproject-domain project.
>>> Now I would like to add wicket with the proper release tag as a source
>>> tree
>>> to the project, so I can set debug breakpoints, add log stmts, take short
>>> cuts, break code fix it. All to get a better understanding what's
>>> happening
>>> under the hood. Wicket in itself has many subprojects which i don't need
>>> all
>>> in the source tree (but I guess it would not be a disaster if they were).
>>> So I checked out the wicket source from svn to some directory (The wicket
>>> project  has a parent pom in the root, and all the other projects are its
>>> siblings) Imported that directory into eclipse, and added the sub-project
>>> wicket as a module to myproject-parent, but that does not work for me.
>>> Also
>>> eclipse does not recognize the added wicket source tree, when opening the
>>> declaration it goes straight to the Wicket-Object.class and shows the
>>> attached source code instead of the code from the newly added source
>>> tree. I
>>> tried a few other things but that didnot show the source at best (often I
>>> could not even get tomcat start up)
>>> I'm pretty sure its al very simple but somehow i cant get it to work.
>>>
>>> regards,
>>> Jeroen.
>>>
>>> -
>>> 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 Tabbed Panel "without Markup"

2010-02-10 Thread Martin Makundi
Please ignore the "" tags here.. ofcourse you'd use css to
position your elements, but I wasn't very imaginative when writing
this example. The proposed approach definitely doesn't imply that you
should hardcode your html like that. Bad bad me for making such bad
taste example ;)

**
Martin

2010/2/9 Martin Makundi :
> Hi!
>
> Got a bit carried away with this new thang ;)
> http://old.nabble.com/Wicket-without-markup-td27506286.html
>
> It's finally fun adding components onto a page/panel!
>
> I had a go at creating a Tabbed panel with it and it's pretty neat:
>
> HomePage.html:
> 
> 
> Wicket Quickstart Archetype Homepage
> 
> 
> Wicket Quickstart Archetype Homepage
> 
> 
> 
> 
> 
>
>
> public class HomePage extends WebPage implements ITabbedPanelTarget {
>        /** */
>        private static final long serialVersionUID = 1L;
>        private final MarkupNoLongerRequiredContainer rootContainer;
>        private final MarkupNoLongerRequiredContainer row0;
>        private final MarkupNoLongerRequiredContainer row1;
>        private final MarkupNoLongerRequiredContainer row2;
>        private final MarkupNoLongerRequiredContainer row3;
>        private final Form form;
>        private final TabbedPanelTab firstTab;
>        private final MarkupNoLongerRequiredContainer tabContainer;
>        private Panel selectedTab;
>
>        /**
>         *
>         */
>        public HomePage() {
>                add(form = new Form("form"));
>                form.add(rootContainer = new
> MarkupNoLongerRequiredContainer("root-content-id"));
>                {
>                        rootContainer.add(row0 = new 
> MarkupNoLongerRequiredContainer());
>                        row0.add(firstTab = new TabbedPanelTab(this, 
> Model.of("First"),
> FirstPanel.class));
>                        row0.add(new TabbedPanelTab(this, Model.of("Second"), 
> SecondPanel.class));
>                        row0.add(new TabbedPanelTab(this, Model.of("Third"), 
> ThirdPanel.class));
>                }
>                {
>                        rootContainer.add(row1 = new 
> MarkupNoLongerRequiredContainer());
>                        row1.add(new Label(GID, "Hello world"));
>                        row1.add(0, new Label(GID, 
> "").setEscapeModelStrings(false));
> // Change row before
>                        row1.add(0, new Label(GID, 
> "").setEscapeModelStrings(false));
> // Change row twice before
>                        row1.add(new Label(GID, 
> "").setEscapeModelStrings(false)); //
> Change row once after
>                }
>                {
>                        rootContainer.add(row2 = new 
> MarkupNoLongerRequiredContainer());
>                        row2.add(new Label(GID, "Type your name here:"));
>                        row2.add(new InputField(new TextField(GID, 
> Model.of("...";
>                }
>                {
>                        rootContainer.add(row3 = new 
> MarkupNoLongerRequiredContainer());
>                        row3.add(new Label(GID, 
> "").setEscapeModelStrings(false)); //
> Change row before
>                        row3.add(new InputField(new Button(GID, 
> Model.of("Clickme")) {
>                               �...@override
>                                protected void onComponentTag(ComponentTag 
> tag) {
>                                        tag.put("type", "button");
>                                        super.onComponentTag(tag);
>                                }
>                        }));
>                        row3.add(new Label(GID, 
> "").setEscapeModelStrings(false)); //
> Change row before
>                        row3.add(tabContainer = new 
> MarkupNoLongerRequiredContainer());
>                }
>
>                firstTab.select();
>        }
>
>        public Component getSelectedTab() {
>                return selectedTab;
>        }
>
>        public void setSelectedTabAndPanel(Panel selectedTab, Panel 
> newInstance) {
>                this.selectedTab = selectedTab;
>                tabContainer.set(0, newInstance);
>        }
> }
>
>
>
> public class TabbedPanelTab extends Panel {
>        /** */
>        private static final long serialVersionUID = -6602527646776083146L;
>        private final Link link;
>        private final ITabbedPanelTarget tabbedPanelTarget;
>        private final Class panelClass;
>
>        /**
>         * @param tabbedPanelTarget
>         * @param title
>         */
>        public TabbedPanelTab(final ITabbedPanelTarget tabbedPanelTarget,
> Model title, final Class panelClass) {
>                super(GID);
>                this.tabbedPanelTarget = tabbedPanelTarget;
>                this.panelClass = panelClass;
>                add(link = new Link("tab-link") {
>                       �...@override
>                        public void onClick() {
>                                select();
>                        }
>
>                       �...@override
>                        public boolean isEnabled() {
>         

Re: adding the wicket project for debugging etc

2010-02-10 Thread Martijn Dashorst
mvn eclipse:eclipse already does that for you (2.7)

Martijn

On Wed, Feb 10, 2010 at 7:20 PM, Igor Vaynberg  wrote:
> you can check out wicket from svn, mvn eclipse:eclipse and import the
> projects into your workspace. then use something like
> mvnlink.googlecode.com to make your projects use the imported wicket
> projects as dependencies instead of jars.
>
> -igor
>
> On Wed, Feb 10, 2010 at 9:44 AM, Jeroen Dijkmeijer
>  wrote:
>> Yeah seen it done it been there.
>> But that doesn't give me the wicket source, which I can debug, or modify.
>>
>> On Feb 10, 2010, at 5:13 PM, Ernesto Reinaldo Barreiro wrote:
>>
>>> Do you know [1]? It is very easy to develop using that approach.
>>>
>>> Regards,
>>>
>>> Ernesto
>>>
>>> [1]-http://wicket.apache.org/quickstart.html
>>>
>>>
>>>
>>> On Wed, Feb 10, 2010 at 5:05 PM, Jeroen Dijkmeijer
>>> wrote:
>>>
 Hi,

 I think this is more of a maven question, so its also posted at the maven
 user list.
 I'm trying to understand wicket a bit more, and I would like it to add it
 as source tree to my project, but for for some reason I cant make it
 happen.
 I have myproject-web, myproject-domain and myproject-parent. The latter
 specifying the former 2 as modules. I'm running myproject-web in tomcat
 which is configured in eclipse wtp. Myproject-web holds a reference to
 wicket as a dependency and I can see the myproject-domain project.
 Now I would like to add wicket with the proper release tag as a source
 tree
 to the project, so I can set debug breakpoints, add log stmts, take short
 cuts, break code fix it. All to get a better understanding what's
 happening
 under the hood. Wicket in itself has many subprojects which i don't need
 all
 in the source tree (but I guess it would not be a disaster if they were).
 So I checked out the wicket source from svn to some directory (The wicket
 project  has a parent pom in the root, and all the other projects are its
 siblings) Imported that directory into eclipse, and added the sub-project
 wicket as a module to myproject-parent, but that does not work for me.
 Also
 eclipse does not recognize the added wicket source tree, when opening the
 declaration it goes straight to the Wicket-Object.class and shows the
 attached source code instead of the code from the newly added source
 tree. I
 tried a few other things but that didnot show the source at best (often I
 could not even get tomcat start up)
 I'm pretty sure its al very simple but somehow i cant get it to work.

 regards,
 Jeroen.

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



-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.4 increases type safety for web applications
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.4

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



Re: adding the wicket project for debugging etc

2010-02-10 Thread Igor Vaynberg
mvn eclipse:eclipse only work across the modules of the same project,
but not across projects

-igor

On Wed, Feb 10, 2010 at 11:10 AM, Martijn Dashorst
 wrote:
> mvn eclipse:eclipse already does that for you (2.7)
>
> Martijn
>
> On Wed, Feb 10, 2010 at 7:20 PM, Igor Vaynberg  
> wrote:
>> you can check out wicket from svn, mvn eclipse:eclipse and import the
>> projects into your workspace. then use something like
>> mvnlink.googlecode.com to make your projects use the imported wicket
>> projects as dependencies instead of jars.
>>
>> -igor
>>
>> On Wed, Feb 10, 2010 at 9:44 AM, Jeroen Dijkmeijer
>>  wrote:
>>> Yeah seen it done it been there.
>>> But that doesn't give me the wicket source, which I can debug, or modify.
>>>
>>> On Feb 10, 2010, at 5:13 PM, Ernesto Reinaldo Barreiro wrote:
>>>
 Do you know [1]? It is very easy to develop using that approach.

 Regards,

 Ernesto

 [1]-http://wicket.apache.org/quickstart.html



 On Wed, Feb 10, 2010 at 5:05 PM, Jeroen Dijkmeijer
 wrote:

> Hi,
>
> I think this is more of a maven question, so its also posted at the maven
> user list.
> I'm trying to understand wicket a bit more, and I would like it to add it
> as source tree to my project, but for for some reason I cant make it
> happen.
> I have myproject-web, myproject-domain and myproject-parent. The latter
> specifying the former 2 as modules. I'm running myproject-web in tomcat
> which is configured in eclipse wtp. Myproject-web holds a reference to
> wicket as a dependency and I can see the myproject-domain project.
> Now I would like to add wicket with the proper release tag as a source
> tree
> to the project, so I can set debug breakpoints, add log stmts, take short
> cuts, break code fix it. All to get a better understanding what's
> happening
> under the hood. Wicket in itself has many subprojects which i don't need
> all
> in the source tree (but I guess it would not be a disaster if they were).
> So I checked out the wicket source from svn to some directory (The wicket
> project  has a parent pom in the root, and all the other projects are its
> siblings) Imported that directory into eclipse, and added the sub-project
> wicket as a module to myproject-parent, but that does not work for me.
> Also
> eclipse does not recognize the added wicket source tree, when opening the
> declaration it goes straight to the Wicket-Object.class and shows the
> attached source code instead of the code from the newly added source
> tree. I
> tried a few other things but that didnot show the source at best (often I
> could not even get tomcat start up)
> I'm pretty sure its al very simple but somehow i cant get it to work.
>
> regards,
> Jeroen.
>
> -
> 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
>>
>>
>
>
>
> --
> Become a Wicket expert, learn from the best: http://wicketinaction.com
> Apache Wicket 1.4 increases type safety for web applications
> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.4
>
> -
> 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: adding the wicket project for debugging etc

2010-02-10 Thread Jeremy Thomerson
Igor - how many cool OS projects are you allowed to crank out?  I wish I
knew about this one a couple weeks ago when I was trying to setup a dev
environment for a secular project + brix + wicket and link them all together
in Eclipse so that a change in any of them appeared in the others.

Cool!

--
Jeremy Thomerson
http://www.wickettraining.com



On Wed, Feb 10, 2010 at 12:20 PM, Igor Vaynberg wrote:

> you can check out wicket from svn, mvn eclipse:eclipse and import the
> projects into your workspace. then use something like
> mvnlink.googlecode.com to make your projects use the imported wicket
> projects as dependencies instead of jars.
>
> -igor
>
> On Wed, Feb 10, 2010 at 9:44 AM, Jeroen Dijkmeijer
>  wrote:
> > Yeah seen it done it been there.
> > But that doesn't give me the wicket source, which I can debug, or modify.
> >
> > On Feb 10, 2010, at 5:13 PM, Ernesto Reinaldo Barreiro wrote:
> >
> >> Do you know [1]? It is very easy to develop using that approach.
> >>
> >> Regards,
> >>
> >> Ernesto
> >>
> >> [1]-http://wicket.apache.org/quickstart.html
> >>
> >>
> >>
> >> On Wed, Feb 10, 2010 at 5:05 PM, Jeroen Dijkmeijer
> >> wrote:
> >>
> >>> Hi,
> >>>
> >>> I think this is more of a maven question, so its also posted at the
> maven
> >>> user list.
> >>> I'm trying to understand wicket a bit more, and I would like it to add
> it
> >>> as source tree to my project, but for for some reason I cant make it
> >>> happen.
> >>> I have myproject-web, myproject-domain and myproject-parent. The latter
> >>> specifying the former 2 as modules. I'm running myproject-web in tomcat
> >>> which is configured in eclipse wtp. Myproject-web holds a reference to
> >>> wicket as a dependency and I can see the myproject-domain project.
> >>> Now I would like to add wicket with the proper release tag as a source
> >>> tree
> >>> to the project, so I can set debug breakpoints, add log stmts, take
> short
> >>> cuts, break code fix it. All to get a better understanding what's
> >>> happening
> >>> under the hood. Wicket in itself has many subprojects which i don't
> need
> >>> all
> >>> in the source tree (but I guess it would not be a disaster if they
> were).
> >>> So I checked out the wicket source from svn to some directory (The
> wicket
> >>> project  has a parent pom in the root, and all the other projects are
> its
> >>> siblings) Imported that directory into eclipse, and added the
> sub-project
> >>> wicket as a module to myproject-parent, but that does not work for me.
> >>> Also
> >>> eclipse does not recognize the added wicket source tree, when opening
> the
> >>> declaration it goes straight to the Wicket-Object.class and shows the
> >>> attached source code instead of the code from the newly added source
> >>> tree. I
> >>> tried a few other things but that didnot show the source at best (often
> I
> >>> could not even get tomcat start up)
> >>> I'm pretty sure its al very simple but somehow i cant get it to work.
> >>>
> >>> regards,
> >>> Jeroen.
> >>>
> >>> -
> >>> 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: adding the wicket project for debugging etc

2010-02-10 Thread Igor Vaynberg
youre welcome ;)

-igor

On Wed, Feb 10, 2010 at 11:27 AM, Jeremy Thomerson
 wrote:
> Igor - how many cool OS projects are you allowed to crank out?  I wish I
> knew about this one a couple weeks ago when I was trying to setup a dev
> environment for a secular project + brix + wicket and link them all together
> in Eclipse so that a change in any of them appeared in the others.
>
> Cool!
>
> --
> Jeremy Thomerson
> http://www.wickettraining.com
>
>
>
> On Wed, Feb 10, 2010 at 12:20 PM, Igor Vaynberg 
> wrote:
>
>> you can check out wicket from svn, mvn eclipse:eclipse and import the
>> projects into your workspace. then use something like
>> mvnlink.googlecode.com to make your projects use the imported wicket
>> projects as dependencies instead of jars.
>>
>> -igor
>>
>> On Wed, Feb 10, 2010 at 9:44 AM, Jeroen Dijkmeijer
>>  wrote:
>> > Yeah seen it done it been there.
>> > But that doesn't give me the wicket source, which I can debug, or modify.
>> >
>> > On Feb 10, 2010, at 5:13 PM, Ernesto Reinaldo Barreiro wrote:
>> >
>> >> Do you know [1]? It is very easy to develop using that approach.
>> >>
>> >> Regards,
>> >>
>> >> Ernesto
>> >>
>> >> [1]-http://wicket.apache.org/quickstart.html
>> >>
>> >>
>> >>
>> >> On Wed, Feb 10, 2010 at 5:05 PM, Jeroen Dijkmeijer
>> >> wrote:
>> >>
>> >>> Hi,
>> >>>
>> >>> I think this is more of a maven question, so its also posted at the
>> maven
>> >>> user list.
>> >>> I'm trying to understand wicket a bit more, and I would like it to add
>> it
>> >>> as source tree to my project, but for for some reason I cant make it
>> >>> happen.
>> >>> I have myproject-web, myproject-domain and myproject-parent. The latter
>> >>> specifying the former 2 as modules. I'm running myproject-web in tomcat
>> >>> which is configured in eclipse wtp. Myproject-web holds a reference to
>> >>> wicket as a dependency and I can see the myproject-domain project.
>> >>> Now I would like to add wicket with the proper release tag as a source
>> >>> tree
>> >>> to the project, so I can set debug breakpoints, add log stmts, take
>> short
>> >>> cuts, break code fix it. All to get a better understanding what's
>> >>> happening
>> >>> under the hood. Wicket in itself has many subprojects which i don't
>> need
>> >>> all
>> >>> in the source tree (but I guess it would not be a disaster if they
>> were).
>> >>> So I checked out the wicket source from svn to some directory (The
>> wicket
>> >>> project  has a parent pom in the root, and all the other projects are
>> its
>> >>> siblings) Imported that directory into eclipse, and added the
>> sub-project
>> >>> wicket as a module to myproject-parent, but that does not work for me.
>> >>> Also
>> >>> eclipse does not recognize the added wicket source tree, when opening
>> the
>> >>> declaration it goes straight to the Wicket-Object.class and shows the
>> >>> attached source code instead of the code from the newly added source
>> >>> tree. I
>> >>> tried a few other things but that didnot show the source at best (often
>> I
>> >>> could not even get tomcat start up)
>> >>> I'm pretty sure its al very simple but somehow i cant get it to work.
>> >>>
>> >>> regards,
>> >>> Jeroen.
>> >>>
>> >>> -
>> >>> 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: adding the wicket project for debugging etc

2010-02-10 Thread Martijn Dashorst
Nope. If it finds the source for a dependency in your workspace then
the project is added instead. It even discovers wrong versions and
logs them :)

Martijn

On Wed, Feb 10, 2010 at 8:13 PM, Igor Vaynberg  wrote:
> mvn eclipse:eclipse only work across the modules of the same project,
> but not across projects
>
> -igor
>
> On Wed, Feb 10, 2010 at 11:10 AM, Martijn Dashorst
>  wrote:
>> mvn eclipse:eclipse already does that for you (2.7)
>>
>> Martijn
>>
>> On Wed, Feb 10, 2010 at 7:20 PM, Igor Vaynberg  
>> wrote:
>>> you can check out wicket from svn, mvn eclipse:eclipse and import the
>>> projects into your workspace. then use something like
>>> mvnlink.googlecode.com to make your projects use the imported wicket
>>> projects as dependencies instead of jars.
>>>
>>> -igor
>>>
>>> On Wed, Feb 10, 2010 at 9:44 AM, Jeroen Dijkmeijer
>>>  wrote:
 Yeah seen it done it been there.
 But that doesn't give me the wicket source, which I can debug, or modify.

 On Feb 10, 2010, at 5:13 PM, Ernesto Reinaldo Barreiro wrote:

> Do you know [1]? It is very easy to develop using that approach.
>
> Regards,
>
> Ernesto
>
> [1]-http://wicket.apache.org/quickstart.html
>
>
>
> On Wed, Feb 10, 2010 at 5:05 PM, Jeroen Dijkmeijer
> wrote:
>
>> Hi,
>>
>> I think this is more of a maven question, so its also posted at the maven
>> user list.
>> I'm trying to understand wicket a bit more, and I would like it to add it
>> as source tree to my project, but for for some reason I cant make it
>> happen.
>> I have myproject-web, myproject-domain and myproject-parent. The latter
>> specifying the former 2 as modules. I'm running myproject-web in tomcat
>> which is configured in eclipse wtp. Myproject-web holds a reference to
>> wicket as a dependency and I can see the myproject-domain project.
>> Now I would like to add wicket with the proper release tag as a source
>> tree
>> to the project, so I can set debug breakpoints, add log stmts, take short
>> cuts, break code fix it. All to get a better understanding what's
>> happening
>> under the hood. Wicket in itself has many subprojects which i don't need
>> all
>> in the source tree (but I guess it would not be a disaster if they were).
>> So I checked out the wicket source from svn to some directory (The wicket
>> project  has a parent pom in the root, and all the other projects are its
>> siblings) Imported that directory into eclipse, and added the sub-project
>> wicket as a module to myproject-parent, but that does not work for me.
>> Also
>> eclipse does not recognize the added wicket source tree, when opening the
>> declaration it goes straight to the Wicket-Object.class and shows the
>> attached source code instead of the code from the newly added source
>> tree. I
>> tried a few other things but that didnot show the source at best (often I
>> could not even get tomcat start up)
>> I'm pretty sure its al very simple but somehow i cant get it to work.
>>
>> regards,
>> Jeroen.
>>
>> -
>> 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
>>>
>>>
>>
>>
>>
>> --
>> Become a Wicket expert, learn from the best: http://wicketinaction.com
>> Apache Wicket 1.4 increases type safety for web applications
>> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.4
>>
>> -
>> 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
>
>



-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.4 increases type safety for web applications
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.4

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



Re: adding the wicket project for debugging etc

2010-02-10 Thread Jeremy Thomerson
Didn't work for me - I had a workspace that had a secular project in it,
Wicket 1.4.x and Brix trunk (1.0.1-snapshot), and it didn't auto-discover
anything outside of each individual project.

--
Jeremy Thomerson
http://www.wickettraining.com



On Wed, Feb 10, 2010 at 2:01 PM, Martijn Dashorst <
martijn.dasho...@gmail.com> wrote:

> Nope. If it finds the source for a dependency in your workspace then
> the project is added instead. It even discovers wrong versions and
> logs them :)
>
> Martijn
>
> On Wed, Feb 10, 2010 at 8:13 PM, Igor Vaynberg 
> wrote:
> > mvn eclipse:eclipse only work across the modules of the same project,
> > but not across projects
> >
> > -igor
> >
> > On Wed, Feb 10, 2010 at 11:10 AM, Martijn Dashorst
> >  wrote:
> >> mvn eclipse:eclipse already does that for you (2.7)
> >>
> >> Martijn
> >>
> >> On Wed, Feb 10, 2010 at 7:20 PM, Igor Vaynberg 
> wrote:
> >>> you can check out wicket from svn, mvn eclipse:eclipse and import the
> >>> projects into your workspace. then use something like
> >>> mvnlink.googlecode.com to make your projects use the imported wicket
> >>> projects as dependencies instead of jars.
> >>>
> >>> -igor
> >>>
> >>> On Wed, Feb 10, 2010 at 9:44 AM, Jeroen Dijkmeijer
> >>>  wrote:
>  Yeah seen it done it been there.
>  But that doesn't give me the wicket source, which I can debug, or
> modify.
> 
>  On Feb 10, 2010, at 5:13 PM, Ernesto Reinaldo Barreiro wrote:
> 
> > Do you know [1]? It is very easy to develop using that approach.
> >
> > Regards,
> >
> > Ernesto
> >
> > [1]-http://wicket.apache.org/quickstart.html
> >
> >
> >
> > On Wed, Feb 10, 2010 at 5:05 PM, Jeroen Dijkmeijer
> > wrote:
> >
> >> Hi,
> >>
> >> I think this is more of a maven question, so its also posted at the
> maven
> >> user list.
> >> I'm trying to understand wicket a bit more, and I would like it to
> add it
> >> as source tree to my project, but for for some reason I cant make it
> >> happen.
> >> I have myproject-web, myproject-domain and myproject-parent. The
> latter
> >> specifying the former 2 as modules. I'm running myproject-web in
> tomcat
> >> which is configured in eclipse wtp. Myproject-web holds a reference
> to
> >> wicket as a dependency and I can see the myproject-domain project.
> >> Now I would like to add wicket with the proper release tag as a
> source
> >> tree
> >> to the project, so I can set debug breakpoints, add log stmts, take
> short
> >> cuts, break code fix it. All to get a better understanding what's
> >> happening
> >> under the hood. Wicket in itself has many subprojects which i don't
> need
> >> all
> >> in the source tree (but I guess it would not be a disaster if they
> were).
> >> So I checked out the wicket source from svn to some directory (The
> wicket
> >> project  has a parent pom in the root, and all the other projects
> are its
> >> siblings) Imported that directory into eclipse, and added the
> sub-project
> >> wicket as a module to myproject-parent, but that does not work for
> me.
> >> Also
> >> eclipse does not recognize the added wicket source tree, when
> opening the
> >> declaration it goes straight to the Wicket-Object.class and shows
> the
> >> attached source code instead of the code from the newly added source
> >> tree. I
> >> tried a few other things but that didnot show the source at best
> (often I
> >> could not even get tomcat start up)
> >> I'm pretty sure its al very simple but somehow i cant get it to
> work.
> >>
> >> regards,
> >> Jeroen.
> >>
> >>
> -
> >> 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
> >>>
> >>>
> >>
> >>
> >>
> >> --
> >> Become a Wicket expert, learn from the best: http://wicketinaction.com
> >> Apache Wicket 1.4 increases type safety for web applications
> >> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.4
> >>
> >> -
> >> 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.ap

Re: Changes of html-files are not directly available - need to re-deploy

2010-02-10 Thread Joachim Rohde
I found out what was wrong. Quite a rookie mistake: I relied on my IDE. 
As I mentioned I am using Netbeans where I have installed the Wicket 
plugin 
(http://plugins.netbeans.org/PluginPortal/faces/PluginDetailPage.jsp?pluginid=3586). 
It was the plugin which was copying the HTML files to the correct 
(server) folder after saving changes. And this behaviour is broken in 
Netbeans 6.8. In Netbeans 6.7.1 the plugin is working perfectly. I guess 
I didn't realize that the plugin is not compatible with NB 6.8 because 
on one hand the rest of the plugin seems to work perfectly (at least the 
parts that I am using) and on the other hand I was working the last 
weeks more on the backend of my project so that I didn't realize after 
the upgrade of Netbeans that not everything was working as expected. For 
now I'm using Netbeans 6.7.1 again.

Thanks for the help.


Am 09.02.2010 21:38, schrieb Riyad Kalla:

Joachim,

Troubleshooting redeployment issues can be maddening. The *very first*
thing you have to rule out is that the file is actually getting placed
on disk in the deployed location. I don't know how NetBeans handles
it's deployments, if it points Tomcat at the internal project and runs
"in place" or if it actually copies out the project contents on-disk
to some deployed location.

Regardless, find the deployed location. Go change your HTML, save it,
then using a file explorer, go to the deployed location and manually
open the file that is in the deployed location (e.g. using Gedit on
Ubuntu) and confirm that those changes are in that HTML.

If they are, then the issue would be with Wicket polling and seeing
the changes and reloading them. If you don't see the changes, then the
issue is with NetBeans either not placing the files in the right
location or not being *Able to* place them -- i.e. a permission
problem (That running as root should have addressed).

NOTE: 1 last thing, I don't know how you are running Tomcat, but if
you are running it externally make sure it's running as the same user
as NetBeans. Othertiwse you could run into a silly situation of
NetBeans writing out files as "root" and Tomcat trying to read/load
the deployed files but not having read-perms on those "root-owned"
files.

Just want to avoid weirdness.

-R

On Tue, Feb 9, 2010 at 1:33 PM, Joachim Rohde
  wrote:
   

First of all: I asked this question already at
http://www.coderanch.com/t/481846/Application-Frameworks/Application-Frameworks/Wicket-Changes-html-files-are
where no one could help me.

To my problem:

I have here a little bug which is completly weird in my opinion.
Usually when you are changing a html-file, you just need to save it and it
is directly available in the browser after a refresh. But this behaviour is
not working in my environment. I always have to deploy the complete project.
It is not a problem of my project. I verified this by trying the exactly
same project and also the quickstart from the official Wicket site on a
different machine where it works as expected. So it must be somewhere in my
configuration but I cannot figured it out where / what / why.

Machine one, where it is not working runs on Ubuntu 9.10, IDE is Netbeans
6.8 with Maven 2.2.1, server is a Tomcat 6.0.24 (also tried Tomcat 6.0.18
and also Jetty).
Machine two, where it is working runs on Windows XP, IDE is Netbeans 6.7.1
with Maven 2.2.1, server is a Tomcat 6.0.18.

I am definitely running the development mode (verified this also by calling
Application.get().getConfigurationType()). I tried the Wicket versions
1.4.4, 1.4.5 and 1.4.6. All the same. On the Ubuntu-System it's not working.
I also tried already to start Netbeans as root-user on the Linux-system,
just in case some access rights on my file-system are not sufficient.
Without any change in the result.

Only thing I found while searching was
http://markmail.org/message/fqpioxh7dir67ttj#query:wicket%20html%20refresh+page:1+mid:ca74uawyqzjyj5v5+state:results
where a mismatched dependency was the problem. But this does not seem to be
my problem. In JIRA I couldn't find anything related.

Anyone else encountered this problem? And even if not, I'm also open for
blue shots what I might try because I have no clue what might cause this
behaviour. Or anyone knows in which class the code for the reloading
resides? I haven't found it yet, after a quick glance at the wicket sources.
Help here is really appreciated. Thanks in advance for any comments.

-
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



Eingehende eMail ist virenfrei.
Von AVG überprüft - www.avg.de
Version: 9.0.733 / Virendatenbank: 271.1.1/2677 - Ausgabedatum: 02/09/10 
08:35:00

   




Memory Growth and JavaScript Increasingly Slower in Internet Explorer

2010-02-10 Thread Francisco Diaz Trepat - gmail
Hi All.

I am trouble by Internet Explorer's inability to work properly as I use the
wicket web application we are building.

It is an ajax application and I found many references on the internet about
circular reference and memory leaks and how to solve them.

Almost all came down the the same function structure. a purge function that
detaches events from elements that are being removed.

This function was called on unload event in the samples from the web, but as
we don't have that event available (all-ajax) we replaced the wicket
replaceOuterHtml function.

This DOES NOT work at all. IE keeps allocating resources and surpasses 120
130 mb.

Can someone help us?

Here is the code that we use:

/**
 * Decorates the Wicket's replaceOuterHtml in order to add some memory clean
up attempts.
 */
function enhanceWicketAjaxReplaceOuterHtml() {
   var originalReplaceOuterHtml = Wicket.replaceOuterHtml;
   Wicket.replaceOuterHtml = function(element, text) {
  // purge element before removing
  // it must be done BEFORE in order to work properly in IE
  // if done after, the element no longer has its childNodes attached,
and then the purge is not done for the child nodes.
  purge(element);
  // call the original function
  originalReplaceOuterHtml(element, text);
   }
}

Here is the purge JS function:

/**
 * Attempts to break circular references, which are the cause of memory
leaks.
 * It sets the references to functions in DOM elements to null, then
theoretically breaking the circular reference.
 * It is not sure if this works or not (decrease of memory leaks could not
be verified in browsers),
 * and this could even be adding trouble by making lot of javascript
processing.
 * The trick is suggested in an article in
http://javascript.crockford.com/memory/leak.html,
 * and has some IE specific enhancements (calling detachEvent) that give
some hope for effectiveness.
 */
function purge(element) {
   var attributes, childNodes, index, length, name;

   attributes = element.attributes;
   if (attributes) {
  length = attributes.length;
  for (index = 0; index < length; index += 1) {
 if (attributes[index] == null) {
continue;
 }

 name = attributes[index].name;

 if (typeof element[name] === 'function') {
// Verify if is an onload onclick onblah
if (Wicket.Browser.isIE()) {
   if (name.substring(0, 2) == 'on') {
  element.detachEvent(name, element[name]);
   }
}

element[name] = null;
 }
  }
   }

   childNodes = element.childNodes;
   if (childNodes) {
  length = childNodes.length;
  for (index = 0; index < length; index += 1) {
 purge(childNodes[index]);
  }
   }
}


Re: @SpringBean injection expensive - a bug?

2010-02-10 Thread Nikita Tovstoles
FWIW, explicitly specifying a name with @SpringBean worked around the
problem

On Tue, Feb 9, 2010 at 11:34 AM, Nikita Tovstoles <
nikita.tovsto...@gmail.com> wrote:

> Wicket's SpringWebApplication is deprecated and the javadoc advocates
> using @SpringBean to inject dependencies at component level. However,
> that appears to be an expensive proposition:
>
> I have a listView component that renders a (new) ExternalLink subclass
> per item. That subclass uses a service (a singleton spring bean)
> injected via @SpringBean like so:
>
> @SpringBean
> private MyService service;
>
> YourKit tells me that when the page is being rendered, 47%(!) of cpu
> time is being spent constructing the subclass, specifically,
> repeatedly calling:
>
> org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(ListableBeanFactory,
> Class)
>
> The above is getting called with vigor from
> SpringBeanLocator.hashCode() --> getBeanName() -->
> getBeanNameOfClass(). HashCode() is likely getting called most often
> by AnnotProxyFieldValueFactory.cache during look-ups - which I am
> guessing isn't intentional. Looks like a bug, no?
>
> If the above is a bug indeed, is the workaround to always specify a
> 'name' with @SpringBean?
>
> Thoughts?
> -nikita
>
> +-++-+
> |
> Name
> |   Time (ms)|  Own Time (ms)  |
>
> +-++-+
> |
>  
> +---com.castanealabs.gui.component.search.CategoryDataViewPanel$1.populateItem(Item)
>
>|  5,430  100 %  | 50  |
> ||
>
> || |
> |
>  +---com.castanealabs.gui.component.search.ProductImageCell.(String,
> SiteId, IModel)
> |  2,680   49 %  | 20  |
> || |
>
> || |
> ||
> +---com.castanealabs.gui.embedded.ExternalSiteProductInfoLink.(String,
> SiteId, IModel)
>|  2,660   49 %  |  0  |
> ||   |
>
> || |
> ||
> +---com.castanealabs.gui.embedded.ExternalSiteProductInfoLink.(String,
> SiteId, IModel, IModel)
>  |  2,660   49 %  |  0  |
> || |
>
> || |
> ||
> +---com.castanealabs.gui.embedded.TargetedExternalLink.(String,
> IModel, IModel, String)
>   |  2,570   47 %  |  0  |
> || | |
>
> || |
> || |
> +---org.apache.wicket.markup.html.link.ExternalLink.(String,
> IModel, IModel)
>|  2,570   47 %  |  0  |
> || |   |
>
> || |
> || |
> +---org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(ListableBeanFactory,
> Class)  |  2,570   47 %  |
>  0  |
> || | |
>
> || |
> || |
>
> +---org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(Class)
>|  2,570
> 47 %  |  0  |
> || |   |
>
> || |
> || |
>
> +---org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(Class)
>|  2,570   47 %  |
>10  |
> || | |
>
> || |
> || |
>
> +---org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(Class,
> boolean, boolean)|  2,560   47 %  |
>   0  |
> || |   |
>
> || |
> || |
>
> +---org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(String,
> RootBeanDefinition)|  2,460
> 45 %  | 10  |
> || |   | |
>
> || |
> || |   |
>
> +---org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(String,
> RootBeanDefinition, Class[])|  2,420   45 %  |
> 100  |
> || |   | | |
>
> | 

Re: @SpringBean injection expensive - a bug?

2010-02-10 Thread Igor Vaynberg
create a jira issue and a quickstart. thanks.

-igor

On Tue, Feb 9, 2010 at 11:34 AM, Nikita Tovstoles
 wrote:
> Wicket's SpringWebApplication is deprecated and the javadoc advocates
> using @SpringBean to inject dependencies at component level. However,
> that appears to be an expensive proposition:
>
> I have a listView component that renders a (new) ExternalLink subclass
> per item. That subclass uses a service (a singleton spring bean)
> injected via @SpringBean like so:
>
> @SpringBean
> private MyService service;
>
> YourKit tells me that when the page is being rendered, 47%(!) of cpu
> time is being spent constructing the subclass, specifically,
> repeatedly calling:
> org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(ListableBeanFactory,
> Class)
>
> The above is getting called with vigor from
> SpringBeanLocator.hashCode() --> getBeanName() -->
> getBeanNameOfClass(). HashCode() is likely getting called most often
> by AnnotProxyFieldValueFactory.cache during look-ups - which I am
> guessing isn't intentional. Looks like a bug, no?
>
> If the above is a bug indeed, is the workaround to always specify a
> 'name' with @SpringBean?
>
> Thoughts?
> -nikita
> +-++-+
> |
>             Name
>                             |   Time (ms)    |  Own Time (ms)  |
> +-++-+
> |  
> +---com.castanealabs.gui.component.search.CategoryDataViewPanel$1.populateItem(Item)
>
>            |  5,430  100 %  |             50  |
> |    |
>
>                             |                |                 |
> |    +---com.castanealabs.gui.component.search.ProductImageCell.(String,
> SiteId, IModel)
>                     |  2,680   49 %  |             20  |
> |    | |
>
>                             |                |                 |
> |    | 
> +---com.castanealabs.gui.embedded.ExternalSiteProductInfoLink.(String,
> SiteId, IModel)
>                |  2,660   49 %  |              0  |
> |    |   |
>
>                             |                |                 |
> |    |   
> +---com.castanealabs.gui.embedded.ExternalSiteProductInfoLink.(String,
> SiteId, IModel, IModel)
>              |  2,660   49 %  |              0  |
> |    |     |
>
>                             |                |                 |
> |    |     
> +---com.castanealabs.gui.embedded.TargetedExternalLink.(String,
> IModel, IModel, String)
>                   |  2,570   47 %  |              0  |
> |    |     | |
>
>                             |                |                 |
> |    |     | 
> +---org.apache.wicket.markup.html.link.ExternalLink.(String,
> IModel, IModel)
>                    |  2,570   47 %  |              0  |
> |    |     |   |
>
>                             |                |                 |
> |    |     |   
> +---org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(ListableBeanFactory,
> Class)                                      |  2,570   47 %  |
>      0  |
> |    |     |     |
>
>                             |                |                 |
> |    |     |
> +---org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(Class)
>                                                            |  2,570
> 47 %  |              0  |
> |    |     |       |
>
>                             |                |                 |
> |    |     |
> +---org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(Class)
>                                                    |  2,570   47 %  |
>            10  |
> |    |     |         |
>
>                             |                |                 |
> |    |     |
> +---org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(Class,
> boolean, boolean)                                |  2,560   47 %  |
>           0  |
> |    |     |           |
>
>                             |                |                 |
> |    |     |
> +---org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(String,
> RootBeanDefinition)                                        |  2,460
> 45 %  |             10  |
> |    |     |           | |
>
>                             |                |                 |
> |    |     |           |
> +---org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(String,
> RootBeanDefinition, Class[])            |  2,420   45 %  |
> 100  |
> |    |     |           | | |
>
>                             |                |                 |
> |    |     |           | |
> +---or

wicket app over https but renders some images as http

2010-02-10 Thread Steve Swinsburg
Hi all,

I have a Wicket application that is running over HTTPS but is rendering some 
images (like background images from css) over HTTP only. This causes the 'This 
page contains unsecure items' type warning and inspecting the Page Info from 
Firefox shows they are indeed being served over HTTP only.

Luckily I can switch this particular site to be just HTTP and as soon as I do 
that, the issues go away (obviously since its all just HTTP now). However I 
cannot just run the entire app over HTTPS only, as this application is deployed 
in many different contexts by many different institutions and they may be 
running it over HTTP only.

So can I force Wicket to render everything via HTTPS if its running over HTTPS 
and just normal HTTP if its running as such?

Note that I have things like:

.someClass {
   background-image: url(/library/image/silk/icon.png);
}

so I can't just prefix all URL links since most of them come from the CSS.

thanks,
Steve

smime.p7s
Description: S/MIME cryptographic signature


Re: wicket app over https but renders some images as http

2010-02-10 Thread jason lea
The background image url is relative to the css file.  Is the request for
the css file https?

On Thu, Feb 11, 2010 at 12:35 PM, Steve Swinsburg  wrote:

> Hi all,
>
> I have a Wicket application that is running over HTTPS but is rendering
> some images (like background images from css) over HTTP only. This causes
> the 'This page contains unsecure items' type warning and inspecting the Page
> Info from Firefox shows they are indeed being served over HTTP only.
>
> Luckily I can switch this particular site to be just HTTP and as soon as I
> do that, the issues go away (obviously since its all just HTTP now). However
> I cannot just run the entire app over HTTPS only, as this application is
> deployed in many different contexts by many different institutions and they
> may be running it over HTTP only.
>
> So can I force Wicket to render everything via HTTPS if its running over
> HTTPS and just normal HTTP if its running as such?
>
> Note that I have things like:
>
> .someClass {
>   background-image: url(/library/image/silk/icon.png);
> }
>
> so I can't just prefix all URL links since most of them come from the CSS.
>
> thanks,
> Steve




-- 
Jason Lea


Re: wicket app over https but renders some images as http

2010-02-10 Thread Steve Swinsburg
The request for the CSS is a renderCssReference call:

response.renderCSSReference("css/styles.css");

So it should be relative to what ever protocol is being used?





On 11/02/2010, at 10:58 AM, jason lea wrote:

> The background image url is relative to the css file.  Is the request for
> the css file https?
> 
> On Thu, Feb 11, 2010 at 12:35 PM, Steve Swinsburg > wrote:
> 
>> Hi all,
>> 
>> I have a Wicket application that is running over HTTPS but is rendering
>> some images (like background images from css) over HTTP only. This causes
>> the 'This page contains unsecure items' type warning and inspecting the Page
>> Info from Firefox shows they are indeed being served over HTTP only.
>> 
>> Luckily I can switch this particular site to be just HTTP and as soon as I
>> do that, the issues go away (obviously since its all just HTTP now). However
>> I cannot just run the entire app over HTTPS only, as this application is
>> deployed in many different contexts by many different institutions and they
>> may be running it over HTTP only.
>> 
>> So can I force Wicket to render everything via HTTPS if its running over
>> HTTPS and just normal HTTP if its running as such?
>> 
>> Note that I have things like:
>> 
>> .someClass {
>>  background-image: url(/library/image/silk/icon.png);
>> }
>> 
>> so I can't just prefix all URL links since most of them come from the CSS.
>> 
>> thanks,
>> Steve
> 
> 
> 
> 
> -- 
> Jason Lea



smime.p7s
Description: S/MIME cryptographic signature


AjaxPagingNavigator with Form Submit

2010-02-10 Thread Sumit Raja
Hi,

I have a DataView that has a Check for each Item. I would like to be able to 
remember whether an item was checked or not across page navigation actions as 
this is not happening currently. 

I read an old thread that indicated that changing the navigational links to be 
Ajax submit buttons will allow the form the be submitted. There does not seem 
to be an easy way of doing this without duplicating a lot of code from the 
existing ajax navigator. Has anyone done this before?

I did try a simple test of adding AjaxFormSubmitBehaviour on the mouseover 
event to see if the form gets submitted but this does not happen. Code is below.

Any help much appreciated,

Thanks

Sumit


dataContainer = new Form>("form");

.
.
.

AjaxPagingNavigator pager = new AjaxPagingNavigator("navigator", dataView) {

private static final long serialVersionUID = 1L;

@Override
protected void onAjaxEvent(AjaxRequestTarget target) {
target.addComponent(dataContainer);
}

@Override
protected Link newPagingNavigationLink(String id, IPageable 
pageable, int pageNumber) {
Link superLink = super.newPagingNavigationLink(id, pageable, 
pageNumber);
superLink.add(new AjaxFormSubmitBehavior(dataContainer, 
"onmouseover") {

private static final long serialVersionUID = 1L;

@Override
protected void onSubmit(AjaxRequestTarget target) {
System.out.println("onSubmit");
}

@Override
protected void onError(AjaxRequestTarget target) {
   
}

});
return superLink;
}

@Override
protected Link newPagingNavigationIncrementLink(String id, 
IPageable pageable, int increment) {
Link superLink = super.newPagingNavigationIncrementLink(id, 
pageable, increment);
superLink.add(new AjaxFormSubmitBehavior(dataContainer, 
"onmouseover") {

private static final long serialVersionUID = 1L;

@Override
protected void onSubmit(AjaxRequestTarget target) {

}

@Override
protected void onError(AjaxRequestTarget target) {
   
}

});
return superLink;
}


};

Re: wicket app over https but renders some images as http

2010-02-10 Thread Steve Swinsburg
Note that this also happens for resources that Wicket serves, eg:

resources/org.apache.wicket.ajax.AbstractDefaultBehaviour/indicator.gif

and ContextImages.

Can I detect HTTPS and force Wicket to serve content over HTTPS?

thanks,
Steve


On 11/02/2010, at 11:14 AM, Steve Swinsburg wrote:

> The request for the CSS is a renderCssReference call:
> 
> response.renderCSSReference("css/styles.css");
> 
> So it should be relative to what ever protocol is being used?
> 
> 
> 
> 
> 
> On 11/02/2010, at 10:58 AM, jason lea wrote:
> 
>> The background image url is relative to the css file.  Is the request for
>> the css file https?
>> 
>> On Thu, Feb 11, 2010 at 12:35 PM, Steve Swinsburg >> wrote:
>> 
>>> Hi all,
>>> 
>>> I have a Wicket application that is running over HTTPS but is rendering
>>> some images (like background images from css) over HTTP only. This causes
>>> the 'This page contains unsecure items' type warning and inspecting the Page
>>> Info from Firefox shows they are indeed being served over HTTP only.
>>> 
>>> Luckily I can switch this particular site to be just HTTP and as soon as I
>>> do that, the issues go away (obviously since its all just HTTP now). However
>>> I cannot just run the entire app over HTTPS only, as this application is
>>> deployed in many different contexts by many different institutions and they
>>> may be running it over HTTP only.
>>> 
>>> So can I force Wicket to render everything via HTTPS if its running over
>>> HTTPS and just normal HTTP if its running as such?
>>> 
>>> Note that I have things like:
>>> 
>>> .someClass {
>>>  background-image: url(/library/image/silk/icon.png);
>>> }
>>> 
>>> so I can't just prefix all URL links since most of them come from the CSS.
>>> 
>>> thanks,
>>> Steve
>> 
>> 
>> 
>> 
>> -- 
>> Jason Lea
> 



smime.p7s
Description: S/MIME cryptographic signature


Re: wicket app over https but renders some images as http

2010-02-10 Thread Jeremy Thomerson
What URL does Wicket generate in your HTML?

--
Jeremy Thomerson
http://www.wickettraining.com



On Wed, Feb 10, 2010 at 6:46 PM, Steve Swinsburg
wrote:

> Note that this also happens for resources that Wicket serves, eg:
>
> resources/org.apache.wicket.ajax.AbstractDefaultBehaviour/indicator.gif
>
> and ContextImages.
>
> Can I detect HTTPS and force Wicket to serve content over HTTPS?
>
> thanks,
> Steve
>
>
> On 11/02/2010, at 11:14 AM, Steve Swinsburg wrote:
>
> The request for the CSS is a renderCssReference call:
>
> response.renderCSSReference("css/styles.css");
>
> So it should be relative to what ever protocol is being used?
>
>
>
>
>
> On 11/02/2010, at 10:58 AM, jason lea wrote:
>
> The background image url is relative to the css file.  Is the request for
> the css file https?
>
> On Thu, Feb 11, 2010 at 12:35 PM, Steve Swinsburg <
> steve.swinsb...@gmail.com
>
> wrote:
>
>
> Hi all,
>
>
> I have a Wicket application that is running over HTTPS but is rendering
>
> some images (like background images from css) over HTTP only. This causes
>
> the 'This page contains unsecure items' type warning and inspecting the
> Page
>
> Info from Firefox shows they are indeed being served over HTTP only.
>
>
> Luckily I can switch this particular site to be just HTTP and as soon as I
>
> do that, the issues go away (obviously since its all just HTTP now).
> However
>
> I cannot just run the entire app over HTTPS only, as this application is
>
> deployed in many different contexts by many different institutions and they
>
> may be running it over HTTP only.
>
>
> So can I force Wicket to render everything via HTTPS if its running over
>
> HTTPS and just normal HTTP if its running as such?
>
>
> Note that I have things like:
>
>
> .someClass {
>
>  background-image: url(/library/image/silk/icon.png);
>
> }
>
>
> so I can't just prefix all URL links since most of them come from the CSS.
>
>
> thanks,
>
> Steve
>
>
>
>
>
> --
> Jason Lea
>
>
>
>


Re: wicket app over https but renders some images as http

2010-02-10 Thread Steve Swinsburg
Hi Jeremy,

For resources its rendered as
http://myserver/webapp/context/resources/org.apache.wicket.ajax.AbstractDefaultBehaviour/indicator.gif

For a ContextImage its:


For the CSS include its:


It all looks fine except the styles.css that has the classes are sending the 
images over HTTP, and they declare like:



>> .someClass {
>> 
>> background-image: url(/library/image/silk/icon.png);
>> 
>> }




cheers,
Steve





On 11/02/2010, at 11:53 AM, Jeremy Thomerson wrote:

> What URL does Wicket generate in your HTML?
> 
> --
> Jeremy Thomerson
> http://www.wickettraining.com
> 
> 
> 
> On Wed, Feb 10, 2010 at 6:46 PM, Steve Swinsburg
> wrote:
> 
>> Note that this also happens for resources that Wicket serves, eg:
>> 
>> resources/org.apache.wicket.ajax.AbstractDefaultBehaviour/indicator.gif
>> 
>> and ContextImages.
>> 
>> Can I detect HTTPS and force Wicket to serve content over HTTPS?
>> 
>> thanks,
>> Steve
>> 
>> 
>> On 11/02/2010, at 11:14 AM, Steve Swinsburg wrote:
>> 
>> The request for the CSS is a renderCssReference call:
>> 
>> response.renderCSSReference("css/styles.css");
>> 
>> So it should be relative to what ever protocol is being used?
>> 
>> 
>> 
>> 
>> 
>> On 11/02/2010, at 10:58 AM, jason lea wrote:
>> 
>> The background image url is relative to the css file.  Is the request for
>> the css file https?
>> 
>> On Thu, Feb 11, 2010 at 12:35 PM, Steve Swinsburg <
>> steve.swinsb...@gmail.com
>> 
>> wrote:
>> 
>> 
>> Hi all,
>> 
>> 
>> I have a Wicket application that is running over HTTPS but is rendering
>> 
>> some images (like background images from css) over HTTP only. This causes
>> 
>> the 'This page contains unsecure items' type warning and inspecting the
>> Page
>> 
>> Info from Firefox shows they are indeed being served over HTTP only.
>> 
>> 
>> Luckily I can switch this particular site to be just HTTP and as soon as I
>> 
>> do that, the issues go away (obviously since its all just HTTP now).
>> However
>> 
>> I cannot just run the entire app over HTTPS only, as this application is
>> 
>> deployed in many different contexts by many different institutions and they
>> 
>> may be running it over HTTP only.
>> 
>> 
>> So can I force Wicket to render everything via HTTPS if its running over
>> 
>> HTTPS and just normal HTTP if its running as such?
>> 
>> 
>> Note that I have things like:
>> 
>> 
>> .someClass {
>> 
>> background-image: url(/library/image/silk/icon.png);
>> 
>> }
>> 
>> 
>> so I can't just prefix all URL links since most of them come from the CSS.
>> 
>> 
>> thanks,
>> 
>> Steve
>> 
>> 
>> 
>> 
>> 
>> --
>> Jason Lea
>> 
>> 
>> 
>> 



smime.p7s
Description: S/MIME cryptographic signature


Re: wicket app over https but renders some images as http

2010-02-10 Thread Steve Swinsburg
What I meant to say was that the ContextImage and CSS looks fine, however the 
actual URLs it renders are all HTTP, not HTTPS when they should be. The first 
resource link is clearly broken.

cheers,
Steve



On 11/02/2010, at 12:13 PM, Steve Swinsburg wrote:

> Hi Jeremy,
> 
> For resources its rendered as
> http://myserver/webapp/context/resources/org.apache.wicket.ajax.AbstractDefaultBehaviour/indicator.gif
> 
> For a ContextImage its:
> 
> 
> For the CSS include its:
> 
> 
> It all looks fine except the styles.css that has the classes are sending the 
> images over HTTP, and they declare like:
> 
> 
> 
>>> .someClass {
>>> 
>>> background-image: url(/library/image/silk/icon.png);
>>> 
>>> }
> 
> 
> 
> 
> cheers,
> Steve
> 
> 
> 
> 
> 
> On 11/02/2010, at 11:53 AM, Jeremy Thomerson wrote:
> 
>> What URL does Wicket generate in your HTML?
>> 
>> --
>> Jeremy Thomerson
>> http://www.wickettraining.com
>> 
>> 
>> 
>> On Wed, Feb 10, 2010 at 6:46 PM, Steve Swinsburg
>> wrote:
>> 
>>> Note that this also happens for resources that Wicket serves, eg:
>>> 
>>> resources/org.apache.wicket.ajax.AbstractDefaultBehaviour/indicator.gif
>>> 
>>> and ContextImages.
>>> 
>>> Can I detect HTTPS and force Wicket to serve content over HTTPS?
>>> 
>>> thanks,
>>> Steve
>>> 
>>> 
>>> On 11/02/2010, at 11:14 AM, Steve Swinsburg wrote:
>>> 
>>> The request for the CSS is a renderCssReference call:
>>> 
>>> response.renderCSSReference("css/styles.css");
>>> 
>>> So it should be relative to what ever protocol is being used?
>>> 
>>> 
>>> 
>>> 
>>> 
>>> On 11/02/2010, at 10:58 AM, jason lea wrote:
>>> 
>>> The background image url is relative to the css file.  Is the request for
>>> the css file https?
>>> 
>>> On Thu, Feb 11, 2010 at 12:35 PM, Steve Swinsburg <
>>> steve.swinsb...@gmail.com
>>> 
>>> wrote:
>>> 
>>> 
>>> Hi all,
>>> 
>>> 
>>> I have a Wicket application that is running over HTTPS but is rendering
>>> 
>>> some images (like background images from css) over HTTP only. This causes
>>> 
>>> the 'This page contains unsecure items' type warning and inspecting the
>>> Page
>>> 
>>> Info from Firefox shows they are indeed being served over HTTP only.
>>> 
>>> 
>>> Luckily I can switch this particular site to be just HTTP and as soon as I
>>> 
>>> do that, the issues go away (obviously since its all just HTTP now).
>>> However
>>> 
>>> I cannot just run the entire app over HTTPS only, as this application is
>>> 
>>> deployed in many different contexts by many different institutions and they
>>> 
>>> may be running it over HTTP only.
>>> 
>>> 
>>> So can I force Wicket to render everything via HTTPS if its running over
>>> 
>>> HTTPS and just normal HTTP if its running as such?
>>> 
>>> 
>>> Note that I have things like:
>>> 
>>> 
>>> .someClass {
>>> 
>>> background-image: url(/library/image/silk/icon.png);
>>> 
>>> }
>>> 
>>> 
>>> so I can't just prefix all URL links since most of them come from the CSS.
>>> 
>>> 
>>> thanks,
>>> 
>>> Steve
>>> 
>>> 
>>> 
>>> 
>>> 
>>> --
>>> Jason Lea
>>> 
>>> 
>>> 
>>> 
> 



smime.p7s
Description: S/MIME cryptographic signature


Re: wicket app over https but renders some images as http

2010-02-10 Thread Andrew Lombardi
and the URL for your page in the Location bar *is* https?

On Feb 10, 2010, at 5:55 PM, Steve Swinsburg wrote:

> What I meant to say was that the ContextImage and CSS looks fine, however the 
> actual URLs it renders are all HTTP, not HTTPS when they should be. The first 
> resource link is clearly broken.
> 
> cheers,
> Steve
> 
> 
> 
> On 11/02/2010, at 12:13 PM, Steve Swinsburg wrote:
> 
>> Hi Jeremy,
>> 
>> For resources its rendered as
>> http://myserver/webapp/context/resources/org.apache.wicket.ajax.AbstractDefaultBehaviour/indicator.gif
>> 
>> For a ContextImage its:
>> 
>> 
>> For the CSS include its:
>> 
>> 
>> It all looks fine except the styles.css that has the classes are sending the 
>> images over HTTP, and they declare like:
>> 
>> 
>> 
 .someClass {
 
 background-image: url(/library/image/silk/icon.png);
 
 }
>> 
>> 
>> 
>> 
>> cheers,
>> Steve
>> 
>> 
>> 
>> 
>> 
>> On 11/02/2010, at 11:53 AM, Jeremy Thomerson wrote:
>> 
>>> What URL does Wicket generate in your HTML?
>>> 
>>> --
>>> Jeremy Thomerson
>>> http://www.wickettraining.com
>>> 
>>> 
>>> 
>>> On Wed, Feb 10, 2010 at 6:46 PM, Steve Swinsburg
>>> wrote:
>>> 
 Note that this also happens for resources that Wicket serves, eg:
 
 resources/org.apache.wicket.ajax.AbstractDefaultBehaviour/indicator.gif
 
 and ContextImages.
 
 Can I detect HTTPS and force Wicket to serve content over HTTPS?
 
 thanks,
 Steve
 
 
 On 11/02/2010, at 11:14 AM, Steve Swinsburg wrote:
 
 The request for the CSS is a renderCssReference call:
 
 response.renderCSSReference("css/styles.css");
 
 So it should be relative to what ever protocol is being used?
 
 
 
 
 
 On 11/02/2010, at 10:58 AM, jason lea wrote:
 
 The background image url is relative to the css file.  Is the request for
 the css file https?
 
 On Thu, Feb 11, 2010 at 12:35 PM, Steve Swinsburg <
 steve.swinsb...@gmail.com
 
 wrote:
 
 
 Hi all,
 
 
 I have a Wicket application that is running over HTTPS but is rendering
 
 some images (like background images from css) over HTTP only. This causes
 
 the 'This page contains unsecure items' type warning and inspecting the
 Page
 
 Info from Firefox shows they are indeed being served over HTTP only.
 
 
 Luckily I can switch this particular site to be just HTTP and as soon as I
 
 do that, the issues go away (obviously since its all just HTTP now).
 However
 
 I cannot just run the entire app over HTTPS only, as this application is
 
 deployed in many different contexts by many different institutions and they
 
 may be running it over HTTP only.
 
 
 So can I force Wicket to render everything via HTTPS if its running over
 
 HTTPS and just normal HTTP if its running as such?
 
 
 Note that I have things like:
 
 
 .someClass {
 
 background-image: url(/library/image/silk/icon.png);
 
 }
 
 
 so I can't just prefix all URL links since most of them come from the CSS.
 
 
 thanks,
 
 Steve
 
 
 
 
 
 --
 Jason Lea
 
 
 
 
>> 
> 


To our success!

Mystic Coders, LLC | Code Magic | www.mysticcoders.com

ANDREW LOMBARDI | and...@mysticcoders.com
2321 E 4th St. Ste C-128, Santa Ana CA 92705
ofc: 714-816-4488
fax: 714-782-6024
cell: 714-697-8046
linked-in: http://www.linkedin.com/in/andrewlombardi
twitter: http://www.twitter.com/kinabalu

Eco-Tip: Printing e-mails is usually a waste.


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




Re: wicket app over https but renders some images as http

2010-02-10 Thread Steve Swinsburg
Yes. And thats how I can confirm it breaks when I change the address to just 
http. Both http and https work on this particular site which makes it easy for 
testing.

The address is https and then it renders the content in an iframe with source 
attribute that is also https (I'm working in a portal framework).



On 11/02/2010, at 1:00 PM, Andrew Lombardi wrote:

> and the URL for your page in the Location bar *is* https?
> 
> On Feb 10, 2010, at 5:55 PM, Steve Swinsburg wrote:
> 
>> What I meant to say was that the ContextImage and CSS looks fine, however 
>> the actual URLs it renders are all HTTP, not HTTPS when they should be. The 
>> first resource link is clearly broken.
>> 
>> cheers,
>> Steve
>> 
>> 
>> 
>> On 11/02/2010, at 12:13 PM, Steve Swinsburg wrote:
>> 
>>> Hi Jeremy,
>>> 
>>> For resources its rendered as
>>> http://myserver/webapp/context/resources/org.apache.wicket.ajax.AbstractDefaultBehaviour/indicator.gif
>>> 
>>> For a ContextImage its:
>>> 
>>> 
>>> For the CSS include its:
>>> 
>>> 
>>> It all looks fine except the styles.css that has the classes are sending 
>>> the images over HTTP, and they declare like:
>>> 
>>> 
>>> 
> .someClass {
> 
> background-image: url(/library/image/silk/icon.png);
> 
> }
>>> 
>>> 
>>> 
>>> 
>>> cheers,
>>> Steve
>>> 
>>> 
>>> 
>>> 
>>> 
>>> On 11/02/2010, at 11:53 AM, Jeremy Thomerson wrote:
>>> 
 What URL does Wicket generate in your HTML?
 
 --
 Jeremy Thomerson
 http://www.wickettraining.com
 
 
 
 On Wed, Feb 10, 2010 at 6:46 PM, Steve Swinsburg
 wrote:
 
> Note that this also happens for resources that Wicket serves, eg:
> 
> resources/org.apache.wicket.ajax.AbstractDefaultBehaviour/indicator.gif
> 
> and ContextImages.
> 
> Can I detect HTTPS and force Wicket to serve content over HTTPS?
> 
> thanks,
> Steve
> 
> 
> On 11/02/2010, at 11:14 AM, Steve Swinsburg wrote:
> 
> The request for the CSS is a renderCssReference call:
> 
> response.renderCSSReference("css/styles.css");
> 
> So it should be relative to what ever protocol is being used?
> 
> 
> 
> 
> 
> On 11/02/2010, at 10:58 AM, jason lea wrote:
> 
> The background image url is relative to the css file.  Is the request for
> the css file https?
> 
> On Thu, Feb 11, 2010 at 12:35 PM, Steve Swinsburg <
> steve.swinsb...@gmail.com
> 
> wrote:
> 
> 
> Hi all,
> 
> 
> I have a Wicket application that is running over HTTPS but is rendering
> 
> some images (like background images from css) over HTTP only. This causes
> 
> the 'This page contains unsecure items' type warning and inspecting the
> Page
> 
> Info from Firefox shows they are indeed being served over HTTP only.
> 
> 
> Luckily I can switch this particular site to be just HTTP and as soon as I
> 
> do that, the issues go away (obviously since its all just HTTP now).
> However
> 
> I cannot just run the entire app over HTTPS only, as this application is
> 
> deployed in many different contexts by many different institutions and 
> they
> 
> may be running it over HTTP only.
> 
> 
> So can I force Wicket to render everything via HTTPS if its running over
> 
> HTTPS and just normal HTTP if its running as such?
> 
> 
> Note that I have things like:
> 
> 
> .someClass {
> 
> background-image: url(/library/image/silk/icon.png);
> 
> }
> 
> 
> so I can't just prefix all URL links since most of them come from the CSS.
> 
> 
> thanks,
> 
> Steve
> 
> 
> 
> 
> 
> --
> Jason Lea
> 
> 
> 
> 
>>> 
>> 
> 
> 
> To our success!
> 
> Mystic Coders, LLC | Code Magic | www.mysticcoders.com
> 
> ANDREW LOMBARDI | and...@mysticcoders.com
> 2321 E 4th St. Ste C-128, Santa Ana CA 92705
> ofc: 714-816-4488
> fax: 714-782-6024
> cell: 714-697-8046
> linked-in: http://www.linkedin.com/in/andrewlombardi
> twitter: http://www.twitter.com/kinabalu
> 
> Eco-Tip: Printing e-mails is usually a waste.
> 
> 
> This message is for the named person's use only. You must not, directly or 
> indirectly, use,
> disclose, distribute, print, or copy any part of this message if you are not 
> the intended recipient.
> 
> 



smime.p7s
Description: S/MIME cryptographic signature


Re: wicket app over https but renders some images as http

2010-02-10 Thread Steve Swinsburg
Edit: ... thats how I can confirm it was broken, because when I change it to 
http it works.



On 11/02/2010, at 1:26 PM, Steve Swinsburg wrote:

> Yes. And thats how I can confirm it breaks when I change the address to just 
> http. Both http and https work on this particular site which makes it easy 
> for testing.
> 
> The address is https and then it renders the content in an iframe with source 
> attribute that is also https (I'm working in a portal framework).
> 
> 
> 
> On 11/02/2010, at 1:00 PM, Andrew Lombardi wrote:
> 
>> and the URL for your page in the Location bar *is* https?
>> 
>> On Feb 10, 2010, at 5:55 PM, Steve Swinsburg wrote:
>> 
>>> What I meant to say was that the ContextImage and CSS looks fine, however 
>>> the actual URLs it renders are all HTTP, not HTTPS when they should be. The 
>>> first resource link is clearly broken.
>>> 
>>> cheers,
>>> Steve
>>> 
>>> 
>>> 
>>> On 11/02/2010, at 12:13 PM, Steve Swinsburg wrote:
>>> 
 Hi Jeremy,
 
 For resources its rendered as
 http://myserver/webapp/context/resources/org.apache.wicket.ajax.AbstractDefaultBehaviour/indicator.gif
 
 For a ContextImage its:
 
 
 For the CSS include its:
 
 
 It all looks fine except the styles.css that has the classes are sending 
 the images over HTTP, and they declare like:
 
 
 
>> .someClass {
>> 
>> background-image: url(/library/image/silk/icon.png);
>> 
>> }
 
 
 
 
 cheers,
 Steve
 
 
 
 
 
 On 11/02/2010, at 11:53 AM, Jeremy Thomerson wrote:
 
> What URL does Wicket generate in your HTML?
> 
> --
> Jeremy Thomerson
> http://www.wickettraining.com
> 
> 
> 
> On Wed, Feb 10, 2010 at 6:46 PM, Steve Swinsburg
> wrote:
> 
>> Note that this also happens for resources that Wicket serves, eg:
>> 
>> resources/org.apache.wicket.ajax.AbstractDefaultBehaviour/indicator.gif
>> 
>> and ContextImages.
>> 
>> Can I detect HTTPS and force Wicket to serve content over HTTPS?
>> 
>> thanks,
>> Steve
>> 
>> 
>> On 11/02/2010, at 11:14 AM, Steve Swinsburg wrote:
>> 
>> The request for the CSS is a renderCssReference call:
>> 
>> response.renderCSSReference("css/styles.css");
>> 
>> So it should be relative to what ever protocol is being used?
>> 
>> 
>> 
>> 
>> 
>> On 11/02/2010, at 10:58 AM, jason lea wrote:
>> 
>> The background image url is relative to the css file.  Is the request for
>> the css file https?
>> 
>> On Thu, Feb 11, 2010 at 12:35 PM, Steve Swinsburg <
>> steve.swinsb...@gmail.com
>> 
>> wrote:
>> 
>> 
>> Hi all,
>> 
>> 
>> I have a Wicket application that is running over HTTPS but is rendering
>> 
>> some images (like background images from css) over HTTP only. This causes
>> 
>> the 'This page contains unsecure items' type warning and inspecting the
>> Page
>> 
>> Info from Firefox shows they are indeed being served over HTTP only.
>> 
>> 
>> Luckily I can switch this particular site to be just HTTP and as soon as 
>> I
>> 
>> do that, the issues go away (obviously since its all just HTTP now).
>> However
>> 
>> I cannot just run the entire app over HTTPS only, as this application is
>> 
>> deployed in many different contexts by many different institutions and 
>> they
>> 
>> may be running it over HTTP only.
>> 
>> 
>> So can I force Wicket to render everything via HTTPS if its running over
>> 
>> HTTPS and just normal HTTP if its running as such?
>> 
>> 
>> Note that I have things like:
>> 
>> 
>> .someClass {
>> 
>> background-image: url(/library/image/silk/icon.png);
>> 
>> }
>> 
>> 
>> so I can't just prefix all URL links since most of them come from the 
>> CSS.
>> 
>> 
>> thanks,
>> 
>> Steve
>> 
>> 
>> 
>> 
>> 
>> --
>> Jason Lea
>> 
>> 
>> 
>> 
 
>>> 
>> 
>> 
>> To our success!
>> 
>> Mystic Coders, LLC | Code Magic | www.mysticcoders.com
>> 
>> ANDREW LOMBARDI | and...@mysticcoders.com
>> 2321 E 4th St. Ste C-128, Santa Ana CA 92705
>> ofc: 714-816-4488
>> fax: 714-782-6024
>> cell: 714-697-8046
>> linked-in: http://www.linkedin.com/in/andrewlombardi
>> twitter: http://www.twitter.com/kinabalu
>> 
>> Eco-Tip: Printing e-mails is usually a waste.
>> 
>> 
>> This message is for the named person's use only. You must not, directly or 
>> indirectly, use,
>> disclose, distribute, print, or copy any part of this message if you are not 
>> the intended recipient.
>> 
>> 
> 



smime.p7s
Description: S/MIME cryptographic signature


Re: wicket app over https but renders some images as http

2010-02-10 Thread Jeremy Thomerson
Well, can you paste the actual html that is generated that links to your
stylesheet on the https page?  Because what you pasted earlier was a
relative URL, which would mean that the browser would make it https as
well.  So, they're some piece of the puzzle we haven't received yet.
Perhaps you could browse to the https page, view source, copy the whole
source into pastebin and send it?

Are you using iframes or anything?

--
Jeremy Thomerson
http://www.wickettraining.com



On Wed, Feb 10, 2010 at 8:29 PM, Steve Swinsburg
wrote:

> Edit: ... thats how I can confirm it was broken, because when I change it
> to http it works.
>
>
>
> On 11/02/2010, at 1:26 PM, Steve Swinsburg wrote:
>
> > Yes. And thats how I can confirm it breaks when I change the address to
> just http. Both http and https work on this particular site which makes it
> easy for testing.
> >
> > The address is https and then it renders the content in an iframe with
> source attribute that is also https (I'm working in a portal framework).
> >
> >
> >
> > On 11/02/2010, at 1:00 PM, Andrew Lombardi wrote:
> >
> >> and the URL for your page in the Location bar *is* https?
> >>
> >> On Feb 10, 2010, at 5:55 PM, Steve Swinsburg wrote:
> >>
> >>> What I meant to say was that the ContextImage and CSS looks fine,
> however the actual URLs it renders are all HTTP, not HTTPS when they should
> be. The first resource link is clearly broken.
> >>>
> >>> cheers,
> >>> Steve
> >>>
> >>>
> >>>
> >>> On 11/02/2010, at 12:13 PM, Steve Swinsburg wrote:
> >>>
>  Hi Jeremy,
> 
>  For resources its rendered as
> 
> http://myserver/webapp/context/resources/org.apache.wicket.ajax.AbstractDefaultBehaviour/indicator.gif
> 
>  For a ContextImage its:
>  
> 
>  For the CSS include its:
>  
> 
>  It all looks fine except the styles.css that has the classes are
> sending the images over HTTP, and they declare like:
> 
> 
> 
> >> .someClass {
> >>
> >> background-image: url(/library/image/silk/icon.png);
> >>
> >> }
> 
> 
> 
> 
>  cheers,
>  Steve
> 
> 
> 
> 
> 
>  On 11/02/2010, at 11:53 AM, Jeremy Thomerson wrote:
> 
> > What URL does Wicket generate in your HTML?
> >
> > --
> > Jeremy Thomerson
> > http://www.wickettraining.com
> >
> >
> >
> > On Wed, Feb 10, 2010 at 6:46 PM, Steve Swinsburg
> > wrote:
> >
> >> Note that this also happens for resources that Wicket serves, eg:
> >>
> >>
> resources/org.apache.wicket.ajax.AbstractDefaultBehaviour/indicator.gif
> >>
> >> and ContextImages.
> >>
> >> Can I detect HTTPS and force Wicket to serve content over HTTPS?
> >>
> >> thanks,
> >> Steve
> >>
> >>
> >> On 11/02/2010, at 11:14 AM, Steve Swinsburg wrote:
> >>
> >> The request for the CSS is a renderCssReference call:
> >>
> >> response.renderCSSReference("css/styles.css");
> >>
> >> So it should be relative to what ever protocol is being used?
> >>
> >>
> >>
> >>
> >>
> >> On 11/02/2010, at 10:58 AM, jason lea wrote:
> >>
> >> The background image url is relative to the css file.  Is the
> request for
> >> the css file https?
> >>
> >> On Thu, Feb 11, 2010 at 12:35 PM, Steve Swinsburg <
> >> steve.swinsb...@gmail.com
> >>
> >> wrote:
> >>
> >>
> >> Hi all,
> >>
> >>
> >> I have a Wicket application that is running over HTTPS but is
> rendering
> >>
> >> some images (like background images from css) over HTTP only. This
> causes
> >>
> >> the 'This page contains unsecure items' type warning and inspecting
> the
> >> Page
> >>
> >> Info from Firefox shows they are indeed being served over HTTP only.
> >>
> >>
> >> Luckily I can switch this particular site to be just HTTP and as
> soon as I
> >>
> >> do that, the issues go away (obviously since its all just HTTP now).
> >> However
> >>
> >> I cannot just run the entire app over HTTPS only, as this
> application is
> >>
> >> deployed in many different contexts by many different institutions
> and they
> >>
> >> may be running it over HTTP only.
> >>
> >>
> >> So can I force Wicket to render everything via HTTPS if its running
> over
> >>
> >> HTTPS and just normal HTTP if its running as such?
> >>
> >>
> >> Note that I have things like:
> >>
> >>
> >> .someClass {
> >>
> >> background-image: url(/library/image/silk/icon.png);
> >>
> >> }
> >>
> >>
> >> so I can't just prefix all URL links since most of them come from
> the CSS.
> >>
> >>
> >> thanks,
> >>
> >> Steve
> >>
> >>
> >>
> >>
> >>
> >> --
> >> Jason Lea
> >>
> >>
> >>
> >>
> 
> >>>
> >>
> >>
> >> To our success!
> >>
> >> Myst

Re: wicket app over https but renders some images as http

2010-02-10 Thread Igor Vaynberg
your paste does not contain any absolute urls, only relative ones...

-igor

On Wed, Feb 10, 2010 at 7:15 PM, Steve Swinsburg
 wrote:
> Yes, the app is rendered in an iframe as my app is deployed into a portal
> container. I pasted that HTML from the iframe source, but here is the whole
> lot:
> http://pastie.org/819416
> Line 21 has the import for the css.
> Line 55 is a ContextImage
> The iframe source
> is: src="https://myserver.edu.au/portal/tool/138a11eb-bcee-4b13-b6c5-d7bf206980ea?panel=Main";
> and that renders the tool.
> Using the padlock in the bottom right of Firefox, and analysing the Media,
> gives all images that are loaded on the page, and all of those that come
> from this app are http only, the rest that come from the portal container
> are https as normal. Changing the address to http and refreshing makes the
> portal container urls change to http as expected.
>
> thanks,
> Steve
>
> On 11/02/2010, at 1:45 PM, Jeremy Thomerson wrote:
>
> Well, can you paste the actual html that is generated that links to your
> stylesheet on the https page?  Because what you pasted earlier was a
> relative URL, which would mean that the browser would make it https as
> well.  So, they're some piece of the puzzle we haven't received yet.
> Perhaps you could browse to the https page, view source, copy the whole
> source into pastebin and send it?
>
> Are you using iframes or anything?
>
> --
> Jeremy Thomerson
> http://www.wickettraining.com
>
>
>
> On Wed, Feb 10, 2010 at 8:29 PM, Steve Swinsburg
> wrote:
>
> Edit: ... thats how I can confirm it was broken, because when I change it
>
> to http it works.
>
>
>
> On 11/02/2010, at 1:26 PM, Steve Swinsburg wrote:
>
> Yes. And thats how I can confirm it breaks when I change the address to
>
> just http. Both http and https work on this particular site which makes it
>
> easy for testing.
>
> The address is https and then it renders the content in an iframe with
>
> source attribute that is also https (I'm working in a portal framework).
>
>
>
> On 11/02/2010, at 1:00 PM, Andrew Lombardi wrote:
>
> and the URL for your page in the Location bar *is* https?
>
> On Feb 10, 2010, at 5:55 PM, Steve Swinsburg wrote:
>
> What I meant to say was that the ContextImage and CSS looks fine,
>
> however the actual URLs it renders are all HTTP, not HTTPS when they should
>
> be. The first resource link is clearly broken.
>
> cheers,
>
> Steve
>
>
>
> On 11/02/2010, at 12:13 PM, Steve Swinsburg wrote:
>
> Hi Jeremy,
>
> For resources its rendered as
>
> http://myserver/webapp/context/resources/org.apache.wicket.ajax.AbstractDefaultBehaviour/indicator.gif
>
> For a ContextImage its:
>
> 
>
> For the CSS include its:
>
> 
>
> It all looks fine except the styles.css that has the classes are
>
> sending the images over HTTP, and they declare like:
>
>
>
> .someClass {
>
> background-image: url(/library/image/silk/icon.png);
>
> }
>
>
>
>
> cheers,
>
> Steve
>
>
>
>
>
> On 11/02/2010, at 11:53 AM, Jeremy Thomerson wrote:
>
> What URL does Wicket generate in your HTML?
>
> --
>
> Jeremy Thomerson
>
> http://www.wickettraining.com
>
>
>
> On Wed, Feb 10, 2010 at 6:46 PM, Steve Swinsburg
>
> wrote:
>
> Note that this also happens for resources that Wicket serves, eg:
>
>
> resources/org.apache.wicket.ajax.AbstractDefaultBehaviour/indicator.gif
>
> and ContextImages.
>
> Can I detect HTTPS and force Wicket to serve content over HTTPS?
>
> thanks,
>
> Steve
>
>
> On 11/02/2010, at 11:14 AM, Steve Swinsburg wrote:
>
> The request for the CSS is a renderCssReference call:
>
> response.renderCSSReference("css/styles.css");
>
> So it should be relative to what ever protocol is being used?
>
>
>
>
>
> On 11/02/2010, at 10:58 AM, jason lea wrote:
>
> The background image url is relative to the css file.  Is the
>
> request for
>
> the css file https?
>
> On Thu, Feb 11, 2010 at 12:35 PM, Steve Swinsburg <
>
> steve.swinsb...@gmail.com
>
> wrote:
>
>
> Hi all,
>
>
> I have a Wicket application that is running over HTTPS but is
>
> rendering
>
> some images (like background images from css) over HTTP only. This
>
> causes
>
> the 'This page contains unsecure items' type warning and inspecting
>
> the
>
> Page
>
> Info from Firefox shows they are indeed being served over HTTP only.
>
>
> Luckily I can switch this particular site to be just HTTP and as
>
> soon as I
>
> do that, the issues go away (obviously since its all just HTTP now).
>
> However
>
> I cannot just run the entire app over HTTPS only, as this
>
> application is
>
> deployed in many different contexts by many different institutions
>
> and they
>
> may be running it over HTTP only.
>
>
> So can I force Wicket to render everything via HTTPS if its running
>
> over
>
> HTTPS and just normal HTTP if its running as such?
>
>
> Note that I have things like:
>
>
> .someClass {
>
> background-image: url(/library/image/silk/icon.png);
>
> }
>
>
> so I can't just prefix all URL links since most of them come from
>
> the CSS.
>
>
> thanks

Re: wicket app over https but renders some images as http

2010-02-10 Thread Steve Swinsburg
Exactly. So why are they coming up as HTTP when both the URL and iframe src are 
both HTTPS. All resources that Wicket sends from this application are coming up 
as HTTP. So I am thinking it still thinks its on HTTP, not HTTPS.

I'll add some logging to the Application init() to figure out if Wicket thinks 
its on HTTP or HTTPS.

Could be the iframe?

thanks,
Steve


On 11/02/2010, at 2:48 PM, Igor Vaynberg wrote:

> your paste does not contain any absolute urls, only relative ones...
> 
> -igor
> 
> On Wed, Feb 10, 2010 at 7:15 PM, Steve Swinsburg
>  wrote:
>> Yes, the app is rendered in an iframe as my app is deployed into a portal
>> container. I pasted that HTML from the iframe source, but here is the whole
>> lot:
>> http://pastie.org/819416
>> Line 21 has the import for the css.
>> Line 55 is a ContextImage
>> The iframe source
>> is: 
>> src="https://myserver.edu.au/portal/tool/138a11eb-bcee-4b13-b6c5-d7bf206980ea?panel=Main";
>> and that renders the tool.
>> Using the padlock in the bottom right of Firefox, and analysing the Media,
>> gives all images that are loaded on the page, and all of those that come
>> from this app are http only, the rest that come from the portal container
>> are https as normal. Changing the address to http and refreshing makes the
>> portal container urls change to http as expected.
>> 
>> thanks,
>> Steve
>> 
>> On 11/02/2010, at 1:45 PM, Jeremy Thomerson wrote:
>> 
>> Well, can you paste the actual html that is generated that links to your
>> stylesheet on the https page?  Because what you pasted earlier was a
>> relative URL, which would mean that the browser would make it https as
>> well.  So, they're some piece of the puzzle we haven't received yet.
>> Perhaps you could browse to the https page, view source, copy the whole
>> source into pastebin and send it?
>> 
>> Are you using iframes or anything?
>> 
>> --
>> Jeremy Thomerson
>> http://www.wickettraining.com
>> 
>> 
>> 
>> On Wed, Feb 10, 2010 at 8:29 PM, Steve Swinsburg
>> wrote:
>> 
>> Edit: ... thats how I can confirm it was broken, because when I change it
>> 
>> to http it works.
>> 
>> 
>> 
>> On 11/02/2010, at 1:26 PM, Steve Swinsburg wrote:
>> 
>> Yes. And thats how I can confirm it breaks when I change the address to
>> 
>> just http. Both http and https work on this particular site which makes it
>> 
>> easy for testing.
>> 
>> The address is https and then it renders the content in an iframe with
>> 
>> source attribute that is also https (I'm working in a portal framework).
>> 
>> 
>> 
>> On 11/02/2010, at 1:00 PM, Andrew Lombardi wrote:
>> 
>> and the URL for your page in the Location bar *is* https?
>> 
>> On Feb 10, 2010, at 5:55 PM, Steve Swinsburg wrote:
>> 
>> What I meant to say was that the ContextImage and CSS looks fine,
>> 
>> however the actual URLs it renders are all HTTP, not HTTPS when they should
>> 
>> be. The first resource link is clearly broken.
>> 
>> cheers,
>> 
>> Steve
>> 
>> 
>> 
>> On 11/02/2010, at 12:13 PM, Steve Swinsburg wrote:
>> 
>> Hi Jeremy,
>> 
>> For resources its rendered as
>> 
>> http://myserver/webapp/context/resources/org.apache.wicket.ajax.AbstractDefaultBehaviour/indicator.gif
>> 
>> For a ContextImage its:
>> 
>> 
>> 
>> For the CSS include its:
>> 
>> 
>> 
>> It all looks fine except the styles.css that has the classes are
>> 
>> sending the images over HTTP, and they declare like:
>> 
>> 
>> 
>> .someClass {
>> 
>> background-image: url(/library/image/silk/icon.png);
>> 
>> }
>> 
>> 
>> 
>> 
>> cheers,
>> 
>> Steve
>> 
>> 
>> 
>> 
>> 
>> On 11/02/2010, at 11:53 AM, Jeremy Thomerson wrote:
>> 
>> What URL does Wicket generate in your HTML?
>> 
>> --
>> 
>> Jeremy Thomerson
>> 
>> http://www.wickettraining.com
>> 
>> 
>> 
>> On Wed, Feb 10, 2010 at 6:46 PM, Steve Swinsburg
>> 
>> wrote:
>> 
>> Note that this also happens for resources that Wicket serves, eg:
>> 
>> 
>> resources/org.apache.wicket.ajax.AbstractDefaultBehaviour/indicator.gif
>> 
>> and ContextImages.
>> 
>> Can I detect HTTPS and force Wicket to serve content over HTTPS?
>> 
>> thanks,
>> 
>> Steve
>> 
>> 
>> On 11/02/2010, at 11:14 AM, Steve Swinsburg wrote:
>> 
>> The request for the CSS is a renderCssReference call:
>> 
>> response.renderCSSReference("css/styles.css");
>> 
>> So it should be relative to what ever protocol is being used?
>> 
>> 
>> 
>> 
>> 
>> On 11/02/2010, at 10:58 AM, jason lea wrote:
>> 
>> The background image url is relative to the css file.  Is the
>> 
>> request for
>> 
>> the css file https?
>> 
>> On Thu, Feb 11, 2010 at 12:35 PM, Steve Swinsburg <
>> 
>> steve.swinsb...@gmail.com
>> 
>> wrote:
>> 
>> 
>> Hi all,
>> 
>> 
>> I have a Wicket application that is running over HTTPS but is
>> 
>> rendering
>> 
>> some images (like background images from css) over HTTP only. This
>> 
>> causes
>> 
>> the 'This page contains unsecure items' type warning and inspecting
>> 
>> the
>> 
>> Page
>> 
>> Info from Firefox shows they are indeed being served over HTTP only.
>> 

Re: wicket app over https but renders some images as http

2010-02-10 Thread Jeremy Thomerson
What I've suspected all along is that your main page MAY be loaded https,
but that your iframe src is actually ending up http.

do this (in firefox): pull up the app in https, right click in the iframe,
click "this frame", click "show only this frame".  is the url that appears
with the iframe content https?

--
Jeremy Thomerson
http://www.wickettraining.com



On Wed, Feb 10, 2010 at 9:57 PM, Steve Swinsburg
wrote:

> Exactly. So why are they coming up as HTTP when both the URL and iframe src
> are both HTTPS. All resources that Wicket sends from this application are
> coming up as HTTP. So I am thinking it still thinks its on HTTP, not HTTPS.
>
> I'll add some logging to the Application init() to figure out if Wicket
> thinks its on HTTP or HTTPS.
>
> Could be the iframe?
>
> thanks,
> Steve
>
>
> On 11/02/2010, at 2:48 PM, Igor Vaynberg wrote:
>
> > your paste does not contain any absolute urls, only relative ones...
> >
> > -igor
> >
> > On Wed, Feb 10, 2010 at 7:15 PM, Steve Swinsburg
> >  wrote:
> >> Yes, the app is rendered in an iframe as my app is deployed into a
> portal
> >> container. I pasted that HTML from the iframe source, but here is the
> whole
> >> lot:
> >> http://pastie.org/819416
> >> Line 21 has the import for the css.
> >> Line 55 is a ContextImage
> >> The iframe source
> >> is: src="
> https://myserver.edu.au/portal/tool/138a11eb-bcee-4b13-b6c5-d7bf206980ea?panel=Main
> "
> >> and that renders the tool.
> >> Using the padlock in the bottom right of Firefox, and analysing the
> Media,
> >> gives all images that are loaded on the page, and all of those that come
> >> from this app are http only, the rest that come from the portal
> container
> >> are https as normal. Changing the address to http and refreshing makes
> the
> >> portal container urls change to http as expected.
> >>
> >> thanks,
> >> Steve
> >>
> >> On 11/02/2010, at 1:45 PM, Jeremy Thomerson wrote:
> >>
> >> Well, can you paste the actual html that is generated that links to your
> >> stylesheet on the https page?  Because what you pasted earlier was a
> >> relative URL, which would mean that the browser would make it https as
> >> well.  So, they're some piece of the puzzle we haven't received yet.
> >> Perhaps you could browse to the https page, view source, copy the whole
> >> source into pastebin and send it?
> >>
> >> Are you using iframes or anything?
> >>
> >> --
> >> Jeremy Thomerson
> >> http://www.wickettraining.com
> >>
> >>
> >>
> >> On Wed, Feb 10, 2010 at 8:29 PM, Steve Swinsburg
> >> wrote:
> >>
> >> Edit: ... thats how I can confirm it was broken, because when I change
> it
> >>
> >> to http it works.
> >>
> >>
> >>
> >> On 11/02/2010, at 1:26 PM, Steve Swinsburg wrote:
> >>
> >> Yes. And thats how I can confirm it breaks when I change the address to
> >>
> >> just http. Both http and https work on this particular site which makes
> it
> >>
> >> easy for testing.
> >>
> >> The address is https and then it renders the content in an iframe with
> >>
> >> source attribute that is also https (I'm working in a portal framework).
> >>
> >>
> >>
> >> On 11/02/2010, at 1:00 PM, Andrew Lombardi wrote:
> >>
> >> and the URL for your page in the Location bar *is* https?
> >>
> >> On Feb 10, 2010, at 5:55 PM, Steve Swinsburg wrote:
> >>
> >> What I meant to say was that the ContextImage and CSS looks fine,
> >>
> >> however the actual URLs it renders are all HTTP, not HTTPS when they
> should
> >>
> >> be. The first resource link is clearly broken.
> >>
> >> cheers,
> >>
> >> Steve
> >>
> >>
> >>
> >> On 11/02/2010, at 12:13 PM, Steve Swinsburg wrote:
> >>
> >> Hi Jeremy,
> >>
> >> For resources its rendered as
> >>
> >>
> http://myserver/webapp/context/resources/org.apache.wicket.ajax.AbstractDefaultBehaviour/indicator.gif
> >>
> >> For a ContextImage its:
> >>
> >> 
> >>
> >> For the CSS include its:
> >>
> >> 
> >>
> >> It all looks fine except the styles.css that has the classes are
> >>
> >> sending the images over HTTP, and they declare like:
> >>
> >>
> >>
> >> .someClass {
> >>
> >> background-image: url(/library/image/silk/icon.png);
> >>
> >> }
> >>
> >>
> >>
> >>
> >> cheers,
> >>
> >> Steve
> >>
> >>
> >>
> >>
> >>
> >> On 11/02/2010, at 11:53 AM, Jeremy Thomerson wrote:
> >>
> >> What URL does Wicket generate in your HTML?
> >>
> >> --
> >>
> >> Jeremy Thomerson
> >>
> >> http://www.wickettraining.com
> >>
> >>
> >>
> >> On Wed, Feb 10, 2010 at 6:46 PM, Steve Swinsburg
> >>
> >> wrote:
> >>
> >> Note that this also happens for resources that Wicket serves, eg:
> >>
> >>
> >> resources/org.apache.wicket.ajax.AbstractDefaultBehaviour/indicator.gif
> >>
> >> and ContextImages.
> >>
> >> Can I detect HTTPS and force Wicket to serve content over HTTPS?
> >>
> >> thanks,
> >>
> >> Steve
> >>
> >>
> >> On 11/02/2010, at 11:14 AM, Steve Swinsburg wrote:
> >>
> >> The request for the CSS is a renderCssReference call:
> >>
> >> response.renderCSSReference("css/styles.css");
> >>
> >> So it should be relative to

Re: wicket app over https but renders some images as http

2010-02-10 Thread Steve Swinsburg
Ok I did that, the Wicket app comes up as as HTTP, however if I do the same 
thing to any that renders in the same style of iframe, it's HTTPS. these tools 
are other display technologies, like JSF, Velocity, etc.

Here's the first Wicket app:
http://server.edu.au/portal/tool/138a11eb-bcee-4b13-b6c5-d7bf206980ea/?panel=Main

Here's a Velocity app in in the same page:
https://server.edu.au/portal/tool/f85ba967-614f-4d5d-81cc-1d931f660b93?panel=Main

The URL of the entire site is:
https://server.edu.au/portal/site/test123/page/3881df23-3931-4928-9d36-702629927ba0

I have another Wicket app that another developer wrote, same thing, HTTP only. 
So it's only Wicket tools that are doing this.

thanks,
Steve



On 11/02/2010, at 3:22 PM, Jeremy Thomerson wrote:

> What I've suspected all along is that your main page MAY be loaded https,
> but that your iframe src is actually ending up http.
> 
> do this (in firefox): pull up the app in https, right click in the iframe,
> click "this frame", click "show only this frame".  is the url that appears
> with the iframe content https?
> 
> --
> Jeremy Thomerson
> http://www.wickettraining.com
> 
> 
> 
> On Wed, Feb 10, 2010 at 9:57 PM, Steve Swinsburg
> wrote:
> 
>> Exactly. So why are they coming up as HTTP when both the URL and iframe src
>> are both HTTPS. All resources that Wicket sends from this application are
>> coming up as HTTP. So I am thinking it still thinks its on HTTP, not HTTPS.
>> 
>> I'll add some logging to the Application init() to figure out if Wicket
>> thinks its on HTTP or HTTPS.
>> 
>> Could be the iframe?
>> 
>> thanks,
>> Steve
>> 
>> 
>> On 11/02/2010, at 2:48 PM, Igor Vaynberg wrote:
>> 
>>> your paste does not contain any absolute urls, only relative ones...
>>> 
>>> -igor
>>> 
>>> On Wed, Feb 10, 2010 at 7:15 PM, Steve Swinsburg
>>>  wrote:
 Yes, the app is rendered in an iframe as my app is deployed into a
>> portal
 container. I pasted that HTML from the iframe source, but here is the
>> whole
 lot:
 http://pastie.org/819416
 Line 21 has the import for the css.
 Line 55 is a ContextImage
 The iframe source
 is: src="
>> https://myserver.edu.au/portal/tool/138a11eb-bcee-4b13-b6c5-d7bf206980ea?panel=Main
>> "
 and that renders the tool.
 Using the padlock in the bottom right of Firefox, and analysing the
>> Media,
 gives all images that are loaded on the page, and all of those that come
 from this app are http only, the rest that come from the portal
>> container
 are https as normal. Changing the address to http and refreshing makes
>> the
 portal container urls change to http as expected.
 
 thanks,
 Steve
 
 On 11/02/2010, at 1:45 PM, Jeremy Thomerson wrote:
 
 Well, can you paste the actual html that is generated that links to your
 stylesheet on the https page?  Because what you pasted earlier was a
 relative URL, which would mean that the browser would make it https as
 well.  So, they're some piece of the puzzle we haven't received yet.
 Perhaps you could browse to the https page, view source, copy the whole
 source into pastebin and send it?
 
 Are you using iframes or anything?
 
 --
 Jeremy Thomerson
 http://www.wickettraining.com
 
 
 
 On Wed, Feb 10, 2010 at 8:29 PM, Steve Swinsburg
 wrote:
 
 Edit: ... thats how I can confirm it was broken, because when I change
>> it
 
 to http it works.
 
 
 
 On 11/02/2010, at 1:26 PM, Steve Swinsburg wrote:
 
 Yes. And thats how I can confirm it breaks when I change the address to
 
 just http. Both http and https work on this particular site which makes
>> it
 
 easy for testing.
 
 The address is https and then it renders the content in an iframe with
 
 source attribute that is also https (I'm working in a portal framework).
 
 
 
 On 11/02/2010, at 1:00 PM, Andrew Lombardi wrote:
 
 and the URL for your page in the Location bar *is* https?
 
 On Feb 10, 2010, at 5:55 PM, Steve Swinsburg wrote:
 
 What I meant to say was that the ContextImage and CSS looks fine,
 
 however the actual URLs it renders are all HTTP, not HTTPS when they
>> should
 
 be. The first resource link is clearly broken.
 
 cheers,
 
 Steve
 
 
 
 On 11/02/2010, at 12:13 PM, Steve Swinsburg wrote:
 
 Hi Jeremy,
 
 For resources its rendered as
 
 
>> http://myserver/webapp/context/resources/org.apache.wicket.ajax.AbstractDefaultBehaviour/indicator.gif
 
 For a ContextImage its:
 
 
 
 For the CSS include its:
 
 
 
 It all looks fine except the styles.css that has the classes are
 
 sending the images over HTTP, and they declare like:
 
 
 
 .someClass {
 
 background-image: url(/library/image/silk/icon.png);
 
 

Re: wicket app over https but renders some images as http

2010-02-10 Thread Andrew Lombardi
what's the code you're using to render the link for the iframe in wicket?  have 
you pasted that yet?

On Feb 10, 2010, at 8:32 PM, Steve Swinsburg wrote:

> Ok I did that, the Wicket app comes up as as HTTP, however if I do the same 
> thing to any that renders in the same style of iframe, it's HTTPS. these 
> tools are other display technologies, like JSF, Velocity, etc.
> 
> Here's the first Wicket app:
> http://server.edu.au/portal/tool/138a11eb-bcee-4b13-b6c5-d7bf206980ea/?panel=Main
> 
> Here's a Velocity app in in the same page:
> https://server.edu.au/portal/tool/f85ba967-614f-4d5d-81cc-1d931f660b93?panel=Main
> 
> The URL of the entire site is:
> https://server.edu.au/portal/site/test123/page/3881df23-3931-4928-9d36-702629927ba0
> 
> I have another Wicket app that another developer wrote, same thing, HTTP 
> only. So it's only Wicket tools that are doing this.
> 
> thanks,
> Steve
> 
> 
> 
> On 11/02/2010, at 3:22 PM, Jeremy Thomerson wrote:
> 
>> What I've suspected all along is that your main page MAY be loaded https,
>> but that your iframe src is actually ending up http.
>> 
>> do this (in firefox): pull up the app in https, right click in the iframe,
>> click "this frame", click "show only this frame".  is the url that appears
>> with the iframe content https?
>> 
>> --
>> Jeremy Thomerson
>> http://www.wickettraining.com
>> 
>> 
>> 
>> On Wed, Feb 10, 2010 at 9:57 PM, Steve Swinsburg
>> wrote:
>> 
>>> Exactly. So why are they coming up as HTTP when both the URL and iframe src
>>> are both HTTPS. All resources that Wicket sends from this application are
>>> coming up as HTTP. So I am thinking it still thinks its on HTTP, not HTTPS.
>>> 
>>> I'll add some logging to the Application init() to figure out if Wicket
>>> thinks its on HTTP or HTTPS.
>>> 
>>> Could be the iframe?
>>> 
>>> thanks,
>>> Steve
>>> 
>>> 
>>> On 11/02/2010, at 2:48 PM, Igor Vaynberg wrote:
>>> 
 your paste does not contain any absolute urls, only relative ones...
 
 -igor
 
 On Wed, Feb 10, 2010 at 7:15 PM, Steve Swinsburg
  wrote:
> Yes, the app is rendered in an iframe as my app is deployed into a
>>> portal
> container. I pasted that HTML from the iframe source, but here is the
>>> whole
> lot:
> http://pastie.org/819416
> Line 21 has the import for the css.
> Line 55 is a ContextImage
> The iframe source
> is: src="
>>> https://myserver.edu.au/portal/tool/138a11eb-bcee-4b13-b6c5-d7bf206980ea?panel=Main
>>> "
> and that renders the tool.
> Using the padlock in the bottom right of Firefox, and analysing the
>>> Media,
> gives all images that are loaded on the page, and all of those that come
> from this app are http only, the rest that come from the portal
>>> container
> are https as normal. Changing the address to http and refreshing makes
>>> the
> portal container urls change to http as expected.
> 
> thanks,
> Steve
> 
> On 11/02/2010, at 1:45 PM, Jeremy Thomerson wrote:
> 
> Well, can you paste the actual html that is generated that links to your
> stylesheet on the https page?  Because what you pasted earlier was a
> relative URL, which would mean that the browser would make it https as
> well.  So, they're some piece of the puzzle we haven't received yet.
> Perhaps you could browse to the https page, view source, copy the whole
> source into pastebin and send it?
> 
> Are you using iframes or anything?
> 
> --
> Jeremy Thomerson
> http://www.wickettraining.com
> 
> 
> 
> On Wed, Feb 10, 2010 at 8:29 PM, Steve Swinsburg
> wrote:
> 
> Edit: ... thats how I can confirm it was broken, because when I change
>>> it
> 
> to http it works.
> 
> 
> 
> On 11/02/2010, at 1:26 PM, Steve Swinsburg wrote:
> 
> Yes. And thats how I can confirm it breaks when I change the address to
> 
> just http. Both http and https work on this particular site which makes
>>> it
> 
> easy for testing.
> 
> The address is https and then it renders the content in an iframe with
> 
> source attribute that is also https (I'm working in a portal framework).
> 
> 
> 
> On 11/02/2010, at 1:00 PM, Andrew Lombardi wrote:
> 
> and the URL for your page in the Location bar *is* https?
> 
> On Feb 10, 2010, at 5:55 PM, Steve Swinsburg wrote:
> 
> What I meant to say was that the ContextImage and CSS looks fine,
> 
> however the actual URLs it renders are all HTTP, not HTTPS when they
>>> should
> 
> be. The first resource link is clearly broken.
> 
> cheers,
> 
> Steve
> 
> 
> 
> On 11/02/2010, at 12:13 PM, Steve Swinsburg wrote:
> 
> Hi Jeremy,
> 
> For resources its rendered as
> 
> 
>>> http://myserver/webapp/context/resources/org.apache.wicket.ajax.AbstractDefaultBehaviour/indicator.gif
> 
> 

Re: wicket app over https but renders some images as http

2010-02-10 Thread Jeremy Thomerson
okay, so now at least we know what's causing it.  the frame is redirected to
http.  now, we have to determine what's making your wicket request redirect
to http.

you might supply a couple things:
- your web.xml for the wicket app
- any customized code you have in the request cycle processor
- an idea of what kind of app - i.e. are you inheriting from a non-standard
application class (say, spring*application, brix*application, etc...) that
might be controlling the request cycle?

--
Jeremy Thomerson
http://www.wickettraining.com



On Wed, Feb 10, 2010 at 10:49 PM, Steve Swinsburg  wrote:

> It's done by the portal, but it renders an iframe of source:
>
> src="
>
> https://myserver.edu.au/portal/tool/138a11eb-bcee-4b13-b6c5-d7bf206980ea
>
>
> Which is the direct link to the tool instance.
>
> So it appears to be HTTPS, but then reverts to HTTP for some reason. If I
> go to that URL in my browser, with HTTPS intact, it will revert to HTTP in
> front of me. If I grab the iframe source for another tool, say a Velocity
> based tool, the url is similar, still HTTPS, and stays HTTPS when viewing
> it.
>
> thanks,
> Steve
>
>
>
> On 11/02/2010, at 3:36 PM, Andrew Lombardi wrote:
>
> what's the code you're using to render the link for the iframe in wicket?
>  have you pasted that yet?
>
> On Feb 10, 2010, at 8:32 PM, Steve Swinsburg wrote:
>
> Ok I did that, the Wicket app comes up as as HTTP, however if I do the same
> thing to any that renders in the same style of iframe, it's HTTPS. these
> tools are other display technologies, like JSF, Velocity, etc.
>
>
> Here's the first Wicket app:
>
>
> http://server.edu.au/portal/tool/138a11eb-bcee-4b13-b6c5-d7bf206980ea/?panel=Main
>
>
> Here's a Velocity app in in the same page:
>
>
> https://server.edu.au/portal/tool/f85ba967-614f-4d5d-81cc-1d931f660b93?panel=Main
>
>
> The URL of the entire site is:
>
>
> https://server.edu.au/portal/site/test123/page/3881df23-3931-4928-9d36-702629927ba0
>
>
> I have another Wicket app that another developer wrote, same thing, HTTP
> only. So it's only Wicket tools that are doing this.
>
>
> thanks,
>
> Steve
>
>
>
>
> On 11/02/2010, at 3:22 PM, Jeremy Thomerson wrote:
>
>
> What I've suspected all along is that your main page MAY be loaded https,
>
> but that your iframe src is actually ending up http.
>
>
> do this (in firefox): pull up the app in https, right click in the iframe,
>
> click "this frame", click "show only this frame".  is the url that appears
>
> with the iframe content https?
>
>
> --
>
> Jeremy Thomerson
>
> http://www.wickettraining.com
>
>
>
>
> On Wed, Feb 10, 2010 at 9:57 PM, Steve Swinsburg
>
> wrote:
>
>
> Exactly. So why are they coming up as HTTP when both the URL and iframe src
>
> are both HTTPS. All resources that Wicket sends from this application are
>
> coming up as HTTP. So I am thinking it still thinks its on HTTP, not HTTPS.
>
>
> I'll add some logging to the Application init() to figure out if Wicket
>
> thinks its on HTTP or HTTPS.
>
>
> Could be the iframe?
>
>
> thanks,
>
> Steve
>
>
>
> On 11/02/2010, at 2:48 PM, Igor Vaynberg wrote:
>
>
> your paste does not contain any absolute urls, only relative ones...
>
>
> -igor
>
>
> On Wed, Feb 10, 2010 at 7:15 PM, Steve Swinsburg
>
>  wrote:
>
> Yes, the app is rendered in an iframe as my app is deployed into a
>
> portal
>
> container. I pasted that HTML from the iframe source, but here is the
>
> whole
>
> lot:
>
> http://pastie.org/819416
>
> Line 21 has the import for the css.
>
> Line 55 is a ContextImage
>
> The iframe source
>
> is: src="
>
>
> https://myserver.edu.au/portal/tool/138a11eb-bcee-4b13-b6c5-d7bf206980ea?panel=Main
>
> "
>
> and that renders the tool.
>
> Using the padlock in the bottom right of Firefox, and analysing the
>
> Media,
>
> gives all images that are loaded on the page, and all of those that come
>
> from this app are http only, the rest that come from the portal
>
> container
>
> are https as normal. Changing the address to http and refreshing makes
>
> the
>
> portal container urls change to http as expected.
>
>
> thanks,
>
> Steve
>
>
> On 11/02/2010, at 1:45 PM, Jeremy Thomerson wrote:
>
>
> Well, can you paste the actual html that is generated that links to your
>
> stylesheet on the https page?  Because what you pasted earlier was a
>
> relative URL, which would mean that the browser would make it https as
>
> well.  So, they're some piece of the puzzle we haven't received yet.
>
> Perhaps you could browse to the https page, view source, copy the whole
>
> source into pastebin and send it?
>
>
> Are you using iframes or anything?
>
>
> --
>
> Jeremy Thomerson
>
> http://www.wickettraining.com
>
>
>
>
> On Wed, Feb 10, 2010 at 8:29 PM, Steve Swinsburg
>
> wrote:
>
>
> Edit: ... thats how I can confirm it was broken, because when I change
>
> it
>
>
> to http it works.
>
>
>
>
> On 11/02/2010, at 1:26 PM, Steve Swinsburg wrote:
>
>
> Yes. And thats how I can confirm it breaks when I change the address to
>
>
> jus

Re: wicket app over https but renders some images as http

2010-02-10 Thread Steve Swinsburg
Ok the web.xml

http://pastie.org/819535

Note that requests ARE filtered through the portal's request filter, however 
one would assume that if it's going to change HTTPS to HTTP, it would do so for 
ALL tools, not just Wicket ones.

The rest is all standard stuff extending WebApplication and the 
Application.init() is pretty much empty except for things like setting the 
expired page, stripping the Wicket tags, etc etc, a couple of snippets on how 
it gets from the Application to the first page:
http://pastie.org/819541

And the BasePage:
http://pastie.org/819544

thanks,
Steve


On 11/02/2010, at 3:57 PM, Jeremy Thomerson wrote:

> okay, so now at least we know what's causing it.  the frame is redirected to
> http.  now, we have to determine what's making your wicket request redirect
> to http.
> 
> you might supply a couple things:
> - your web.xml for the wicket app
> - any customized code you have in the request cycle processor
> - an idea of what kind of app - i.e. are you inheriting from a non-standard
> application class (say, spring*application, brix*application, etc...) that
> might be controlling the request cycle?
> 
> --
> Jeremy Thomerson
> http://www.wickettraining.com
> 
> 
> 
> On Wed, Feb 10, 2010 at 10:49 PM, Steve Swinsburg > wrote:
> 
>> It's done by the portal, but it renders an iframe of source:
>> 
>> src="
>> 
>> https://myserver.edu.au/portal/tool/138a11eb-bcee-4b13-b6c5-d7bf206980ea
>> 
>> 
>> Which is the direct link to the tool instance.
>> 
>> So it appears to be HTTPS, but then reverts to HTTP for some reason. If I
>> go to that URL in my browser, with HTTPS intact, it will revert to HTTP in
>> front of me. If I grab the iframe source for another tool, say a Velocity
>> based tool, the url is similar, still HTTPS, and stays HTTPS when viewing
>> it.
>> 
>> thanks,
>> Steve
>> 
>> 
>> 
>> On 11/02/2010, at 3:36 PM, Andrew Lombardi wrote:
>> 
>> what's the code you're using to render the link for the iframe in wicket?
>> have you pasted that yet?
>> 
>> On Feb 10, 2010, at 8:32 PM, Steve Swinsburg wrote:
>> 
>> Ok I did that, the Wicket app comes up as as HTTP, however if I do the same
>> thing to any that renders in the same style of iframe, it's HTTPS. these
>> tools are other display technologies, like JSF, Velocity, etc.
>> 
>> 
>> Here's the first Wicket app:
>> 
>> 
>> http://server.edu.au/portal/tool/138a11eb-bcee-4b13-b6c5-d7bf206980ea/?panel=Main
>> 
>> 
>> Here's a Velocity app in in the same page:
>> 
>> 
>> https://server.edu.au/portal/tool/f85ba967-614f-4d5d-81cc-1d931f660b93?panel=Main
>> 
>> 
>> The URL of the entire site is:
>> 
>> 
>> https://server.edu.au/portal/site/test123/page/3881df23-3931-4928-9d36-702629927ba0
>> 
>> 
>> I have another Wicket app that another developer wrote, same thing, HTTP
>> only. So it's only Wicket tools that are doing this.
>> 
>> 
>> thanks,
>> 
>> Steve
>> 
>> 
>> 
>> 
>> On 11/02/2010, at 3:22 PM, Jeremy Thomerson wrote:
>> 
>> 
>> What I've suspected all along is that your main page MAY be loaded https,
>> 
>> but that your iframe src is actually ending up http.
>> 
>> 
>> do this (in firefox): pull up the app in https, right click in the iframe,
>> 
>> click "this frame", click "show only this frame".  is the url that appears
>> 
>> with the iframe content https?
>> 
>> 
>> --
>> 
>> Jeremy Thomerson
>> 
>> http://www.wickettraining.com
>> 
>> 
>> 
>> 
>> On Wed, Feb 10, 2010 at 9:57 PM, Steve Swinsburg
>> 
>> wrote:
>> 
>> 
>> Exactly. So why are they coming up as HTTP when both the URL and iframe src
>> 
>> are both HTTPS. All resources that Wicket sends from this application are
>> 
>> coming up as HTTP. So I am thinking it still thinks its on HTTP, not HTTPS.
>> 
>> 
>> I'll add some logging to the Application init() to figure out if Wicket
>> 
>> thinks its on HTTP or HTTPS.
>> 
>> 
>> Could be the iframe?
>> 
>> 
>> thanks,
>> 
>> Steve
>> 
>> 
>> 
>> On 11/02/2010, at 2:48 PM, Igor Vaynberg wrote:
>> 
>> 
>> your paste does not contain any absolute urls, only relative ones...
>> 
>> 
>> -igor
>> 
>> 
>> On Wed, Feb 10, 2010 at 7:15 PM, Steve Swinsburg
>> 
>>  wrote:
>> 
>> Yes, the app is rendered in an iframe as my app is deployed into a
>> 
>> portal
>> 
>> container. I pasted that HTML from the iframe source, but here is the
>> 
>> whole
>> 
>> lot:
>> 
>> http://pastie.org/819416
>> 
>> Line 21 has the import for the css.
>> 
>> Line 55 is a ContextImage
>> 
>> The iframe source
>> 
>> is: src="
>> 
>> 
>> https://myserver.edu.au/portal/tool/138a11eb-bcee-4b13-b6c5-d7bf206980ea?panel=Main
>> 
>> "
>> 
>> and that renders the tool.
>> 
>> Using the padlock in the bottom right of Firefox, and analysing the
>> 
>> Media,
>> 
>> gives all images that are loaded on the page, and all of those that come
>> 
>> from this app are http only, the rest that come from the portal
>> 
>> container
>> 
>> are https as normal. Changing the address to http and refreshing makes
>> 
>> the
>> 
>> portal container urls change to http 

Re: wicket app over https but renders some images as http

2010-02-10 Thread Igor Vaynberg
it may be that this servlet filter is rewriting any redirects. by
default wicket uses redirect to buffer pattern, i doubt velocity or
your other tools are doing something similar. try changing the
rendering pattern in wicket to direct_to_render and see if that helps.

-igor

On Wed, Feb 10, 2010 at 8:49 PM, Steve Swinsburg
 wrote:
> It's done by the portal, but it renders an iframe of source:
>
> src="
>
> https://myserver.edu.au/portal/tool/138a11eb-bcee-4b13-b6c5-d7bf206980ea
>
> Which is the direct link to the tool instance.
> So it appears to be HTTPS, but then reverts to HTTP for some reason. If I go
> to that URL in my browser, with HTTPS intact, it will revert to HTTP in
> front of me. If I grab the iframe source for another tool, say a Velocity
> based tool, the url is similar, still HTTPS, and stays HTTPS when viewing
> it.
> thanks,
> Steve
>
>
> On 11/02/2010, at 3:36 PM, Andrew Lombardi wrote:
>
> what's the code you're using to render the link for the iframe in wicket?
>  have you pasted that yet?
>
> On Feb 10, 2010, at 8:32 PM, Steve Swinsburg wrote:
>
> Ok I did that, the Wicket app comes up as as HTTP, however if I do the same
> thing to any that renders in the same style of iframe, it's HTTPS. these
> tools are other display technologies, like JSF, Velocity, etc.
>
> Here's the first Wicket app:
>
> http://server.edu.au/portal/tool/138a11eb-bcee-4b13-b6c5-d7bf206980ea/?panel=Main
>
> Here's a Velocity app in in the same page:
>
> https://server.edu.au/portal/tool/f85ba967-614f-4d5d-81cc-1d931f660b93?panel=Main
>
> The URL of the entire site is:
>
> https://server.edu.au/portal/site/test123/page/3881df23-3931-4928-9d36-702629927ba0
>
> I have another Wicket app that another developer wrote, same thing, HTTP
> only. So it's only Wicket tools that are doing this.
>
> thanks,
>
> Steve
>
>
>
> On 11/02/2010, at 3:22 PM, Jeremy Thomerson wrote:
>
> What I've suspected all along is that your main page MAY be loaded https,
>
> but that your iframe src is actually ending up http.
>
> do this (in firefox): pull up the app in https, right click in the iframe,
>
> click "this frame", click "show only this frame".  is the url that appears
>
> with the iframe content https?
>
> --
>
> Jeremy Thomerson
>
> http://www.wickettraining.com
>
>
>
> On Wed, Feb 10, 2010 at 9:57 PM, Steve Swinsburg
>
> wrote:
>
> Exactly. So why are they coming up as HTTP when both the URL and iframe src
>
> are both HTTPS. All resources that Wicket sends from this application are
>
> coming up as HTTP. So I am thinking it still thinks its on HTTP, not HTTPS.
>
> I'll add some logging to the Application init() to figure out if Wicket
>
> thinks its on HTTP or HTTPS.
>
> Could be the iframe?
>
> thanks,
>
> Steve
>
>
> On 11/02/2010, at 2:48 PM, Igor Vaynberg wrote:
>
> your paste does not contain any absolute urls, only relative ones...
>
> -igor
>
> On Wed, Feb 10, 2010 at 7:15 PM, Steve Swinsburg
>
>  wrote:
>
> Yes, the app is rendered in an iframe as my app is deployed into a
>
> portal
>
> container. I pasted that HTML from the iframe source, but here is the
>
> whole
>
> lot:
>
> http://pastie.org/819416
>
> Line 21 has the import for the css.
>
> Line 55 is a ContextImage
>
> The iframe source
>
> is: src="
>
> https://myserver.edu.au/portal/tool/138a11eb-bcee-4b13-b6c5-d7bf206980ea?panel=Main
>
> "
>
> and that renders the tool.
>
> Using the padlock in the bottom right of Firefox, and analysing the
>
> Media,
>
> gives all images that are loaded on the page, and all of those that come
>
> from this app are http only, the rest that come from the portal
>
> container
>
> are https as normal. Changing the address to http and refreshing makes
>
> the
>
> portal container urls change to http as expected.
>
> thanks,
>
> Steve
>
> On 11/02/2010, at 1:45 PM, Jeremy Thomerson wrote:
>
> Well, can you paste the actual html that is generated that links to your
>
> stylesheet on the https page?  Because what you pasted earlier was a
>
> relative URL, which would mean that the browser would make it https as
>
> well.  So, they're some piece of the puzzle we haven't received yet.
>
> Perhaps you could browse to the https page, view source, copy the whole
>
> source into pastebin and send it?
>
> Are you using iframes or anything?
>
> --
>
> Jeremy Thomerson
>
> http://www.wickettraining.com
>
>
>
> On Wed, Feb 10, 2010 at 8:29 PM, Steve Swinsburg
>
> wrote:
>
> Edit: ... thats how I can confirm it was broken, because when I change
>
> it
>
> to http it works.
>
>
>
> On 11/02/2010, at 1:26 PM, Steve Swinsburg wrote:
>
> Yes. And thats how I can confirm it breaks when I change the address to
>
> just http. Both http and https work on this particular site which makes
>
> it
>
> easy for testing.
>
> The address is https and then it renders the content in an iframe with
>
> source attribute that is also https (I'm working in a portal framework).
>
>
>
> On 11/02/2010, at 1:00 PM, Andrew Lombardi wrote:
>
> and the URL for your page 

Re: wicket app over https but renders some images as http

2010-02-10 Thread Steve Swinsburg
The interesting thing is that I am unable to reproduce this locally, the iframe 
is served over HTTPS in my local instance but broken in production. So I'm 
starting to think it's a Tomcat config issue. I've sent a note out to the 
sysadmin to check the Tomcat connector settings. One thing is that the prod 
instance is using Apache in front of Tomcat, but I am just using an SSL enabled 
Tomcat. I'mm bring up an Apache instance and see if I can break it.

Igor how do I change the rendering pattern? I will try that locally.

thanks.
Steve


On 11/02/2010, at 6:11 PM, Igor Vaynberg wrote:

> it may be that this servlet filter is rewriting any redirects. by
> default wicket uses redirect to buffer pattern, i doubt velocity or
> your other tools are doing something similar. try changing the
> rendering pattern in wicket to direct_to_render and see if that helps.
> 
> -igor
> 
> On Wed, Feb 10, 2010 at 8:49 PM, Steve Swinsburg
>  wrote:
>> It's done by the portal, but it renders an iframe of source:
>> 
>> src="
>> 
>> https://myserver.edu.au/portal/tool/138a11eb-bcee-4b13-b6c5-d7bf206980ea
>> 
>> Which is the direct link to the tool instance.
>> So it appears to be HTTPS, but then reverts to HTTP for some reason. If I go
>> to that URL in my browser, with HTTPS intact, it will revert to HTTP in
>> front of me. If I grab the iframe source for another tool, say a Velocity
>> based tool, the url is similar, still HTTPS, and stays HTTPS when viewing
>> it.
>> thanks,
>> Steve
>> 
>> 
>> On 11/02/2010, at 3:36 PM, Andrew Lombardi wrote:
>> 
>> what's the code you're using to render the link for the iframe in wicket?
>>  have you pasted that yet?
>> 
>> On Feb 10, 2010, at 8:32 PM, Steve Swinsburg wrote:
>> 
>> Ok I did that, the Wicket app comes up as as HTTP, however if I do the same
>> thing to any that renders in the same style of iframe, it's HTTPS. these
>> tools are other display technologies, like JSF, Velocity, etc.
>> 
>> Here's the first Wicket app:
>> 
>> http://server.edu.au/portal/tool/138a11eb-bcee-4b13-b6c5-d7bf206980ea/?panel=Main
>> 
>> Here's a Velocity app in in the same page:
>> 
>> https://server.edu.au/portal/tool/f85ba967-614f-4d5d-81cc-1d931f660b93?panel=Main
>> 
>> The URL of the entire site is:
>> 
>> https://server.edu.au/portal/site/test123/page/3881df23-3931-4928-9d36-702629927ba0
>> 
>> I have another Wicket app that another developer wrote, same thing, HTTP
>> only. So it's only Wicket tools that are doing this.
>> 
>> thanks,
>> 
>> Steve
>> 
>> 
>> 
>> On 11/02/2010, at 3:22 PM, Jeremy Thomerson wrote:
>> 
>> What I've suspected all along is that your main page MAY be loaded https,
>> 
>> but that your iframe src is actually ending up http.
>> 
>> do this (in firefox): pull up the app in https, right click in the iframe,
>> 
>> click "this frame", click "show only this frame".  is the url that appears
>> 
>> with the iframe content https?
>> 
>> --
>> 
>> Jeremy Thomerson
>> 
>> http://www.wickettraining.com
>> 
>> 
>> 
>> On Wed, Feb 10, 2010 at 9:57 PM, Steve Swinsburg
>> 
>> wrote:
>> 
>> Exactly. So why are they coming up as HTTP when both the URL and iframe src
>> 
>> are both HTTPS. All resources that Wicket sends from this application are
>> 
>> coming up as HTTP. So I am thinking it still thinks its on HTTP, not HTTPS.
>> 
>> I'll add some logging to the Application init() to figure out if Wicket
>> 
>> thinks its on HTTP or HTTPS.
>> 
>> Could be the iframe?
>> 
>> thanks,
>> 
>> Steve
>> 
>> 
>> On 11/02/2010, at 2:48 PM, Igor Vaynberg wrote:
>> 
>> your paste does not contain any absolute urls, only relative ones...
>> 
>> -igor
>> 
>> On Wed, Feb 10, 2010 at 7:15 PM, Steve Swinsburg
>> 
>>  wrote:
>> 
>> Yes, the app is rendered in an iframe as my app is deployed into a
>> 
>> portal
>> 
>> container. I pasted that HTML from the iframe source, but here is the
>> 
>> whole
>> 
>> lot:
>> 
>> http://pastie.org/819416
>> 
>> Line 21 has the import for the css.
>> 
>> Line 55 is a ContextImage
>> 
>> The iframe source
>> 
>> is: src="
>> 
>> https://myserver.edu.au/portal/tool/138a11eb-bcee-4b13-b6c5-d7bf206980ea?panel=Main
>> 
>> "
>> 
>> and that renders the tool.
>> 
>> Using the padlock in the bottom right of Firefox, and analysing the
>> 
>> Media,
>> 
>> gives all images that are loaded on the page, and all of those that come
>> 
>> from this app are http only, the rest that come from the portal
>> 
>> container
>> 
>> are https as normal. Changing the address to http and refreshing makes
>> 
>> the
>> 
>> portal container urls change to http as expected.
>> 
>> thanks,
>> 
>> Steve
>> 
>> On 11/02/2010, at 1:45 PM, Jeremy Thomerson wrote:
>> 
>> Well, can you paste the actual html that is generated that links to your
>> 
>> stylesheet on the https page?  Because what you pasted earlier was a
>> 
>> relative URL, which would mean that the browser would make it https as
>> 
>> well.  So, they're some piece of the puzzle we haven't received yet.
>> 
>> Perhaps you could b

Re: wicket app over https but renders some images as http

2010-02-10 Thread Igor Vaynberg
getrequestcyclesettings().setrenderstrategy(one_pass_render)

-igor

On Wed, Feb 10, 2010 at 11:20 PM, Steve Swinsburg
 wrote:
> The interesting thing is that I am unable to reproduce this locally, the 
> iframe is served over HTTPS in my local instance but broken in production. So 
> I'm starting to think it's a Tomcat config issue. I've sent a note out to the 
> sysadmin to check the Tomcat connector settings. One thing is that the prod 
> instance is using Apache in front of Tomcat, but I am just using an SSL 
> enabled Tomcat. I'mm bring up an Apache instance and see if I can break it.
>
> Igor how do I change the rendering pattern? I will try that locally.
>
> thanks.
> Steve
>
>
> On 11/02/2010, at 6:11 PM, Igor Vaynberg wrote:
>
>> it may be that this servlet filter is rewriting any redirects. by
>> default wicket uses redirect to buffer pattern, i doubt velocity or
>> your other tools are doing something similar. try changing the
>> rendering pattern in wicket to direct_to_render and see if that helps.
>>
>> -igor
>>
>> On Wed, Feb 10, 2010 at 8:49 PM, Steve Swinsburg
>>  wrote:
>>> It's done by the portal, but it renders an iframe of source:
>>>
>>> src="
>>>
>>> https://myserver.edu.au/portal/tool/138a11eb-bcee-4b13-b6c5-d7bf206980ea
>>>
>>> Which is the direct link to the tool instance.
>>> So it appears to be HTTPS, but then reverts to HTTP for some reason. If I go
>>> to that URL in my browser, with HTTPS intact, it will revert to HTTP in
>>> front of me. If I grab the iframe source for another tool, say a Velocity
>>> based tool, the url is similar, still HTTPS, and stays HTTPS when viewing
>>> it.
>>> thanks,
>>> Steve
>>>
>>>
>>> On 11/02/2010, at 3:36 PM, Andrew Lombardi wrote:
>>>
>>> what's the code you're using to render the link for the iframe in wicket?
>>>  have you pasted that yet?
>>>
>>> On Feb 10, 2010, at 8:32 PM, Steve Swinsburg wrote:
>>>
>>> Ok I did that, the Wicket app comes up as as HTTP, however if I do the same
>>> thing to any that renders in the same style of iframe, it's HTTPS. these
>>> tools are other display technologies, like JSF, Velocity, etc.
>>>
>>> Here's the first Wicket app:
>>>
>>> http://server.edu.au/portal/tool/138a11eb-bcee-4b13-b6c5-d7bf206980ea/?panel=Main
>>>
>>> Here's a Velocity app in in the same page:
>>>
>>> https://server.edu.au/portal/tool/f85ba967-614f-4d5d-81cc-1d931f660b93?panel=Main
>>>
>>> The URL of the entire site is:
>>>
>>> https://server.edu.au/portal/site/test123/page/3881df23-3931-4928-9d36-702629927ba0
>>>
>>> I have another Wicket app that another developer wrote, same thing, HTTP
>>> only. So it's only Wicket tools that are doing this.
>>>
>>> thanks,
>>>
>>> Steve
>>>
>>>
>>>
>>> On 11/02/2010, at 3:22 PM, Jeremy Thomerson wrote:
>>>
>>> What I've suspected all along is that your main page MAY be loaded https,
>>>
>>> but that your iframe src is actually ending up http.
>>>
>>> do this (in firefox): pull up the app in https, right click in the iframe,
>>>
>>> click "this frame", click "show only this frame".  is the url that appears
>>>
>>> with the iframe content https?
>>>
>>> --
>>>
>>> Jeremy Thomerson
>>>
>>> http://www.wickettraining.com
>>>
>>>
>>>
>>> On Wed, Feb 10, 2010 at 9:57 PM, Steve Swinsburg
>>>
>>> wrote:
>>>
>>> Exactly. So why are they coming up as HTTP when both the URL and iframe src
>>>
>>> are both HTTPS. All resources that Wicket sends from this application are
>>>
>>> coming up as HTTP. So I am thinking it still thinks its on HTTP, not HTTPS.
>>>
>>> I'll add some logging to the Application init() to figure out if Wicket
>>>
>>> thinks its on HTTP or HTTPS.
>>>
>>> Could be the iframe?
>>>
>>> thanks,
>>>
>>> Steve
>>>
>>>
>>> On 11/02/2010, at 2:48 PM, Igor Vaynberg wrote:
>>>
>>> your paste does not contain any absolute urls, only relative ones...
>>>
>>> -igor
>>>
>>> On Wed, Feb 10, 2010 at 7:15 PM, Steve Swinsburg
>>>
>>>  wrote:
>>>
>>> Yes, the app is rendered in an iframe as my app is deployed into a
>>>
>>> portal
>>>
>>> container. I pasted that HTML from the iframe source, but here is the
>>>
>>> whole
>>>
>>> lot:
>>>
>>> http://pastie.org/819416
>>>
>>> Line 21 has the import for the css.
>>>
>>> Line 55 is a ContextImage
>>>
>>> The iframe source
>>>
>>> is: src="
>>>
>>> https://myserver.edu.au/portal/tool/138a11eb-bcee-4b13-b6c5-d7bf206980ea?panel=Main
>>>
>>> "
>>>
>>> and that renders the tool.
>>>
>>> Using the padlock in the bottom right of Firefox, and analysing the
>>>
>>> Media,
>>>
>>> gives all images that are loaded on the page, and all of those that come
>>>
>>> from this app are http only, the rest that come from the portal
>>>
>>> container
>>>
>>> are https as normal. Changing the address to http and refreshing makes
>>>
>>> the
>>>
>>> portal container urls change to http as expected.
>>>
>>> thanks,
>>>
>>> Steve
>>>
>>> On 11/02/2010, at 1:45 PM, Jeremy Thomerson wrote:
>>>
>>> Well, can you paste the actual html that is generated that links to your
>>>
>>> stylesheet o

Re: wicket app over https but renders some images as http

2010-02-10 Thread Steve Swinsburg
I think I may have this sorted. It seems localised to one production instance 
only and an acceptance machine with a similar setup to the production machine 
is not showing the symptoms (and I can't reproduce in dev). It certainly was an 
odd one. Must be the server configuration. Thanks for all the replies, I think 
we've all learned something today ;)

cheers,
Steve



On 11/02/2010, at 6:20 PM, Steve Swinsburg wrote:

> The interesting thing is that I am unable to reproduce this locally, the 
> iframe is served over HTTPS in my local instance but broken in production. So 
> I'm starting to think it's a Tomcat config issue. I've sent a note out to the 
> sysadmin to check the Tomcat connector settings. One thing is that the prod 
> instance is using Apache in front of Tomcat, but I am just using an SSL 
> enabled Tomcat. I'mm bring up an Apache instance and see if I can break it.
> 
> Igor how do I change the rendering pattern? I will try that locally.
> 
> thanks.
> Steve
> 
> 
> On 11/02/2010, at 6:11 PM, Igor Vaynberg wrote:
> 
>> it may be that this servlet filter is rewriting any redirects. by
>> default wicket uses redirect to buffer pattern, i doubt velocity or
>> your other tools are doing something similar. try changing the
>> rendering pattern in wicket to direct_to_render and see if that helps.
>> 
>> -igor
>> 
>> On Wed, Feb 10, 2010 at 8:49 PM, Steve Swinsburg
>>  wrote:
>>> It's done by the portal, but it renders an iframe of source:
>>> 
>>> src="
>>> 
>>> https://myserver.edu.au/portal/tool/138a11eb-bcee-4b13-b6c5-d7bf206980ea
>>> 
>>> Which is the direct link to the tool instance.
>>> So it appears to be HTTPS, but then reverts to HTTP for some reason. If I go
>>> to that URL in my browser, with HTTPS intact, it will revert to HTTP in
>>> front of me. If I grab the iframe source for another tool, say a Velocity
>>> based tool, the url is similar, still HTTPS, and stays HTTPS when viewing
>>> it.
>>> thanks,
>>> Steve
>>> 
>>> 
>>> On 11/02/2010, at 3:36 PM, Andrew Lombardi wrote:
>>> 
>>> what's the code you're using to render the link for the iframe in wicket?
>>> have you pasted that yet?
>>> 
>>> On Feb 10, 2010, at 8:32 PM, Steve Swinsburg wrote:
>>> 
>>> Ok I did that, the Wicket app comes up as as HTTP, however if I do the same
>>> thing to any that renders in the same style of iframe, it's HTTPS. these
>>> tools are other display technologies, like JSF, Velocity, etc.
>>> 
>>> Here's the first Wicket app:
>>> 
>>> http://server.edu.au/portal/tool/138a11eb-bcee-4b13-b6c5-d7bf206980ea/?panel=Main
>>> 
>>> Here's a Velocity app in in the same page:
>>> 
>>> https://server.edu.au/portal/tool/f85ba967-614f-4d5d-81cc-1d931f660b93?panel=Main
>>> 
>>> The URL of the entire site is:
>>> 
>>> https://server.edu.au/portal/site/test123/page/3881df23-3931-4928-9d36-702629927ba0
>>> 
>>> I have another Wicket app that another developer wrote, same thing, HTTP
>>> only. So it's only Wicket tools that are doing this.
>>> 
>>> thanks,
>>> 
>>> Steve
>>> 
>>> 
>>> 
>>> On 11/02/2010, at 3:22 PM, Jeremy Thomerson wrote:
>>> 
>>> What I've suspected all along is that your main page MAY be loaded https,
>>> 
>>> but that your iframe src is actually ending up http.
>>> 
>>> do this (in firefox): pull up the app in https, right click in the iframe,
>>> 
>>> click "this frame", click "show only this frame".  is the url that appears
>>> 
>>> with the iframe content https?
>>> 
>>> --
>>> 
>>> Jeremy Thomerson
>>> 
>>> http://www.wickettraining.com
>>> 
>>> 
>>> 
>>> On Wed, Feb 10, 2010 at 9:57 PM, Steve Swinsburg
>>> 
>>> wrote:
>>> 
>>> Exactly. So why are they coming up as HTTP when both the URL and iframe src
>>> 
>>> are both HTTPS. All resources that Wicket sends from this application are
>>> 
>>> coming up as HTTP. So I am thinking it still thinks its on HTTP, not HTTPS.
>>> 
>>> I'll add some logging to the Application init() to figure out if Wicket
>>> 
>>> thinks its on HTTP or HTTPS.
>>> 
>>> Could be the iframe?
>>> 
>>> thanks,
>>> 
>>> Steve
>>> 
>>> 
>>> On 11/02/2010, at 2:48 PM, Igor Vaynberg wrote:
>>> 
>>> your paste does not contain any absolute urls, only relative ones...
>>> 
>>> -igor
>>> 
>>> On Wed, Feb 10, 2010 at 7:15 PM, Steve Swinsburg
>>> 
>>>  wrote:
>>> 
>>> Yes, the app is rendered in an iframe as my app is deployed into a
>>> 
>>> portal
>>> 
>>> container. I pasted that HTML from the iframe source, but here is the
>>> 
>>> whole
>>> 
>>> lot:
>>> 
>>> http://pastie.org/819416
>>> 
>>> Line 21 has the import for the css.
>>> 
>>> Line 55 is a ContextImage
>>> 
>>> The iframe source
>>> 
>>> is: src="
>>> 
>>> https://myserver.edu.au/portal/tool/138a11eb-bcee-4b13-b6c5-d7bf206980ea?panel=Main
>>> 
>>> "
>>> 
>>> and that renders the tool.
>>> 
>>> Using the padlock in the bottom right of Firefox, and analysing the
>>> 
>>> Media,
>>> 
>>> gives all images that are loaded on the page, and all of those that come
>>> 
>>> from this app are http only, the rest that come from t