Change visibility of a component before onSubmit

2013-03-08 Thread Michael Backmann

Hello,
I would like to react on the onSubmit-method of an AjaxButton or normal 
Button. The problem is, I would like to make a panel (a customized 
progressbar) visible and after this there should be internal work and 
when it is finished, there should be a change to another page. If I try 
to put it all in the onSubmit-method then the calculation is done and 
the page is changed at the end of the request, but the panel is not 
changed to be visible before, because Wicket does it all in one request? 
If I change the visibility via an AjaxButton and do the calculation and 
the page change in an extra thread, then the panel is visible, the 
calculation is done, but the page change with setResponsePage does not 
work, because the request is already finished? How could I get the 
requested behaviour? Is there a possibility to add an 
AjaxOnChange-Listener to the panel, which reacts if the panel switches 
to visible or is there another good way?


Thank you in advance,
Micha


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



wiquery vs wicket-jquery-ui

2013-03-08 Thread Oscar Besga Arcauz
 
Hi wickers

I was searching for a wicket + query-ui libraries and I found
* wiquery - https://github.com/WiQuery/wiquery
* wicket-jquery-ui - https://github.com/sebfz1/wicket-jquery-ui

Trying to not make controversy, have anyone used any ?
Have anyone tested both and chose one ? Why ?

I found wiquery more mature and matched with last wicket libraries;
but wicket-jquery-ui more active recently.

What do you think ?


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



Re: Change visibility of a component before onSubmit

2013-03-08 Thread Andrea Del Bene
Which version of Wicket are you using? Maybe you can do what you want 
with an AJAX listener.

Hello,
I would like to react on the onSubmit-method of an AjaxButton or 
normal Button. The problem is, I would like to make a panel (a 
customized progressbar) visible and after this there should be 
internal work and when it is finished, there should be a change to 
another page. If I try to put it all in the onSubmit-method then the 
calculation is done and the page is changed at the end of the request, 
but the panel is not changed to be visible before, because Wicket does 
it all in one request? If I change the visibility via an AjaxButton 
and do the calculation and the page change in an extra thread, then 
the panel is visible, the calculation is done, but the page change 
with setResponsePage does not work, because the request is already 
finished? How could I get the requested behaviour? Is there a 
possibility to add an AjaxOnChange-Listener to the panel, which reacts 
if the panel switches to visible or is there another good way?


Thank you in advance,
Micha


-
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: wiquery vs wicket-jquery-ui

2013-03-08 Thread Sebastien
Hi Oscar,

wicket-jquery-ui is (quite always) in sync with latest wicket libraries
version (and jQuery UI versions)

Best regards,
Sebastien.

On Fri, Mar 8, 2013 at 12:44 PM, Oscar Besga Arcauz obe...@isdefe.eswrote:


 Hi wickers

 I was searching for a wicket + query-ui libraries and I found
 * wiquery - https://github.com/WiQuery/wiquery
 * wicket-jquery-ui - https://github.com/sebfz1/wicket-jquery-ui

 Trying to not make controversy, have anyone used any ?
 Have anyone tested both and chose one ? Why ?

 I found wiquery more mature and matched with last wicket libraries;
 but wicket-jquery-ui more active recently.

 What do you think ?


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




Re: [ANN] wicketstuff-lazymodel

2013-03-08 Thread Martin Grigorov
Hi,

Wicket 6.7.0 will be cut next Friday. Can you wait a bit more ?
I can build it this Sunday too.


On Thu, Mar 7, 2013 at 12:51 AM, Jesse Long j...@unknown.za.net wrote:

 Hi All,

 Please can we do a 6.6.0 release of wicketstuff... I'd love for LazyModel
 to be on Maven Central.

 Thanks,
 Jesse


 On 18/02/2013 19:30, Sven Meier wrote:

 Hi all,

 I've added a new module to wicketstuff:

 LazyModel offers lazy evaluation of method invocations. It takes the best
 from present solutions (safemodel and modelfactory) and improves on
 reflection to support:

 * arbitrary parameters
 * generics
 * collections
 * interfaces

 Two simple examples:

 IModelString model = model(from(a).getB().**
 getStrings().get(key));

 new LazyColumnA, B(header, from(A.class).getB());

 Read more here:

 
 https://github.com/**wicketstuff/core/wiki/**LazyModelhttps://github.com/wicketstuff/core/wiki/LazyModel

 Have fun
 Sven

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




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




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


Re: download indicator for long downloads

2013-03-08 Thread Martin Grigorov
Hi,

Check
https://cwiki.apache.org/WICKET/ajax-update-and-file-download-in-one-blow.html
You can show the indicator when the Ajax response processing finish
(appendJavaScript())


On Thu, Mar 7, 2013 at 5:29 PM, fachhoch fachh...@gmail.com wrote:

 I   have a download link, clicking on this generates a word documents and
 starts downlaod,
 the word generation takes time ,   is there any way I can put an indicator
 using java script , jquery ...
 as this link has to download I am using Link not AjaxLink any suggestions ?
 I am using wicket 1.4.20




 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/download-indicator-for-long-downloads-tp4657083.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 http://jweekend.com/


Re: Change visibility of a component before onSubmit

