Re: hot to set Unicoding to UTF-8

2012-12-10 Thread Sven Meier

Give your file the suffix ".utf8.properties".

Sven

On 12/11/2012 08:33 AM, oliver.stef wrote:

Hi all,

When i'm saving my properties file in 'UTF-8' coding, i can't see the
correct chars (image 1).
but when i'm saving it as displayed if i'm as 'ISO-8859-1' it looks fine
(image 2).

how can i set wicket to load the properties file to use UTF-8?

Thanks!
image 1

image 2




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/hot-to-set-Unicoding-to-UTF-8-tp4654681.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: hot to set Unicoding to UTF-8

2012-12-10 Thread Maxim Solodovnik
I guess you can use language files in xml format instead of properties 


On Tue, Dec 11, 2012 at 2:33 PM, oliver.stef  wrote:

> Hi all,
>
> When i'm saving my properties file in 'UTF-8' coding, i can't see the
> correct chars (image 1).
> but when i'm saving it as displayed if i'm as 'ISO-8859-1' it looks fine
> (image 2).
>
> how can i set wicket to load the properties file to use UTF-8?
>
> Thanks!
> image 1
> 
> image 2
> 
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/hot-to-set-Unicoding-to-UTF-8-tp4654681.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
>
>


-- 
WBR
Maxim aka solomax


Re: Redirect to login page on UnauthorizedActionException(Page,RENDER)

2012-12-10 Thread Jesse Long

Hi Paul,

Thanks for the reply. Yes, I only want to redirect to a login page on 
UnauthorizedActionException when the component is an instance of Page 
and the action as RENDER and when the session is not authenticated, so a 
custom access denied page is not exactly what I'm looking for, but I 
could probably make it work.


Cheers,
Jesse

On 10/12/2012 19:40, Paul Bors wrote:

Do you want to redirect to the Login page for all "thrown" AccessDenied
exceptions? Or just in some situations?

If you want to do it for all, then create your own WebPage for
AccessDeinedPage such as:

public class AccessDeniedPage extends WebPage {
 private static final long serialVersionUID = 1L;
 
 public AccessDeniedPage() {

 Session.get().warn(ResourceModel("access.denied"));
 throw new
RestartResponseException(Application.get().getLoginPage());
 }
}

And inside your Application class in your init():

@Override
protected void init() {
 ...
 IApplicationSettings applicationSettings = getApplicationSettings();
 applicationSettings.setAccessDeniedPage(AccessDeniedPage.class);
 ...
}

There are other such exceptions which you can assign your own page
implementation, see the API for IApplicationSettings.

As for redirecting the user to your custom AccessDeined page (the LoginPage)
only under few circumstances, I haven't run into that need yet so someone
else could help you if you really need to do that.

~ Thank you,
   Paul Bors

-Original Message-
From: Jesse Long [mailto:j...@unknown.za.net]
Sent: Monday, December 10, 2012 11:05 AM
To: users@wicket.apache.org
Subject: Redirect to login page on UnauthorizedActionException(Page,RENDER)

Hi All,

I am using the authorization strategy to authorize viewing of pages by
checking if instantiation is allowed. If the session is not authenticated,
and if instantiation is not allowed, I redirect the user to a login page
using an IUnauthorizedComponentInstantiationListener.

I also check if the RENDER action is allowed using the authorization
strategy. At the moment, if the user tries to view a Page which he is
allowed to instantiate, but where the authorization strategy denies RENDER
permission (permissions configured for render/enable, but not for
instantiation), he gets a AccessDenied page. In these situations, I also
want to redirect the user to a login page if the session is not
authenticated.

Would IExceptionMapper be the correct place to do this? If so, could we make
DefaultExceptionMapper a bit easier to extend please?

Thanks,
Jesse

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



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





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



Re: wicket 1.4.21, glassfish, @font-face

2012-12-10 Thread Adam Gray
For anyone else out there that runs into this thread looking for anything
similar, the final solution was (as usual) pretty dumb.  A while ago our
static resources were moved from an external directory into
/src/main/resources.  This directory was still being "filtered" in the
pom.xml.  This is a no, no with binary files (like fonts and images).

http://maven.apache.org/plugins/maven-resources-plugin/examples/filter.html

At that page at the bottom it says: "*Warning:* Do not filter files with
binary content like images! This will most likely result in corrupt output.
If you have both text files and binary files as resources, you need to
declare two mutually exclusive resource sets. The first resource set
defines the files to be filtered and the other resource set defines the
files to copy unaltered..."

Heed this warning.


On Mon, Dec 10, 2012 at 5:05 PM, Adam Gray  wrote:

> I'm running into a curious issue and wondered if anyone has any idea what
> else I can look into for a solution.
>
> In wicket 1.4.21 (legacy app), I'm attempting to switch to font awesome
> for icons in twitter bootstrap.
>
> I've added the following patterns to the resource guard
>   guard.addPattern("+*.svg");
>   guard.addPattern("+*.ttf");
>   guard.addPattern("+*.eot");
>   guard.addPattern("+*.woff");
>
> The css file is served as a CSSPackageResource and gets loaded correctly.
> The css file references the fonts by url, those seem to be referenced
> correctly and are returned from the server with a 200 OK.
>
> The issue is that somehow, the font files are corrupted.  The original ttf
> font is 68kb on disk.  The downloaded version is 85kb.
>
> At this point, I don't know if I should be looking into glassfish or
> wicket.  Are my guard patterns correct?  I'd like to think so since the
> request is completed with "something".  Is there a known packaging problem
> with maven I should look for?
>


RE: Form submit with Collection

2012-12-10 Thread Paul Bors
Yes, "Wicket in Action" is what got me exposed to Wicket a few years back.

Thanks go out to Martijn Dashorst and Eelco Hillenius for taking the time to
write that book and I'm honestly looking forward to a new edition although
the book's site does save me quite a while :)

~ Thank you,
  Paul Bors

-Original Message-
From: Nick Pratt [mailto:nbpr...@gmail.com] 
Sent: Monday, December 10, 2012 4:11 PM
To: users@wicket.apache.org
Subject: Re: Form submit with Collection

I just found this:
http://wicketinaction.com/2008/10/building-a-listeditor-form-component/which
works great.


N

On Mon, Dec 10, 2012 at 3:56 PM, Nick Pratt  wrote:

> Here is a quickstart:
>
> https://dl.dropbox.com/u/107816727/quickstart.tar.gz
>
>
> Two problems:
>  1. Hit add more than once causes an exception 2. On form submit 
> doesnt set the List up in the A instance.
>
> Any pointers would be appreciated.
>
> Regards
>
> Nick
>
>
> On Mon, Dec 10, 2012 at 2:49 PM, Paul Bors  wrote:
>
>> Sounds like it should be working... unless someone else on the list 
>> has another quick idea of what could be wrong given the few details 
>> you have provided I would advise you to create a quick start and try 
>> to see if you can replicate the problem and then upload it somewhere 
>> we can get access to it or in a Jira ticket.
>>
>> Hopefully in doing so you'll spot what's wrong and fix it :)
>>
>> ~ Thank you,
>>   Paul Bors
>>
>> -Original Message-
>> From: Nick Pratt [mailto:nbpr...@gmail.com]
>> Sent: Monday, December 10, 2012 2:21 PM
>> To: users@wicket.apache.org
>> Subject: Re: Form submit with Collection
>>
>> I have an LDM that I pass in to the Panel containing the Form.  I 
>> wrap the passed-in LDM IModel with a CompoundPropertyModel which I 
>> supply to the Form.  All my components then use
wicketid<-->propertyExpressions.
>>
>> I supply the A.b name as the Wicket Id when I construct the LV.
>>
>> N
>>
>> On Mon, Dec 10, 2012 at 2:11 PM, Paul Bors  wrote:
>>
>> > t
>>
>>
>> -
>> 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



wicket 1.4.21, glassfish, @font-face

2012-12-10 Thread Adam Gray
I'm running into a curious issue and wondered if anyone has any idea what
else I can look into for a solution.

In wicket 1.4.21 (legacy app), I'm attempting to switch to font awesome for
icons in twitter bootstrap.

I've added the following patterns to the resource guard
  guard.addPattern("+*.svg");
  guard.addPattern("+*.ttf");
  guard.addPattern("+*.eot");
  guard.addPattern("+*.woff");

The css file is served as a CSSPackageResource and gets loaded correctly.
The css file references the fonts by url, those seem to be referenced
correctly and are returned from the server with a 200 OK.

The issue is that somehow, the font files are corrupted.  The original ttf
font is 68kb on disk.  The downloaded version is 85kb.

At this point, I don't know if I should be looking into glassfish or
wicket.  Are my guard patterns correct?  I'd like to think so since the
request is completed with "something".  Is there a known packaging problem
with maven I should look for?


RE: stateless pages

2012-12-10 Thread Phillips, David
setStatelessHint() tells the page to attempt to be stateless, but if any of the 
components or the behaviors are not stateless than the page will revert back to 
statefulness.

There are several components which have stateless alternatives (StatelessForm 
and StatelessLink for example), but the very nature of Ajax and it's callback 
functionality means that the page cannot be stateless. The server must maintain 
state about the current page for each Ajax request to have the correct starting 
point.

If I may ask, what is it about statefulness that concerns you?

Thanks,
-David Phillips - USAA

-Original Message-
From: René Vangsgaard [mailto:rene.vangsga...@gmail.com] 
Sent: Monday, December 10, 2012 3:29 PM
To: users@wicket.apache.org
Subject: EXTERNAL: stateless pages

I am looking into stateless wicket. Do the setStatelessHint() work as expected? 
My links are generated correctly, but when the page is rendered a ?#number is 
rendered - the #number being the "normal wicket counter". I read that the 
presence of this number indicates my page is not stateless.

And it is true that any use of Ajax will make a page stateful.

