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

2011-10-21 Thread Chris Colman
I haven't tested other browsers but the problem is occurring for me on
FireFox 7.0.1.

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


-
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-21 Thread Arjun Dhar
Ah, sorry was trying to use as less words as possible :)

Q / Problem) Since Application.getHomePage() returns Class? extends Page
and in my case Multiple pages are mounted to point to the same WebPage. How
to I specify the Home Page.

In other words: CLASS to Mounted Pages is a one to many relation. By
returning the class name, there is no way logically for the system to
determine which page I'm asking it to goto as Home.

-
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-tp3924262p3924407.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: Request mapping

2011-10-21 Thread Ernesto Reinaldo Barreiro
Anant,

Maybe you can use IndexedParamUrlCodingStrategy to solve your problem...?

Regards,

Ernesto

On Thu, Oct 20, 2011 at 9:36 PM, anantasthana anant.a...@gmail.com wrote:
 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



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



Re: Request mapping

2011-10-21 Thread anantasthana
Does it work with wicket 1.5 as well?? I know its there till 1.4v
-Original Message-
From: Ernesto Reinaldo Barreiro-4 [via Apache Wicket] 
ml-node+s1842946n3924424...@n4.nabble.com
Date: Thu, 20 Oct 2011 23:28:31 
To: anantasthanaanant.a...@gmail.com
Subject: Re: Request mapping



Anant,

Maybe you can use IndexedParamUrlCodingStrategy to solve your problem...?

Regards,

Ernesto

On Thu, Oct 20, 2011 at 9:36 PM, anantasthana anant.a...@gmail.com wrote:
 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



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



___
If you reply to this email, your message will be added to the discussion below:
http://apache-wicket.1842946.n4.nabble.com/Request-mapping-tp3923220p3924424.html

To unsubscribe from Request mapping, visit 
http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=3923220code=YW5hbnQuYXN0eUBnbWFpbC5jb218MzkyMzIyMHwxOTU2OTQ5NjMy


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Request-mapping-tp3923220p3924426.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: Request mapping

2011-10-21 Thread anantasthana
Also I know with that I can do abc.com/users/user1
But would it work if I do 
abc.com/users/user1/testimonials
Which means the testimonials page for user1? I know how to implement the first 
scenario.. But I just can't figure out the second

-Original Message-
From: Ernesto Reinaldo Barreiro-4 [via Apache Wicket] 
ml-node+s1842946n3924424...@n4.nabble.com
Date: Thu, 20 Oct 2011 23:28:31 
To: anantasthanaanant.a...@gmail.com
Subject: Re: Request mapping



Anant,

Maybe you can use IndexedParamUrlCodingStrategy to solve your problem...?

Regards,

Ernesto

On Thu, Oct 20, 2011 at 9:36 PM, anantasthana anant.a...@gmail.com wrote:
 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



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



___
If you reply to this email, your message will be added to the discussion below:
http://apache-wicket.1842946.n4.nabble.com/Request-mapping-tp3923220p3924424.html

To unsubscribe from Request mapping, visit 
http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=3923220code=YW5hbnQuYXN0eUBnbWFpbC5jb218MzkyMzIyMHwxOTU2OTQ5NjMy


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Request-mapping-tp3923220p3924427.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



Big Problem: BookmarkablePageLinks, AjaxLinks and BackButton

2011-10-21 Thread MattyDE
Hi community,

i have a big Problem:


In my application i use BookmarkabePageLinks to browse through different
Pages and AjaxLinks to Open a Div box for Example.

If the user now browse from Site A to B with the BookmarkablePageLink, use
than the back button of the Browser and now clicked a AjaxLink on Site A a
/org.apache.wicket.markup.html.pages.PageExpiredErrorPage /Error appears.

Can anyone explain me why this happend and how i can prevent this issue? 
Its not really userfriendly in my situation to throw exception if the user
used the back-button.

I'm using wicket 1.4.8. 

Thanks in Advance for any help.


Iam sorry for my English is not my mothers tongue!

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Big-Problem-BookmarkablePageLinks-AjaxLinks-and-BackButton-tp3924428p3924428.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: Big Problem: BookmarkablePageLinks, AjaxLinks and BackButton

2011-10-21 Thread anant . asty
So how long after going to page2 are you hitting the back button? The page is 
expired means that the session has been destroyed. You could possibly seT a 
longer session time out in your webApplication

--Original Message--
From: MattyDE
To: users@wicket.apache.org
ReplyTo: users@wicket.apache.org
Subject: Big Problem: BookmarkablePageLinks, AjaxLinks and BackButton
Sent: Oct 21, 2011 12:37 AM

Hi community,