2013-03-08 Thread Martin Grigorov
Hi,

You will need to use WebSocket/Push/Streaming to be able to write several
times to the browser in one request.
Better think for another solution. Your current requirement seems to be
more complex to implement than you really want.
For example make an Ajax call to start the processing and show the panel
and then use an ajax timer behavior to check when the processing has
finished to make the redirect to the new page.


On Fri, Mar 8, 2013 at 1:53 PM, Andrea Del Bene an.delb...@gmail.comwrote:

 Which version of Wicket are you using? Maybe you can do what you want with
 an AJAX listener.

  Hello,
 I would like to react on the onSubmit-method of an AjaxButton or normal
 Button. The problem is, I would like to make a panel (a customized
 progressbar) visible and after this there should be internal work and when
 it is finished, there should be a change to another page. If I try to put
 it all in the onSubmit-method then the calculation is done and the page is
 changed at the end of the request, but the panel is not changed to be
 visible before, because Wicket does it all in one request? If I change the
 visibility via an AjaxButton and do the calculation and the page change in
 an extra thread, then the panel is visible, the calculation is done, but
 the page change with setResponsePage does not work, because the request is
 already finished? How could I get the requested behaviour? Is there a
 possibility to add an AjaxOnChange-Listener to the panel, which reacts if
 the panel switches to visible or is there another good way?

 Thank you in advance,
 Micha


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



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




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


Re: Select2 get wrapper div id.

2013-03-08 Thread Martin Grigorov
Hi,

Better ask at https://groups.google.com/forum/#!forum/select2


On Fri, Mar 8, 2013 at 12:41 PM, cosmindumy cosmind...@yahoo.com wrote:

 Hello,
 Don't know if here is the best place for this question.
 I use a select2 component. It builds a wrapper div for display. May I get
 its markup id from code?
 Thanks.



 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Select2-get-wrapper-div-id-tp4657095.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 http://jweekend.com/


Re: Change visibility of a component before onSubmit

2013-03-08 Thread Michael Backmann
I'm using version 6 of Wicket. Meanwhile I have found a solution. I 
split the interaction in two requests:


|AjaxButton  confirmButton=  new  AjaxButton(confirmButton,  layoutForm)  {

@Override
protected  void  onSubmit(AjaxRequestTarget  target,  Form?  form)  {
super.onSubmit(target,  form);
System.out.println(Second);
}
};

confirmButton.add(new  AjaxEventBehavior(onclick)  {

@Override
protected  void  onEvent(AjaxRequestTarget  target)  {
System.out.println(First);
}
});|


Am 08.03.2013 12:53, schrieb Andrea Del Bene:
Which version of Wicket are you using? Maybe you can do what you want 
with an AJAX listener.

Hello,
I would like to react on the onSubmit-method of an AjaxButton or 
normal Button. The problem is, I would like to make a panel (a 
customized progressbar) visible and after this there should be 
internal work and when it is finished, there should be a change to 
another page. If I try to put it all in the onSubmit-method then the 
calculation is done and the page is changed at the end of the 
request, but the panel is not changed to be visible before, because 
Wicket does it all in one request? If I change the visibility via an 
AjaxButton and do the calculation and the page change in an extra 
thread, then the panel is visible, the calculation is done, but the 
page change with setResponsePage does not work, because the request 
is already finished? How could I get the requested behaviour? Is 
there a possibility to add an AjaxOnChange-Listener to the panel, 
which reacts if the panel switches to visible or is there another 
good way?


Thank you in advance,
Micha


-
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: [ANN] wicketstuff-lazymodel

2013-03-08 Thread Jesse Long

OK, that sounds great.

Thanks Martin.

On 08/03/2013 14:33, Martin Grigorov wrote:

Hi,

Wicket 6.7.0 will be cut next Friday. Can you wait a bit more ?
I can build it this Sunday too.


On Thu, Mar 7, 2013 at 12:51 AM, Jesse Long j...@unknown.za.net wrote:


Hi All,

Please can we do a 6.6.0 release of wicketstuff... I'd love for LazyModel
to be on Maven Central.

Thanks,
Jesse


On 18/02/2013 19:30, Sven Meier wrote:


Hi all,

I've added a new module to wicketstuff:

LazyModel offers lazy evaluation of method invocations. It takes the best
from present solutions (safemodel and modelfactory) and improves on
reflection to support:

* arbitrary parameters
* generics
* collections
* interfaces

Two simple examples:

 IModelString model = model(from(a).getB().**
getStrings().get(key));

 new LazyColumnA, B(header, from(A.class).getB());

Read more here:

 
https://github.com/**wicketstuff/core/wiki/**LazyModelhttps://github.com/wicketstuff/core/wiki/LazyModel

Have fun
Sven

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




--**--**-
To unsubscribe, e-mail: 
users-unsubscribe@wicket.**apache.orgusers-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: [ANN] wicketstuff-lazymodel

2013-03-08 Thread Martin Grigorov
:-)

I didn't understand which option you choose - to wait one more week or to
release 6.6.0 this weekend ?