On a more general note, I am looking into creating a stateless application, 
mainly because of scaling. Do you think Wicket will fit, even though I will be 
using Ajax? I really think the separation of HTML and code, the approach with 
components and the use of wicket:id is the best, and I have not found it 
anywhere else. Basically I like Wicket, but do not need the statefulness.

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



stateless pages

2012-12-10 Thread René Vangsgaard
I am looking into stateless wicket. Do the setStatelessHint() work as
expected? My links are generated correctly, but when the page is rendered a
?#number is rendered - the #number being the "normal wicket counter". I
read that the presence of this number indicates my page is not stateless.

And it is true that any use of Ajax will make a page stateful.

On a more general note, I am looking into creating a stateless application,
mainly because of scaling. Do you think Wicket will fit, even though I will
be using Ajax? I really think the separation of HTML and code, the approach
with components and the use of wicket:id is the best, and I have not found
it anywhere else. Basically I like Wicket, but do not need the statefulness.


Re: Form submit with Collection

2012-12-10 Thread Nick Pratt
I just found this:
http://wicketinaction.com/2008/10/building-a-listeditor-form-component/which
works great.


N

On Mon, Dec 10, 2012 at 3:56 PM, Nick Pratt  wrote:

> Here is a quickstart:
>
> https://dl.dropbox.com/u/107816727/quickstart.tar.gz
>
>
> Two problems:
>  1. Hit add more than once causes an exception
> 2. On form submit doesnt set the List up in the A instance.
>
> Any pointers would be appreciated.
>
> Regards
>
> Nick
>
>
> On Mon, Dec 10, 2012 at 2:49 PM, Paul Bors  wrote:
>
>> Sounds like it should be working... unless someone else on the list has
>> another quick idea of what could be wrong given the few details you have
>> provided I would advise you to create a quick start and try to see if you
>> can replicate the problem and then upload it somewhere we can get access
>> to
>> it or in a Jira ticket.
>>
>> Hopefully in doing so you'll spot what's wrong and fix it :)
>>
>> ~ Thank you,
>>   Paul Bors
>>
>> -Original Message-
>> From: Nick Pratt [mailto:nbpr...@gmail.com]
>> Sent: Monday, December 10, 2012 2:21 PM
>> To: users@wicket.apache.org
>> Subject: Re: Form submit with Collection
>>
>> I have an LDM that I pass in to the Panel containing the Form.  I wrap the
>> passed-in LDM IModel with a CompoundPropertyModel which I supply to the
>> Form.  All my components then use wicketid<-->propertyExpressions.
>>
>> I supply the A.b name as the Wicket Id when I construct the LV.
>>
>> N
>>
>> On Mon, Dec 10, 2012 at 2:11 PM, Paul Bors  wrote:
>>
>> > t
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>


RE: Incorrect double slash when jsessionid included in link URL in 6.x

2012-12-10 Thread Sven Meier
Seems this problem has shown up in one of our applications too :(.

I'll have to investigate where this double slash is coming from.

Sven



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Incorrect-double-slash-when-jsessionid-included-in-link-URL-in-6-x-tp4654623p4654673.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: Form submit with Collection

2012-12-10 Thread Nick Pratt
Here is a quickstart:

https://dl.dropbox.com/u/107816727/quickstart.tar.gz


Two problems:
1. Hit add more than once causes an exception
2. On form submit doesnt set the List up in the A instance.

Any pointers would be appreciated.

Regards

Nick


On Mon, Dec 10, 2012 at 2:49 PM, Paul Bors  wrote:

> Sounds like it should be working... unless someone else on the list has
> another quick idea of what could be wrong given the few details you have
> provided I would advise you to create a quick start and try to see if you
> can replicate the problem and then upload it somewhere we can get access to
> it or in a Jira ticket.
>
> Hopefully in doing so you'll spot what's wrong and fix it :)
>
> ~ Thank you,
>   Paul Bors
>
> -Original Message-
> From: Nick Pratt [mailto:nbpr...@gmail.com]
> Sent: Monday, December 10, 2012 2:21 PM
> To: users@wicket.apache.org
> Subject: Re: Form submit with Collection
>
> I have an LDM that I pass in to the Panel containing the Form.  I wrap the
> passed-in LDM IModel with a CompoundPropertyModel which I supply to the
> Form.  All my components then use wicketid<-->propertyExpressions.
>
> I supply the A.b name as the Wicket Id when I construct the LV.
>
> N
>
> On Mon, Dec 10, 2012 at 2:11 PM, Paul Bors  wrote:
>
> > t
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


RE: Styling lost when a component is set visible during AJAX call

2012-12-10 Thread Paul Bors
Conform http://www.w3schools.com/tags/tag_div.asp data-theme is not an HTML
attribute for the DIV element and I'm sure Wicket won't remove it for you.

I'm new to jQuery but I think this is something you should report to them
because it sounds as if once the element is hidden and then shown again it
might lose your data-theme attribute.

Anyhow, glad I could help you figure it out :)

~ Thank you,
  Paul Bors

-Original Message-
From: shimin_q [mailto:smq...@hotmail.com] 
Sent: Monday, December 10, 2012 3:14 PM
To: users@wicket.apache.org
Subject: RE: Styling lost when a component is set visible during AJAX call

The two divs are similar in the HTML:





the data-theme attribute determines the style.

The wicket java code for the two divs are similar too, except the second div
was hidden, made visible later in an ajax onUpdate().



--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Styling-lost-when-a-component-is-
set-visible-during-AJAX-call-tp4654656p4654668.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: ClassCastException (WebResponse)

2012-12-10 Thread Corbin, James
Yeah, it is.  The action was triggered via an AjaxLink which I didn't
realize at the time.  Is there a way to get access to the WebResponse in
this scenario?  I need to delete a cookie, but obviously, you cannot do so
through an AjaxResponse.

J.D.


On 12/10/12 12:56 PM, "Paul Bors"  wrote:

>Most likely because it is an Ajax response... :)
>
>Do you have the AjaxIndicator somewhere on your page and does it indicate
>an
>Ajax request cycle happening?
>What about while in DEVELOPMENT mode, can you monitor the page activity
>using the Wicket Ajax Debug Window?
>
>FYI, while in DEVELOPMENT mode you might want to add the DebugBar to your
>page as well.
>
>~ Thank you,
>  Paul Bors
>
>-Original Message-
>From: Corbin, James [mailto:jcor...@iqnavigator.com]
>Sent: Monday, December 10, 2012 2:33 PM
>To: users@wicket.apache.org
>Subject: ClassCastException (WebResponse)
>
>I have the following code that is generating a ClassCastException that I
>do
>not fully understand,
>
>
>(WebResponse)RequestCycle.get().getResponse();
>
>
>The actual type of the value returned is
>org.apache.wicket.ajax.AbstractAjaxResponse$AjaxResponse.
>
>
>I'm trying to understand why this call returns an AjaxResponse instead of
>a
>WebResponse, in my case.  I don't believe the code where this code get
>executed is in the context of Ajax.
>
>
>J.D.
>
>
>-
>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: Styling lost when a component is set visible during AJAX call

2012-12-10 Thread shimin_q
The two divs are similar in the HTML:





the data-theme attribute determines the style.

The wicket java code for the two divs are similar too, except the second div
was hidden, made visible later in an ajax onUpdate().



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Styling-lost-when-a-component-is-set-visible-during-AJAX-call-tp4654656p4654668.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: ClassCastException (WebResponse)

2012-12-10 Thread Paul Bors
Most likely because it is an Ajax response... :)

Do you have the AjaxIndicator somewhere on your page and does it indicate an
Ajax request cycle happening?
What about while in DEVELOPMENT mode, can you monitor the page activity
using the Wicket Ajax Debug Window?

FYI, while in DEVELOPMENT mode you might want to add the DebugBar to your
page as well.

~ Thank you,
  Paul Bors

-Original Message-
From: Corbin, James [mailto:jcor...@iqnavigator.com] 
Sent: Monday, December 10, 2012 2:33 PM
To: users@wicket.apache.org
Subject: ClassCastException (WebResponse)

I have the following code that is generating a ClassCastException that I do
not fully understand,


(WebResponse)RequestCycle.get().getResponse();


The actual type of the value returned is
org.apache.wicket.ajax.AbstractAjaxResponse$AjaxResponse.


I'm trying to understand why this call returns an AjaxResponse instead of a
WebResponse, in my case.  I don't believe the code where this code get
executed is in the context of Ajax.


J.D.


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



RE: Form submit with Collection

2012-12-10 Thread Paul Bors
Sounds like it should be working... unless someone else on the list has
another quick idea of what could be wrong given the few details you have
provided I would advise you to create a quick start and try to see if you
can replicate the problem and then upload it somewhere we can get access to
it or in a Jira ticket.

Hopefully in doing so you'll spot what's wrong and fix it :)

~ Thank you,
  Paul Bors

-Original Message-
From: Nick Pratt [mailto:nbpr...@gmail.com] 
Sent: Monday, December 10, 2012 2:21 PM
To: users@wicket.apache.org
Subject: Re: Form submit with Collection

I have an LDM that I pass in to the Panel containing the Form.  I wrap the
passed-in LDM IModel with a CompoundPropertyModel which I supply to the
Form.  All my components then use wicketid<-->propertyExpressions.

I supply the A.b name as the Wicket Id when I construct the LV.

N

On Mon, Dec 10, 2012 at 2:11 PM, Paul Bors  wrote:

> t


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



RE: Styling lost when a component is set visible during AJAX call

2012-12-10 Thread Paul Bors
Might be a Wicket problem too... how do you set the style initially that it
got lost?
Is it in the HTML code or via a Behavior?

As far as I recall, Wicket shouldn't remove any attribute set in the HTML
code but it might override or remove it if you set it in the Java code.

~ Thank you,
  Paul Bors

