Re: Wicket 1.5.1 image resource not available if parent component is disabled

2011-10-20 Thread exl
Did a quick search and couldn't see anything so ticket raised: 
https://issues.apache.org/jira/browse/WICKET-4146 WICKET-4146 

-

Eric is learning how to use Wicket and enjoying the experience so far...
--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-1-image-resource-not-available-if-parent-component-is-disabled-tp3869742p3921054.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Access Denied with AjaxEditableLabel ant AjaxEditableMultiLineLabel under chrome and safari #wicket1.5

2011-10-20 Thread Gaetan Zoritchak
So is it a bug or a regression (because it was working on W1.4)? Even, if
the event is fired when leaving the tab, I don't understand why the server
reacts differently. How can it knows that the component isn't visible
anymoree???

Should I drop all these widget from my app? We use them a lot in my
backoffice app.

Gaetan,

2011/10/19 Martin Grigorov mgrigo...@apache.org

 Hi,

 The EditableLabel's editor (the text field/area) saves the value on
 'blur' event.
 It is interesting when this event is fired - when the user leaves the
 first tab or when she comes back.

 On Wed, Oct 19, 2011 at 12:48 AM, Gaetan Zoritchak
 g.zoritc...@moncoachfinance.com wrote:
  The problems occurs under chrome, safari and wicket 1.5.
  Scenario with an AjaxEditableLabel :
  1. The user puts the focus on the AjaxEditableLabel and edit the field.
  2. Without focusing out of the editable label, the user clicks on another
  tab of chrome.
  = the value is not put in the model.
 
  Scenario with an AjaxEditableMultiLineLabel :
  1. The user puts the focus on the AjaxEditableMultiLineLabel and edit the
  field.
  2. Without focusing out of the editable label, the user clicks on another
  tab of chrome.
  = coming back to the first tab, the browser shows an Access Denied
 Page.
  The log shows the warn :
  WARN  - RequestListenerInterface   - behavior not enabled; ignore call.
  Behavior
 
 org.apache.wicket.extensions.ajax.markup.html.AjaxEditableMultiLineLabel$5@18fa85
  at component [ [Component id = editor]]
  After some debugs it appears that under chrome the call on
  isVisibleInHierarchie() returns false.
 
  These scenario were ok with wicket 1.4
 
  Gaetan,
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 



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

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




Re: Access Denied with AjaxEditableLabel ant AjaxEditableMultiLineLabel under chrome and safari #wicket1.5

2011-10-20 Thread Martin Grigorov
There is an improvement in Wicket 1.5 to not allow execution of
invisible component or even worse on disabled behavior for security
reasons.
It is possible to extend AjaxEditableLabel and configure it to allow
such executions.

Override 
org.apache.wicket.extensions.ajax.markup.html.AjaxEditableLabel.newEditor(MarkupContainer,
String, IModelT)
and instead of adding
org.apache.wicket.extensions.ajax.markup.html.AjaxEditableLabel.EditorAjaxBehavior
you'll have to extend that Behavior and override its
org.apache.wicket.behavior.Behavior.canCallListenerInterface(Component)

On Thu, Oct 20, 2011 at 10:44 AM, Gaetan Zoritchak
g.zoritc...@moncoachfinance.com wrote:
 So is it a bug or a regression (because it was working on W1.4)? Even, if
 the event is fired when leaving the tab, I don't understand why the server
 reacts differently. How can it knows that the component isn't visible
 anymoree???

 Should I drop all these widget from my app? We use them a lot in my
 backoffice app.

 Gaetan,

 2011/10/19 Martin Grigorov mgrigo...@apache.org

 Hi,

 The EditableLabel's editor (the text field/area) saves the value on
 'blur' event.
 It is interesting when this event is fired - when the user leaves the
 first tab or when she comes back.

 On Wed, Oct 19, 2011 at 12:48 AM, Gaetan Zoritchak
 g.zoritc...@moncoachfinance.com wrote:
  The problems occurs under chrome, safari and wicket 1.5.
  Scenario with an AjaxEditableLabel :
  1. The user puts the focus on the AjaxEditableLabel and edit the field.
  2. Without focusing out of the editable label, the user clicks on another
  tab of chrome.
  = the value is not put in the model.
 
  Scenario with an AjaxEditableMultiLineLabel :
  1. The user puts the focus on the AjaxEditableMultiLineLabel and edit the
  field.
  2. Without focusing out of the editable label, the user clicks on another
  tab of chrome.
  = coming back to the first tab, the browser shows an Access Denied
 Page.
  The log shows the warn :
  WARN  - RequestListenerInterface   - behavior not enabled; ignore call.
  Behavior
 
 org.apache.wicket.extensions.ajax.markup.html.AjaxEditableMultiLineLabel$5@18fa85
  at component [ [Component id = editor]]
  After some debugs it appears that under chrome the call on
  isVisibleInHierarchie() returns false.
 
  These scenario were ok with wicket 1.4
 
  Gaetan,
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 



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

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






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

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



AjaxTabbedPanel - intercept switching tabs

2011-10-20 Thread heapifyman
Hello,

is there a default way to determine when a user switches between tabs in an
AjaxTabbedPanel?
I see onAjaxUpdate(final AjaxRequestTarget target) but that is called after
the new tab has been set.
I would like to add a confirmation dialog before the new tab is set in case
the user had changed data in the current tab.

Or should I maybe override the protected WebMarkupContainer newLink(final
String linkId, final int index) method?

Is that possible? If so any hints would be appreciated. Thanks


Re: AjaxTabbedPanel - intercept switching tabs

2011-10-20 Thread manuelbarzi
may you follow something like this:


public class AjaxTabbedPanel extends TabbedPanel
{

public AjaxTabbedPanel(String id, ListITab tabs)
{
super(id, tabs);
setOutputMarkupId(true);

setVersioned(false);
}

@Override
protected WebMarkupContainer newLink(String linkId, final int index)
{
return new AjaxFallbackLinkVoid(linkId)
{

private static final long serialVersionUID = 1L;

@Override
public void onClick(AjaxRequestTarget target)
{

// TODO: check here

setSelectedTab(index);
if (target != null)
{

target.addComponent(AjaxTabbedPanel.this);
}

}

};
}

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



Re: AjaxTabbedPanel - intercept switching tabs

2011-10-20 Thread Martin Grigorov
On Thu, Oct 20, 2011 at 11:57 AM, manuelbarzi manuelba...@gmail.com wrote:
 may you follow something like this:


 public class AjaxTabbedPanel extends TabbedPanel
 {

        public AjaxTabbedPanel(String id, ListITab tabs)
        {
                super(id, tabs);
                setOutputMarkupId(true);

                setVersioned(false);
        }

        @Override
        protected WebMarkupContainer newLink(String linkId, final int index)
        {
                return new AjaxFallbackLinkVoid(linkId)
                {

                        private static final long serialVersionUID = 1L;

                        @Override
                        public void onClick(AjaxRequestTarget target)
                        {

                                // TODO: check here
Either this or return a new AjaxLink with overridden
getAjaxCallDecorator() that checks at client-side (pure JavaScript).

                                setSelectedTab(index);
                                if (target != null)
                                {
                                        
 target.addComponent(AjaxTabbedPanel.this);
                                }

                        }

                };
        }

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





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


Re: Nested Forms in 1.4.x - order of calling onSubmit

2011-10-20 Thread Martin Grigorov
On Tue, Oct 18, 2011 at 3:11 PM, Bruno Borges bruno.bor...@gmail.com wrote:
 After playing with Nested Forms in WIcket 1.4.18, I found out that the
 onSubmit method of these forms is called at the end of the process.

 If a parent form has a button and this button is submited, its onSubmit
 method is called before anything.
 Then, parent form's onSubmit method is called.
 Then, it will navigate through all nested forms calling their onSubmit
 method.
 The problem is that I have a nested forms that changes a value in the model
 that is associated with the parent form.

 My usecase has an AddressPanel with a form inside that manipulates the
 person.address object. This panel is created by informing two
 IModelAddress objects.
 One is to be used as the Person's address. The other one is to be used as
 copy of, because of a CheckBox that states Use the same address as of
 account holder.

 On its onSubmit method, is where I clone the account holder address to the
 actual person.address.

 But because of the order of how Wicket calls onSubmit methods, this
 implementation fails.

 Any suggestion?

 Should Wicket call all nested forms' onSubmit methods before calling the
 Button's onSubmit (or the parent form onSubmit) ?
This is how it behaves in Wicket 1.5.
See org.apache.wicket.markup.html.form.Form.delegateSubmit(IFormSubmitter)

You are recommended to upgrade! ;-)

 Thanks,

 *Bruno Borges*
 (21) 7672-7099
 *www.brunoborges.com*




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

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



Unnecessary 302 redirects in Wicket 1.5

2011-10-20 Thread Илья Нарыжный
Hello,

Could you please explain for what reason wicket for every page redirects
users to some other page by 302 code?
For example from /home user will be redirected to /home?1 etc.
It seems quite strange and I think, that this is much more strange for
Search Engines.
I found solution how to optimize for SE here:
http://apache-wicket.1842946.n4.nabble.com/Removing-jsessionid-in-wicket-1-5-td3891735.html
But it looks strange even for common users. Can I disable this feature for
common users?

P.S. I found some mentions that this is because page is not stateless. But
it's not so reasonable for me, because:
1) In wicket 1.4 all works great without this feature
2) Other web frameworks, which I know, don't use 302 code and everthing is
working
For me it looks as a bug.

Thanks,

Ilia


autocomplete js error in IE

2011-10-20 Thread Ann Baert
A wicket autocomplete gives errors in Internet Explorer. The error is on 
line 42 of wicket-autocomplete.js.
On that line stands the following code: objonkeyup=obj.onkeyup;
I'm using Wicket 1.5.1. And you can reproduce the problem on the wicket 
examples: http://www.wicket-library.com/wicket-examples/ajax/autocomplete

I created a jira issue for this: 
https://issues.apache.org/jira/browse/WICKET-4150
 DISCLAIMER 

http://www.tvh.com/newen2/emaildisclaimer/default.html 

This message is delivered to all addressees subject to the conditions
set forth in the attached disclaimer, which is an integral part of this
message.


Re: autocomplete js error in IE

2011-10-20 Thread Martin Grigorov
Works OK for me.
No JS errors. Tested with IE9 in different browser modes and document
modes. Including Quirks.
Is it possible that it is some IE setting ?

On Thu, Oct 20, 2011 at 2:49 PM, Ann Baert ann.ba...@tvh.be wrote:
 A wicket autocomplete gives errors in Internet Explorer. The error is on
 line 42 of wicket-autocomplete.js.
 On that line stands the following code: objonkeyup=obj.onkeyup;
 I'm using Wicket 1.5.1. And you can reproduce the problem on the wicket
 examples: http://www.wicket-library.com/wicket-examples/ajax/autocomplete

 I created a jira issue for this:
 https://issues.apache.org/jira/browse/WICKET-4150
  DISCLAIMER 

 http://www.tvh.com/newen2/emaildisclaimer/default.html

 This message is delivered to all addressees subject to the conditions
 set forth in the attached disclaimer, which is an integral part of this
 message.




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

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