On Fri, Mar 8, 2013 at 2:56 PM, Jesse Long j...@unknown.za.net wrote:

 OK, that sounds great.

 Thanks Martin.


 On 08/03/2013 14:33, Martin Grigorov wrote:

 Hi,

 Wicket 6.7.0 will be cut next Friday. Can you wait a bit more ?
 I can build it this Sunday too.


 On Thu, Mar 7, 2013 at 12:51 AM, Jesse Long j...@unknown.za.net wrote:

  Hi All,

 Please can we do a 6.6.0 release of wicketstuff... I'd love for LazyModel
 to be on Maven Central.

 Thanks,
 Jesse


 On 18/02/2013 19:30, Sven Meier wrote:

  Hi all,

 I've added a new module to wicketstuff:

 LazyModel offers lazy evaluation of method invocations. It takes the
 best
 from present solutions (safemodel and modelfactory) and improves on
 reflection to support:

 * arbitrary parameters
 * generics
 * collections
 * interfaces

 Two simple examples:

  IModelString model = model(from(a).getB().**

 getStrings().get(key));

  new LazyColumnA, B(header, from(A.class).getB());

 Read more here:

  
 https://github.com/wicketstuff/core/wiki/LazyModelhttps://github.com/**wicketstuff/core/wiki/**LazyModel
 https://github.com/**wicketstuff/core/wiki/**LazyModelhttps://github.com/wicketstuff/core/wiki/LazyModel
 

 Have fun
 Sven

 --**
 --**-
 To unsubscribe, e-mail: 
 users-unsubscribe@wicket.**apa**che.orghttp://apache.org
 users-unsubscribe@**wicket.apache.orgusers-unsubscr...@wicket.apache.org
 

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



  --**
 --**-
 To unsubscribe, e-mail: 
 users-unsubscribe@wicket.**apa**che.orghttp://apache.org
 users-unsubscribe@**wicket.apache.orgusers-unsubscr...@wicket.apache.org
 

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





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




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


[wicket-atmosphere] Spring Security context while rendering subscribed components

2013-03-08 Thread Andrei Badea
Our Wicket application uses Spring Security for authentication and 
authorization. All service methods check that the current user (in the 
Spring Security context) has the right to execute the method.


When the subscribed components are rendered for an Atmosphere broadcast, 
the security context is not the right one. We call EventBus.post() in a 
background (non-HTTP) thread, so there is no security context at all 
(and even if it were, its user would not be the right one).


I can use ResourceRegistrationListener to keep track of the 
resource-UUID-to-user assignment, but I see no way to set the user into 
the security context before the subscribed components are rendered. Is 
there one? If not, it is conceivable to add one, such as some sort of 
hook to EventBus.post()? The security context would ideally be set 
around postToSingleResource(), and it must be reset after all resources 
have been handled.


Thank you,

Andrei


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



Re: [ANN] wicketstuff-lazymodel

2013-03-08 Thread Jesse Long

I can wait till 6.7.0. :-)

Cheers,
Jesse

On 08/03/2013 15:03, Martin Grigorov wrote:

:-)

I didn't understand which option you choose - to wait one more week or to
release 6.6.0 this weekend ?

On Fri, Mar 8, 2013 at 2:56 PM, Jesse Long j...@unknown.za.net wrote:


OK, that sounds great.

Thanks Martin.


On 08/03/2013 14:33, Martin Grigorov wrote:


Hi,

Wicket 6.7.0 will be cut next Friday. Can you wait a bit more ?
I can build it this Sunday too.


On Thu, Mar 7, 2013 at 12:51 AM, Jesse Long j...@unknown.za.net wrote:

  Hi All,

Please can we do a 6.6.0 release of wicketstuff... I'd love for LazyModel
to be on Maven Central.

Thanks,
Jesse


On 18/02/2013 19:30, Sven Meier wrote:

  Hi all,

I've added a new module to wicketstuff:

LazyModel offers lazy evaluation of method invocations. It takes the
best
from present solutions (safemodel and modelfactory) and improves on
reflection to support:

* arbitrary parameters
* generics
* collections
* interfaces

Two simple examples:

  IModelString model = model(from(a).getB().**

getStrings().get(key));

  new LazyColumnA, B(header, from(A.class).getB());

Read more here:

  
https://github.com/wicketstuff/core/wiki/LazyModelhttps://github.com/**wicketstuff/core/wiki/**LazyModel
https://github.com/**wicketstuff/core/wiki/**LazyModelhttps://github.com/wicketstuff/core/wiki/LazyModel
Have fun
Sven

--**
--**-
To unsubscribe, e-mail: 
users-unsubscribe@wicket.**apa**che.orghttp://apache.org
users-unsubscribe@**wicket.apache.orgusers-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



  --**

--**-
To unsubscribe, e-mail: 
users-unsubscribe@wicket.**apa**che.orghttp://apache.org
users-unsubscribe@**wicket.apache.orgusers-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org




--**--**-
To unsubscribe, e-mail: 
users-unsubscribe@wicket.**apache.orgusers-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



Page Hierachy and Packages

2013-03-08 Thread David Beer

Hi All

I am new Wicket and like what I have found so far. My problem is that I 
have created a few pages and forms and placed them in a package named 
auth. I can navigate to the pages easily but they don't seem to 
inherite the CSS from the BasePage which is in a different package. Also 
any links to the HomePage which is in the default package is not found.


