Re: Custom CSS for Feedback message is broken in 1.5

2012-10-25 Thread Martin Grigorov
Hi,

Here is an example of the produced markup for an single INFO message:

div id=feedbackPanel
span
  ul class=feedbackPanel
li class=feedbackPanelINFO
  span class=feedbackPanelINFOSaved model [TestInputObject
stringProperty = 'test', integerProperty = 100, doubleProperty = 20.5,
booleanProperty = false, integerInRangeProperty = 50, urlProperty =
http://wicket.apache.org, phoneNumberUS = (123) 456-1234,
numberRadioChoice = 1, numbersCheckgroup [], numberRadioGroup= null,
selected sites {], lines [line one, line two, line three]]/span
/li
  /ul
/span
/div

Why do we need the new getters when you can just use normal CSS selectors:

div.feedbackPanel {}
div.feedbackPanel span {}
ul.feedbackPanel {}
li.feedbackPanelINFO {}
span.feedbackPanelINFO {}

What is the big CSS/HTML design problem that I miss ?

On Thu, Oct 25, 2012 at 2:07 AM, Joachim Schrod jsch...@acm.org wrote:
 Paul Bors wrote:
 Yes, but how would that affect other projects that do expect the CSS to be
 applied to the LI or SPAN?
 Come to think about it, I could very simple replace the content of both with
 my own panels right?

 I think this is a project specific requirement

 I just want to add my voice that it's not a project specific
 requirement, but a sound design change that resolves a design bug.

 That a CSS class applies both to LI and to below-SPAN element, is
 clearly not appropriate for almost all situations. The proposed
 change even keeps that, for backward-compatibility.

 Of course, one can subclass FeedbackPanel and sustitute the HTML
 code. We do it in all projects. But this is a workaround for a bug
 in Wicket's HTML/CSS/interface design, and not a to-be-continued asset.

 Just my 0.03€ (adjusted for inflation),
 Joachim


 -
 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: Mount Page

2012-10-25 Thread dpmihai
Yes. I was too tired not to think about getApplication() :)

I also saw that for a 

mountPage(/myPage, MYPage.class) 

to make unmount to work I have to do

unmount(myPage)

without the starting /.

Is this the normal behavior? I find it a bit misleading why the unmount does
not work with a starting /.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Mount-Page-tp4653318p4653332.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: Mount Page

2012-10-25 Thread Martin Grigorov
On Thu, Oct 25, 2012 at 10:14 AM, dpmihai dpmi...@yahoo.com wrote:
 Yes. I was too tired not to think about getApplication() :)

 I also saw that for a

 mountPage(/myPage, MYPage.class)

 to make unmount to work I have to do

 unmount(myPage)

 without the starting /.

 Is this the normal behavior? I find it a bit misleading why the unmount does
 not work with a starting /.

Actually mountPage() removes the leading '/'. So it is the same to do
mountPage(/a, ..) and mountPage(a,..).
We just need to do the same for unmount().
Please file a ticket.




 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Mount-Page-tp4653318p4653332.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: Custom CSS for Feedback message is broken in 1.5

2012-10-25 Thread Sven Meier

Hi,

that a CSS class applies both to LI and to below-SPAN element

I agree, applying the CSS class on the LI would be sufficient.
But the current duplication should do no harm in most situations. Except 
where you cannot change the CSS, of course.


Sven

On 10/25/2012 01:07 AM, Joachim Schrod wrote:

Paul Bors wrote:

Yes, but how would that affect other projects that do expect the CSS to be
applied to the LI or SPAN?
Come to think about it, I could very simple replace the content of both with
my own panels right?

I think this is a project specific requirement

I just want to add my voice that it's not a project specific
requirement, but a sound design change that resolves a design bug.

That a CSS class applies both to LI and to below-SPAN element, is
clearly not appropriate for almost all situations. The proposed
change even keeps that, for backward-compatibility.

Of course, one can subclass FeedbackPanel and sustitute the HTML
code. We do it in all projects. But this is a workaround for a bug
in Wicket's HTML/CSS/interface design, and not a to-be-continued asset.

Just my 0.03€ (adjusted for inflation),
Joachim