Re: autocomplete js error in IE

2011-10-20 Thread Matthias Keller
I also see this error on the specified page with Internet Explorer 8 
(WinXP SP3)

It does not matter if I enable or disable the compatibility feature.

Matt

On 2011-10-20 13:54, Martin Grigorov wrote:

Works OK for me.
No JS errors. Tested with IE9 in different browser modes and document
modes. Including Quirks.
Is it possible that it is some IE setting ?

On Thu, Oct 20, 2011 at 2:49 PM, Ann Baertann.ba...@tvh.be  wrote:

A wicket autocomplete gives errors in Internet Explorer. The error is on
line 42 of wicket-autocomplete.js.
On that line stands the following code: objonkeyup=obj.onkeyup;
I'm using Wicket 1.5.1. And you can reproduce the problem on the wicket
examples: http://www.wicket-library.com/wicket-examples/ajax/autocomplete

I created a jira issue for this:
https://issues.apache.org/jira/browse/WICKET-4150





smime.p7s
Description: S/MIME Cryptographic Signature


Re: Unnecessary 302 redirects in Wicket 1.5

2011-10-20 Thread Deniz Oğuz
I think redirect is performed as a solution to double post problem. You can
disable it from RequestCycleSetting by setting it to One Pass Render.

On Thu, Oct 20, 2011 at 1:53 PM, Илья Нарыжный phan...@ydn.ru wrote:

 Hello,

 Could you please explain for what reason wicket for every page redirects
 users to some other page by 302 code?
 For example from /home user will be redirected to /home?1 etc.
 It seems quite strange and I think, that this is much more strange for
 Search Engines.
 I found solution how to optimize for SE here:

 http://apache-wicket.1842946.n4.nabble.com/Removing-jsessionid-in-wicket-1-5-td3891735.html
 But it looks strange even for common users. Can I disable this feature
 for
 common users?

 P.S. I found some mentions that this is because page is not stateless. But
 it's not so reasonable for me, because:
 1) In wicket 1.4 all works great without this feature
 2) Other web frameworks, which I know, don't use 302 code and everthing is
 working
 For me it looks as a bug.

 Thanks,

 Ilia



Re: autocomplete js error in IE

2011-10-20 Thread Andrea Del Bene

Looks good for me also. Tested under IE 8, Windows XP.

Works OK for me.
No JS errors. Tested with IE9 in different browser modes and document
modes. Including Quirks.
Is it possible that it is some IE setting ?

On Thu, Oct 20, 2011 at 2:49 PM, Ann Baertann.ba...@tvh.be  wrote:

A wicket autocomplete gives errors in Internet Explorer. The error is on
line 42 of wicket-autocomplete.js.
On that line stands the following code: objonkeyup=obj.onkeyup;
I'm using Wicket 1.5.1. And you can reproduce the problem on the wicket
examples: http://www.wicket-library.com/wicket-examples/ajax/autocomplete

I created a jira issue for this:
https://issues.apache.org/jira/browse/WICKET-4150
 DISCLAIMER 

http://www.tvh.com/newen2/emaildisclaimer/default.html

This message is delivered to all addressees subject to the conditions
set forth in the attached disclaimer, which is an integral part of this
message.







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



Re: Unnecessary 302 redirects in Wicket 1.5

2011-10-20 Thread Martin Grigorov
Another problem is that without ?3 if your user reloads the page (F5)
Wicket wont know which page instance to re-render and will create a
new instance of the page. I.e. the state will be lost.
In Wicket 1.4 ?wicket:interface=0:0:bla:1: is used to keep the page id.

If you don't want this special parameter then you should keep the page
stateless. I.e. everytime a new instance will be created and no state
is preserved.

On Thu, Oct 20, 2011 at 3:07 PM, Deniz Oğuz denizo...@gmail.com wrote:
 I think redirect is performed as a solution to double post problem. You can
 disable it from RequestCycleSetting by setting it to One Pass Render.

 On Thu, Oct 20, 2011 at 1:53 PM, Илья Нарыжный phan...@ydn.ru wrote:

 Hello,

 Could you please explain for what reason wicket for every page redirects
 users to some other page by 302 code?
 For example from /home user will be redirected to /home?1 etc.
 It seems quite strange and I think, that this is much more strange for
 Search Engines.
 I found solution how to optimize for SE here:

 http://apache-wicket.1842946.n4.nabble.com/Removing-jsessionid-in-wicket-1-5-td3891735.html
 But it looks strange even for common users. Can I disable this feature
 for
 common users?

 P.S. I found some mentions that this is because page is not stateless. But
 it's not so reasonable for me, because:
 1) In wicket 1.4 all works great without this feature
 2) Other web frameworks, which I know, don't use 302 code and everthing is
 working
 For me it looks as a bug.

 Thanks,

 Ilia





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

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



Re: autocomplete js error in IE

2011-10-20 Thread Andrea Del Bene

ooops, I was wrong. I got the same problem.
I also see this error on the specified page with Internet Explorer 8 
(WinXP SP3)

It does not matter if I enable or disable the compatibility feature.

Matt

On 2011-10-20 13:54, Martin Grigorov wrote:

Works OK for me.
No JS errors. Tested with IE9 in different browser modes and document
modes. Including Quirks.
Is it possible that it is some IE setting ?

On Thu, Oct 20, 2011 at 2:49 PM, Ann Baertann.ba...@tvh.be  wrote:
A wicket autocomplete gives errors in Internet Explorer. The error 
is on