i have a big Problem:


In my application i use BookmarkabePageLinks to browse through different
Pages and AjaxLinks to Open a Div box for Example.

If the user now browse from Site A to B with the BookmarkablePageLink, use
than the back button of the Browser and now clicked a AjaxLink on Site A a
/org.apache.wicket.markup.html.pages.PageExpiredErrorPage /Error appears.

Can anyone explain me why this happend and how i can prevent this issue? 
Its not really userfriendly in my situation to throw exception if the user
used the back-button.

I'm using wicket 1.4.8. 

Thanks in Advance for any help.


Iam sorry for my English is not my mothers tongue!

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Big-Problem-BookmarkablePageLinks-AjaxLinks-and-BackButton-tp3924428p3924428.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: Request mapping

2011-10-21 Thread Martin Grigorov
Application#getHomePage() can be dynamic:

@Override
public Class? extends Page getHomePage() {
   if (MySession.get().isLoggedIn()) {
  return AuthenticatedHomePage.class;
   } else {
return NonAuthenticatedHomePage.class;
   }
}

mountPage(/, NonAuthenticatedHomePage.class);
mountPage(/${userId}/home, AuthenticatedHomePage.class);
mountPage(/${userId}/admin, AdminPage.class);

used with:
PageParameters params = new PageParameters();
if (MySession.get().isLoggedIn()) {
   String userId = MySession.get().getUser().getId();
   params.set(userId, userId);
}
linkToHome = new BookmarkablePageLinkVoid(someId,
getApplication().getHomePage(), params);

On Thu, Oct 20, 2011 at 10:36 PM, anantasthana anant.a...@gmail.com wrote:
 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





-- 
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: Request mapping

2011-10-21 Thread anantasthana
Thanks martin this is exactly what I was looking for.
-Original Message-
From: Martin Grigorov-4 [via Apache Wicket] 
ml-node+s1842946n3924434...@n4.nabble.com
Date: Thu, 20 Oct 2011 23:41:54 
To: anantasthanaanant.a...@gmail.com
Subject: Re: Request mapping



Application#getHomePage() can be dynamic:

@Override
public Class? extends Page getHomePage() {
   if (MySession.get().isLoggedIn()) {
  return AuthenticatedHomePage.class;
   } else {
return NonAuthenticatedHomePage.class;
   }
}

mountPage(/, NonAuthenticatedHomePage.class);
mountPage(/${userId}/home, AuthenticatedHomePage.class);
mountPage(/${userId}/admin, AdminPage.class);

used with:
PageParameters params = new PageParameters();
if (MySession.get().isLoggedIn()) {
   String userId = MySession.get().getUser().getId();
   params.set(userId, userId);
}
linkToHome = new BookmarkablePageLinkVoid(someId,
getApplication().getHomePage(), params);

On Thu, Oct 20, 2011 at 10:36 PM, anantasthana anant.a...@gmail.com wrote:
 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





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



___
If you reply to this email, your message will be added to the discussion below:
http://apache-wicket.1842946.n4.nabble.com/Request-mapping-tp3923220p3924434.html

To unsubscribe from Request mapping, visit 
http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=3923220code=YW5hbnQuYXN0eUBnbWFpbC5jb218MzkyMzIyMHwxOTU2OTQ5NjMy


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Request-mapping-tp3923220p3924436.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-21 Thread Chris Colman
We do something similar but use 

/content/value

Then you can mount the single page at /content and then treat what
follows as a parameter which determines how that page is rendered.

-Original Message-
From: Arjun Dhar [mailto:dhar...@yahoo.com]
Sent: Friday, 21 October 2011 5:20 PM
To: users@wicket.apache.org
Subject: Re: Drilling Application.getHomePage()

Ah, sorry was trying to use as less words as possible :)

Q / Problem) Since Application.getHomePage() returns Class? extends
Page
and in my case Multiple pages are mounted to point to the same WebPage.
How
to I specify the Home Page.

In other words: CLASS to Mounted Pages is a one to many relation. By
returning the class name, there is no way logically for the system to
determine which page I'm asking it to goto as Home.

-
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-
tp3924262p3924407.html
Sent from the Users forum mailing list archive at Nabble.com.

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


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



Re: Drilling Application.getHomePage()

2011-10-21 Thread anant . asty
This is very similar to what I am trying to do. Martin just replied to my post 
with a great example. Check it out..
-Original Message-
From: Chris Colman chr...@stepaheadsoftware.com
Date: Fri, 21 Oct 2011 16:44:53 
To: users@wicket.apache.org
Reply-To: users@wicket.apache.org
Subject: RE: Drilling Application.getHomePage()