-Original Message-
From: shimin_q [mailto:smq...@hotmail.com] 
Sent: Monday, December 10, 2012 2:27 PM
To: users@wicket.apache.org
Subject: RE: Styling lost when a component is set visible during AJAX call

Thanks, Paul.  

The first  (profileTypeRow) has the correct styling.  The only
difference between the "profileTypeRow"  and the "oxeNodeRow"  is
that "profileTypeRow"'s visibility was never manipulated in the code, so it
is visible throughout while "oxeNodeRow" was initially hidden
(setVisible(false)) then setVisible(true) in the ajax update call.  So I
think the styling got lost when I set the div visible again.  If I took out
the setVisible(false) and setVisible(true) for "oxeNodeRow", it did show up
with the correct styling.

Do you think I need to call some other methods in addition to
setVisible(true) to get the style applied to the newly visible ?





--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Styling-lost-when-a-component-is-
set-visible-during-AJAX-call-tp4654656p4654663.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



ClassCastException (WebResponse)

2012-12-10 Thread Corbin, James
I have the following code that is generating a ClassCastException that I do not 
fully understand,


(WebResponse)RequestCycle.get().getResponse();


The actual type of the value returned is 
org.apache.wicket.ajax.AbstractAjaxResponse$AjaxResponse.


I'm trying to understand why this call returns an AjaxResponse instead of a 
WebResponse, in my case.  I don't believe the code where this code get executed 
is in the context of Ajax.


J.D.


RE: Styling lost when a component is set visible during AJAX call

2012-12-10 Thread shimin_q
Thanks, Paul.  

The first  (profileTypeRow) has the correct styling.  The only
difference between the "profileTypeRow"  and the "oxeNodeRow"  is
that "profileTypeRow"'s visibility was never manipulated in the code, so it
is visible throughout while "oxeNodeRow" was initially hidden
(setVisible(false)) then setVisible(true) in the ajax update call.  So I
think the styling got lost when I set the div visible again.  If I took out
the setVisible(false) and setVisible(true) for "oxeNodeRow", it did show up
with the correct styling.

Do you think I need to call some other methods in addition to
setVisible(true) to get the style applied to the newly visible ?





--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Styling-lost-when-a-component-is-set-visible-during-AJAX-call-tp4654656p4654663.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: Form submit with Collection

2012-12-10 Thread Nick Pratt
I have an LDM that I pass in to the Panel containing the Form.  I wrap the
passed-in LDM IModel with a CompoundPropertyModel which I supply to the
Form.  All my components then use wicketid<-->propertyExpressions.

I supply the A.b name as the Wicket Id when I construct the LV.

N

On Mon, Dec 10, 2012 at 2:11 PM, Paul Bors  wrote:

> t


RE: Form submit with Collection

2012-12-10 Thread Paul Bors
I take it your class A and B here are your POJO or Domain objects that you
use to set/get via Wicket models.

What model do you set to the component that doesn't update with your user
input?

~ Thank you,
  Paul Bors

-Original Message-
From: Nick Pratt [mailto:nbpr...@gmail.com] 
Sent: Monday, December 10, 2012 2:04 PM
To: users@wicket.apache.org
Subject: Re: Form submit with Collection

I have the following entities:

class A {
int someOtherVal;
String foo;
List b;
}

class B {
int someVal;
}

Ive created a form to edit an instance of A.  I want the form to be able to
add/remove instances of B from the A.b collection.  Ive tried using
different repeaters (started with ListView, setReuseItems(true) and
listView.removeAll() in the click handler for the add-link. However, in
form.onSubmit, the collection values of the Entity A (i.e. the 'b' values I
created and added to A.b) are not applied to the IModel accessible in the
onSubmit handler, thus Im unable to add new 'B' entities to the A.b
collection.

Other form values like A.foo and A.someOtherVal are all correctly updated in
the form submit ( I see the entity A loaded from the DB (via an LDM),
A.setSomeOtherValue(), and A.setFoo() being invoked). I dont see any access
of setB() etc.

N

On Mon, Dec 10, 2012 at 1:35 PM, Paul Bors  wrote:

> I for one can't follow your example but sounds to me that you are 
> setting your model on the form and are using collections.
>
> First use-case like that which comes to my mind is a list of selected 
> radio and check boxes or multiple selections in a select box.
>
> Using Wicket you shouldn't have to work too hard on updating the model 
> object (be it a collection) to update it with the user input. Wicket 
> should do that for you and if it's not working you might be doing 
> something wrong or forgetting something else.
>
> I would suggest to take a look at how CollectionModel is used:
>
> http://www.wicket-library.com/wicket-examples/compref/wicket/bookmarka
> ble/or
> g.apache.wicket.examples.compref.PalettePage?0
>
> Perhaps that can aid answering your quest.
>
> Otherwise, please better phrase your question and/or submit some code 
> examples to help us better understand.
>
> ~ Thank you,
>   Paul Bors
>
> -Original Message-
> From: Nick Pratt [mailto:nbpr...@gmail.com]
> Sent: Monday, December 10, 2012 1:11 PM
> To: users@wicket.apache.org
> Subject: Form submit with Collection
>
> My understanding of Form submit behavior with models is that onSubmit, 
> Wicket loads the model, and then applies all the changed form values 
> to that model.  This works fine for non-collection types (Strings, 
> ints etc) set from all the input types Ive been using (TextField, 
> RadioChoice, DDC etc.).
>
> However, what is not working is the addition of new Entities that live 
> inside a Collection of the IModel entity.  Lets say I have a 1..N 
> relationship, A..B, and I want to add 2 new Bs to A's collection (a 
> fairly common requirement) in my form. I dont want these new B entities
persisted
> in the DB until the entire form is submitted (Im using JPA cascade).   How
> do I code this part of the form/logic so that when I hit submit, I get 
> those
> 2 new B entities added to the A.b collection, so that I can save(a) 
> and have everything update?
>
> Regards
>
> Nick
>
>
> -
> 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: Styling lost when a component is set visible during AJAX call

2012-12-10 Thread Paul Bors
Have you used  (dividers) HTML elements for the other form components
that have the correct styling?

I think a  tag break the inherited CSS similar to how  works.
Try to either use a  or apply the same style to .

On a side note, if you want to support accessibility your  and form
field should be using a SimpleFormComponentLabel or similar.

~ Thank you,
  Paul Bors

-Original Message-
From: shimin_q [mailto:smq...@hotmail.com] 
Sent: Monday, December 10, 2012 1:26 PM
To: users@wicket.apache.org
Subject: Styling lost when a component is set visible during AJAX call

Hi, 

I have a WebMarkupContainer () that consists of a Label ( in the
HTML markup) and a DropDownChoice ( in the HTML markup).  This 
was initially hidden, only to be setVisible(true) during an AJAX call based
on the input of another component on the page.   But the newly visible
component does not have any styling like the other components on the page. 
Is there any other method I must call in the AJAX function in addition to
the setVisible(true) to make sure proper styling is applied when the
component is made visible?  Any ideas and suggestions are welcome!!  Thanks.

Here is the code:



The corresponding HTML markup is:





--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Styling-lost-when-a-component-is-
set-visible-during-AJAX-call-tp4654656.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: Form submit with Collection

2012-12-10 Thread Nick Pratt
I have the following entities:

class A {
int someOtherVal;
String foo;
List b;
}

class B {
int someVal;
}

Ive created a form to edit an instance of A.  I want the form to be able to
add/remove instances of B from the A.b collection.  Ive tried using
different repeaters (started with ListView, setReuseItems(true) and
listView.removeAll() in the click handler for the add-link. However, in
form.onSubmit, the collection values of the Entity A (i.e. the 'b' values I
created and added to A.b) are not applied to the IModel accessible in the
onSubmit handler, thus Im unable to add new 'B' entities to the A.b
collection.

Other form values like A.foo and A.someOtherVal are all correctly updated
in the form submit ( I see the entity A loaded from the DB (via an LDM),
A.setSomeOtherValue(), and A.setFoo() being invoked). I dont see any access
of setB() etc.

N

On Mon, Dec 10, 2012 at 1:35 PM, Paul Bors  wrote:

> I for one can't follow your example but sounds to me that you are setting
> your model on the form and are using collections.
>
> First use-case like that which comes to my mind is a list of selected radio
> and check boxes or multiple selections in a select box.
>
> Using Wicket you shouldn't have to work too hard on updating the model
> object (be it a collection) to update it with the user input. Wicket should
> do that for you and if it's not working you might be doing something wrong
> or forgetting something else.
>
> I would suggest to take a look at how CollectionModel is used:
>
> http://www.wicket-library.com/wicket-examples/compref/wicket/bookmarkable/or
> g.apache.wicket.examples.compref.PalettePage?0
>
> Perhaps that can aid answering your quest.
>
> Otherwise, please better phrase your question and/or submit some code
> examples to help us better understand.
>
> ~ Thank you,
>   Paul Bors
>
> -Original Message-
> From: Nick Pratt [mailto:nbpr...@gmail.com]
> Sent: Monday, December 10, 2012 1:11 PM
> To: users@wicket.apache.org
> Subject: Form submit with Collection
>
> My understanding of Form submit behavior with models is that onSubmit,
> Wicket loads the model, and then applies all the changed form values to
> that
> model.  This works fine for non-collection types (Strings, ints etc) set
> from all the input types Ive been using (TextField, RadioChoice, DDC etc.).
>
> However, what is not working is the addition of new Entities that live
> inside a Collection of the IModel entity.  Lets say I have a 1..N
> relationship, A..B, and I want to add 2 new Bs to A's collection (a fairly
> common requirement) in my form. I dont want these new B entities persisted
> in the DB until the entire form is submitted (Im using JPA cascade).   How
> do I code this part of the form/logic so that when I hit submit, I get
> those
> 2 new B entities added to the A.b collection, so that I can save(a) and
> have
> everything update?
>
> Regards
>
> Nick
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: understanding ajax response