line 42 of wicket-autocomplete.js.
On that line stands the following code: objonkeyup=obj.onkeyup;
I'm using Wicket 1.5.1. And you can reproduce the problem on the wicket
examples: 
http://www.wicket-library.com/wicket-examples/ajax/autocomplete


I created a jira issue for this:
https://issues.apache.org/jira/browse/WICKET-4150






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



RE: Occasional Software caused connection abort: socket write error with 1.5

2011-10-20 Thread Chris Colman
I have discovered that this only occurs when running our app inside
IntelliJ. When we run it in tomcat directly, outside any IDE, I can't
get the problem to occur. Hopefully the problem will not appear at all
when running on the production server.

-Original Message-
From: Chris Colman [mailto:chr...@stepaheadsoftware.com]
Sent: Thursday, 20 October 2011 3:30 PM
To: users@wicket.apache.org
Subject: Occasional Software caused connection abort: socket write
error
with 1.5

Occasionally over the last few days/weeks testing our 1.5 migration
I've
seen the following exception.
I'm wondering if anyone has any idea of what's causing it or have seen
something similar. We've never seen it before with Wicket 1.4

It only happens when I click a link while it is still processing the
previous request. i.e. quickly clicking links on the site's main menu
will usually cause this to occur within about 10 seconds. If I wait
until each request has completed before clicking the next link it
*never* occurs.

I tried the rapid clicking on our Wicket 1.4 version of the app and the
exception never occurs.

2011/10/20 12:21:29.436 ERROR - EServerContext - Exception
thrown while servicing HTTP request: ClientAbortException:
java.net.SocketException: Software caused connection abort: socket
write
error
2011/10/20 12:21:29.436 ERROR - EServerContext - The
following might help:
ClientAbortException:  java.net.SocketException: Software caused
connection abort: socket write error
at
org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:31
9
)
at
org.apache.catalina.connector.OutputBuffer.flush(OutputBuffer.java:288)
at
org.apache.catalina.connector.Response.flushBuffer(Response.java:548)
at
org.apache.catalina.connector.ResponseFacade.flushBuffer(ResponseFacade
.
java:279)
at
org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilte
r
.java:205)
at
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java
:
218)
at
com.sas.av.ui.wicket.templates.original.PagebloomFilter.doFilter(Pagebl
o
omFilter.java:96)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic
a
tionFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil
t
erChain.java:206)
at
com.sas.framework.expojo.servlet.ExpojoServletFilter.doFilter(ExpojoSer
v
letFilter.java:201)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic
a
tionFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil
t
erChain.java:206)
at
com.sas.util.web.StaticResponseHeaderFilter.doFilter(Unknown Source)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic
a
tionFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil
t
erChain.java:206)
at
com.sas.av.model.context.UrlRedirectorFilter.doFilter(UrlRedirectorFilt
e
r.java:77)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic
a
tionFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil
t
erChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal
v
e.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextVal
v
e.java:191)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.jav
a
:128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav
a
:102)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:56
8
)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve
.
java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
2
86)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:8
4
5)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process
(
Http11Protocol.java:583)
at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.net.SocketException: Software caused connection abort:
socket write error
at java.net.SocketOutputStream.socketWrite0(Native Method)
at
java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
at
java.net.SocketOutputStream.write(SocketOutputStream.java:136)
at
org.apache.coyote.http11.InternalOutputBuffer.realWriteBytes(InternalOu
t
putBuffer.java:740)
at
org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:434)
at
org.apache.coyote.http11.InternalOutputBuffer.flush(InternalOutputBuffe
r
.java:299)

Re: Nested Forms in 1.4.x - order of calling onSubmit

2011-10-20 Thread Bruno Borges
Can't upgrade... :-(

Political issues (read: conservative corporation with terrible decision
makers)

*Bruno Borges*
(21) 7672-7099
*www.brunoborges.com*



On Thu, Oct 20, 2011 at 9:28 AM, Martin Grigorov mgrigo...@apache.orgwrote:

 On Tue, Oct 18, 2011 at 3:11 PM, Bruno Borges bruno.bor...@gmail.com
 wrote:
  After playing with Nested Forms in WIcket 1.4.18, I found out that the
  onSubmit method of these forms is called at the end of the process.
 
  If a parent form has a button and this button is submited, its onSubmit
  method is called before anything.
  Then, parent form's onSubmit method is called.
  Then, it will navigate through all nested forms calling their onSubmit
  method.
  The problem is that I have a nested forms that changes a value in the
 model
  that is associated with the parent form.
 
  My usecase has an AddressPanel with a form inside that manipulates the
  person.address object. This panel is created by informing two
  IModelAddress objects.
  One is to be used as the Person's address. The other one is to be used as
  copy of, because of a CheckBox that states Use the same address as of
  account holder.
 
  On its onSubmit method, is where I clone the account holder address to
 the
  actual person.address.
 
  But because of the order of how Wicket calls onSubmit methods, this
  implementation fails.
 
  Any suggestion?
 
  Should Wicket call all nested forms' onSubmit methods before calling the
  Button's onSubmit (or the parent form onSubmit) ?
 This is how it behaves in Wicket 1.5.
 See org.apache.wicket.markup.html.form.Form.delegateSubmit(IFormSubmitter)

 You are recommended to upgrade! ;-)
 
  Thanks,
 
  *Bruno Borges*
  (21) 7672-7099
  *www.brunoborges.com*
 



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

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




Re: Access Denied with AjaxEditableLabel ant AjaxEditableMultiLineLabel under chrome and safari #wicket1.5