My BasePage HTML looks like the following:

html xmlns=http://www.w3.org/1999/xhtml;
  
xmlns:wicket=http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd;

  xml:lang=en
  lang=en
  head
wicket:head
  wicket:link
link rel=stylesheet type=text/css href=style.css/
  /wicket:link
/wicket:head
  /head
  body
div id=container
  div id=header
header wicket:id=headerpanel/
  /div
  div class=content_container
wicket:child/
  /div
  div id=footer
footer wicket:id=footerpanel /
  /div
/div
  /body
/html

My AdminPage which is in the auth package is never finds the css file 
declared in the base page.


My project structure is as follows:

src/main/java/example/BasePage and HomePage
src/main/java/example/auth/AdminPage and SignInPage and SignOutPage

html xmlns:wicket=http://wicket.apache.org;
  head
meta http-equiv=Content-Type content=text/html; charset=UTF-8/
titleAdminPage/title
  /head
  body
wicket:extend
  h2Welcome ADMIN!/h2
  p
This page should only be accessible if you are signed in as an 
administrator.

  /p
  p
wicket:linka href=HomePage.htmlHome/a/wicket:linkbr/
wicket:linka href=SignOutPage.htmlSign Out/a/wicket:link
  /p
/wicket:extend
  /body
/html

I mount the pages in the xxApplication class as follows:

mountPage(/Home, HomePage.class);
mountPage(/guest-list, GuestListPage.class);
mountPage(/auth/adminpage, AdminPage.class);
mountPage(/auth/signin, SignInPage.class);
mountPage(/auth/signout, SignOutPage.class);

How can fix the navigation and the location of the css file so that it 
is found. The css file is located the Webapps dir.


Thanks

David

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



Re: Page Hierachy and Packages

2013-03-08 Thread Nick Pratt
Do the pages in your auth package inherit from your BasePage class?  In
your auth package pages markup, do you have wicket:extend tags?

Nick

On Fri, Mar 8, 2013 at 9:17 AM, David Beer david.m.b...@gmail.com wrote:

 Hi All

 I am new Wicket and like what I have found so far. My problem is that I
 have created a few pages and forms and placed them in a package named
 auth. I can navigate to the pages easily but they don't seem to inherite
 the CSS from the BasePage which is in a different package. Also any links
 to the HomePage which is in the default package is not found.

 My BasePage HTML looks like the following:

 html xmlns=http://www.w3.org/1999/**xhtml http://www.w3.org/1999/xhtml
 
   xmlns:wicket=http://wicket.**apache.org/dtds.data/wicket-**
 xhtml1.4-strict.dtdhttp://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd
 
   xml:lang=en
   lang=en
   head
 wicket:head
   wicket:link
 link rel=stylesheet type=text/css href=style.css/
   /wicket:link
 /wicket:head
   /head
   body
 div id=container
   div id=header
 header wicket:id=headerpanel/
   /div
   div class=content_container
 wicket:child/
   /div
   div id=footer
 footer wicket:id=footerpanel /
   /div
 /div
   /body
 /html

 My AdminPage which is in the auth package is never finds the css file
 declared in the base page.

 My project structure is as follows:

 src/main/java/example/BasePage and HomePage
 src/main/java/example/auth/**AdminPage and SignInPage and SignOutPage

 html xmlns:wicket=http://wicket.**apache.org http://wicket.apache.org
 
   head
 meta http-equiv=Content-Type content=text/html; charset=UTF-8/
 titleAdminPage/title
   /head
   body
 wicket:extend
   h2Welcome ADMIN!/h2
   p
 This page should only be accessible if you are signed in as an
 administrator.
   /p
   p
 wicket:linka href=HomePage.htmlHome/a**/wicket:linkbr/
 wicket:linka href=SignOutPage.htmlSign Out/a/wicket:link
   /p
 /wicket:extend
   /body
 /html

 I mount the pages in the xxApplication class as follows:

 mountPage(/Home, HomePage.class);
 mountPage(/guest-list, GuestListPage.class);
 mountPage(/auth/adminpage, AdminPage.class);
 mountPage(/auth/signin, SignInPage.class);
 mountPage(/auth/signout, SignOutPage.class);

 How can fix the navigation and the location of the css file so that it is
 found. The css file is located the Webapps dir.

 Thanks

 David

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




Re: Page Hierachy and Packages

2013-03-08 Thread Sven Meier

Hi,

if you keep style.css in your web root, you'll have to remove the 
wicket:link tag in your markup.
Otherwise AutoLinkResolver will think yoy're keeping the css beside your 
component.


Sven

On 03/08/2013 03:17 PM, David Beer wrote:

Hi All

I am new Wicket and like what I have found so far. My problem is that 
I have created a few pages and forms and placed them in a package 
named auth. I can navigate to the pages easily but they don't seem 
to inherite the CSS from the BasePage which is in a different package. 
Also any links to the HomePage which is in the default package is not 
found.


My BasePage HTML looks like the following:

html xmlns=http://www.w3.org/1999/xhtml;
xmlns:wicket=http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd;
  xml:lang=en
  lang=en
  head