-
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: Mount Page

2012-10-25 Thread dpmihai
Added here:

https://issues.apache.org/jira/browse/WICKET-4836



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Mount-Page-tp4653318p4653335.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



[Announce] WicketStuff Core 6.2.0 is released

2012-10-25 Thread Martin Grigorov
Hello,

WicketStuff Core projects version 6.2.0 have been released and shortly
will be available at Maven Central repository.
They are built against Apache Wicket 6.2.0.

The changelog is:

Michael Mosmann (39):
  cherry pick from serializer-kryo2
  serializer-kryo readme changed to new version
  serializer-kryo readme changed to new version
  pom version fix
  tests are green
  [serializer-kryo2] cherry pick from core-1.5.x
  package rename
  inspection listener
  inspection listener
  analyzing stuff
  type size report
  formated report
  processor refactoring
  reporting done
  serializble removed
  package refactor
  tree filter
  tree filter
  tree builder
  tests done
  changed some tests
  wicket code format
  use real types
  tree walker level type
  tree proessing should work
  filtered reports
  serial exception handling
  fixed error level
  some more tests
  report builder works
  typo
  report refactor done
  reporting cleanup
  listener threadlocal handling
  last functional changes
  java doc
  lic header added
  pre merge to core-1.5.x
  Merge remote-tracking branch
'origin/serializer-kryo2-component-sizes-wicket6'

Martin Tzvetanov Grigorov (3):
  Remove a trailing semicolon from the url
  issue #158
  Set version to 6.2.0

ernestor (3):
  got rid of unused import
  https://github.com/wicketstuff/core/issues/159
  forgot to initialize thread local.

inaiat (3):
  [lightbox2] lightbox2 plugin integration
  [lightbox2] lightbox2 plugin integration
  [lightbox2] wicket code formatter

=Tom B (1):
  [InMethod Grid] fix for LinkColumns to correctly display links
on EditableDataGrids after a selection for update javadoc
additions/corrections

Bruno Borges (1):
  Added new labelf method to support functional getter

Martin Grigorov (1):
  Merge pull request #157 from Bols/master

Trond Bolsø (1):
  Support scrolled modal windows for completion list


The projects can be retrieved from Maven like this:

dependency
  groupIdorg.wicketstuff/groupId
  artifactIdwicketstuff-progressbar/artifactId
  version6.2.0/version
/dependency

The release tag is here:
https://github.com/wicketstuff/core/tree/wicketstuff-core-6.2.0

Issues can be reported here: https://github.com/wicketstuff/core/issues

The Project Wiki is available here: https://github.com/wicketstuff/core/wiki

The WicketStuff team!

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



Faked ajax requests

2012-10-25 Thread Jan Riehn

Hello,

currently we've got a problem with faked ajax requests.these ajax 
requests misses some parameters, but the wicket-ajax header flag is set. 
So ServletWebRequest throws an exception:


java.lang.IllegalStateException: Current ajax request is missing the base url 
header or parameter
at org.apache.wicket.util.lang.Checks.notNull(Checks.java:38)
at 
org.apache.wicket.protocol.http.servlet.ServletWebRequest.getClientUrl(ServletWebRequest.java:171)
at org.apache.wicket.request.UrlRenderer.init(UrlRenderer.java:59)


These faked requests are so massive, that our application is no longer 
monitorable. Our workaround rejects these requests via apache config. 
Because this is a common problem, we hope that this issue will be 
managed by wicket.



Best regards,

Jan



Re: Selected item into Palette

2012-10-25 Thread Marco Di Sabatino Di Diodoro
Hi Sven,

with Apache Wicket 1.5.8 

@Override
protected IAjaxCallDecorator getAjaxCallDecorator() {
return new 
AjaxPreprocessingCallDecorator(super.getAjaxCallDecorator()) {
private static final long serialVersionUID = 
-7927968187160354605L;

@Override
public CharSequence preDecorateScript(final CharSequence 
script) {
return script + reportlets.getEditOnClickJS();
}
};
}

I migrate to Apache Wicket 6.2