2012-12-10 Thread saty
Thanks, do you still need a quick start app to look into this, sorry i was
occupied in other pressing needs but i can try one if required. 
On a different note, the problem seem to be only with Firefox 17 and 18, for
some reason there are no issues in older versions ( i tested with 12 and 14)
for my particular case.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/understanding-ajax-response-tp4654310p4654658.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: Form submit with Collection

2012-12-10 Thread Paul Bors
I for one can't follow your example but sounds to me that you are setting
your model on the form and are using collections.

First use-case like that which comes to my mind is a list of selected radio
and check boxes or multiple selections in a select box.

Using Wicket you shouldn't have to work too hard on updating the model
object (be it a collection) to update it with the user input. Wicket should
do that for you and if it's not working you might be doing something wrong
or forgetting something else.

I would suggest to take a look at how CollectionModel is used:
http://www.wicket-library.com/wicket-examples/compref/wicket/bookmarkable/or
g.apache.wicket.examples.compref.PalettePage?0

Perhaps that can aid answering your quest.

Otherwise, please better phrase your question and/or submit some code
examples to help us better understand.

~ Thank you,
  Paul Bors

-Original Message-
From: Nick Pratt [mailto:nbpr...@gmail.com] 
Sent: Monday, December 10, 2012 1:11 PM
To: users@wicket.apache.org
Subject: Form submit with Collection

My understanding of Form submit behavior with models is that onSubmit,
Wicket loads the model, and then applies all the changed form values to that
model.  This works fine for non-collection types (Strings, ints etc) set
from all the input types Ive been using (TextField, RadioChoice, DDC etc.).

However, what is not working is the addition of new Entities that live
inside a Collection of the IModel entity.  Lets say I have a 1..N
relationship, A..B, and I want to add 2 new Bs to A's collection (a fairly
common requirement) in my form. I dont want these new B entities persisted
in the DB until the entire form is submitted (Im using JPA cascade).   How
do I code this part of the form/logic so that when I hit submit, I get those
2 new B entities added to the A.b collection, so that I can save(a) and have
everything update?

Regards

Nick


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



Form submit with Collection

2012-12-10 Thread Nick Pratt
My understanding of Form submit behavior with models is that onSubmit,
Wicket loads the model, and then applies all the changed form values to
that model.  This works fine for non-collection types (Strings, ints etc)
set from all the input types Ive been using (TextField, RadioChoice, DDC
etc.).

However, what is not working is the addition of new Entities that live
inside a Collection of the IModel entity.  Lets say I have a 1..N
relationship, A..B, and I want to add 2 new Bs to A's collection (a fairly
common requirement) in my form. I dont want these new B entities persisted
in the DB until the entire form is submitted (Im using JPA cascade).   How
do I code this part of the form/logic so that when I hit submit, I get
those 2 new B entities added to the A.b collection, so that I can save(a)
and have everything update?

Regards

Nick


RE: Redirect to login page on UnauthorizedActionException(Page,RENDER)

2012-12-10 Thread Paul Bors
Do you want to redirect to the Login page for all "thrown" AccessDenied
exceptions? Or just in some situations?

If you want to do it for all, then create your own WebPage for
AccessDeinedPage such as:

public class AccessDeniedPage extends WebPage {
private static final long serialVersionUID = 1L;

public AccessDeniedPage() {
Session.get().warn(ResourceModel("access.denied"));
throw new
RestartResponseException(Application.get().getLoginPage());
}
}

And inside your Application class in your init():

@Override
protected void init() {
...
IApplicationSettings applicationSettings = getApplicationSettings();
applicationSettings.setAccessDeniedPage(AccessDeniedPage.class);
...
}

There are other such exceptions which you can assign your own page
implementation, see the API for IApplicationSettings.

As for redirecting the user to your custom AccessDeined page (the LoginPage)
only under few circumstances, I haven't run into that need yet so someone
else could help you if you really need to do that.

~ Thank you,
  Paul Bors

-Original Message-
From: Jesse Long [mailto:j...@unknown.za.net] 
Sent: Monday, December 10, 2012 11:05 AM
To: users@wicket.apache.org
Subject: Redirect to login page on UnauthorizedActionException(Page,RENDER)

Hi All,

I am using the authorization strategy to authorize viewing of pages by
checking if instantiation is allowed. If the session is not authenticated,
and if instantiation is not allowed, I redirect the user to a login page
using an IUnauthorizedComponentInstantiationListener.

I also check if the RENDER action is allowed using the authorization
strategy. At the moment, if the user tries to view a Page which he is
allowed to instantiate, but where the authorization strategy denies RENDER
permission (permissions configured for render/enable, but not for
instantiation), he gets a AccessDenied page. In these situations, I also
want to redirect the user to a login page if the session is not
authenticated.

Would IExceptionMapper be the correct place to do this? If so, could we make
DefaultExceptionMapper a bit easier to extend please?

Thanks,
Jesse

-
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: buttons panel

2012-12-10 Thread Paul Bors
Consult Wicket's website and its live examples:
http://wicket.apache.org/

>From Wicket's website Under the Learn section see the links for Examples:
http://wicket.apache.org/learn/examples/
Then follow the "live action" link:
http://www.wicket-library.com/wicket-examples/index.html
Take a look at "forminput".

>From Wicket's website Under the Learn section see the links for Components:
http://www.wicket-library.com/wicket-examples/compref/
Take a look at Forms and FromInput.

Welcome to Wicket!

-Original Message-
From: jayasree [mailto:jayasree@hcl.com] 
Sent: Monday, December 10, 2012 2:13 AM
To: users@wicket.apache.org
Subject: buttons panel

Hi,
Iam new to Apache Wicket. I need to create a panel which contains submit and
cancel buttons.
So pls help me in doing this. I need a  html and corresponding java page for
this.



--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/buttons-panel-tp4654624.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



buttons panel

2012-12-10 Thread jayasree
Hi,
Iam new to Apache Wicket. I need to create a panel which contains submit and
cancel buttons.
So pls help me in doing this. I need a  html and corresponding java page for
this.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/buttons-panel-tp4654624.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: what is Wicket 2.x?

2012-12-10 Thread Martijn Dashorst
On Mon, Dec 10, 2012 at 4:39 PM, Joachim Schrod  wrote:
> I'd like to add my voice to Martijn's comment that there are still
> people out there who have no choice but to use 1.4. Typically guys
> who have to support Wicket apps on app servers with no servlet-2.5-api.

I'm not 100% sure, but did you try running a newer wicket (1.5) on ye
old container?

I guess it should not be too difficult of fixing 1.5 to actually run
on a 2.4 servlet api.

At least Wicket 1.5.10-SNAPSHOT builds when I modify the servlet API
dependency to 2.4 (no compilation nor unit test failures)

Wicket 6 also requires Java 6, which might pose bigger problems.

> I'm one of them. :-( Next year, upgrade to JBoss 7 and thus Wicket
> 6 is hopefully possible.

I hope so too.

Martijn

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



Redirect to login page on UnauthorizedActionException(Page,RENDER)

2012-12-10 Thread Jesse Long

Hi All,

I am using the authorization strategy to authorize viewing of pages by 
checking if instantiation is allowed. If the session is not 
authenticated, and if instantiation is not allowed, I redirect the user 
to a login page using an IUnauthorizedComponentInstantiationListener.


I also check if the RENDER action is allowed using the authorization 
strategy. At the moment, if the user tries to view a Page which he is 
allowed to instantiate, but where the authorization strategy denies 
RENDER permission (permissions configured for render/enable, but not for 
instantiation), he gets a AccessDenied page. In these situations, I also 
want to redirect the user to a login page if the session is not 
authenticated.


Would IExceptionMapper be the correct place to do this? If so, could we 
make DefaultExceptionMapper a bit easier to extend please?


Thanks,
Jesse

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



Re: what is Wicket 2.x?

2012-12-10 Thread Joachim Schrod
Martin Grigorov wrote:
> 
> Additionally I think that everything that is related to Wicket 1.4 and less
> should be removed from the Wiki.

I'd like to add my voice to Martijn's comment that there are still
people out there who have no choice but to use 1.4. Typically guys
who have to support Wicket apps on app servers with no servlet-2.5-api.

I'm one of them. :-( Next year, upgrade to JBoss 7 and thus Wicket
6 is hopefully possible.

Joachim

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Joachim Schrod, Roedermark, Germany
Email: jsch...@acm.org


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



Re: different page expired error page?

2012-12-10 Thread Karsten Gaul

Hi,

and sorry. Forgot to mention that I'm using wicket 1.4.21 so I was 
trying to override 
AbstractRequestCycleProcessor#respond(RuntimeException e, RequestCycle 
requestCycle) and on second thought I guess overriding 
RequestCycle#onRuntimeException should do the trick. I'll give it a try.


Thanks,
Karsten


Am 10.12.2012 12:14, schrieb Martin Grigorov:

Hi,

See org.apache.wicket.request.cycle.AbstractRequestCycleListener#onException
With this you can return RenderPageRequestHanlder specific for any type of
exception.


On Mon, Dec 10, 2012 at 11:37 AM, Karsten Gaul wrote:


Hi,

is there a way to have different page expiry error pages? For my app I
would like to redirect browsing users (not logged in) to a real error page
which is plain and simple but logged in users should be redirected to the
login page on session timeout.

Thanks,
Karsten

--**--**-
To unsubscribe, e-mail: 
users-unsubscribe@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: what is Wicket 2.x?

2012-12-10 Thread Martijn Dashorst
On Mon, Dec 10, 2012 at 10:24 AM, Martin Grigorov  wrote:
> everyone can edit the wiki pages. All you need is to create an account.
>
> Additionally I think that everything that is related to Wicket 1.4 and less
> should be removed from the Wiki.