wicket:head
  wicket:link
link rel=stylesheet type=text/css href=style.css/
  /wicket:link
/wicket:head
  /head
  body
div id=container
  div id=header
header wicket:id=headerpanel/
  /div
  div class=content_container
wicket:child/
  /div
  div id=footer
footer wicket:id=footerpanel /
  /div
/div
  /body
/html

My AdminPage which is in the auth package is never finds the css file 
declared in the base page.


My project structure is as follows:

src/main/java/example/BasePage and HomePage
src/main/java/example/auth/AdminPage and SignInPage and SignOutPage

html xmlns:wicket=http://wicket.apache.org;
  head
meta http-equiv=Content-Type content=text/html; charset=UTF-8/
titleAdminPage/title
  /head
  body
wicket:extend
  h2Welcome ADMIN!/h2
  p
This page should only be accessible if you are signed in as an 
administrator.

  /p
  p
wicket:linka href=HomePage.htmlHome/a/wicket:linkbr/
wicket:linka href=SignOutPage.htmlSign 
Out/a/wicket:link

  /p
/wicket:extend
  /body
/html

I mount the pages in the xxApplication class as follows:

mountPage(/Home, HomePage.class);
mountPage(/guest-list, GuestListPage.class);
mountPage(/auth/adminpage, AdminPage.class);
mountPage(/auth/signin, SignInPage.class);
mountPage(/auth/signout, SignOutPage.class);

How can fix the navigation and the location of the css file so that it 
is found. The css file is located the Webapps dir.


Thanks

David

-
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: Page Hierachy and Packages

2013-03-08 Thread David Beer
Hi Nick

Thanks for replying. Yes all pages extend my BasePage and I use the the
wicket:extend tag in the html. I get the page content as expected, the
css is not applied as it is looking for it in the same package as Sven
pointed out.