2011-10-20 Thread Gaetan Zoritchak
Thank you, It's working but the code is quite ugly (lot of duplication just
to override the canCallListenerInterface() ).

I still doesn't understand how wicket is able to know that the component is
not visible in the browser.

Furthermore, I find problematic the fact that the behavior depends on
the browser implementation.

Gaetan,

2011/10/20 Martin Grigorov mgrigo...@apache.org

 There is an improvement in Wicket 1.5 to not allow execution of
 invisible component or even worse on disabled behavior for security
 reasons.
 It is possible to extend AjaxEditableLabel and configure it to allow
 such executions.

 Override
 org.apache.wicket.extensions.ajax.markup.html.AjaxEditableLabel.newEditor(MarkupContainer,
 String, IModelT)
 and instead of adding

 org.apache.wicket.extensions.ajax.markup.html.AjaxEditableLabel.EditorAjaxBehavior
 you'll have to extend that Behavior and override its
 org.apache.wicket.behavior.Behavior.canCallListenerInterface(Component)

 On Thu, Oct 20, 2011 at 10:44 AM, Gaetan Zoritchak
 g.zoritc...@moncoachfinance.com wrote:
  So is it a bug or a regression (because it was working on W1.4)? Even, if
  the event is fired when leaving the tab, I don't understand why the
 server
  reacts differently. How can it knows that the component isn't visible
  anymoree???
 
  Should I drop all these widget from my app? We use them a lot in my
  backoffice app.
 
  Gaetan,
 
  2011/10/19 Martin Grigorov mgrigo...@apache.org
 
  Hi,
 
  The EditableLabel's editor (the text field/area) saves the value on
  'blur' event.
  It is interesting when this event is fired - when the user leaves the
  first tab or when she comes back.
 
  On Wed, Oct 19, 2011 at 12:48 AM, Gaetan Zoritchak
  g.zoritc...@moncoachfinance.com wrote:
   The problems occurs under chrome, safari and wicket 1.5.
   Scenario with an AjaxEditableLabel :
   1. The user puts the focus on the AjaxEditableLabel and edit the
 field.
   2. Without focusing out of the editable label, the user clicks on
 another
   tab of chrome.
   = the value is not put in the model.
  
   Scenario with an AjaxEditableMultiLineLabel :
   1. The user puts the focus on the AjaxEditableMultiLineLabel and edit
 the
   field.
   2. Without focusing out of the editable label, the user clicks on
 another
   tab of chrome.
   = coming back to the first tab, the browser shows an Access Denied
  Page.
   The log shows the warn :
   WARN  - RequestListenerInterface   - behavior not enabled; ignore
 call.
   Behavior
  
 
 org.apache.wicket.extensions.ajax.markup.html.AjaxEditableMultiLineLabel$5@18fa85
   at component [ [Component id = editor]]
   After some debugs it appears that under chrome the call on
   isVisibleInHierarchie() returns false.
  
   These scenario were ok with wicket 1.4
  
   Gaetan,
  
  
   -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
 
 
 
  --
  Martin Grigorov
  jWeekend
  Training, Consulting, Development
  http://jWeekend.com
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 



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

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




Re: Access Denied with AjaxEditableLabel ant AjaxEditableMultiLineLabel under chrome and safari #wicket1.5

2011-10-20 Thread Martin Grigorov
On Thu, Oct 20, 2011 at 4:17 PM, Gaetan Zoritchak
g.zoritc...@moncoachfinance.com wrote:
 Thank you, It's working but the code is quite ugly (lot of duplication just
 to override the canCallListenerInterface() ).

 I still doesn't understand how wicket is able to know that the component is
 not visible in the browser.
Wicket doesn't know that.
Wicket knows the visibility at the server side and rejects any
requests against invisible/disabled components/behaviors.

 Furthermore, I find problematic the fact that the behavior depends on
 the browser implementation.
It seems Chrome sends the blur event differently than the other
browsers when the tab/window is changed.

 Gaetan,

 2011/10/20 Martin Grigorov mgrigo...@apache.org

 There is an improvement in Wicket 1.5 to not allow execution of
 invisible component or even worse on disabled behavior for security
 reasons.
 It is possible to extend AjaxEditableLabel and configure it to allow
 such executions.

 Override
 org.apache.wicket.extensions.ajax.markup.html.AjaxEditableLabel.newEditor(MarkupContainer,
 String, IModelT)
 and instead of adding

 org.apache.wicket.extensions.ajax.markup.html.AjaxEditableLabel.EditorAjaxBehavior
 you'll have to extend that Behavior and override its
 org.apache.wicket.behavior.Behavior.canCallListenerInterface(Component)

 On Thu, Oct 20, 2011 at 10:44 AM, Gaetan Zoritchak
 g.zoritc...@moncoachfinance.com wrote:
  So is it a bug or a regression (because it was working on W1.4)? Even, if
  the event is fired when leaving the tab, I don't understand why the
 server
  reacts differently. How can it knows that the component isn't visible
  anymoree???
 
  Should I drop all these widget from my app? We use them a lot in my
  backoffice app.
 
  Gaetan,
 
  2011/10/19 Martin Grigorov mgrigo...@apache.org
 
  Hi,
 
  The EditableLabel's editor (the text field/area) saves the value on
  'blur' event.
  It is interesting when this event is fired - when the user leaves the
  first tab or when she comes back.
 
  On Wed, Oct 19, 2011 at 12:48 AM, Gaetan Zoritchak
  g.zoritc...@moncoachfinance.com wrote:
   The problems occurs under chrome, safari and wicket 1.5.
   Scenario with an AjaxEditableLabel :
   1. The user puts the focus on the AjaxEditableLabel and edit the
 field.
   2. Without focusing out of the editable label, the user clicks on
 another
   tab of chrome.
   = the value is not put in the model.
  
   Scenario with an AjaxEditableMultiLineLabel :
   1. The user puts the focus on the AjaxEditableMultiLineLabel and edit
 the
   field.
   2. Without focusing out of the editable label, the user clicks on
 another
   tab of chrome.
   = coming back to the first tab, the browser shows an Access Denied
  Page.
   The log shows the warn :
   WARN  - RequestListenerInterface   - behavior not enabled; ignore
 call.
   Behavior
  
 
 org.apache.wicket.extensions.ajax.markup.html.AjaxEditableMultiLineLabel$5@18fa85
   at component [ [Component id = editor]]
   After some debugs it appears that under chrome the call on
   isVisibleInHierarchie() returns false.
  
   These scenario were ok with wicket 1.4
  
   Gaetan,
  
  
   -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
 
 
 
  --
  Martin Grigorov
  jWeekend
  Training, Consulting, Development
  http://jWeekend.com
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 



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

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






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

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