We do something similar but use 

/content/value

Then you can mount the single page at /content and then treat what
follows as a parameter which determines how that page is rendered.

-Original Message-
From: Arjun Dhar [mailto:dhar...@yahoo.com]
Sent: Friday, 21 October 2011 5:20 PM
To: users@wicket.apache.org
Subject: Re: Drilling Application.getHomePage()

Ah, sorry was trying to use as less words as possible :)

Q / Problem) Since Application.getHomePage() returns Class? extends
Page
and in my case Multiple pages are mounted to point to the same WebPage.
How
to I specify the Home Page.

In other words: CLASS to Mounted Pages is a one to many relation. By
returning the class name, there is no way logically for the system to
determine which page I'm asking it to goto as Home.

-
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-
tp3924262p3924407.html
Sent from the Users forum mailing list archive at Nabble.com.

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


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



RE: Big Problem: BookmarkablePageLinks, AjaxLinks and BackButton

2011-10-21 Thread Chris Colman
1.4.8 is a very old version. Maybe try using the latest 1.4.x version
and see if the problem hasn't already been fixed.

-Original Message-
From: MattyDE [mailto:ufer.mar...@gmail.com]
Sent: Friday, 21 October 2011 5:37 PM
To: users@wicket.apache.org
Subject: Big Problem: BookmarkablePageLinks, AjaxLinks and BackButton

Hi community,

i have a big Problem:


In my application i use BookmarkabePageLinks to browse through
different
Pages and AjaxLinks to Open a Div box for Example.

If the user now browse from Site A to B with the BookmarkablePageLink,
use
than the back button of the Browser and now clicked a AjaxLink on Site
A a
/org.apache.wicket.markup.html.pages.PageExpiredErrorPage /Error
appears.

Can anyone explain me why this happend and how i can prevent this
issue?
Its not really userfriendly in my situation to throw exception if the
user
used the back-button.

I'm using wicket 1.4.8.

Thanks in Advance for any help.


Iam sorry for my English is not my mothers tongue!

--
View this message in context: http://apache-
wicket.1842946.n4.nabble.com/Big-Problem-BookmarkablePageLinks-AjaxLink
s-
and-BackButton-tp3924428p3924428.html
Sent from the Users forum mailing list archive at Nabble.com.

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


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



Re: Big Problem: BookmarkablePageLinks, AjaxLinks and BackButton

2011-10-21 Thread MattyDE
this doesnt matter. i use the back-button on time (less than 2 seconds) and
the error appears.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Big-Problem-BookmarkablePageLinks-AjaxLinks-and-BackButton-tp3924428p3924451.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: Big Problem: BookmarkablePageLinks, AjaxLinks and BackButton

2011-10-21 Thread MattyDE
iam updating right now. i Reply again if i double checked my issue in the new
version.

Thanks

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Big-Problem-BookmarkablePageLinks-AjaxLinks-and-BackButton-tp3924428p3924456.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: Big Problem: BookmarkablePageLinks, AjaxLinks and BackButton

2011-10-21 Thread MattyDE
Updated and Still the Same Problem. =(

This is my BookmarkableLink:
linkNummer = new BookmarkablePageLinkAngebotDetailsPage(link_nummer,
AngebotDetailsPage.class, new PageParameters(String.format(id=%d,
modelOfAngebot.getObject().getId())) );


and this my AjaxLink

AjaxLink showAngebotButton = new AjaxLink(showAngebotButton){

@Override
public void onClick(AjaxRequestTarget target) {

target.prependJavascript(showPrintDiv(''));   
}

};

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Big-Problem-BookmarkablePageLinks-AjaxLinks-and-BackButton-tp3924428p3924469.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-21 Thread Wilhelmsen Tor Iver
 Q / Problem) Since Application.getHomePage() returns Class? extends Page
 and in my case Multiple pages are mounted to point to the same WebPage. How
 to I specify the Home Page.

getHomePage() returns what Page to use for a request when the URL does not 
refer to a mounted Page or other RequestTarget. A default, if you will. Your 
mount points with different URLs for the class should handle the others.

- Tor Iver

-
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-21 Thread nhsoft.yhw
You tried google chrome browser? chrome browser I found no problem.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Occasional-Software-caused-connection-abort-socket-write-error-with-1-5-tp3920880p3924517.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-21 Thread Martin Grigorov
On Fri, Oct 21, 2011 at 6:29 AM, nhsoft.yhw nhsoft@gmail.com wrote:
 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.
ticket + quickstart please





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





-- 
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: Big Problem: BookmarkablePageLinks, AjaxLinks and BackButton

2011-10-21 Thread Ernesto Reinaldo Barreiro
Hi,