Funny, I just gave a presentation to a institution that still runs
Wicket 1.4 applications and can only upgrade next year to a more
recent version (6)

I think we probably should compartmentalize the various pages better
(tagging?) so information about 1.4 is easier to detect.

Martijn

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



Re: TinyMCE ImageUploadPlugin problem

2012-12-10 Thread Andrea Del Bene
I think that the missing button is a bug while uploaded images are 
placed into temp dir. I don't know if there is a way to configure this path.

Hi,

I have a form with a textarea TinyMceBehavior attached. I would like to
provide users to upload and include images in their articles. I did the
following method:

ImageUploadPanel imageUploadPanel = new ImageUploadPanel("uploadPanel");
TinyMCeAdvancedSettings settings = new TinyMCeAdvancedSettings();
ImageUploadPlugin plugin = new
ImageUploadPlugin(imageUploadPanel.getImageUploadBehavior());
settings.add(plugin.getImageUploadButton(),
TinyMCESettings.Toolbar.first,TinyMCESettings.Position.after);
add(imageUploadPanel);
article.add(new TinyMceBehavior(settings));

The result is that upload button's icon is missing but the upload function
works. I can upload files but have two problems.
First is I'm not able to control where to put uploaded files (Not even know
where are they now. I suppose somewhere tmp dir). The second one is that
after upload img inserted in the article  the following  way:

If anyone could point to what I'm wrong I really would appreciate that!

thnx, Sandor





--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/TinyMCE-ImageUploadPlugin-problem-tp4654616.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: pageparameters in link onclick

2012-12-10 Thread Kurt Sys
Hey Martin,

It's not about 'nice urls' as such, but with the Link-component, the
page doesn't redirect to /req/post/1. The redirection worked fine in
1.4.x, but in 1.6.x, it didn't work anymore. Dunno exactly why, but
all the links redirected to /post/62, not using/reading the
PageParameters. For some reason, the PageParameters were not passed to
the component the link pointed to.
However, I now used BookmarkablePageLink and it seems to work.

Thanks a lot!
Best regards,
Kurt Sys

2012/12/10 Martin Grigorov :
> Hi,
>
> You need to use BookmarkablePageLink (BPL) instead of Link to have a nice
> looking urls for the links themselves.
> With your approach the link url will be
> './req?4-2.ILinkListener-[...]-7-linkanchor'
> and when clicked it will make a redirect to /req/post/1
> With BPL the link url will be /req/post/1 and a redirect will be made to
> /req/post/1?pageId only if the page is stateful.
>
>
> On Sat, Dec 8, 2012 at 2:32 PM, Kurt Sys  wrote:
>
>> Hey, I'm having some issues with pageparameters. I'm upgrading from wicket
>> 1.4.x to 1.6.x. Most is done, however, I can't get pageparameters to work
>> properly.
>>
>> -- MainApp defines how I mount the pages, i.e. with two optional parameters
>> (type and id):
>>
>>
>> -- HomePage.java is nothing special but just loads a bunch of stuff,
>> including BlogPanel (yeah, it's for a blog, how did you guess?) which
>> includes a BlogDataView
>>
>> -- BlogDataView, if in the url I have somthing like /post/50, it should
>> load
>> the page with post 50 and scroll to the right post, hence the 'if (blogid >
>> 0)':
>>
>>
>>
>> All this works fine, but I have included in my homepage some panels with
>> links to specific posts. In that case, the right page/post must be loaded.
>> So I have stuff like this:
>>
>>
>>
>> However, the PageParameters are not set. The URL isn't updated properly and
>> always ends with: '/post/62' (followed by '?2' or something, but that
>> doesn't matter a lot). I, as a test, changed 'pars.add("type","post")'
>> 'pars.add("type","test")', but still get '/post/62'. I must be missing
>> something, but I just can't get to it.
>>
>> Oh yeah, the links in the source code of the generated webpage:
>>
>>
>> or, depending how the page was loaded (/post/xx or without parameters):
>>
>>
>> Should I implement some kind of ILinkListener or how can I generate the URL
>> properly (so it gets to /post/xx)? Or maybe just: why are the
>> pageparameters
>> not right? (That might be enough to get to the right answer, I suppose - it
>> used to work in Wicket 1.4.x).
>>
>> Thanks, Kurt
>>
>>
>>
>>
>> --
>> View this message in context:
>> http://apache-wicket.1842946.n4.nabble.com/pageparameters-in-link-onclick-tp4654611.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: a question on different data grid components available for wicket

2012-12-10 Thread Ernesto Reinaldo Barreiro
Martin,

Glad to be of some help...

Maybe next round of development should target replacing the use of (the now
deprecated) Tree component, with Sven's new Tree... Thought that might
prove more complicated and might also bring API breaks.


On Mon, Dec 10, 2012 at 12:40 PM, Martin Grigorov wrote:

> Ernesto,
>
> With its jQuery backend and recent fixes I think the grid component will
> become even more popular. See
> http://wicketinaction.com/2012/12/wicketstuff-download-stats-for-nov-2012/
>
>
> On Mon, Dec 10, 2012 at 11:15 AM, Ernesto Reinaldo Barreiro <
> reier...@gmail.com> wrote:
>
> > Martin,
> >
> > Many thanks!
> >
> > On Mon, Dec 10, 2012 at 11:08 AM, Martin Grigorov  > >wrote:
> >
> > > Hi Ernesto,
> > >
> > > I've just applied your patch.
> > > Thanks!
> > >
> > >
> > > On Sat, Dec 8, 2012 at 3:58 PM, Ernesto Reinaldo Barreiro <
> > > reier...@gmail.com> wrote:
> > >
> > > > This seems to be the problem.
> > > >
> > > > https://issues.apache.org/jira/browse/WICKET-4916
> > > >
> > > > With patch applied to my local wicket branch tree grid works as
> > expected.
> > > >
> > > > On Sat, Dec 8, 2012 at 11:27 AM, Ernesto Reinaldo Barreiro <
> > > > reier...@gmail.com> wrote:
> > > >
> > > > > Martin,
> > > > >
> > > > > I think what is happening with tree-grid "edit" is that no
> "onclick"
> > > > > handlers are generated for newly added rows (when a node is
> > expanded).
> > > >  Any
> > > > > pointers on what might be causing that?
> > > > >
> > > > > On Tue, Dec 4, 2012 at 9:07 PM, Ernesto Reinaldo Barreiro <
> > > > > reier...@gmail.com> wrote:
> > > > >
> > > > >> Fixed "return" and "ESC" on edit both for YUI and jquery.
> > > > >>
> > > > >>
> > > > >> On Tue, Dec 4, 2012 at 8:27 PM, Martin Grigorov <
> > mgrigo...@apache.org
> > > > >wrote:
> > > > >>
> > > > >>> I compared it against
> > > > >>> http://www.wicket-library.com/inmethod-grid/data-grid/simple?0 -
> > > this
> > > > >>> uses
> > > > >>> InMethod Grid 1.5 though
> > > > >>>
> > > > >>>
> > > > >>> On Tue, Dec 4, 2012 at 8:24 PM, Ernesto Reinaldo Barreiro <
> > > > >>> reier...@gmail.com> wrote:
> > > > >>>
> > > > >>> > Martin,
> > > > >>> >
> > > > >>> > On Tue, Dec 4, 2012 at 9:28 AM, Martin Grigorov <
> > > > mgrigo...@apache.org
> > > > >>> > >wrote:
> > > > >>> >
> > > > >>> > > Great work, Ernesto !
> > > > >>> > >
> > > > >>> > > I just tried the samples application and the only problem
> that
> > > I've
> > > > >>> found
> > > > >>> > > is related to the editable grids.
> > > > >>> > > In both Editable Grid and Editable TreeGrid the 'ESC'
> keypress
> > > > >>> doesn't
> > > > >>> > > work.
> > > > >>> > >
> > > > >>> >
> > > > >>> > 'Esc' Keypress does not work either with YUI. It gives JS
> error.
> > > > >>> >
> > > > >>> > TypeError: elements[0].onclick is null
> > > > >>> >
> > > > >>> > row = findParent(row, "TR");
> > > > >>> >
> > > > >>> >
> > > > >>> >  I will also fix that.
> > > > >>> >
> > > > >>> >
> > > > >>> > > In Editable TreeGrid I can edit only folders but I can't edit
> > > > leafs.
> > > > >>> > >
> > > > >>> > >
> > > > >>> > You can't edit leafs (also) with YUI based version (just
> checked
> > > > >>> that). So,
> > > > >>> > this might be a regression on YUI version?
> > > > >>> >
> > > > >>> > --
> > > > >>> > Regards - Ernesto Reinaldo Barreiro
> > > > >>> > Antilia Soft
> > > > >>> > http://antiliasoft.com/ 
> > > > >>> >
> > > > >>>
> > > > >>>
> > > > >>>
> > > > >>> --
> > > > >>> Martin Grigorov
> > > > >>> jWeekend
> > > > >>> Training, Consulting, Development
> > > > >>> http://jWeekend.com 
> > > > >>>
> > > > >>
> > > > >>
> > > > >>
> > > > >> --
> > > > >> Regards - Ernesto Reinaldo Barreiro
> > > > >> Antilia Soft
> > > > >> http://antiliasoft.com/ 
> > > > >>
> > > > >>
> > > > >
> > > > >
> > > > > --
> > > > > Regards - Ernesto Reinaldo Barreiro
> > > > > Antilia Soft
> > > > > http://antiliasoft.com/ 
> > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > Regards - Ernesto Reinaldo Barreiro
> > > > Antilia Soft
> > > > http://antiliasoft.com/ 
> > > >
> > >
> > >
> > >
> > > --
> > > Martin Grigorov
> > > jWeekend
> > > Training, Consulting, Development
> > > http://jWeekend.com 
> > >
> >
> >
> >
> > --
> > Regards - Ernesto Reinaldo Barreiro
> > Antilia Soft
> > http://antiliasoft.com/ 
> >
>
>
>
> --
> Martin Grigorov
> jWeekend
> Training, Consulting, Development
> http://jWeekend.com 
>