AW: Access Denied with AjaxEditableLabel ant AjaxEditableMultiLineLabel under chrome and safari #wicket1.5

2011-10-20 Thread Sven Meier
I still doesn't understand how wicket is able to know that the component is
not visible in the browser.

We don't understand this either.

Could you create a quickstart?

Sven

-Ursprüngliche Nachricht-
Von: Gaetan Zoritchak [mailto:g.zoritc...@moncoachfinance.com] 
Gesendet: Donnerstag, 20. Oktober 2011 15:18
An: users@wicket.apache.org
Betreff: Re: Access Denied with AjaxEditableLabel ant
AjaxEditableMultiLineLabel under chrome and safari #wicket1.5

Thank you, It's working but the code is quite ugly (lot of duplication just
to override the canCallListenerInterface() ).

I still doesn't understand how wicket is able to know that the component is
not visible in the browser.

Furthermore, I find problematic the fact that the behavior depends on
the browser implementation.

Gaetan,

2011/10/20 Martin Grigorov mgrigo...@apache.org

 There is an improvement in Wicket 1.5 to not allow execution of
 invisible component or even worse on disabled behavior for security
 reasons.
 It is possible to extend AjaxEditableLabel and configure it to allow
 such executions.

 Override

org.apache.wicket.extensions.ajax.markup.html.AjaxEditableLabel.newEditor(Ma
rkupContainer,
 String, IModelT)
 and instead of adding


org.apache.wicket.extensions.ajax.markup.html.AjaxEditableLabel.EditorAjaxBe
havior
 you'll have to extend that Behavior and override its
 org.apache.wicket.behavior.Behavior.canCallListenerInterface(Component)

 On Thu, Oct 20, 2011 at 10:44 AM, Gaetan Zoritchak
 g.zoritc...@moncoachfinance.com wrote:
  So is it a bug or a regression (because it was working on W1.4)? Even,
if
  the event is fired when leaving the tab, I don't understand why the
 server
  reacts differently. How can it knows that the component isn't visible
  anymoree???
 
  Should I drop all these widget from my app? We use them a lot in my
  backoffice app.
 
  Gaetan,
 
  2011/10/19 Martin Grigorov mgrigo...@apache.org
 
  Hi,
 
  The EditableLabel's editor (the text field/area) saves the value on
  'blur' event.
  It is interesting when this event is fired - when the user leaves the
  first tab or when she comes back.
 
  On Wed, Oct 19, 2011 at 12:48 AM, Gaetan Zoritchak
  g.zoritc...@moncoachfinance.com wrote:
   The problems occurs under chrome, safari and wicket 1.5.
   Scenario with an AjaxEditableLabel :
   1. The user puts the focus on the AjaxEditableLabel and edit the
 field.
   2. Without focusing out of the editable label, the user clicks on
 another
   tab of chrome.
   = the value is not put in the model.
  
   Scenario with an AjaxEditableMultiLineLabel :
   1. The user puts the focus on the AjaxEditableMultiLineLabel and edit
 the
   field.
   2. Without focusing out of the editable label, the user clicks on
 another
   tab of chrome.
   = coming back to the first tab, the browser shows an Access Denied
  Page.
   The log shows the warn :
   WARN  - RequestListenerInterface   - behavior not enabled; ignore
 call.
   Behavior
  
 

org.apache.wicket.extensions.ajax.markup.html.AjaxEditableMultiLineLabel$5@1
8fa85
   at component [ [Component id = editor]]
   After some debugs it appears that under chrome the call on
   isVisibleInHierarchie() returns false.
  
   These scenario were ok with wicket 1.4
  
   Gaetan,
  
  
   -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
 
 
 
  --
  Martin Grigorov
  jWeekend
  Training, Consulting, Development
  http://jWeekend.com
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 



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

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




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



Re: RIA solution based on wicket

2011-10-20 Thread Entropy
That looks pretty good.  I too am attempting to build a RIA with ExtJS using
Wicket as my back-end.  On first look it seems like the two should be a
great fit as both rely heavily on building a hierarchical tree of
components.  If I could build a set of custom wicket components to output
javascript instead of HTML, my java developers could snap components
together without having to fiddle with the complexity of ExtJS on a regular
basis.

But I am having a problem in that wicket wants markup for things that I want
ext to build through javascript methods.  For example, right now I am trying
to build my menu.  Wicket wants me to use a Link based class or button, but
I really just want to output some javascript that will create the menu
toolbar and component and snap them into the viewport.