Just guessing.

1-On page A you do some AJAX panel replacements? This is not reflected
on page store...
2-You navigate to page B and then back button.
3-You click on AJAX link... page A is retrieved from store but AJAX
link  is not found on component tree... Then WebRequestCycleProcessor
throws a PageExpiredException.

Regards,

Ernesto

On Fri, Oct 21, 2011 at 8:37 AM, MattyDE ufer.mar...@gmail.com wrote:
 Hi community,

 i have a big Problem:


 In my application i use BookmarkabePageLinks to browse through different
 Pages and AjaxLinks to Open a Div box for Example.

 If the user now browse from Site A to B with the BookmarkablePageLink, use
 than the back button of the Browser and now clicked a AjaxLink on Site A a
 /org.apache.wicket.markup.html.pages.PageExpiredErrorPage /Error appears.

 Can anyone explain me why this happend and how i can prevent this issue?
 Its not really userfriendly in my situation to throw exception if the user
 used the back-button.

 I'm using wicket 1.4.8.

 Thanks in Advance for any help.


 Iam sorry for my English is not my mothers tongue!

 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Big-Problem-BookmarkablePageLinks-AjaxLinks-and-BackButton-tp3924428p3924428.html
 Sent from the Users forum mailing list archive at Nabble.com.

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



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



Re: Big Problem: BookmarkablePageLinks, AjaxLinks and BackButton

2011-10-21 Thread MattyDE
ur guess is wrong =(

But u give me a good hint.

I've tested it now with two TestPages which only include Bookmarkable and
AjaxLinks and this works.


On the non-working Page the user did nothing before he browse to Page B
but on Page A are a lot of ListViews and nested panels and more...

Could this be the Problem?

Thanks :)

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Big-Problem-BookmarkablePageLinks-AjaxLinks-and-BackButton-tp3924428p3924658.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: Big Problem: BookmarkablePageLinks, AjaxLinks and BackButton

2011-10-21 Thread Ernesto Reinaldo Barreiro
My guess might still be valid... Somehow the state of the browser
does not match component tree. You can try forcing re-loading for that
page, so that the state is always the same on both sides.

Regards,

Ernesto

On Fri, Oct 21, 2011 at 10:30 AM, MattyDE ufer.mar...@gmail.com wrote:
 ur guess is wrong =(

 But u give me a good hint.

 I've tested it now with two TestPages which only include Bookmarkable and
 AjaxLinks and this works.


 On the non-working Page the user did nothing before he browse to Page B
 but on Page A are a lot of ListViews and nested panels and more...

 Could this be the Problem?

 Thanks :)

 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Big-Problem-BookmarkablePageLinks-AjaxLinks-and-BackButton-tp3924428p3924658.html
 Sent from the Users forum mailing list archive at Nabble.com.

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



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



Re: Big Problem: BookmarkablePageLinks, AjaxLinks and BackButton

2011-10-21 Thread Ernesto Reinaldo Barreiro
See

http://webcache.googleusercontent.com/search?q=cache:http://www.richardnichols.net/2010/03/apache-wicket-force-page-reload-to-fix-ajax-back/

Ernesto

On Fri, Oct 21, 2011 at 10:38 AM, Ernesto Reinaldo Barreiro
reier...@gmail.com wrote:
 My guess might still be valid... Somehow the state of the browser
 does not match component tree. You can try forcing re-loading for that
 page, so that the state is always the same on both sides.

 Regards,

 Ernesto

 On Fri, Oct 21, 2011 at 10:30 AM, MattyDE ufer.mar...@gmail.com wrote:
 ur guess is wrong =(

 But u give me a good hint.

 I've tested it now with two TestPages which only include Bookmarkable and
 AjaxLinks and this works.


 On the non-working Page the user did nothing before he browse to Page B
 but on Page A are a lot of ListViews and nested panels and more...

 Could this be the Problem?

 Thanks :)

 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Big-Problem-BookmarkablePageLinks-AjaxLinks-and-BackButton-tp3924428p3924658.html
 Sent from the Users forum mailing list archive at Nabble.com.

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




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



Re: Big Problem: BookmarkablePageLinks, AjaxLinks and BackButton

2011-10-21 Thread MattyDE
how can i force a reload on browser back-button?

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Big-Problem-BookmarkablePageLinks-AjaxLinks-and-BackButton-tp3924428p3924680.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: Big Problem: BookmarkablePageLinks, AjaxLinks and BackButton

2011-10-21 Thread Ernesto Reinaldo Barreiro
See

http://webcache.googleusercontent.com/search?q=cache:http://www.richardnichols.net/2010/03/apache-wicket-force-page-reload-to-fix-ajax-back/