-- 
Regards - Ernesto Reinaldo Barreiro
Antilia Soft
http://antiliasoft.com/ 


Re: a question on different data grid components available for wicket

2012-12-10 Thread Martin Grigorov
Ernesto,

With its jQuery backend and recent fixes I think the grid component will
become even more popular. See
http://wicketinaction.com/2012/12/wicketstuff-download-stats-for-nov-2012/


On Mon, Dec 10, 2012 at 11:15 AM, Ernesto Reinaldo Barreiro <
reier...@gmail.com> wrote:

> Martin,
>
> Many thanks!
>
> On Mon, Dec 10, 2012 at 11:08 AM, Martin Grigorov  >wrote:
>
> > Hi Ernesto,
> >
> > I've just applied your patch.
> > Thanks!
> >
> >
> > On Sat, Dec 8, 2012 at 3:58 PM, Ernesto Reinaldo Barreiro <
> > reier...@gmail.com> wrote:
> >
> > > This seems to be the problem.
> > >
> > > https://issues.apache.org/jira/browse/WICKET-4916
> > >
> > > With patch applied to my local wicket branch tree grid works as
> expected.
> > >
> > > On Sat, Dec 8, 2012 at 11:27 AM, Ernesto Reinaldo Barreiro <
> > > reier...@gmail.com> wrote:
> > >
> > > > Martin,
> > > >
> > > > I think what is happening with tree-grid "edit" is that no "onclick"
> > > > handlers are generated for newly added rows (when a node is
> expanded).
> > >  Any
> > > > pointers on what might be causing that?
> > > >
> > > > On Tue, Dec 4, 2012 at 9:07 PM, Ernesto Reinaldo Barreiro <
> > > > reier...@gmail.com> wrote:
> > > >
> > > >> Fixed "return" and "ESC" on edit both for YUI and jquery.
> > > >>
> > > >>
> > > >> On Tue, Dec 4, 2012 at 8:27 PM, Martin Grigorov <
> mgrigo...@apache.org
> > > >wrote:
> > > >>
> > > >>> I compared it against
> > > >>> http://www.wicket-library.com/inmethod-grid/data-grid/simple?0 -
> > this
> > > >>> uses
> > > >>> InMethod Grid 1.5 though
> > > >>>
> > > >>>
> > > >>> On Tue, Dec 4, 2012 at 8:24 PM, Ernesto Reinaldo Barreiro <
> > > >>> reier...@gmail.com> wrote:
> > > >>>
> > > >>> > Martin,
> > > >>> >
> > > >>> > On Tue, Dec 4, 2012 at 9:28 AM, Martin Grigorov <
> > > mgrigo...@apache.org
> > > >>> > >wrote:
> > > >>> >
> > > >>> > > Great work, Ernesto !
> > > >>> > >
> > > >>> > > I just tried the samples application and the only problem that
> > I've
> > > >>> found
> > > >>> > > is related to the editable grids.
> > > >>> > > In both Editable Grid and Editable TreeGrid the 'ESC' keypress
> > > >>> doesn't
> > > >>> > > work.
> > > >>> > >
> > > >>> >
> > > >>> > 'Esc' Keypress does not work either with YUI. It gives JS error.
> > > >>> >
> > > >>> > TypeError: elements[0].onclick is null
> > > >>> >
> > > >>> > row = findParent(row, "TR");
> > > >>> >
> > > >>> >
> > > >>> >  I will also fix that.
> > > >>> >
> > > >>> >
> > > >>> > > In Editable TreeGrid I can edit only folders but I can't edit
> > > leafs.
> > > >>> > >
> > > >>> > >
> > > >>> > You can't edit leafs (also) with YUI based version (just checked
> > > >>> that). So,
> > > >>> > this might be a regression on YUI version?
> > > >>> >
> > > >>> > --
> > > >>> > Regards - Ernesto Reinaldo Barreiro
> > > >>> > Antilia Soft
> > > >>> > http://antiliasoft.com/ 
> > > >>> >
> > > >>>
> > > >>>
> > > >>>
> > > >>> --
> > > >>> Martin Grigorov
> > > >>> jWeekend
> > > >>> Training, Consulting, Development
> > > >>> http://jWeekend.com 
> > > >>>
> > > >>
> > > >>
> > > >>
> > > >> --
> > > >> Regards - Ernesto Reinaldo Barreiro
> > > >> Antilia Soft
> > > >> http://antiliasoft.com/ 
> > > >>
> > > >>
> > > >
> > > >
> > > > --
> > > > Regards - Ernesto Reinaldo Barreiro
> > > > Antilia Soft
> > > > http://antiliasoft.com/ 
> > > >
> > > >
> > >
> > >
> > > --
> > > Regards - Ernesto Reinaldo Barreiro
> > > Antilia Soft
> > > http://antiliasoft.com/ 
> > >
> >
> >
> >
> > --
> > Martin Grigorov
> > jWeekend
> > Training, Consulting, Development
> > http://jWeekend.com 
> >
>
>
>
> --
> Regards - Ernesto Reinaldo Barreiro
> Antilia Soft
> http://antiliasoft.com/ 
>



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


RE: Incorrect double slash when jsessionid included in link URL in 6.x

2012-12-10 Thread Chris Colman
I'm trying to create a minimalist quickstart that will reproduce it.

Seems like it only happens when app is installed at root - it has it's
own domain name via a virtual host or similar, in tomcat.

i.e. it's not occurring for http://localhost/doubleslash

which means the quickstart will likely need to be installed as the root
app under a virtual host.

Using class BookmarkablePageLink

>-Original Message-
>From: Andrea Del Bene [mailto:a.delb...@abanet.it]
>Sent: Monday, 10 December 2012 9:06 PM
>To: users@wicket.apache.org
>Subject: Re: Incorrect double slash when jsessionid included in link
URL in
>6.x
>
>Can you open an issue with a quickstart project?
>> I'm using the latest from git as of about 12 hours ago. I just did
>> another git pull and it says it's still up to date so I've got the
>> latest master source and I'm building the wicket jars from that.
>>
>>> -Original Message-
>>> From: Sven Meier [mailto:s...@meiers.net]
>>> Sent: Monday, 10 December 2012 7:58 PM
>>> To: users@wicket.apache.org
>>> Subject: Re: Incorrect double slash when jsessionid included in link
>> URL in
>>> 6.x
>>>
>>> Which 6.x version are you using? We had some Url rendering issues
>> solved
>>> in recent updates.
>>>
>>> Sven
>>>
>>> On 12/10/2012 04:12 AM, Chris Colman wrote:
 When a browser (tested on FF and Chrome) makes a request after
>> session
 time out the jessionid is added to all links on the first page
>> returned
 - after that server detects cookies and uses those for session
>> tracking.
 This works fine on 1.5 but since migrating to 6.x we've noticed
that
>> the
 links on that first page request have an extra slash i.e. they look
 like:


>>
http://www.myurl.com//news;jsessionid=215FF4213EC3F872062156804334311B
>>

 instead of


http://www.myurl.com/news;jsessionid=215FF4213EC3F872062156804334311B

 The link with the double slash does not work when clicked and
Tomcat
 returns a Status 404 "resource not available" error.

 Given that we haven't changed any code relating to how links are
 rendered in our migration from 1.5 to 6.x is there a migration step
>> that
 we have missed or is this a bug?


 Yours sincerely,

 Chris Colman

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


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



Re: Select2Choice dropdown box is not appeared in correct position

2012-12-10 Thread Thomas Götz
You need to show us some more code if we should help you. As everything is fine 
in your quickstart - as you mentioned - the problem presumably seems to be 
somewhere in you application, either some css or javascript issue as I suppose. 
Try to reproduce and isolate it or show us some more.

   -Tom

On 10.12.2012, at 01:19, Madasamy mcruncher  wrote:

> No, I did not get any Java scripts errors.


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



Re: different page expired error page?

2012-12-10 Thread Martin Grigorov
Hi,

See org.apache.wicket.request.cycle.AbstractRequestCycleListener#onException
With this you can return RenderPageRequestHanlder specific for any type of
exception.


On Mon, Dec 10, 2012 at 11:37 AM, Karsten Gaul wrote:

> Hi,
>
> is there a way to have different page expiry error pages? For my app I
> would like to redirect browsing users (not logged in) to a real error page
> which is plain and simple but logged in users should be redirected to the
> login page on session timeout.
>
> Thanks,
> Karsten
>
> --**--**-
> To unsubscribe, e-mail: 
> users-unsubscribe@wicket.**apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


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


different page expired error page?

2012-12-10 Thread Karsten Gaul

Hi,

is there a way to have different page expiry error pages? For my app I 
would like to redirect browsing users (not logged in) to a real error 
page which is plain and simple but logged in users should be redirected 
to the login page on session timeout.


Thanks,
Karsten

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



Re: a question on different data grid components available for wicket

2012-12-10 Thread Ernesto Reinaldo Barreiro
Martin,

Many thanks!

On Mon, Dec 10, 2012 at 11:08 AM, Martin Grigorov wrote:

> Hi Ernesto,
>
> I've just applied your patch.
> Thanks!
>
>
> On Sat, Dec 8, 2012 at 3:58 PM, Ernesto Reinaldo Barreiro <
> reier...@gmail.com> wrote:
>
> > This seems to be the problem.
> >
> > https://issues.apache.org/jira/browse/WICKET-4916
> >
> > With patch applied to my local wicket branch tree grid works as expected.
> >
> > On Sat, Dec 8, 2012 at 11:27 AM, Ernesto Reinaldo Barreiro <
> > reier...@gmail.com> wrote:
> >
> > > Martin,
> > >
> > > I think what is happening with tree-grid "edit" is that no "onclick"
> > > handlers are generated for newly added rows (when a node is expanded).
> >  Any
> > > pointers on what might be causing that?
> > >
> > > On Tue, Dec 4, 2012 at 9:07 PM, Ernesto Reinaldo Barreiro <
> > > reier...@gmail.com> wrote:
> > >
> > >> Fixed "return" and "ESC" on edit both for YUI and jquery.
> > >>
> > >>
> > >> On Tue, Dec 4, 2012 at 8:27 PM, Martin Grigorov  > >wrote:
> > >>
> > >>> I compared it against
> > >>> http://www.wicket-library.com/inmethod-grid/data-grid/simple?0 -
> this
> > >>> uses
> > >>> InMethod Grid 1.5 though
> > >>>
> > >>>
> > >>> On Tue, Dec 4, 2012 at 8:24 PM, Ernesto Reinaldo Barreiro <
> > >>> reier...@gmail.com> wrote:
> > >>>
> > >>> > Martin,
> > >>> >
> > >>> > On Tue, Dec 4, 2012 at 9:28 AM, Martin Grigorov <
> > mgrigo...@apache.org
> > >>> > >wrote:
> > >>> >
> > >>> > > Great work, Ernesto !
> > >>> > >
> > >>> > > I just tried the samples application and the only problem that
> I've
> > >>> found
> > >>> > > is related to the editable grids.
> > >>> > > In both Editable Grid and Editable TreeGrid the 'ESC' keypress
> > >>> doesn't
> > >>> > > work.
> > >>> > >
> > >>> >
> > >>> > 'Esc' Keypress does not work either with YUI. It gives JS error.
> > >>> >
> > >>> > TypeError: elements[0].onclick is null
> > >>> >
> > >>> > row = findParent(row, "TR");
> > >>> >
> > >>> >
> > >>> >  I will also fix that.
> > >>> >
> > >>> >
> > >>> > > In Editable TreeGrid I can edit only folders but I can't edit
> > leafs.
> > >>> > >
> > >>> > >
> > >>> > You can't edit leafs (also) with YUI based version (just checked
> > >>> that). So,
> > >>> > this might be a regression on YUI version?
> > >>> >
> > >>> > --
> > >>> > Regards - Ernesto Reinaldo Barreiro
> > >>> > Antilia Soft
> > >>> > http://antiliasoft.com/ 
> > >>> >
> > >>>
> > >>>
> > >>>
> > >>> --
> > >>> Martin Grigorov
> > >>> jWeekend
> > >>> Training, Consulting, Development
> > >>> http://jWeekend.com 
> > >>>
> > >>
> > >>
> > >>
> > >> --
> > >> Regards - Ernesto Reinaldo Barreiro
> > >> Antilia Soft
> > >> http://antiliasoft.com/ 
> > >>
> > >>
> > >
> > >
> > > --
> > > Regards - Ernesto Reinaldo Barreiro
> > > Antilia Soft
> > > http://antiliasoft.com/ 
> > >
> > >
> >
> >
> > --
> > Regards - Ernesto Reinaldo Barreiro
> > Antilia Soft
> > http://antiliasoft.com/ 
> >
>
>
>
> --
> Martin Grigorov
> jWeekend
> Training, Consulting, Development
> http://jWeekend.com 
>



-- 
Regards - Ernesto Reinaldo Barreiro
Antilia Soft
http://antiliasoft.com/ 


Re: a question on different data grid components available for wicket

2012-12-10 Thread Martin Grigorov
Hi Ernesto,

I've just applied your patch.
Thanks!


On Sat, Dec 8, 2012 at 3:58 PM, Ernesto Reinaldo Barreiro <
reier...@gmail.com> wrote:

> This seems to be the problem.
>
> https://issues.apache.org/jira/browse/WICKET-4916
>
> With patch applied to my local wicket branch tree grid works as expected.
>
> On Sat, Dec 8, 2012 at 11:27 AM, Ernesto Reinaldo Barreiro <
> reier...@gmail.com> wrote:
>
> > Martin,
> >
> > I think what is happening with tree-grid "edit" is that no "onclick"
> > handlers are generated for newly added rows (when a node is expanded).
>  Any
> > pointers on what might be causing that?
> >
> > On Tue, Dec 4, 2012 at 9:07 PM, Ernesto Reinaldo Barreiro <
> > reier...@gmail.com> wrote:
> >
> >> Fixed "return" and "ESC" on edit both for YUI and jquery.
> >>
> >>
> >> On Tue, Dec 4, 2012 at 8:27 PM, Martin Grigorov  >wrote:
> >>
> >>> I compared it against
> >>> http://www.wicket-library.com/inmethod-grid/data-grid/simple?0 - this
> >>> uses
> >>> InMethod Grid 1.5 though
> >>>
> >>>
> >>> On Tue, Dec 4, 2012 at 8:24 PM, Ernesto Reinaldo Barreiro <
> >>> reier...@gmail.com> wrote:
> >>>
> >>> > Martin,
> >>> >
> >>> > On Tue, Dec 4, 2012 at 9:28 AM, Martin Grigorov <
> mgrigo...@apache.org
> >>> > >wrote:
> >>> >
> >>> > > Great work, Ernesto !
> >>> > >
> >>> > > I just tried the samples application and the only problem that I've
> >>> found
> >>> > > is related to the editable grids.
> >>> > > In both Editable Grid and Editable TreeGrid the 'ESC' keypress
> >>> doesn't
> >>> > > work.
> >>> > >
> >>> >
> >>> > 'Esc' Keypress does not work either with YUI. It gives JS error.
> >>> >
> >>> > TypeError: elements[0].onclick is null
> >>> >
> >>> > row = findParent(row, "TR");
> >>> >
> >>> >
> >>> >  I will also fix that.
> >>> >
> >>> >
> >>> > > In Editable TreeGrid I can edit only folders but I can't edit
> leafs.
> >>> > >
> >>> > >
> >>> > You can't edit leafs (also) with YUI based version (just checked
> >>> that). So,
> >>> > this might be a regression on YUI version?
> >>> >
> >>> > --
> >>> > Regards - Ernesto Reinaldo Barreiro
> >>> > Antilia Soft
> >>> > http://antiliasoft.com/ 
> >>> >
> >>>
> >>>
> >>>
> >>> --
> >>> Martin Grigorov
> >>> jWeekend
> >>> Training, Consulting, Development
> >>> http://jWeekend.com 
> >>>
> >>
> >>
> >>
> >> --
> >> Regards - Ernesto Reinaldo Barreiro
> >> Antilia Soft
> >> http://antiliasoft.com/ 
> >>
> >>
> >
> >
> > --
> > Regards - Ernesto Reinaldo Barreiro
> > Antilia Soft
> > http://antiliasoft.com/ 
> >
> >
>
>
> --
> Regards - Ernesto Reinaldo Barreiro
> Antilia Soft
> http://antiliasoft.com/ 
>



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


Re: Incorrect double slash when jsessionid included in link URL in 6.x

2012-12-10 Thread Andrea Del Bene

Can you open an issue with a quickstart project?

I'm using the latest from git as of about 12 hours ago. I just did
another git pull and it says it's still up to date so I've got the
latest master source and I'm building the wicket jars from that.


-Original Message-
From: Sven Meier [mailto:s...@meiers.net]
Sent: Monday, 10 December 2012 7:58 PM
To: users@wicket.apache.org
Subject: Re: Incorrect double slash when jsessionid included in link

URL in

6.x

Which 6.x version are you using? We had some Url rendering issues

solved

in recent updates.

Sven

On 12/10/2012 04:12 AM, Chris Colman wrote:

When a browser (tested on FF and Chrome) makes a request after

session

time out the jessionid is added to all links on the first page

returned

- after that server detects cookies and uses those for session

tracking.

This works fine on 1.5 but since migrating to 6.x we've noticed that

the

links on that first page request have an extra slash i.e. they look
like:



http://www.myurl.com//news;jsessionid=215FF4213EC3F872062156804334311B


instead of

http://www.myurl.com/news;jsessionid=215FF4213EC3F872062156804334311B

The link with the double slash does not work when clicked and Tomcat
returns a Status 404 "resource not available" error.

Given that we haven't changed any code relating to how links are
rendered in our migration from 1.5 to 6.x is there a migration step

that

we have missed or is this a bug?


Yours sincerely,

Chris Colman



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


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





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



Re: Incorrect double slash when jsessionid included in link URL in 6.x

2012-12-10 Thread Sven Meier
Can this be reproduces with wicket-examples? If not, please create a 
quickstart and attach it to a jira issue.


Thanks
Sven


On 12/10/2012 10:53 AM, Chris Colman wrote:

I'm using the latest from git as of about 12 hours ago. I just did
another git pull and it says it's still up to date so I've got the
latest master source and I'm building the wicket jars from that.


-Original Message-
From: Sven Meier [mailto:s...@meiers.net]
Sent: Monday, 10 December 2012 7:58 PM
To: users@wicket.apache.org
Subject: Re: Incorrect double slash when jsessionid included in link

URL in

6.x

Which 6.x version are you using? We had some Url rendering issues

solved

in recent updates.

Sven

On 12/10/2012 04:12 AM, Chris Colman wrote:

When a browser (tested on FF and Chrome) makes a request after

session

time out the jessionid is added to all links on the first page

returned

- after that server detects cookies and uses those for session

tracking.

This works fine on 1.5 but since migrating to 6.x we've noticed that

the

links on that first page request have an extra slash i.e. they look
like:



http://www.myurl.com//news;jsessionid=215FF4213EC3F872062156804334311B


instead of

http://www.myurl.com/news;jsessionid=215FF4213EC3F872062156804334311B

The link with the double slash does not work when clicked and Tomcat
returns a Status 404 "resource not available" error.