@Override
protected void updateAjaxAttributes(AjaxRequestAttributes 
attributes) {
super.updateAjaxAttributes(attributes);

final AjaxCallListener ajaxCallListener = new 
AjaxCallListener() {
private static final long serialVersionUID = 
7160235486520935153L;
 
@Override
public CharSequence getPrecondition(Component component) {
return reportlets.getEditOnClickJS();
}
};
attributes.getAjaxCallListeners().add(ajaxCallListener);
}

the reportlets.getEditOnClickJS(); call an javascript function 
Syncope.SingleColumnPalette.choicesOnFocus.  
My recorder.onselect is always null, how can I attached to the recorder 
component the javascript onselect event?

If you like, I can attach to Jira issue 
(https://issues.apache.org/jira/browse/WICKET-4834) my quickstart project with 
apache wicket 1.5.8. where everything worked correctly.

Thanks
Marco

On Oct 24, 2012, at 12:43 PM, Marco Di Sabatino Di Diodoro wrote:

 Hi,
 
 On Oct 23, 2012, at 6:41 PM, Sven Meier wrote:
 
 I'm not sure how you're using AjaxFormComponentUpdatingBehavior together 
 with the palette component.
 
 Please create a quickstart and attach it to a Jira issue.
 I create a quickstart and attach it to Jira issue 
 (https://issues.apache.org/jira/browse/WICKET-4834)
 
 Regards
 Marco
 
 
 Sven
 
 
 On 10/23/2012 05:42 PM, Marco Di Sabatino Di Diodoro wrote:
 Thanks,
 
 but i like have the current selected item in the palette. With Apache 
 Wicket 1.5.8 I use AjaxFormComponentUpdatingBehavior to see which item was 
 selected.
 Now, when I click on an item into palette the onUpdate method is never 
 invoked.
 
 Marco
 
 
 On Oct 23, 2012, at 5:31 PM, Sven Meier wrote:
 
 selectedItems = (ListFoo)palette.getDefaultModelObject()
 
 or
 
 palette = new Palette(palette, model, choices, ...);
 selectedItems = model.getObject();
 
 Sven
 
 On 10/23/2012 05:01 PM, Marco Di Sabatino Di Diodoro wrote:
 Hi all,
 
 With Apache Wicket 6.1.
 How can I get hold of a palette's selected item?
 
 Marco
 --
 
 Dott. Marco Di Sabatino Di Diodoro
 Tel. +39 3939065570
 
 Tirasa S.r.l.
 Viale D'Annunzio 267 - 65127 Pescara
 Tel +39 0859116307 / FAX +39 085973
 http://www.tirasa.net
 
 Apache Syncope PPMC Member
 http://people.apache.org/~mdisabatino
 
 
 
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 --
 
 Dott. Marco Di Sabatino Di Diodoro
 Tel. +39 3939065570
 
 Tirasa S.r.l.
 Viale D'Annunzio 267 - 65127 Pescara
 Tel +39 0859116307 / FAX +39 085973
 http://www.tirasa.net
 
 Apache Syncope PPMC Member
 http://people.apache.org/~mdisabatino
 
 
 
 
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 --
 
 Dott. Marco Di Sabatino Di Diodoro
 Tel. +39 3939065570
 
 Tirasa S.r.l.
 Viale D'Annunzio 267 - 65127 Pescara
 Tel +39 0859116307 / FAX +39 085973
 http://www.tirasa.net
 
 Apache Syncope PPMC Member
 http://people.apache.org/~mdisabatino
 
 
 
 

--

Dott. Marco Di Sabatino Di Diodoro
Tel. +39 3939065570

Tirasa S.r.l.
Viale D'Annunzio 267 - 65127 Pescara
Tel +39 0859116307 / FAX +39 085973
http://www.tirasa.net

Apache Syncope PPMC Member
http://people.apache.org/~mdisabatino






Re: Selected item into Palette

2012-10-25 Thread Sven Meier

Please attach a working quickstart for 1.5.x.

Or preferrably just don't use a Palette. A single ListChoice should be 
sufficient.


Sven

On 10/25/2012 01:14 PM, Marco Di Sabatino Di Diodoro wrote:

Hi Sven,

with Apache Wicket 1.5.8

 @Override
 protected IAjaxCallDecorator getAjaxCallDecorator() {
 return new 
AjaxPreprocessingCallDecorator(super.getAjaxCallDecorator()) {
 private static final long serialVersionUID = 
-7927968187160354605L;

 @Override
 public CharSequence preDecorateScript(final CharSequence 
script) {
 return script + reportlets.getEditOnClickJS();
 }
 };
 }

I migrate to Apache Wicket 6.2

 @Override
 protected void updateAjaxAttributes(AjaxRequestAttributes 
attributes) {
 super.updateAjaxAttributes(attributes);

 final AjaxCallListener ajaxCallListener = new 
AjaxCallListener() {
 private static final long serialVersionUID = 
7160235486520935153L;
  
 @Override

 public CharSequence getPrecondition(Component component) {
 return reportlets.getEditOnClickJS();
 }
 };
 attributes.getAjaxCallListeners().add(ajaxCallListener);
 }

the reportlets.getEditOnClickJS(); call an javascript function 
Syncope.SingleColumnPalette.choicesOnFocus.
My recorder.onselect is always null, how can I attached to the recorder 
component the javascript onselect event?

If you like, I can attach to Jira issue 
(https://issues.apache.org/jira/browse/WICKET-4834) my quickstart project with 
apache wicket 1.5.8. where everything worked correctly.

Thanks
Marco

On Oct 24, 2012, at 12:43 PM, Marco Di Sabatino Di Diodoro wrote:


Hi,

On Oct 23, 2012, at 6:41 PM, Sven Meier wrote:


I'm not sure how you're using AjaxFormComponentUpdatingBehavior together with 
the palette component.

Please create a quickstart and attach it to a Jira issue.

I create a quickstart and attach it to Jira issue 
(https://issues.apache.org/jira/browse/WICKET-4834)

Regards
Marco


Sven


On 10/23/2012 05:42 PM, Marco Di Sabatino Di Diodoro wrote:

Thanks,

but i like have the current selected item in the palette. With Apache Wicket 
1.5.8 I use AjaxFormComponentUpdatingBehavior to see which item was selected.
Now, when I click on an item into palette the onUpdate method is never invoked.

Marco


On Oct 23, 2012, at 5:31 PM, Sven Meier wrote:


selectedItems = (ListFoo)palette.getDefaultModelObject()

or

palette = new Palette(palette, model, choices, ...);
selectedItems = model.getObject();

Sven

On 10/23/2012 05:01 PM, Marco Di Sabatino Di Diodoro wrote:

Hi all,

With Apache Wicket 6.1.
How can I get hold of a palette's selected item?

Marco
--

Dott. Marco Di Sabatino Di Diodoro
Tel. +39 3939065570

Tirasa S.r.l.
Viale D'Annunzio 267 - 65127 Pescara
Tel +39 0859116307 / FAX +39 085973
http://www.tirasa.net

Apache Syncope PPMC Member
http://people.apache.org/~mdisabatino






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


--

Dott. Marco Di Sabatino Di Diodoro
Tel. +39 3939065570

Tirasa S.r.l.
Viale D'Annunzio 267 - 65127 Pescara
Tel +39 0859116307 / FAX +39 085973
http://www.tirasa.net

Apache Syncope PPMC Member
http://people.apache.org/~mdisabatino







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


--

Dott. Marco Di Sabatino Di Diodoro
Tel. +39 3939065570

Tirasa S.r.l.
Viale D'Annunzio 267 - 65127 Pescara
Tel +39 0859116307 / FAX +39 085973
http://www.tirasa.net

Apache Syncope PPMC Member
http://people.apache.org/~mdisabatino





--

Dott. Marco Di Sabatino Di Diodoro
Tel. +39 3939065570

Tirasa S.r.l.
Viale D'Annunzio 267 - 65127 Pescara
Tel +39 0859116307 / FAX +39 085973
http://www.tirasa.net

Apache Syncope PPMC Member
http://people.apache.org/~mdisabatino








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



I would url clear, without jsessionid and ?1

2012-10-25 Thread Paolo
Hi,
I know that it is an old discussion,
but I really want the url simply and clear, without ;jsessionid= and without ?1 
 ?2 etc.
I am starting to upgrade to wichet 6.2.0
actually I use this in MainApplication:

protected void init()
{
super.init();
SecurePackageResourceGuard guard = new SecurePackageResourceGuard();
guard.addPattern(+**.gif);
guard.addPattern(+*.*);
guard.addPattern(+*.gi*);
guard.addPattern(+test*.gif);
getResourceSettings().setPackageResourceGuard(guard);
//getDebugSettings().setDevelopmentUtilitiesEnabled(true);
// mountPage(home.html, HomePage.class);
// mountPage(/, HomePage.class);
mountPage(search, Search.class);
mountPage(products, Products.class);

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



Re: I would url clear, without jsessionid and ?1

2012-10-25 Thread Martin Grigorov
On Thu, Oct 25, 2012 at 4:57 PM, Paolo irresistible...@gmail.com wrote:
 Hi,
 I know that it is an old discussion,
 but I really want the url simply and clear, without ;jsessionid= and without 
 ?1  ?2 etc.

1) make sure cookies are enabled - jsessionid is gone
2) make sure your pages are stateless - ?2 is gone

Voila!

 I am starting to upgrade to wichet 6.2.0
 actually I use this in MainApplication:

 protected void init()
 {
 super.init();
 SecurePackageResourceGuard guard = new SecurePackageResourceGuard();
 guard.addPattern(+**.gif);
 guard.addPattern(+*.*);
 guard.addPattern(+*.gi*);
 guard.addPattern(+test*.gif);
 getResourceSettings().setPackageResourceGuard(guard);
 //getDebugSettings().setDevelopmentUtilitiesEnabled(true);
 // mountPage(home.html, HomePage.class);
 // mountPage(/, HomePage.class);
 mountPage(search, Search.class);
 mountPage(products, Products.class);

 -
 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



retrieve a page from PageStore?

2012-10-25 Thread Alfonso Quiroga
Hi, I'm using Wicket 1.5RC7. I have only 2 pages (Login, and HomePage)

HomePage has state and you can do things like search, etc.

When the user hits BACK BUTTON trying to go to Login, I want to
redirect it to HomePage, but with the last state. With exceptions, I
have used PageRequestHandlerTracker which works fine, but it does NOT
work for this case.

Anyone knows how to retrieve the current (or last) version of a page
from PageStore? thanks

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



Re: I would url clear, without jsessionid and ?1

2012-10-25 Thread Sebastien
Hi,

I have a question related to this thread, how is it possible to have a
variable name for ?1, ?2 ?
ie: ?state=1, ?state=2 (or another variable name)
Is there any existing IRequestMapper for that for instance?

One use case, is that google analytics allows to not take into account some
url variables so pages are not considered as distinct (MyPage?1 and
MyPage?2 should sums stats for only one page: MyPage, which is not the case
yet)

Thanks in advance!
Sebastien.

On Thu, Oct 25, 2012 at 4:17 PM, Martin Grigorov mgrigo...@apache.orgwrote:

 On Thu, Oct 25, 2012 at 4:57 PM, Paolo irresistible...@gmail.com wrote:
  Hi,
  I know that it is an old discussion,
  but I really want the url simply and clear, without ;jsessionid= and
 without ?1  ?2 etc.

 1) make sure cookies are enabled - jsessionid is gone
 2) make sure your pages are stateless - ?2 is gone

 Voila!

  I am starting to upgrade to wichet 6.2.0
  actually I use this in MainApplication:
 
  protected void init()
  {
  super.init();
  SecurePackageResourceGuard guard = new
 SecurePackageResourceGuard();
  guard.addPattern(+**.gif);
  guard.addPattern(+*.*);
  guard.addPattern(+*.gi*);
  guard.addPattern(+test*.gif);
  getResourceSettings().setPackageResourceGuard(guard);
  //getDebugSettings().setDevelopmentUtilitiesEnabled(true);
  // mountPage(home.html, HomePage.class);
  // mountPage(/, HomePage.class);
  mountPage(search, Search.class);
  mountPage(products, Products.class);
 
  -
  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: retrieve a page from PageStore?

2012-10-25 Thread Alfonso Quiroga
Well I'm closer, I could retrieve the page doing this:

getSession().getPageManager().getPage(1)

This gives me the LAST version of HomePage

Now, how can I know that page id 1 is the one I'm interested?

Maybe I can save this id in the session, in the HomePage constructor? any ideas?

On Thu, Oct 25, 2012 at 11:37 AM, Alfonso Quiroga
alfonsose...@gmail.com wrote:
 Hi, I'm using Wicket 1.5RC7. I have only 2 pages (Login, and HomePage)

 HomePage has state and you can do things like search, etc.

 When the user hits BACK BUTTON trying to go to Login, I want to
 redirect it to HomePage, but with the last state. With exceptions, I
 have used PageRequestHandlerTracker which works fine, but it does NOT
 work for this case.

 Anyone knows how to retrieve the current (or last) version of a page
 from PageStore? thanks

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



Re: retrieve a page from PageStore?

2012-10-25 Thread Martin Grigorov
Hi,

1. Why do you use *1.5RC7* ?

2. See DebugDiskDataStore in wicket-devutils. It shows how you can
extend the default data store (DiskDataStore) to be able to browse it.
Also read https://cwiki.apache.org/confluence/display/WICKET/Page+Storage.
It explains some details about this part of Wicket code. You can
replace all of the default impls with your own if needed.

On Thu, Oct 25, 2012 at 6:06 PM, Alfonso Quiroga alfonsose...@gmail.com wrote:
 Well I'm closer, I could retrieve the page doing this:

 getSession().getPageManager().getPage(1)

 This gives me the LAST version of HomePage

 Now, how can I know that page id 1 is the one I'm interested?

 Maybe I can save this id in the session, in the HomePage constructor? any 
 ideas?

 On Thu, Oct 25, 2012 at 11:37 AM, Alfonso Quiroga
 alfonsose...@gmail.com wrote:
 Hi, I'm using Wicket 1.5RC7. I have only 2 pages (Login, and HomePage)

 HomePage has state and you can do things like search, etc.

 When the user hits BACK BUTTON trying to go to Login, I want to
 redirect it to HomePage, but with the last state. With exceptions, I
 have used PageRequestHandlerTracker which works fine, but it does NOT
 work for this case.

 Anyone knows how to retrieve the current (or last) version of a page
 from PageStore? thanks

 -
 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: I would url clear, without jsessionid and ?1

2012-10-25 Thread Martin Grigorov
Hi Sebastien,

Is 
http://googlewebmastercentral.blogspot.com/2009/02/specify-your-canonical.html
a solution for this use case ?

On Thu, Oct 25, 2012 at 5:42 PM, Sebastien seb...@gmail.com wrote:
 Hi,

 I have a question related to this thread, how is it possible to have a
 variable name for ?1, ?2 ?
 ie: ?state=1, ?state=2 (or another variable name)
 Is there any existing IRequestMapper for that for instance?

 One use case, is that google analytics allows to not take into account some
 url variables so pages are not considered as distinct (MyPage?1 and
 MyPage?2 should sums stats for only one page: MyPage, which is not the case
 yet)

 Thanks in advance!
 Sebastien.

 On Thu, Oct 25, 2012 at 4:17 PM, Martin Grigorov mgrigo...@apache.orgwrote:

 On Thu, Oct 25, 2012 at 4:57 PM, Paolo irresistible...@gmail.com wrote:
  Hi,
  I know that it is an old discussion,
  but I really want the url simply and clear, without ;jsessionid= and
 without ?1  ?2 etc.

 1) make sure cookies are enabled - jsessionid is gone
 2) make sure your pages are stateless - ?2 is gone

 Voila!

  I am starting to upgrade to wichet 6.2.0
  actually I use this in MainApplication:
 
  protected void init()
  {
  super.init();
  SecurePackageResourceGuard guard = new
 SecurePackageResourceGuard();
  guard.addPattern(+**.gif);
  guard.addPattern(+*.*);
  guard.addPattern(+*.gi*);
  guard.addPattern(+test*.gif);
  getResourceSettings().setPackageResourceGuard(guard);
  //getDebugSettings().setDevelopmentUtilitiesEnabled(true);
  // mountPage(home.html, HomePage.class);
  // mountPage(/, HomePage.class);
  mountPage(search, Search.class);
  mountPage(products, Products.class);
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 



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

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





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

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



WiQuery SortableBehavior/DroppableBehavior questions

2012-10-25 Thread Benedikt Schlegel
Hey guys,

I'm having a hard time to get a jQuery-ui-sortable example with connected
lists (see [1]) working. Since the WiQuery API changed completely with
the last major release of Wicket and there are no up-to-date examples i can
find, i don't know what to do next. We're currently investigating if
Wicket(++) is an option for future projects, and i've been really
enthusiastic on Wicket so far, but the mentioned problem is kinda a total
showstopper.

Is there any detailed information on the
SortableBehavior/DroppableBehavior? E.g. how could I get the position,
where i dropped an item on the target list?

And i'm having an issue where the drop event isn't fired, when an item is
dropped at the first position of another sortable. Is anyone else
experiencing something similar or am I doing it wrong?

I'm using the current Wicket release 6.2.0 and WiQuery 6.0. I'm thankful
for any kinda help.

So long,
Benedikt

[1] - http://jqueryui.com/sortable/#connect-lists


Re: retrieve a page from PageStore?

2012-10-25 Thread Alfonso Quiroga
Martin, sorry, I'm using wicket 1.5.8
I'll check now DebugDiskDataStore, thanks!!!

On Thu, Oct 25, 2012 at 12:13 PM, Martin Grigorov mgrigo...@apache.org wrote:
 Hi,

 1. Why do you use *1.5RC7* ?

 2. See DebugDiskDataStore in wicket-devutils. It shows how you can
 extend the default data store (DiskDataStore) to be able to browse it.
 Also read https://cwiki.apache.org/confluence/display/WICKET/Page+Storage.
 It explains some details about this part of Wicket code. You can
 replace all of the default impls with your own if needed.

 On Thu, Oct 25, 2012 at 6:06 PM, Alfonso Quiroga alfonsose...@gmail.com 
 wrote:
 Well I'm closer, I could retrieve the page doing this:

 getSession().getPageManager().getPage(1)

 This gives me the LAST version of HomePage

 Now, how can I know that page id 1 is the one I'm interested?

 Maybe I can save this id in the session, in the HomePage constructor? any 
 ideas?

 On Thu, Oct 25, 2012 at 11:37 AM, Alfonso Quiroga
 alfonsose...@gmail.com wrote:
 Hi, I'm using Wicket 1.5RC7. I have only 2 pages (Login, and HomePage)

 HomePage has state and you can do things like search, etc.

 When the user hits BACK BUTTON trying to go to Login, I want to
 redirect it to HomePage, but with the last state. With exceptions, I
 have used PageRequestHandlerTracker which works fine, but it does NOT
 work for this case.

 Anyone knows how to retrieve the current (or last) version of a page
 from PageStore? thanks

 -
 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



javascript modal onclose event

2012-10-25 Thread Jack Berg
Hi,

Is it possible to register a modal-close event listener in javascript?



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/javascript-modal-onclose-event-tp4653353.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: WiQuery SortableBehavior/DroppableBehavior questions

2012-10-25 Thread Guillaume Smet
Hi Benedikt,

On Thu, Oct 25, 2012 at 6:30 PM, Benedikt Schlegel
codecab.dri...@googlemail.com wrote:
 And i'm having an issue where the drop event isn't fired, when an item is
 dropped at the first position of another sortable. Is anyone else
 experiencing something similar or am I doing it wrong?

This is due to the version of jQuery UI shipped with wiQuery 6.0
(jQuery UI 1.8.16 isn't compatible with jQuery 1.7, see
http://bugs.jqueryui.com/ticket/7852 ).

It's fixed in master as we upgraded jQuery UI to 1.8.24.

I can't help you with the rest of your questions though.

-- 
Guillaume

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



Re: I would url clear, without jsessionid and ?1

2012-10-25 Thread Sebastien
Hi Martin,

Thanks for your answer! Yes, I think it - indirectly - answers the need!

In short: Google Analytics does not take into account the canonical links
directly (it appears to be for indexing purpose only). However, you put me
on the right direction, and a simple solution is provided here:
http://stackoverflow.com/questions/9103794/canonical-url-in-analytics

I will give this a try and will let you know!

Thanks again  best regards,
Sebastien.

On Thu, Oct 25, 2012 at 5:17 PM, Martin Grigorov mgrigo...@apache.orgwrote:

 Hi Sebastien,

 Is
 http://googlewebmastercentral.blogspot.com/2009/02/specify-your-canonical.html
 a solution for this use case ?

 On Thu, Oct 25, 2012 at 5:42 PM, Sebastien seb...@gmail.com wrote:
  Hi,
 
  I have a question related to this thread, how is it possible to have a
  variable name for ?1, ?2 ?
  ie: ?state=1, ?state=2 (or another variable name)
  Is there any existing IRequestMapper for that for instance?
 
  One use case, is that google analytics allows to not take into account
 some
  url variables so pages are not considered as distinct (MyPage?1 and
  MyPage?2 should sums stats for only one page: MyPage, which is not the
 case
  yet)
 
  Thanks in advance!
  Sebastien.
 
  On Thu, Oct 25, 2012 at 4:17 PM, Martin Grigorov mgrigo...@apache.org
 wrote:
 
  On Thu, Oct 25, 2012 at 4:57 PM, Paolo irresistible...@gmail.com
 wrote:
   Hi,
   I know that it is an old discussion,
   but I really want the url simply and clear, without ;jsessionid= and
  without ?1  ?2 etc.
 
  1) make sure cookies are enabled - jsessionid is gone
  2) make sure your pages are stateless - ?2 is gone
 
  Voila!
 
   I am starting to upgrade to wichet 6.2.0
   actually I use this in MainApplication:
  
   protected void init()
   {
   super.init();
   SecurePackageResourceGuard guard = new
  SecurePackageResourceGuard();
   guard.addPattern(+**.gif);
   guard.addPattern(+*.*);
   guard.addPattern(+*.gi*);
   guard.addPattern(+test*.gif);
   getResourceSettings().setPackageResourceGuard(guard);
   //getDebugSettings().setDevelopmentUtilitiesEnabled(true);
   // mountPage(home.html, HomePage.class);
   // mountPage(/, HomePage.class);
   mountPage(search, Search.class);
   mountPage(products, Products.class);
  
   -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
 
 
 
  --
  Martin Grigorov
  jWeekend
  Training, Consulting, Development
  http://jWeekend.com
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 



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

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




Re: I would url clear, without jsessionid and ?1

2012-10-25 Thread Paolo
Alle giovedì 25 ottobre 2012, Martin Grigorov ha scritto:
 On Thu, Oct 25, 2012 at 4:57 PM, Paolo irresistible...@gmail.com wrote:
  Hi,
  I know that it is an old discussion,
  but I really want the url simply and clear, without ;jsessionid= and 
  without ?1  ?2 etc.
 
 1) make sure cookies are enabled - jsessionid is gone
Yes, the cookies are enabled.
Now I notice, that only the homepage have jsessionid, so I mounted it with:
mountPage(/, HomePage.class);
and jsessionid is disappeared.
But now an / is added at the end of url of homepage.
I don't like it, but I can live with it. I also see that if I wrote 
www.google.com the rendered page add an / at the and i.e.:
http://www.google.com/

 2) make sure your pages are stateless - ?2 is gone
How can I make all my pages stateless?

 
 Voila!
 
  I am starting to upgrade to wichet 6.2.0
  actually I use this in MainApplication:
 
  protected void init()
  {
  super.init();
  SecurePackageResourceGuard guard = new SecurePackageResourceGuard();
  guard.addPattern(+**.gif);
  guard.addPattern(+*.*);
  guard.addPattern(+*.gi*);
  guard.addPattern(+test*.gif);
  getResourceSettings().setPackageResourceGuard(guard);
  //getDebugSettings().setDevelopmentUtilitiesEnabled(true);
  // mountPage(home.html, HomePage.class);
  // mountPage(/, HomePage.class);
  mountPage(search, Search.class);
  mountPage(products, Products.class);
 


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