Ernesto

On Fri, Oct 21, 2011 at 10:40 AM, MattyDE ufer.mar...@gmail.com wrote:
 how can i force a reload on browser back-button?

 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Big-Problem-BookmarkablePageLinks-AjaxLinks-and-BackButton-tp3924428p3924680.html
 Sent from the Users forum mailing list archive at Nabble.com.

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



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



Re: Big Problem: BookmarkablePageLinks, AjaxLinks and BackButton

2011-10-21 Thread MattyDE
Thank u so much. This helps me alot!

I also figured out that my own gridView implementation cause the problem.

Iam using here an own implementation of SortableDataProvider. And if i fill
the Provider with data from the Database on Page A and did the browsing
forward, back thing than the PageExpired Error appears.

But if i use a test-array to fill the SortableDataProvider it works without
PageExpired.

Any hints for this?

I wanted to understand the reason for this issue with my grid...

Thanks :)

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Big-Problem-BookmarkablePageLinks-AjaxLinks-and-BackButton-tp3924428p3924725.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



ModalWindow shows Error Page in Opera

2011-10-21 Thread Alex
Dear all,

While trying to open a ModalWindow the Opera shows error page. Translated
from German it says something like “Internal Communication error. Check the
address or search for web site” In FF, IE, Safari everything works fine.



Wicket version 1.4.9

Opera 11.52



Thanks a lot in advance
Alex


Re: ModalWindow shows Error Page in Opera

2011-10-21 Thread Martin Grigorov
On Fri, Oct 21, 2011 at 12:05 PM, Alex zeita...@googlemail.com wrote:
 Dear all,

 While trying to open a ModalWindow the Opera shows error page. Translated
 from German it says something like “Internal Communication error. Check the
 address or search for web site” In FF, IE, Safari everything works fine.



 Wicket version 1.4.9
Try with a newer version of Wicket.

 Opera 11.52



 Thanks a lot in advance
 Alex




-- 
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: Big Problem: BookmarkablePageLinks, AjaxLinks and BackButton

2011-10-21 Thread Ernesto Reinaldo Barreiro
Martin,

Are you navigating the GRID via AJAX? If so, then that is the AJAX
panel replacement I was talking about...

Otherwise I can't see why it should be different if you fetch data
from a DB or use an array:-(

Regards,

Ernesto

On Fri, Oct 21, 2011 at 10:59 AM, MattyDE ufer.mar...@gmail.com wrote:
 Thank u so much. This helps me alot!

 I also figured out that my own gridView implementation cause the problem.

 Iam using here an own implementation of SortableDataProvider. And if i fill
 the Provider with data from the Database on Page A and did the browsing
 forward, back thing than the PageExpired Error appears.

 But if i use a test-array to fill the SortableDataProvider it works without
 PageExpired.

 Any hints for this?

 I wanted to understand the reason for this issue with my grid...

 Thanks :)

 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Big-Problem-BookmarkablePageLinks-AjaxLinks-and-BackButton-tp3924428p3924725.html
 Sent from the Users forum mailing list archive at Nabble.com.

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



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



Re: Big Problem: BookmarkablePageLinks, AjaxLinks and BackButton

2011-10-21 Thread MattyDE
is its possible to navigate through this grid via ajax. But in my testcase
iam not using this possibilitiy.

but there would be also no different between navigating in my grid with or
without database driven data.