Given that we haven't changed any code relating to how links are
rendered in our migration from 1.5 to 6.x is there a migration step

that

we have missed or is this a bug?


Yours sincerely,

Chris Colman



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


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




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



Re: table header not rendered correctly

2012-12-10 Thread Martin Grigorov
Hi,

When users use Nabble to write to our mailing lists the markup is removed.
Such mails have something like:
   --
   View this message in context:
http://apache-wicket.1842946.n4.nabble.com/table-header-not-rendered-correctly-tp4654596.html
   Sent from the Users forum mailing list archive at Nabble.com.

at the bottom. You can click on this link to see the original markup.


About the problem itself - I cannot see anything suspicious in your code.
Attach a debugger and see what your service actually returns.


On Fri, Dec 7, 2012 at 6:53 PM, Paul Bors  wrote:

> Your HTML didn't come through. Maybe your e-mail client is blocking it?
>
> If you want to use an HTML table, why not use a DataTable along with its
> HeaderToolbar instead of a simple ListView repeater?
>
> See the repeaters at:
> http://www.wicket-library.com/wicket-examples/index.html
>
> ~ Thank you,
>   Paul Bors
>
> -Original Message-
> From: appwicket [mailto:wwx@gmail.com]
> Sent: Friday, December 07, 2012 11:43 AM
> To: users@wicket.apache.org
> Subject: table header not rendered correctly
>
> Hi all,
> I have a List of String for my table:
> final List title2 =
>
> Arrays.asList("1","2","3","4","5","6","7","8","9","10","11","12","13","14");
> WebMarkupContainer datacontainer = new WebMarkupContainer("data");
> datacontainer.add(new ListView("title2", title2 ) {
> private static final long serialVersionUID = 1L;
> @Override
> protected void populateItem(ListItem item) {
> item.add(new Label("tl",
> String.valueOf(item.getModelObject(;
> system.out.println("item object =
> "+String.valueOf(item.getModelObject()));
> }
> });
>
> in my html:
>
>
>
>
>
>
>
>
>
>
>
> 
> problem is, when populate item, i got output:
> item object = 1
> item object = 2
> item object = 3
> item object = 4
> item object = 5
> item object =
> item object = 6
> item object = 7
> item object = 8
> item object =
> item object = 9
> item object = 10
> item object =11
> item object =
> item object = 12
> item object = 13
> item object = 14
> title2.size() is 14 but why it has more objects when populating items?
> please help! thanks!
>
>
>
> --
> View this message in context:
>
> http://apache-wicket.1842946.n4.nabble.com/table-header-not-rendered-correct
> ly-tp4654596.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
>
>


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


RE: Incorrect double slash when jsessionid included in link URL in 6.x

2012-12-10 Thread Chris Colman
I'm using the latest from git as of about 12 hours ago. I just did
another git pull and it says it's still up to date so I've got the
latest master source and I'm building the wicket jars from that.

>-Original Message-
>From: Sven Meier [mailto:s...@meiers.net]
>Sent: Monday, 10 December 2012 7:58 PM
>To: users@wicket.apache.org
>Subject: Re: Incorrect double slash when jsessionid included in link
URL in
>6.x
>
>Which 6.x version are you using? We had some Url rendering issues
solved
>in recent updates.
>
>Sven
>
>On 12/10/2012 04:12 AM, Chris Colman wrote:
>> When a browser (tested on FF and Chrome) makes a request after
session
>> time out the jessionid is added to all links on the first page
returned
>> - after that server detects cookies and uses those for session
tracking.
>>
>> This works fine on 1.5 but since migrating to 6.x we've noticed that
the
>> links on that first page request have an extra slash i.e. they look
>> like:
>>
>>
http://www.myurl.com//news;jsessionid=215FF4213EC3F872062156804334311B
>>

>>
>> instead of
>>
>> http://www.myurl.com/news;jsessionid=215FF4213EC3F872062156804334311B
>>
>> The link with the double slash does not work when clicked and Tomcat
>> returns a Status 404 "resource not available" error.
>>
>> Given that we haven't changed any code relating to how links are
>> rendered in our migration from 1.5 to 6.x is there a migration step
that
>> we have missed or is this a bug?
>>
>>
>> Yours sincerely,
>>
>> Chris Colman
>>
>
>
>-
>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: pageparameters in link onclick

2012-12-10 Thread Martin Grigorov
Hi,

You need to use BookmarkablePageLink (BPL) instead of Link to have a nice
looking urls for the links themselves.
With your approach the link url will be
'./req?4-2.ILinkListener-[...]-7-linkanchor'
and when clicked it will make a redirect to /req/post/1
With BPL the link url will be /req/post/1 and a redirect will be made to
/req/post/1?pageId only if the page is stateful.


On Sat, Dec 8, 2012 at 2:32 PM, Kurt Sys  wrote:

> Hey, I'm having some issues with pageparameters. I'm upgrading from wicket
> 1.4.x to 1.6.x. Most is done, however, I can't get pageparameters to work
> properly.
>
> -- MainApp defines how I mount the pages, i.e. with two optional parameters
> (type and id):
>
>
> -- HomePage.java is nothing special but just loads a bunch of stuff,
> including BlogPanel (yeah, it's for a blog, how did you guess?) which
> includes a BlogDataView
>
> -- BlogDataView, if in the url I have somthing like /post/50, it should
> load
> the page with post 50 and scroll to the right post, hence the 'if (blogid >
> 0)':
>
>
>
> All this works fine, but I have included in my homepage some panels with
> links to specific posts. In that case, the right page/post must be loaded.
> So I have stuff like this:
>
>
>
> However, the PageParameters are not set. The URL isn't updated properly and
> always ends with: '/post/62' (followed by '?2' or something, but that
> doesn't matter a lot). I, as a test, changed 'pars.add("type","post")'
> 'pars.add("type","test")', but still get '/post/62'. I must be missing
> something, but I just can't get to it.
>
> Oh yeah, the links in the source code of the generated webpage:
>
>
> or, depending how the page was loaded (/post/xx or without parameters):
>
>
> Should I implement some kind of ILinkListener or how can I generate the URL
> properly (so it gets to /post/xx)? Or maybe just: why are the
> pageparameters
> not right? (That might be enough to get to the right answer, I suppose - it
> used to work in Wicket 1.4.x).
>
> Thanks, Kurt
>
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/pageparameters-in-link-onclick-tp4654611.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 


Re: what is Wicket 2.x?

2012-12-10 Thread Martin Grigorov
Hi,

everyone can edit the wiki pages. All you need is to create an account.

Additionally I think that everything that is related to Wicket 1.4 and less
should be removed from the Wiki.


On Sat, Dec 8, 2012 at 3:21 PM, Lucio Crusca  wrote:

> In data venerdì 7 dicembre 2012 20:06:45, Jeremy Thomerson ha scritto:
> > Yep.  There was a big change to constructors IIRC, although I can't
> > remember exactly what the change was.  Next came 1.3.0 with generics.
> >
>
> Can I (we, you, ...) edit that sentence from the wiki pages then? It's
> confusing for newcomers like me. Does the IModel interface work as
> described
> in that page also in 6.x, except for generics?
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


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


Re: CryptoMapper ignores original queryString parameters

2012-12-10 Thread Martin Grigorov
Hi Laura,

This has been improved recently with
https://issues.apache.org/jira/browse/WICKET-4865 (Wicket 6.3.0).
If this doesn't work for you then please attach a quickstart application to
a new ticket.


On Sat, Dec 8, 2012 at 9:46 PM, LauraZ  wrote:

> Hi, I'm having troubles with CryptoMapper.
> When an AjaxRequest (with parameters) arrives and CryptoMapper decrypts it,
> original queryString parameters dissapears.
>
> Debugging CryptoMapper, I've checked that this method:
>
> private Url decryptUrl(final Request request, final Url encryptedUrl) {
> ...
> }
>
> receives querystrings parameters (on field url.parameter from "request"
> parameter) and the new Url returned by the method never adds them to its
> own
> list.
>
> Am i doing something wrong, or it's a bug?
>
> Regards, Laura
>
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/CryptoMapper-ignores-original-queryString-parameters-tp4654617.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 


Re: Incorrect double slash when jsessionid included in link URL in 6.x

2012-12-10 Thread Sven Meier
Which 6.x version are you using? We had some Url rendering issues solved 
in recent updates.


Sven

On 12/10/2012 04:12 AM, Chris Colman wrote:

When a browser (tested on FF and Chrome) makes a request after session
time out the jessionid is added to all links on the first page returned
- after that server detects cookies and uses those for session tracking.
  
This works fine on 1.5 but since migrating to 6.x we've noticed that the

links on that first page request have an extra slash i.e. they look
like:
  
http://www.myurl.com//news;jsessionid=215FF4213EC3F872062156804334311B


  
instead of
  
http://www.myurl.com/news;jsessionid=215FF4213EC3F872062156804334311B
  
The link with the double slash does not work when clicked and Tomcat

returns a Status 404 "resource not available" error.
  
Given that we haven't changed any code relating to how links are

rendered in our migration from 1.5 to 6.x is there a migration step that
we have missed or is this a bug?
  
  
Yours sincerely,
  
Chris Colman





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



Expiration page not shown in case of back button usage

2012-12-10 Thread Rob Sonke
Last week we fixed an issue with Wicket 6 where mounted pages were being
reconstructed after the session expired. That was due to this (new) setting
which we set to false now:

getPageSettings().setRecreateMountedPagesAfterExpiry(false);

This worked perfectly for clicking on (ajax) links but, this doesn't seem
to work when I use the back button of the browser after the session
expired. What happens is that Wicket tries to reconstruct the previous
(mounted bookmarkable) page. But that's failing in our case because we dont
support that as every page needs session information.

Am I doing something wrong? As I would expect a PageExpiredException in
this case.