I am using a JavascriptPackageresource to create a HeaderContributor in the
top level object, and scanning my child components for my custom components
to contribute javascript at the right time.  But things like Links, Buttons,
and other data elements are going to want to contribute HTML.  Further, I
want to tie an even handler to my menu item, and not generate HTML, but
still have the link URL the link would have generated.

How can I approach this?  Is Wicket maybe not the right webapp framework for
me?


Martin Grigorov wrote:
 
 you could
 http://wicketstuff.org/grid-examples/data-grid/editable
 
 On Mon, 2010-02-01 at 15:16 +0300, Josh Kamau wrote:
 Hi Ernesto
 
 This is RIA enough. I wish i could do such with Wicket.
 
 http://www.extjs.com/examples/#roweditorgrid
 
 regards
 
 On Mon, Feb 1, 2010 at 2:35 PM, Ernesto Reinaldo Barreiro 
 reiern70@ wrote:
 
  Hi,
 
  impressive. However , i would like to say that IMHO wicket is more
 suitable
   for creating websites as opposed to RIA applications. I would like to
  make
  
 
  Is this screen shot RIA enough for your taste?
 
  http://antilia.googlecode.com/svn/wiki/Screenshot1.jpg
 
  It was made using Wicket;-)
 
  Best,
 
  Ernesto
 
 
 
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscribe@.apache
 For additional commands, e-mail: users-help@.apache
 


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/RIA-solution-based-on-wicket-tp1893785p3922238.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Nested Forms in 1.4.x - order of calling onSubmit

2011-10-20 Thread Martijn Dashorst
On Thu, Oct 20, 2011 at 3:07 PM, Bruno Borges bruno.bor...@gmail.com wrote:
 Can't upgrade... :-(

 Political issues (read: conservative corporation with terrible decision
 makers)

They let you use wicket, so they can't be too bad :)

Martijn

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



Re: RIA solution based on wicket

2011-10-20 Thread Martin Grigorov
On Thu, Oct 20, 2011 at 6:13 PM, Entropy blmulholl...@gmail.com wrote:
 That looks pretty good.  I too am attempting to build a RIA with ExtJS using
 Wicket as my back-end.  On first look it seems like the two should be a
 great fit as both rely heavily on building a hierarchical tree of
 components.  If I could build a set of custom wicket components to output
 javascript instead of HTML, my java developers could snap components
 together without having to fiddle with the complexity of ExtJS on a regular
 basis.

 But I am having a problem in that wicket wants markup for things that I want
 ext to build through javascript methods.  For example, right now I am trying
 to build my menu.  Wicket wants me to use a Link based class or button, but
 I really just want to output some javascript that will create the menu
 toolbar and component and snap them into the viewport.

 I am using a JavascriptPackageresource to create a HeaderContributor in the
 top level object, and scanning my child components for my custom components
 to contribute javascript at the right time.  But things like Links, Buttons,
 and other data elements are going to want to contribute HTML.  Further, I
 want to tie an even handler to my menu item, and not generate HTML, but
 still have the link URL the link would have generated.
Assign WebMarkupContainer to a plain span (the menu item), then
assign a Behavior to that component and use its
#renderHead(IHeaderResponse) to render any JavaScript you need.
For example ExtPanelBehavior may produce the JS needed to create ExtJS Panel...

 How can I approach this?  Is Wicket maybe not the right webapp framework for
 me?


 Martin Grigorov wrote:

 you could
 http://wicketstuff.org/grid-examples/data-grid/editable

 On Mon, 2010-02-01 at 15:16 +0300, Josh Kamau wrote:
 Hi Ernesto

 This is RIA enough. I wish i could do such with Wicket.

 http://www.extjs.com/examples/#roweditorgrid

 regards

 On Mon, Feb 1, 2010 at 2:35 PM, Ernesto Reinaldo Barreiro 
 reiern70@ wrote:

  Hi,
 
  impressive. However , i would like to say that IMHO wicket is more
 suitable
   for creating websites as opposed to RIA applications. I would like to
  make
  
 
  Is this screen shot RIA enough for your taste?
 
  http://antilia.googlecode.com/svn/wiki/Screenshot1.jpg
 
  It was made using Wicket;-)
 
  Best,
 
  Ernesto
 





 -
 To unsubscribe, e-mail: users-unsubscribe@.apache
 For additional commands, e-mail: users-help@.apache



 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/RIA-solution-based-on-wicket-tp1893785p3922238.html
 Sent from the Users forum mailing list archive at Nabble.com.

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





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

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



Re: RIA solution based on wicket

2011-10-20 Thread Entropy
That looks pretty good.  I too am attempting to build a RIA with ExtJS using
Wicket as my back-end.  On first look it seems like the two should be a
great fit as both rely heavily on building a hierarchical tree of
components.  If I could build a set of custom wicket components to output
javascript instead of HTML, my java developers could snap components
together without having to fiddle with the complexity of ExtJS on a regular
basis.

But I am having a problem in that wicket wants markup for things that I want
ext to build through javascript methods.  For example, right now I am trying
to build my menu.  Wicket wants me to use a Link based class or button, but
I really just want to output some javascript that will create the menu
toolbar and component and snap them into the viewport.

I am using a JavascriptPackageresource to create a HeaderContributor in the
top level object, and scanning my child components for my custom components
to contribute javascript at the right time.  But things like Links, Buttons,
and other data elements are going to want to contribute HTML.  Further, I
want to tie an even handler to my menu item, and not generate HTML, but
still have the link URL the link would have generated.

How can I approach this?  Is Wicket maybe not the right webapp framework for
me?