On 8 March 2013 14:33, Nick Pratt nbpr...@gmail.com wrote:

 Do the pages in your auth package inherit from your BasePage class?  In
 your auth package pages markup, do you have wicket:extend tags?

 Nick

 On Fri, Mar 8, 2013 at 9:17 AM, David Beer david.m.b...@gmail.com wrote:

 Hi All

 I am new Wicket and like what I have found so far. My problem is that I
 have created a few pages and forms and placed them in a package named
 auth. I can navigate to the pages easily but they don't seem to inherite
 the CSS from the BasePage which is in a different package. Also any links
 to the HomePage which is in the default package is not found.

 My BasePage HTML looks like the following:

 html xmlns=http://www.w3.org/1999/**xhtmlhttp://www.w3.org/1999/xhtml
 
   xmlns:wicket=http://wicket.**apache.org/dtds.data/wicket-**
 xhtml1.4-strict.dtdhttp://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd
 
   xml:lang=en
   lang=en
   head
 wicket:head
   wicket:link
 link rel=stylesheet type=text/css href=style.css/
   /wicket:link
 /wicket:head
   /head
   body
 div id=container
   div id=header
 header wicket:id=headerpanel/
   /div
   div class=content_container
 wicket:child/
   /div
   div id=footer
 footer wicket:id=footerpanel /
   /div
 /div
   /body
 /html

 My AdminPage which is in the auth package is never finds the css file
 declared in the base page.

 My project structure is as follows:

 src/main/java/example/BasePage and HomePage
 src/main/java/example/auth/**AdminPage and SignInPage and SignOutPage

 html xmlns:wicket=http://wicket.**apache.org http://wicket.apache.org
 
   head
 meta http-equiv=Content-Type content=text/html; charset=UTF-8/
 titleAdminPage/title
   /head
   body
 wicket:extend
   h2Welcome ADMIN!/h2
   p
 This page should only be accessible if you are signed in as an
 administrator.
   /p
   p
 wicket:linka href=HomePage.htmlHome/a**
 /wicket:linkbr/
 wicket:linka href=SignOutPage.htmlSign Out/a/wicket:link
   /p
 /wicket:extend
   /body
 /html

 I mount the pages in the xxApplication class as follows:

 mountPage(/Home, HomePage.class);
 mountPage(/guest-list, GuestListPage.class);
 mountPage(/auth/adminpage, AdminPage.class);
 mountPage(/auth/signin, SignInPage.class);
 mountPage(/auth/signout, SignOutPage.class);

 How can fix the navigation and the location of the css file so that it is
 found. The css file is located the Webapps dir.

 Thanks

 David

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





Re: Page Hierachy and Packages

2013-03-08 Thread David Beer
Hi Sven

Thanks for this so it is better to add the css outside of the wicket:head
like you would with normal html pages. Is it possible to get the navigation
to go up a level so to navigate to HomePage actually points to the HomePage
in the correct package and as mounted at HomePage.

Thanks

David


On 8 March 2013 14:39, Sven Meier s...@meiers.net wrote:

 Hi,

 if you keep style.css in your web root, you'll have to remove the
 wicket:link tag in your markup.
 Otherwise AutoLinkResolver will think yoy're keeping the css beside your
 component.

 Sven


 On 03/08/2013 03:17 PM, David Beer wrote:

 Hi All

 I am new Wicket and like what I have found so far. My problem is that I
 have created a few pages and forms and placed them in a package named
 auth. I can navigate to the pages easily but they don't seem to inherite
 the CSS from the BasePage which is in a different package. Also any links
 to the HomePage which is in the default package is not found.

 My BasePage HTML looks like the following:

 html xmlns=http://www.w3.org/1999/**xhtmlhttp://www.w3.org/1999/xhtml
 
 xmlns:wicket=http://wicket.**apache.org/dtds.data/wicket-**
 xhtml1.4-strict.dtdhttp://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd
 
   xml:lang=en
   lang=en
   head
 wicket:head
   wicket:link
 link rel=stylesheet type=text/css href=style.css/
   /wicket:link
 /wicket:head
   /head
   body
 div id=container
   div id=header
 header wicket:id=headerpanel/
   /div
   div class=content_container
 wicket:child/
   /div
   div id=footer
 footer wicket:id=footerpanel /
   /div
 /div
   /body
 /html

 My AdminPage which is in the auth package is never finds the css file
 declared in the base page.

 My project structure is as follows:

 src/main/java/example/BasePage and HomePage
 src/main/java/example/auth/**AdminPage and SignInPage and SignOutPage

 html xmlns:wicket=http://wicket.**apache.org http://wicket.apache.org
 
   head
 meta http-equiv=Content-Type content=text/html; charset=UTF-8/
 titleAdminPage/title
   /head
   body
 wicket:extend
   h2Welcome ADMIN!/h2
   p
 This page should only be accessible if you are signed in as an
 administrator.
   /p
   p
 wicket:linka href=HomePage.htmlHome/a**
 /wicket:linkbr/
 wicket:linka href=SignOutPage.htmlSign Out/a/wicket:link
   /p
 /wicket:extend
   /body
 /html

 I mount the pages in the xxApplication class as follows:

 mountPage(/Home, HomePage.class);
 mountPage(/guest-list, GuestListPage.class);
 mountPage(/auth/adminpage, AdminPage.class);
 mountPage(/auth/signin, SignInPage.class);
 mountPage(/auth/signout, SignOutPage.class);

 How can fix the navigation and the location of the css file so that it is
 found. The css file is located the Webapps dir.

 Thanks

 David

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



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




AjaxLazyLoadPanel update with target.addComponent

2013-03-08 Thread brazz
Hi,

i'm using a Table inside an AjaxLazyLoadPanel. 
The table should repaint lazy (with busy icon) when i call:

target.addComponent(AjaxLazyLoadPanel.this);

is this possible somehow?


i've read a post that i would have to replace the od AjaxLazyLoadPanel with
a new instance, but this would totally disrupt my design. Is this the only
way to do this?





--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/AjaxLazyLoadPanel-update-with-target-addComponent-tp4657120.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: Page Hierachy and Packages

2013-03-08 Thread Sven Meier

Hi David,

if your post was a question, I didn't understand it.

Regards
Sven

On 03/08/2013 05:15 PM, David Beer wrote:

Hi Sven

Thanks for this so it is better to add the css outside of the wicket:head
like you would with normal html pages. Is it possible to get the navigation
to go up a level so to navigate to HomePage actually points to the HomePage
in the correct package and as mounted at HomePage.

Thanks

David


On 8 March 2013 14:39, Sven Meier s...@meiers.net wrote:


Hi,

if you keep style.css in your web root, you'll have to remove the
wicket:link tag in your markup.
Otherwise AutoLinkResolver will think yoy're keeping the css beside your
component.

Sven


On 03/08/2013 03:17 PM, David Beer wrote:


Hi All

I am new Wicket and like what I have found so far. My problem is that I
have created a few pages and forms and placed them in a package named
auth. I can navigate to the pages easily but they don't seem to inherite
the CSS from the BasePage which is in a different package. Also any links
to the HomePage which is in the default package is not found.

My BasePage HTML looks like the following:

html xmlns=http://www.w3.org/1999/**xhtmlhttp://www.w3.org/1999/xhtml

xmlns:wicket=http://wicket.**apache.org/dtds.data/wicket-**
xhtml1.4-strict.dtdhttp://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd

   xml:lang=en
   lang=en
   head
 wicket:head
   wicket:link
 link rel=stylesheet type=text/css href=style.css/
   /wicket:link
 /wicket:head
   /head
   body
 div id=container
   div id=header
 header wicket:id=headerpanel/
   /div
   div class=content_container
 wicket:child/
   /div
   div id=footer
 footer wicket:id=footerpanel /
   /div
 /div
   /body
/html

My AdminPage which is in the auth package is never finds the css file
declared in the base page.

My project structure is as follows:

src/main/java/example/BasePage and HomePage
src/main/java/example/auth/**AdminPage and SignInPage and SignOutPage

html xmlns:wicket=http://wicket.**apache.org http://wicket.apache.org

   head
 meta http-equiv=Content-Type content=text/html; charset=UTF-8/
 titleAdminPage/title
   /head
   body
 wicket:extend
   h2Welcome ADMIN!/h2
   p
 This page should only be accessible if you are signed in as an
administrator.
   /p
   p
 wicket:linka href=HomePage.htmlHome/a**
/wicket:linkbr/
 wicket:linka href=SignOutPage.htmlSign Out/a/wicket:link
   /p
 /wicket:extend
   /body
/html

I mount the pages in the xxApplication class as follows:

mountPage(/Home, HomePage.class);
mountPage(/guest-list, GuestListPage.class);
mountPage(/auth/adminpage, AdminPage.class);
mountPage(/auth/signin, SignInPage.class);
mountPage(/auth/signout, SignOutPage.class);

How can fix the navigation and the location of the css file so that it is
found. The css file is located the Webapps dir.

Thanks

David

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



--**--**-
To unsubscribe, e-mail: 
users-unsubscribe@wicket.**apache.orgusers-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: Page Hierachy and Packages

2013-03-08 Thread David Beer
Hi Sven

Will try and be more clear. I have fixed the css styling thanks to your
suggestion on moving the link out of wicket:head.

My question is that if I am navigating From my AdminPage in my auth package
to the HomePage in the package above how do I add the link in the HTML. As
Then AdminPage is trying to link to a file in the same package using
wicket:link?

Thanks

David


On 8 March 2013 16:53, Sven Meier s...@meiers.net wrote:

 Hi David,

 if your post was a question, I didn't understand it.

 Regards
 Sven


 On 03/08/2013 05:15 PM, David Beer wrote:

 Hi Sven

 Thanks for this so it is better to add the css outside of the
 wicket:head
 like you would with normal html pages. Is it possible to get the
 navigation
 to go up a level so to navigate to HomePage actually points to the
 HomePage
 in the correct package and as mounted at HomePage.

 Thanks

 David


 On 8 March 2013 14:39, Sven Meier s...@meiers.net wrote:

  Hi,

 if you keep style.css in your web root, you'll have to remove the
 wicket:link tag in your markup.
 Otherwise AutoLinkResolver will think yoy're keeping the css beside your
 component.

 Sven


 On 03/08/2013 03:17 PM, David Beer wrote:

  Hi All

 I am new Wicket and like what I have found so far. My problem is that I
 have created a few pages and forms and placed them in a package named
 auth. I can navigate to the pages easily but they don't seem to
 inherite
 the CSS from the BasePage which is in a different package. Also any
 links
 to the HomePage which is in the default package is not found.

 My BasePage HTML looks like the following:

 html 
 xmlns=http://www.w3.org/1999/xhtmlhttp://www.w3.org/1999/**xhtml
 http://www.w3.org/**1999/xhtml http://www.w3.org/1999/xhtml
 
 xmlns:wicket=http://wicket.apache.org/dtds.data/wicket-**http://apache.org/dtds.data/wicket-**
 xhtml1.4-strict.dtdhttp://**wicket.apache.org/dtds.data/**
 wicket-xhtml1.4-strict.dtdhttp://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd
 

 
xml:lang=en
lang=en
head
  wicket:head
wicket:link
  link rel=stylesheet type=text/css href=style.css/
/wicket:link
  /wicket:head
/head
body
  div id=container
div id=header
  header wicket:id=headerpanel/
/div
div class=content_container
  wicket:child/
/div
div id=footer
  footer wicket:id=footerpanel /
/div
  /div
/body
 /html

 My AdminPage which is in the auth package is never finds the css file
 declared in the base page.

 My project structure is as follows:

 src/main/java/example/BasePage and HomePage
 src/main/java/example/auth/AdminPage and SignInPage and SignOutPage

 html xmlns:wicket=http://wicket.apache.org http://apache.org 
 http://wicket.apache.org

 
head
  meta http-equiv=Content-Type content=text/html;
 charset=UTF-8/
  titleAdminPage/title
/head
body
  wicket:extend
h2Welcome ADMIN!/h2
p
  This page should only be accessible if you are signed in as an
 administrator.
/p
p
  wicket:linka href=HomePage.htmlHome/a

 /wicket:linkbr/
  wicket:linka href=SignOutPage.htmlSign
 Out/a/wicket:link
/p
  /wicket:extend
/body
 /html

 I mount the pages in the xxApplication class as follows:

 mountPage(/Home, HomePage.class);
 mountPage(/guest-list, GuestListPage.class);
 mountPage(/auth/adminpage, AdminPage.class);
 mountPage(/auth/signin, SignInPage.class);
 mountPage(/auth/signout, SignOutPage.class);

 How can fix the navigation and the location of the css file so that it
 is
 found. The css file is located the Webapps dir.

 Thanks

 David

 --**
 --**-
 To unsubscribe, e-mail: 
 users-unsubscribe@wicket.**apa**che.orghttp://apache.org
 users-unsubscribe@**wicket.apache.orgusers-unsubscr...@wicket.apache.org
 

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


  --**
 --**-
 To unsubscribe, e-mail: 
 users-unsubscribe@wicket.**apa**che.orghttp://apache.org
 users-unsubscribe@**wicket.apache.orgusers-unsubscr...@wicket.apache.org
 

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




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




Wicket 6: AjaxFormComponentUpdatingBehavior on dropdown leads to page reload

2013-03-08 Thread Martin Dietze
I've just spent several hours trying to debug a rather strange
effect with a dropdown and a AjaxFormComponentUpdatingBehavior.

I have a component which is used in several places of the
system. It contains a dropdown to which a
AjaxFormComponentUpdatingBehavior is added. Whenever the user
selects a value, a label is displayed underneath.

This component has been in use in different parts of the system
for quite some time now. After having upgraded to Wicket 6.6, it
does no longer work - on one particular page. While on all other
pages it works just fine, on that particular page every time I
change something, the page reloads (just as if I had attached an
AjaxFormSubmitBehavior (which of course I had not, actually
there is not a single one used within the whole project).

When doing this reloading, my AjaxFormSubmitBehavior's handler
is never invoked.

I checked the requests the browser gets to see, and it seems
like there isn't any difference. Just in case, here's roughly
what I get on the pages where it works:

Path: 
http://localhost:8080/editor/editorial-tools/rundschreiben?7-1.IBehaviorListener.1-page~body-stage-stage_content-wrapped_content-content-editor-form-object_editor-groups-0-group-attributes-7-item-value-choice-ajax~holder-drop~downrubrik=Rundschreiben
Method: POST

The next request is an icon for the stuff displayed later.

On the bad page, the request does not look too much different
(it's just a different page):

Path: 
http://localhost:8080/foo/bar/nav/foobar-xxx?14-1.IBehaviorListener.1-page~body-stage-stage_content-wrapped_content-foo~content-choice-ajax~holder-drop~downaction=newvariant=foo-sub-page
Method: POST

Only after it, I get the original path, but a redirect:
:
Path: 
http://localhost:8080/foo/bar/nav/foobar-xxx?action=newvariant=foo-sub-page
Method: GET
Status Text: 302 (Moved Temporarily)

Now this indicates that something's going wrong in the Java code
rather than in Javascript. I tried to find the point where the
multiplexing is done and from where the Ajax behaviours are
invoked, but I did not find it.


Now I feel really clueless. Is there a wellknown Gotcha which
simply I don't know of? Maybe anybody had the same problem
before? Or, at least, where should I step into the Wicket code
in order to find out where it goes wrong?

Any help appreciated!

Cheers,

M'bert

-- 
--- / http://herbert.the-little-red-haired-girl.org / -
=+= 
Dann freuen wir uns und gehen weiter und denken noch im Kuessegeben: Wie nah 
sind uns manche Tote, wie tot sind uns manche, die leben.  --  Wolf Biermann

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



Re: Wicket 6: AjaxFormComponentUpdatingBehavior on dropdown leads to page reload

2013-03-08 Thread Bernard
Hi,

I would try to debug the constructor of the page and/or override and
debug life cycle methods of the page and then work up the call stack
why they are executed.

As an example (not necessarily applicable in your case), one could
find this way that the page had expired and Wicket just reconstructed
it which could be surprising. See
ListenerInterfaceRequestHandler#respond().

Regards

Bernard

On Fri, 8 Mar 2013 23:04:13 +0100, you wrote:

I've just spent several hours trying to debug a rather strange
effect with a dropdown and a AjaxFormComponentUpdatingBehavior.

I have a component which is used in several places of the
system. It contains a dropdown to which a
AjaxFormComponentUpdatingBehavior is added. Whenever the user
selects a value, a label is displayed underneath.

This component has been in use in different parts of the system
for quite some time now. After having upgraded to Wicket 6.6, it
does no longer work - on one particular page. While on all other
pages it works just fine, on that particular page every time I
change something, the page reloads (just as if I had attached an
AjaxFormSubmitBehavior (which of course I had not, actually
there is not a single one used within the whole project).

When doing this reloading, my AjaxFormSubmitBehavior's handler
is never invoked.

I checked the requests the browser gets to see, and it seems
like there isn't any difference. Just in case, here's roughly
what I get on the pages where it works:

Path: 
http://localhost:8080/editor/editorial-tools/rundschreiben?7-1.IBehaviorListener.1-page~body-stage-stage_content-wrapped_content-content-editor-form-object_editor-groups-0-group-attributes-7-item-value-choice-ajax~holder-drop~downrubrik=Rundschreiben
Method: POST

The next request is an icon for the stuff displayed later.

On the bad page, the request does not look too much different
(it's just a different page):

Path: 
http://localhost:8080/foo/bar/nav/foobar-xxx?14-1.IBehaviorListener.1-page~body-stage-stage_content-wrapped_content-foo~content-choice-ajax~holder-drop~downaction=newvariant=foo-sub-page
Method: POST

Only after it, I get the original path, but a redirect:
:
Path: 
http://localhost:8080/foo/bar/nav/foobar-xxx?action=newvariant=foo-sub-page
Method: GET
Status Text: 302 (Moved Temporarily)

Now this indicates that something's going wrong in the Java code
rather than in Javascript. I tried to find the point where the
multiplexing is done and from where the Ajax behaviours are
invoked, but I did not find it.


Now I feel really clueless. Is there a wellknown Gotcha which
simply I don't know of? Maybe anybody had the same problem
before? Or, at least, where should I step into the Wicket code
in order to find out where it goes wrong?

Any help appreciated!

Cheers,

M'bert


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