Could there be some problem with model-persistance in PageMap or anything
else? Iam clueless =(

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Big-Problem-BookmarkablePageLinks-AjaxLinks-and-BackButton-tp3924428p3924789.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: ModalWindow shows Error Page in Opera

2011-10-21 Thread nhsoft.yhw
Wicket 1.5.x have fixed the problem.


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/ModalWindow-shows-Error-Page-in-Opera-tp3924738p3924885.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: ModalWindow shows Error Page in Opera

2011-10-21 Thread Attila Király
It is fixed in 1.4.18 too: https://issues.apache.org/jira/browse/WICKET-3615

Attila

2011/10/21 nhsoft.yhw nhsoft@gmail.com

 Wicket 1.5.x have fixed the problem.


 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/ModalWindow-shows-Error-Page-in-Opera-tp3924738p3924885.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-21 Thread nhsoft.yhw
I try to reproduce the problem to create quickStart demo,  but this error
problem only in my real application occurs, My situation is that only use IE
6 7 8 visits the page with modalwindow  will throw be connection problem.

I  will try to reproduce later.


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Occasional-Software-caused-connection-abort-socket-write-error-with-1-5-tp3920880p3924906.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: ModalWindow shows Error Page in Opera

2011-10-21 Thread Alex
Thanks to all. With wicket 1.4.19 it works fine.

2011/10/21 Attila Király kiralyattila...@gmail.com

 It is fixed in 1.4.18 too:
 https://issues.apache.org/jira/browse/WICKET-3615

 Attila

 2011/10/21 nhsoft.yhw nhsoft@gmail.com

  Wicket 1.5.x have fixed the problem.
 
 
  --
  View this message in context:
 
 http://apache-wicket.1842946.n4.nabble.com/ModalWindow-shows-Error-Page-in-Opera-tp3924738p3924885.html
  Sent from the Users forum mailing list archive at Nabble.com.
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 



Re: [wicketstuff-push] How to disconnect cleanly?

2011-10-21 Thread Sebastian

hi,

we fixed it in trunk now. please give it a try.

regards,

seb

On 12.10.2011 11:18, vineet semwal wrote:

thank you martin !

  herald ,i have opened a issue for you
https://github.com/wicketstuff/core/issues/66
thank you !

On Wed, Oct 12, 2011 at 2:19 PM, Martin Grigorovmgrigo...@apache.org  wrote:

On Wed, Oct 12, 2011 at 11:13 AM, vineet semwal
vineetsemwal1...@gmail.com  wrote:

there is no need for the api change,its a bug and i think wicket-stuff
push developers will make that change there in
uninstallNode(component,node) ,they might be busy ..

they should be notified
add an issue in GitHub


On Wed, Oct 12, 2011 at 12:50 PM, Harald Wellmann
hwellmann...@googlemail.com  wrote:

I'm currently doing timer.stop() in my application code before calling
uninstallNode(), but that requires copying code from the private
method TimerPushService._findPushBehavior(). So it seems the API could
do with a couple of extensions for this case...

Best regards,
Harald

2011/10/11 vineet semwalvineetsemwal1...@gmail.com:

i think its better to do timerpushbehavior.stop() instead of
component.remove(behavior)
inside uninstallNode(component,node) but it might require other changes too ..


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






--
thank you,

regards,
Vineet Semwal

-
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: [wicketstuff-push] How to disconnect cleanly?

2011-10-21 Thread vineet semwal
just tested on a quickstart,works well ..

thanks for the fix !

On Fri, Oct 21, 2011 at 6:23 PM, Sebastian nospam...@gmx.net wrote:
 hi,

 we fixed it in trunk now. please give it a try.

 regards,

 seb

 On 12.10.2011 11:18, vineet semwal wrote:

 thank you martin !

  herald ,i have opened a issue for you
 https://github.com/wicketstuff/core/issues/66
 thank you !

 On Wed, Oct 12, 2011 at 2:19 PM, Martin Grigorovmgrigo...@apache.org
  wrote:

 On Wed, Oct 12, 2011 at 11:13 AM, vineet semwal
 vineetsemwal1...@gmail.com  wrote:

 there is no need for the api change,its a bug and i think wicket-stuff
 push developers will make that change there in
 uninstallNode(component,node) ,they might be busy ..

 they should be notified
 add an issue in GitHub

 On Wed, Oct 12, 2011 at 12:50 PM, Harald Wellmann
 hwellmann...@googlemail.com  wrote:

 I'm currently doing timer.stop() in my application code before calling
 uninstallNode(), but that requires copying code from the private
 method TimerPushService._findPushBehavior(). So it seems the API could
 do with a couple of extensions for this case...

 Best regards,
 Harald

 2011/10/11 vineet semwalvineetsemwal1...@gmail.com:

 i think its better to do timerpushbehavior.stop() instead of
 component.remove(behavior)
 inside uninstallNode(component,node) but it might require other
 changes too ..

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





 --
 thank you,

 regards,
 Vineet Semwal

 -
 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





-- 
thank you,

regards,
Vineet Semwal

-
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-21 Thread gilbertoca
Hi Daniel,

The Max Berger's blog has a post about it[1]. 


Hth,

Gilberto

[1]
http://blog.max.berger.name/2010/02/jetty-7-maven-plugin-authentication.html

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wrong-path-for-resources-on-redirected-login-page-tp3920038p3925639.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



Problems with AjaxCheckBox in Wicket 1.5.1

2011-10-21 Thread jamesatk
Greetings,

Our project updated to Wicket 1.5.1 from Wicket 1.4.5 and AjaxCheckBox is no
longer firing the onUpdate() method.

Below is a code snippet of how it is being used:

ListView listView = new ListView(events, eventGroups) {

protected void populateItem(final ListItem item) {
final EventGroups event = (EventGroups)
item.getModelObject();
   
Model checked = new ModelBoolean(false);

AjaxCheckBox eventCheckbox = new
AjaxCheckBox(eventCheckbox, checked) {

@Override
protected void onUpdate(AjaxRequestTarget target) {
logger.debug(onUpdate);
// do stuff on updatd
}
};

item.add(eventCheckbox);
}
};

This code worked in Wicket 1.4.5, but not in Wicket 1.5.1.  I have searched,
but have been unable to find a solution and the Wicket 1.5.1 migration guide
gave no indication that this has changed.

Any help would be greatly appreciated.

Thanks!

James

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Problems-with-AjaxCheckBox-in-Wicket-1-5-1-tp3925435p3925435.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-21 Thread bjolletz
Thanks Gilberto! I'll try that.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wrong-path-for-resources-on-redirected-login-page-tp3920038p3925757.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: Problems with AjaxCheckBox in Wicket 1.5.1

2011-10-21 Thread Igor Vaynberg
create a quickstart and attach it to a jira issue...

-igor

On Fri, Oct 21, 2011 at 6:38 AM, jamesatk james.atkins@esrgtech.com wrote:
 Greetings,

 Our project updated to Wicket 1.5.1 from Wicket 1.4.5 and AjaxCheckBox is no
 longer firing the onUpdate() method.

 Below is a code snippet of how it is being used:

        ListView listView = new ListView(events, eventGroups) {

            protected void populateItem(final ListItem item) {
                final EventGroups event = (EventGroups)
 item.getModelObject();

                Model checked = new ModelBoolean(false);

                AjaxCheckBox eventCheckbox = new
 AjaxCheckBox(eventCheckbox, checked) {

                    @Override
                    protected void onUpdate(AjaxRequestTarget target) {
                        logger.debug(onUpdate);
                        // do stuff on updatd
                    }
                };

                item.add(eventCheckbox);
            }
        };

 This code worked in Wicket 1.4.5, but not in Wicket 1.5.1.  I have searched,
 but have been unable to find a solution and the Wicket 1.5.1 migration guide
 gave no indication that this has changed.

 Any help would be greatly appreciated.

 Thanks!

 James

 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Problems-with-AjaxCheckBox-in-Wicket-1-5-1-tp3925435p3925435.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



Latest version of TinyMCE

2011-10-21 Thread Vishal Popat
Hi all,

I am trying to get the latest version of TinyMCE... I have tried getting this 
from Maven like so:

dependency
groupIdorg.wicketstuff/groupId
artifactIdtinymce/artifactId
version1.4.18/version
/dependency

When looking at the version of TinyMCE it says its version 3.3. This version is 
quite old- latest version on TinyMCE website is 3.4.6.
The reason I need the latest version is that I am having major problems with 
IE9. Some Googling shows that it may be fixed in later versions.

I have seen jbrookover / core from GitHub which seems to have version 3.4.1. I 
am not sure whether this should be used and how to get it has a jar.

Any help would be appreciated.

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



Re: wicket + jasper reports

2011-10-21 Thread Jim Pinkham
OK, I've almost got it - thanks for the example.

It comes down to either using a ResourceLinkVoid which serves up the pdf
with no complaints, but despite being attached to a submit button, the form
doesn't seem to have been submitted; the parameters don't reflect any user
input

or, I can solve that if I use a Button instead, and copy this code from
ResourceLink.onResourceRequested into the Button's onSubmit()...

Attributes a = new Attributes(RequestCycle.get().getRequest(),
RequestCycle.get()
.getResponse(), null);
resource.respond(a);

But if I do that, it works but then I get Header was already written to
response! as mentioned earlier.

I also tried making my own MyResourceLink (I would rather have extended
ResourceLink but I had to go all the way back to Link because ResourceLink's
onResourceRequested is final) and I put a call to
ParamsForm.this.process(this); then super.onResourceRequested(), and that
stopped the error but still didn't submit the form.

Has anyone found a way to get the best of both?  I found SubmitLink, but I
guess I need some way to 'mix that in', or decorate the ResourceLink with a
submit first... not sure how to do that..  (ResourceLink already implements
IFormSubmittingComponent, but I guess that's not enough)

(I tried calling inputField.getConvertedInput() like I might do from a
validator but that just returns null, which is what leads me to believe the
form hasn't been submitted)

Thanks,
-- Jim.

On Wed, Oct 19, 2011 at 11:55 PM, Martin Grigorov mgrigo...@apache.orgwrote:

 On Wed, Oct 19, 2011 at 11:46 PM, Paul Szulc paul.sz...@gmail.com wrote:
  Ok, below the code I use to create a link that allows to download pdf
 file
  created by jasper on runtime. Hope it helps. Do not hesitate to ask
  questions.
 
 
  public class PdfGenerateLink extends ResourceLinkVoid {
 
 public PdfGenerateLink(final String id, final IModelBid model, final
  PdfBuilderFromBidCreator creator) {
 
 super(id, new WebResource() {
 @Override
 public IResourceStream getResourceStream() {
 IResourceStream resourceStream = new
  AbstractResourceStreamWriter() {
 
 public void write(OutputStream output) {
 try {
 generate(output, model.getObject());
 } catch (Exception e) {
 throw new RuntimeException(e);
 }
 }
 
 private void generate(OutputStream output, Bid bid)
  throws Exception {
 PdfOfertaDocumentBuilder pdf =
 creator.create(bid);
 Oferta ?!
 This sounds like Bulgarians are involved here :-)
 InputStream generate = pdf.generate();
 byte[] buffer = new byte[1024];
 while (generate.read(buffer) != -1) {
 output.write(buffer);
 }
 generate.close();
 }
 
 public String getContentType() {
 return application/pdf;
 }
 };
 
 return resourceStream;
 }
 
 @Override
 protected void setHeaders(WebResponse response) {
 super.setHeaders(response);
 response.setCharacterEncoding(UFT-8);
 response.setHeader(Expires, 0);
 response.setHeader(Cache-Control, no-cache);
 response.setHeader(Cache-Control, must-revalidate,
  post-check=0, pre-check=0);
 response.setHeader(Pragma, public);
 
 
 response.setAttachmentHeader(model.getObject().getPublicTask().getName().replace(
  , _) + .pdf);
 }
 });
 add(createImage(icon, pdficon16.png));
 }
  }
 
  On Tue, Oct 18, 2011 at 8:43 PM, Jim Pinkham pinkh...@gmail.com wrote:
 
  Paul,
 
  I am doing something very similar - I'd be interested to know more about
  how you got this working - here is what I've got that works for now, but
 I'm
  not real happy with it:
 
  In my report forms, I have buttons like this:  (details about params
  omitted - nothing fancy there)
 
  add(new MyReportResourceButton(pdf, new
  ReportResource(MyReport, new PdfResourceHandler()), paramsModel));
  add(new MyReportResourceButton(xls, new
  ReportResource(MyReport, new XlsResourceHandler()), paramsModel));
 
  (So it will load MyReport.jasper that was compiled and put into
 resources
  folder by maven plugin during build)
 
  MyReportResourceButton has this:
  @Override
  public final void onResourceRequested() {
  MapString,Object params = paramsModel.getObject();
  resource.setReportParameters(params);
  super.onResourceRequested();
  }
 
  and it's superclass MyResourceButton has this:
  @Override
  public void 

Re: Problems with AjaxCheckBox in Wicket 1.5.1

2011-10-21 Thread jamesatk
I will.

I rolled back to 1.4.19 and they work again.

Thanks!

James

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Problems-with-AjaxCheckBox-in-Wicket-1-5-1-tp3925435p3926640.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-21 Thread Chris Colman
I suspect that will be our problem too. With simple quickstart the pages
do not take very long to render and so impossible to click links fast
enough such that you can click on one before the last link has completed
rendering - maybe we could add a delay in the rendering somewhere or do
a big database access to make the rendering process take longer.

-Original Message-
From: nhsoft.yhw [mailto:nhsoft@gmail.com]
Sent: Friday, 21 October 2011 9:41 PM
To: users@wicket.apache.org
Subject: Re: Occasional Software caused connection abort: socket write
error with 1.5

I try to reproduce the problem to create quickStart demo,  but this
error
problem only in my real application occurs, My situation is that only
use
IE
6 7 8 visits the page with modalwindow  will throw be connection
problem.

I  will try to reproduce later.


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

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


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



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

2011-10-21 Thread nhsoft.yhw
I do not think so.

My application is upgraded from wicket 1.4.18 to 1.5.x, in wicket1.4.x using
IE6, IE7, IE8 browser is normal, 'ClientAbortException error' appeared after
the upgrade to wicket1.5.1, and use Chrome browser or IE9 is no problem both
wicket 1.4.x and 1.5.x.

Only some of the components with dataview grid  each row used ModalWindow
compenent, when refresh dataview data, the server side throws 
ClientAbortException error, but dataview row displayed, then  when click on
the  dataview row's ajaxlink to pop-up ModelWindow, the browser display 404
page.

IE9 runing compatibility mode has also ClientAbortException.

server side error stack


wicket ajax debug message




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Occasional-Software-caused-connection-abort-socket-write-error-with-1-5-tp3920880p3927132.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