Martin Grigorov wrote:
 
 you could
 http://wicketstuff.org/grid-examples/data-grid/editable
 
 On Mon, 2010-02-01 at 15:16 +0300, Josh Kamau wrote:
 Hi Ernesto
 
 This is RIA enough. I wish i could do such with Wicket.
 
 http://www.extjs.com/examples/#roweditorgrid
 
 regards
 
 On Mon, Feb 1, 2010 at 2:35 PM, Ernesto Reinaldo Barreiro 
 reiern70@ wrote:
 
  Hi,
 
  impressive. However , i would like to say that IMHO wicket is more
 suitable
   for creating websites as opposed to RIA applications. I would like to
  make
  
 
  Is this screen shot RIA enough for your taste?
 
  http://antilia.googlecode.com/svn/wiki/Screenshot1.jpg
 
  It was made using Wicket;-)
 
  Best,
 
  Ernesto
 
 
 
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscribe@.apache
 For additional commands, e-mail: users-help@.apache
 


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/RIA-solution-based-on-wicket-tp1893785p3922289.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Request mapping

2011-10-20 Thread anantasthana
I am trying to map my requests in a special way to achieve a very simple
purpose

say the root website is abc.com and has several users and each use has a
home page , admin page , requests page etc 
let us asume we have uers user1 and user 2
i want the urls to be coded as 

abc.com/user1/admin

abc.com/user1/home

abc.com/user1/requests

so basicaly abc.com/user1/home is the home page for user 1 and
abc.com/user1/admin is the the admin page for user 1

any help is welcome.
Thanks
Anant

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

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



Re: Wrong path for resources on redirected login page

2011-10-20 Thread bjolletz
Thank you for your quick replies!

I have been trying to set up a quickstart with wicket version 1.5.2 to test
things out, but it seems like its not totally trivial to set up security
constraints in web.xml using jetty. I tried to add the following to my
web.xml:


security-constraint
web-resource-collection
web-resource-nameAll resources/web-resource-name
descriptionProtects all resources/description
url-pattern/App/*/url-pattern
/web-resource-collection
auth-constraint
role-nameUSER/role-name
/auth-constraint
/security-constraint

security-role
role-nameUSER/role-name
/security-role

login-config
auth-methodBASIC/auth-method
realm-nameApp Realm/realm-name
form-login-config
form-login-page/LoginPage/form-login-page
form-error-page/LoginErrorPage/form-error-page
/form-login-config
/login-config


But that resulted in an error message from jetty:
java.lang.IllegalStateException: No LoginService for
org.eclipse.jetty.security.authentication.BasicAuthenticator@494b6bed in
org.eclipse.jetty.security.ConstraintSecurityHandler@769aba32#STARTING

Seems like you have to add something called LoginService to jetty to make
security stuff work. Maybe this is obvious to everyone but I'm not familiar
with jetty at all.

Anyway, if anyone knows what to do I would be very thankful for a pointer in
the right direction.

Thanks for reading!

/Daniel

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wrong-path-for-resources-on-redirected-login-page-tp3920038p3923720.html
Sent from the Users forum mailing list archive at Nabble.com.

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



RE: Occasional Software caused connection abort: socket write error with 1.5

2011-10-20 Thread nhsoft.yhw
my application has same problem, but it only throw socket error when IE 6 - 8
brower,  chrome and IE9 has no the problem.

here is my question:
http://apache-wicket.1842946.n4.nabble.com/Is-there-ModalWindow-alternative-options-td3896443.html

i have test by wicket 1.5.2 take 2 version, the problem exist.





--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Occasional-Software-caused-connection-abort-socket-write-error-with-1-5-tp3920880p3924240.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Drilling Application.getHomePage()

2011-10-20 Thread Arjun Dhar
Hi,
All my pages are generated dynamically in a particular project (including
Home). 

Application.getHomePage() returns Class? extends Page

The trouble is that all my pages use the same WebPage class, based on the
name in the URL it determines which content to fetch.
Example: http://mysite.org/abc

The strategy picks out abc as the identifier and fetches content for it.
But the WebPage class is common.



Additionally: 
In getApplicationSettings().setAccessDeniedPage(error.class); I want all
exceptions thrown to goto the error page so I can see a StackTrace there (in 
= Visutally user sees user friendly message but on view source one can see
the stack trace)


-
Software documentation is like sex: when it is good, it is very, very good; and 
when it is bad, it is still better than nothing!
--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Drilling-Application-getHomePage-tp3924262p3924262.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Drilling Application.getHomePage()

2011-10-20 Thread Igor Vaynberg
On Thu, Oct 20, 2011 at 8:56 PM, Arjun Dhar dhar...@yahoo.com wrote:
 Hi,
 All my pages are generated dynamically in a particular project (including
 Home).

 Application.getHomePage() returns Class? extends Page

 The trouble is that all my pages use the same WebPage class, based on the
 name in the URL it determines which content to fetch.
 Example: http://mysite.org/abc

 The strategy picks out abc as the identifier and fetches content for it.
 But the WebPage class is common.


i dont see a question...



 Additionally:
 In getApplicationSettings().setAccessDeniedPage(error.class); I want all
 exceptions thrown to goto the error page so I can see a StackTrace there (in
 = Visutally user sees user friendly message but on view source one can see
 the stack trace)

register a request cycle listener, override onruntimeexception, and
return a renderpagerequesthandler() that renders your own exception
page that does what you want.

-igor



 -
 Software documentation is like sex: when it is good, it is very, very good; 
 and when it is bad, it is still better than nothing!
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Drilling-Application-getHomePage-tp3924262p3924262.html
 Sent from the Users forum mailing list archive at Nabble.com.

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



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