Password in url after page recreation

2021-07-20 Thread Claudia Hirt

> Hi all, 
> 
> we currenlty facing some issues with the recreateBookmarkablePagesAfterExpiry 
> option. 
> We set this option to true, the user visits the login page and enters 
> username and password (""). Now the user waits 
> for the login till the session expires. Wicket forces a page recreate and 
> append the password into the url (e.G. 
> http://localhost:8080/app?user:unit:textfield=user:password="password;).
> This seems to be an security issue on our side. Unfortunately we can't 
> disable the recreateBookmarkablePagesAfterExpiry option due some resource 
> loading issues. 
> 
> We already thougth about what we can do to solve this issue, and it seems to 
> be possible to remove this parameter form the page parameters (which are 
> called for the rewrite url after an page expires). 
> But before we implement this workaround we want to ask you guys if you 
> already have seen this issue and if yes, if you have any better solutions? 
> 
> Thanks for your help... 


Re: Question about IChoiceRenderer

2018-10-30 Thread Claudia Hirt

Thanks for the tip Martin Terra!

And thank you for the example code Martin Grigorov! Good to know I'm on 
the right track.


I still have one proplem left, I know it really is a minor thing. I 
developed a framework component for a group selectbox which takes a 
HashMap containing the optgroups and their corresponding 
options. Working with generic option objects I use a ChoiceRenderer to 
give the user the possiblity to map the id- and display-value from the 
object. This works fine so far, until you get to

isSelected(IModel model)
In AbstractChoice you can set an object as selected which does not have 
to be the same object as the one in the choices. It compares the objects 
id using the given choice renderer.
But Select only does an object equals compare. And there's no way to use 
the choice renderer in isSelected correctly because there is no index in 
the method signature.
As I said this is really a minor thing, but the inconsistency with 
AbstractChoice annoys me ;)

How would you suggest to solve this?

Best regards,
Claudia Hirt

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



Re: Question about IChoiceRenderer

2018-10-30 Thread Claudia Hirt
Hi,
I use select to create a selectbox containing optgroups which is not possible 
with abstractchoice as far as i know. And i want to also use choice renderer 
for this “groupselectbox component” to have the same behaviour as in abstract 
choice. 
Maybe I’m wrong with the whole concept. What is your recommendation for how to 
create a group selectbox?

Best regards,
Claudia 

> Am 30.10.2018 um 12:02 schrieb Martin Grigorov :
> 
> Hi Claudia,
> 
> I do not quite understand your question/suggestion.
> 
> IChoiceRenderer is used by AbstractChoice and its specializations.
> "T object" is your type, so you should decide how to construct a stable id
> out of it. In case you cannot get such id then you may use the passed
> index, but in this case you have to make sure that the same index is always
> used for this object instance (as the javadoc explains).
> 
> Wicket-Extensions' Select doesn't use IChoiceRenderer at all, so I don't
> see what is the relation to the first part of your question.
> 
>> On Fri, Oct 26, 2018 at 2:54 PM Claudia Hirt  wrote:
>> 
>> Hi all,
>> 
>> i have a question about IChoiceRenderer used for Selectboxes.
>> 
>> There is a method String getIdValue(Tobject, int index) to get the unique
>> id value of an option object.
>> The javadoc says the following:
>> 
>> "This method is called to get the id value of an object (used as the value
>> attribute of a choice element) The id can be extracted from the object like
>> a primary key, or if the list is stable you could just return a toString of
>> the index."
>> 
>> I wonder if it's a good idea to have the object and the index as
>> parameters in this method. If the id value should be kind of a primary key
>> of the object, it should not depend on the index, which has nothing to do
>> with the object.
>> I cannot use this method in my case to check if an object which is not in
>> the choices list has the same id value than the selected one in my
>> selectbox. I tried to do this with wicket-extensions Select, which does not
>> have a choice renderer by default and I only have the object in
>> isSelectedmethod of Select, but not the index.
>> 
>> Best regards,
>> Claudia
>> 


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



Question about IChoiceRenderer

2018-10-26 Thread Claudia Hirt
Hi all, 

i have a question about IChoiceRenderer used for Selectboxes. 

There is a method String getIdValue(Tobject, int index) to get the unique id 
value of an option object. 
The javadoc says the following: 

"This method is called to get the id value of an object (used as the value 
attribute of a choice element) The id can be extracted from the object like a 
primary key, or if the list is stable you could just return a toString of the 
index." 

I wonder if it's a good idea to have the object and the index as parameters in 
this method. If the id value should be kind of a primary key of the object, it 
should not depend on the index, which has nothing to do with the object. 
I cannot use this method in my case to check if an object which is not in the 
choices list has the same id value than the selected one in my selectbox. I 
tried to do this with wicket-extensions Select, which does not have a choice 
renderer by default and I only have the object in isSelectedmethod of Select, 
but not the index. 

Best regards, 
Claudia


Re: Problem with DiskDataStore

2018-04-19 Thread Claudia Hirt
Seems as if this was caused by WICKET-6471 
<https://issues.apache.org/jira/browse/WICKET-6471> - FileSystemResource 
file descriptor leak.

We did an upgrade to wicket 7.10 and hopefully it will solve it.

Thanks anyway!

Best regards,
Claudia Hirt

Am 18.04.2018 um 18:47 schrieb Francois Meillet:

you can count all open file handles via lsof | wc -l

François




Le 18 avr. 2018 à 17:42, Francois Meillet <francois.meil...@gmail.com> a écrit :

Hi Claudia,

you need to update the limits in the linux kernel
have a look at 
https://serverfault.com/questions/20387/too-many-open-files-on-debian?utm_medium=organic_source=google_rich_qa_campaign=google_rich_qa
 
<https://serverfault.com/questions/20387/too-many-open-files-on-debian?utm_medium=organic_source=google_rich_qa_campaign=google_rich_qa>

François




Le 18 avr. 2018 à 17:24, Claudia Hirt <hirt-clau...@gmx.de 
<mailto:hirt-clau...@gmx.de>> a écrit :

Hi all,

I get the following error when there are a lot of sessions on the system:

[4/18/18 11:49:59:291 CEST] 0080 SystemOut O myapp 18/04/2018 
11:49:59,282 ERROR  (DiskDataStore.java:434) 
-/QIBM/UserData/WebSphere/AppServer/V85/Express/profiles/node01/temp/node01/node01/myapp/myapp.war/wicket.wicket-filestore/39/7429/6wE5N0QWVikdMSdO-oSbWCb/data
 (Too many open files)
java.io.FileNotFoundException: 
/QIBM/UserData/WebSphere/AppServer/V85/Express/profiles/node01/temp/node01/node01/myapp/myapp.war/wicket.wicket-filestore/39/7429/6wE5N0QWVikdMSdO-oSbWCb/data
 (Too many open files)
at java.io.RandomAccessFile.open(Native Method)
at java.io.RandomAccessFile.(RandomAccessFile.java:253)
at 
org.apache.wicket.pageStore.DiskDataStore$SessionEntry.getFileChannel(DiskDataStore.java:428)
at 
org.apache.wicket.pageStore.DiskDataStore$SessionEntry.savePage(DiskDataStore.java:346)
at 
org.apache.wicket.pageStore.DiskDataStore.storeData(DiskDataStore.java:185)
at 
org.apache.wicket.pageStore.AsynchronousDataStore$PageSavingRunnable.run(AsynchronousDataStore.java:355)
at java.lang.Thread.run(Thread.java:798)

This leads to a total breakdown of file system in my case.
I saw this already was an issue here: 
http://apache-wicket.1842946.n4.nabble.com/DiskDataStore-errors-in-production-td4665842.html
 
<http://apache-wicket.1842946.n4.nabble.com/DiskDataStore-errors-in-production-td4665842.html>
 but there was no solution.

Are there some settings in PageStore or anything to avoid this problem?

Best regards,
Claudia Hirt


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







Problem with DiskDataStore

2018-04-18 Thread Claudia Hirt

Hi all,

I get the following error when there are a lot of sessions on the system:

[4/18/18 11:49:59:291 CEST] 0080 SystemOut O myapp 18/04/2018 
11:49:59,282 ERROR  (DiskDataStore.java:434) 
-/QIBM/UserData/WebSphere/AppServer/V85/Express/profiles/node01/temp/node01/node01/myapp/myapp.war/wicket.wicket-filestore/39/7429/6wE5N0QWVikdMSdO-oSbWCb/data 
(Too many open files)
java.io.FileNotFoundException: 
/QIBM/UserData/WebSphere/AppServer/V85/Express/profiles/node01/temp/node01/node01/myapp/myapp.war/wicket.wicket-filestore/39/7429/6wE5N0QWVikdMSdO-oSbWCb/data 
(Too many open files)

at java.io.RandomAccessFile.open(Native Method)
at java.io.RandomAccessFile.(RandomAccessFile.java:253)
at 
org.apache.wicket.pageStore.DiskDataStore$SessionEntry.getFileChannel(DiskDataStore.java:428)
at 
org.apache.wicket.pageStore.DiskDataStore$SessionEntry.savePage(DiskDataStore.java:346)
at 
org.apache.wicket.pageStore.DiskDataStore.storeData(DiskDataStore.java:185)
at 
org.apache.wicket.pageStore.AsynchronousDataStore$PageSavingRunnable.run(AsynchronousDataStore.java:355)

at java.lang.Thread.run(Thread.java:798)

This leads to a total breakdown of file system in my case.
I saw this already was an issue here: 
http://apache-wicket.1842946.n4.nabble.com/DiskDataStore-errors-in-production-td4665842.html 
but there was no solution.


Are there some settings in PageStore or anything to avoid this problem?

Best regards,
Claudia Hirt


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



Re: Disable component to prevent double click

2018-03-06 Thread Claudia Hirt

Hi again,

I created a small sample project containing the double-click behaviors 
for ajax- and non-ajax-buttons and links:


https://github.com/sunshineKE/wicketdoubleclickexample/

Best regards,
Claudia Hirt


Am 01.03.2018 um 20:16 schrieb Kamil Paśko:

Dear Claudia,

Don't you mind sharing your solution for all this cases?

It would be really beneficial for other users.

Kind regards,
Kamil

W dniu 2018-03-01 o 19:22, Claudia Hirt pisze:

Thanks again for your help.
I got the disabling behaviour bound to all kinds of links and buttons.
I solved the issue about cross-browser link disabling by adding a 
temporary copy of the  tag with JavaScript and hide the original 
link. This his seems to be the best solution for me.
I would like to share my code snippets with others who face the same 
problems if you‘re interested.


Best regards,
Claudia Hirt


Am 21.02.2018 um 21:59 schrieb Martin Grigorov <mgrigo...@apache.org>:

You can override public CharSequence getAfterHandler(Component 
component)

instead to disable the button *after* the Ajax call is made.

Martin Grigorov
Wicket Training and Consulting
Looking for a remote position with Wicket ? Contact me!
https://twitter.com/mtgrigorov


On Wed, Feb 21, 2018 at 8:34 PM, Claudia Hirt <hirt-clau...@gmx.de> 
wrote:


Thanks for your answer. Your tip for non-ajax-buttons helped me a lot.
Just another remark about that: disabling a Button in 
getTriggerJavaScript
leads to the side effect that the onsubmit method of the Button 
will not be

called because the disabling is done before form submit.
The css property pointer-events does the trick in most cases but is 
poorly

supported in Internet Explorer.
I‘ll keep on trying...

Best regards,
Claudia Hirt

Am 20.02.2018 um 16:02 schrieb Andrea Del Bene 
<an.delb...@gmail.com>:


Hi,

as reported in its javadoc AjaxDisableComponentListener by default 
uses

the
DOM attribute 'disabled' to do its job, but this attribute doesn't 
work

with links. For this kind of components you have to provide the right
JavaScript to enable/disable them by overriding

generateHandlerJavaScript.

Id you are not using AJAX you can not use this behavior and you must
provide the JavaScript code in some other way. For example with

SubmitLink
you have to override getTriggerJavaScript. Unfortunately 
"disabling" a

html
component is not a standard procedure so for those components that 
don't

support the attribute 'disabled' we must use custom JavaScript.


On Mon, Feb 19, 2018 at 9:55 PM, Claudia Hirt <hirt-clau...@gmx.de>

wrote:
By the way: is there any reason why AjaxDisableComponentListener 
has no

public constructor?


Am 19.02.2018 um 21:49 schrieb Claudia Hirt <hirt-clau...@gmx.de>:

Hi all,
I‘m facing the problem of double submits when double clicking on

buttons

and links. I was very pleased to see there’s a new listener of
https://issues.apache.org/jira/browse/WICKET-6448 implemented in 
wicket
7.10. But this only works for Buttons not for links like a 
SubmitLink.

I‘m

also facing the same issue for non-ajax-components.

Any suggestions how to solve this?
Thanks in advance!
Best regards, Claudia


- 


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




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



Re: Disable component to prevent double click

2018-03-01 Thread Claudia Hirt
Thanks again for your help. 
I got the disabling behaviour bound to all kinds of links and buttons. 
I solved the issue about cross-browser link disabling by adding a temporary 
copy of the  tag with JavaScript and hide the original link. This his seems 
to be the best solution for me.
I would like to share my code snippets with others who face the same problems 
if you‘re interested. 

Best regards, 
Claudia Hirt 

> Am 21.02.2018 um 21:59 schrieb Martin Grigorov <mgrigo...@apache.org>:
> 
> You can override public CharSequence getAfterHandler(Component component)
> instead to disable the button *after* the Ajax call is made.
> 
> Martin Grigorov
> Wicket Training and Consulting
> Looking for a remote position with Wicket ? Contact me!
> https://twitter.com/mtgrigorov
> 
> 
>> On Wed, Feb 21, 2018 at 8:34 PM, Claudia Hirt <hirt-clau...@gmx.de> wrote:
>> 
>> Thanks for your answer. Your tip for non-ajax-buttons helped me a lot.
>> Just another remark about that: disabling a Button in getTriggerJavaScript
>> leads to the side effect that the onsubmit method of the Button will not be
>> called because the disabling is done before form submit.
>> The css property pointer-events does the trick in most cases but is poorly
>> supported in Internet Explorer.
>> I‘ll keep on trying...
>> 
>> Best regards,
>> Claudia Hirt
>> 
>>> Am 20.02.2018 um 16:02 schrieb Andrea Del Bene <an.delb...@gmail.com>:
>>> 
>>> Hi,
>>> 
>>> as reported in its javadoc AjaxDisableComponentListener by default uses
>> the
>>> DOM attribute 'disabled' to do its job, but this attribute doesn't work
>>> with links. For this kind of components you have to provide the right
>>> JavaScript to enable/disable them by overriding
>> generateHandlerJavaScript.
>>> Id you are not using AJAX you can not use this behavior and you must
>>> provide the JavaScript code in some other way. For example with
>> SubmitLink
>>> you have to override getTriggerJavaScript. Unfortunately "disabling" a
>> html
>>> component is not a standard procedure so for those components that don't
>>> support the attribute 'disabled' we must use custom JavaScript.
>>> 
>>>> On Mon, Feb 19, 2018 at 9:55 PM, Claudia Hirt <hirt-clau...@gmx.de>
>> wrote:
>>>> 
>>>> By the way: is there any reason why AjaxDisableComponentListener has no
>>>> public constructor?
>>>> 
>>>>> Am 19.02.2018 um 21:49 schrieb Claudia Hirt <hirt-clau...@gmx.de>:
>>>>> 
>>>>> Hi all,
>>>>> I‘m facing the problem of double submits when double clicking on
>> buttons
>>>> and links. I was very pleased to see there’s a new listener of
>>>> https://issues.apache.org/jira/browse/WICKET-6448 implemented in wicket
>>>> 7.10. But this only works for Buttons not for links like a SubmitLink.
>> I‘m
>>>> also facing the same issue for non-ajax-components.
>>>>> Any suggestions how to solve this?
>>>>> Thanks in advance!
>>>>> Best regards, Claudia
>>>> 
>>>> 
>>>> -
>>>> 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: Disable component to prevent double click

2018-02-21 Thread Claudia Hirt
Thanks for your answer. Your tip for non-ajax-buttons helped me a lot. 
Just another remark about that: disabling a Button in getTriggerJavaScript 
leads to the side effect that the onsubmit method of the Button will not be 
called because the disabling is done before form submit. 
The css property pointer-events does the trick in most cases but is poorly 
supported in Internet Explorer. 
I‘ll keep on trying...

Best regards, 
Claudia Hirt 

> Am 20.02.2018 um 16:02 schrieb Andrea Del Bene <an.delb...@gmail.com>:
> 
> Hi,
> 
> as reported in its javadoc AjaxDisableComponentListener by default uses the
> DOM attribute 'disabled' to do its job, but this attribute doesn't work
> with links. For this kind of components you have to provide the right
> JavaScript to enable/disable them by overriding generateHandlerJavaScript.
> Id you are not using AJAX you can not use this behavior and you must
> provide the JavaScript code in some other way. For example with SubmitLink
> you have to override getTriggerJavaScript. Unfortunately "disabling" a html
> component is not a standard procedure so for those components that don't
> support the attribute 'disabled' we must use custom JavaScript.
> 
>> On Mon, Feb 19, 2018 at 9:55 PM, Claudia Hirt <hirt-clau...@gmx.de> wrote:
>> 
>> By the way: is there any reason why AjaxDisableComponentListener has no
>> public constructor?
>> 
>>> Am 19.02.2018 um 21:49 schrieb Claudia Hirt <hirt-clau...@gmx.de>:
>>> 
>>> Hi all,
>>> I‘m facing the problem of double submits when double clicking on buttons
>> and links. I was very pleased to see there’s a new listener of
>> https://issues.apache.org/jira/browse/WICKET-6448 implemented in wicket
>> 7.10. But this only works for Buttons not for links like a SubmitLink. I‘m
>> also facing the same issue for non-ajax-components.
>>> Any suggestions how to solve this?
>>> Thanks in advance!
>>> Best regards, Claudia
>> 
>> 
>> -
>> 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: Disable component to prevent double click

2018-02-19 Thread Claudia Hirt
By the way: is there any reason why AjaxDisableComponentListener has no public 
constructor?

> Am 19.02.2018 um 21:49 schrieb Claudia Hirt <hirt-clau...@gmx.de>:
> 
> Hi all,
> I‘m facing the problem of double submits when double clicking on buttons and 
> links. I was very pleased to see there’s a new listener of 
> https://issues.apache.org/jira/browse/WICKET-6448 implemented in wicket 7.10. 
> But this only works for Buttons not for links like a SubmitLink. I‘m also 
> facing the same issue for non-ajax-components. 
> Any suggestions how to solve this?
> Thanks in advance!
> Best regards, Claudia


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



Disable component to prevent double click

2018-02-19 Thread Claudia Hirt
Hi all,
I‘m facing the problem of double submits when double clicking on buttons and 
links. I was very pleased to see there’s a new listener of 
https://issues.apache.org/jira/browse/WICKET-6448 implemented in wicket 7.10. 
But this only works for Buttons not for links like a SubmitLink. I‘m also 
facing the same issue for non-ajax-components. 
Any suggestions how to solve this?
Thanks in advance!
Best regards, Claudia 

Re: The day Wicket became Apache Wicket 10 years ago!

2017-06-20 Thread Claudia Hirt
You're really doing a great job! Thanks for the great support i was totally 
suprised of getting so much help here!

> Am 20.06.2017 um 08:24 schrieb James Selvakumar :
> 
> It's heartening to see Wicket still going strong.
> And I take this opportunity to thank all of you for this amazing framework
> and many thanks for the support offered.
> The support offered by the Wicket community is superior compared to even
> commercial products.
> Keep going!
> 
> On Tue, Jun 20, 2017 at 1:58 PM Zala Pierre GOUPIL 
> wrote:
> 
>> Congratulations! Keep up the good work!
>> 
>> On Tue, Jun 20, 2017 at 7:44 AM, Tobias Soloschenko <
>> tobiassolosche...@googlemail.com> wrote:
>> 
>>> Hope that many years are going to be added. :-)
>>> 
>>> kind regards
>>> 
>>> Tobias
>>> 
 Am 19.06.2017 um 21:18 schrieb Martijn Dashorst <
>>> martijn.dasho...@gmail.com>:
 
 Today marks the date 10 years ago that the Wicket project graduated
>> from
 the Incubator to a fully fledged Apache project.
 
 The time flies when you're having fun!
 
 I would like to thank all our community members for their continued
>>> support
 and usage of Apache Wicket and pour one out for you!
 
 Here's a big Thank You for everyone reading this message, asking and
 answering questions, using Wicket in their projects and a special
>> :beer:
 for all contributors to Wicket, past and present! Here's to another 10
 years!
 
 Martijn Dashorst
>>> 
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>> 
>>> 
>> 
>> 
>> --
>> Je n'aime pas seulement ma vie, mais aussi celle des autres.
>> 
>> (Blade Runner)
>> 


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



Re: Question about

2017-05-25 Thread Claudia Hirt
Created wicket-6377. 
Thanks for the quick response. 

> Am 24.05.2017 um 23:07 schrieb Andrea Del Bene <an.delb...@gmail.com>:
> 
> Hi,
> 
> I think it's actually a bug. Could you open an issue on JIRA?
> 
> Andrea.
> 
> PS: thank you for investigating the issue!
> 
>> On 24/05/2017 18:45, Claudia Hirt wrote:
>> Sorry, I think my description was a little unspecific.
>> 
>> The problem appears with the following HTML-code:
>> 
>> 
>>
>> 
>> 
>> with autolinking set to true.
>> 
>> This leads to the following exception:
>> org.apache.wicket.markup.MarkupException: Unable to find component with id 
>> 'top' in [WebMarkupContainer [Component id = _autolink_-335431082]]
>>Expected: '_autolink_-335431082:top'.
>> 
>> WICKET-6289 doesn't really break it, there's nothing wrong with it. But the 
>> bugfix in this issue was to create an autocomponent which is a 
>> WebMarkupContainer. I think it was some kind of link before, which didn't 
>> cause any trouble.
>> But is it really correct that AutoLinkResolver even tries to replace an 
>> anchor link?
>> 
>> I also created a quickstart project to reproduce the problem:
>> https://github.com/sunshineKE/test.autolinking
>> 
>> Best regards, Claudia
>> 
>> 
>>> Am 23.05.2017 um 22:31 schrieb Martin Grigorov:
>>> Hi,
>>> 
>>> It is not very clear how your code looks like.
>>> Could you please provide more information the setup and how WICKET-6289
>>> breaks it ?
>>> A quickstart application would be the best way to show us! You can share it
>>> via GitHub/BitBucket or even attach it to a ticket in JIRA!
>>> Thank you!
>>> 
>>> Martin Grigorov
>>> Wicket Training and Consulting
>>> https://twitter.com/mtgrigorov
>>> 
>>>> On Tue, May 23, 2017 at 9:47 PM, Claudia Hirt <hirt-clau...@gmx.de> wrote:
>>>> 
>>>> Hi all,
>>>> 
>>>> there's something I came across when trying to migrate an application to
>>>> Wicket 7.7.
>>>> When using an anchor link like  with autmatic linking
>>>> activated (getMarkupSettings().setAutomaticLinking(true)) the
>>>> AutolinkResolver breaks my hierarchy. This does not appear when
>>>> encapsulating the  tag inside a  Tag.
>>>> I saw that this appears since Bugfix from https://issues.apache.org/jira
>>>> /browse/WICKET-6289 was implemented.
>>>> 
>>>> Do I really have to use  for this kind of anchors or is it a
>>>> Bug?
>>>> 
>>>> Best regards,
>>>> Claudia
>>>> 
>>>> 
>>>> 
>>>> -
>>>> 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: Question about

2017-05-24 Thread Claudia Hirt

Sorry, I think my description was a little unspecific.

The problem appears with the following HTML-code:





with autolinking set to true.

This leads to the following exception:
org.apache.wicket.markup.MarkupException: Unable to find component with 
id 'top' in [WebMarkupContainer [Component id = _autolink_-335431082]]

Expected: '_autolink_-335431082:top'.

WICKET-6289 doesn't really break it, there's nothing wrong with it. But 
the bugfix in this issue was to create an autocomponent which is a 
WebMarkupContainer. I think it was some kind of link before, which 
didn't cause any trouble.
But is it really correct that AutoLinkResolver even tries to replace an 
anchor link?


I also created a quickstart project to reproduce the problem:
https://github.com/sunshineKE/test.autolinking

Best regards, Claudia


Am 23.05.2017 um 22:31 schrieb Martin Grigorov:

Hi,

It is not very clear how your code looks like.
Could you please provide more information the setup and how WICKET-6289
breaks it ?
A quickstart application would be the best way to show us! You can share it
via GitHub/BitBucket or even attach it to a ticket in JIRA!
Thank you!

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Tue, May 23, 2017 at 9:47 PM, Claudia Hirt <hirt-clau...@gmx.de> wrote:


Hi all,

there's something I came across when trying to migrate an application to
Wicket 7.7.
When using an anchor link like  with autmatic linking
activated (getMarkupSettings().setAutomaticLinking(true)) the
AutolinkResolver breaks my hierarchy. This does not appear when
encapsulating the  tag inside a  Tag.
I saw that this appears since Bugfix from https://issues.apache.org/jira
/browse/WICKET-6289 was implemented.

Do I really have to use  for this kind of anchors or is it a
Bug?

Best regards,
Claudia



-
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



Question about

2017-05-23 Thread Claudia Hirt

Hi all,

there's something I came across when trying to migrate an application to 
Wicket 7.7.
When using an anchor link like  with autmatic linking 
activated (getMarkupSettings().setAutomaticLinking(true)) the 
AutolinkResolver breaks my hierarchy. This does not appear when 
encapsulating the  tag inside a  Tag.
I saw that this appears since Bugfix from 
https://issues.apache.org/jira/browse/WICKET-6289 was implemented.


Do I really have to use  for this kind of anchors or is it 
a Bug?


Best regards,
Claudia



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



Re: inside inline frame

2017-05-15 Thread Claudia Hirt
Thanks for the answer.
Always nice to learn something new, but sadly this won't solve my problem. I 
will need both of the stylesheet files. Application developers shall bring 
their own css for their app and should not have to care about the design of the 
menu wrapped around. 
I'm looking for a way to seperate them so they don't get in each others way. 
Something like scoped css. 
But i think there won't be a wicket-way to solve this. It's more a css issue. 

> Am 14.05.2017 um 21:04 schrieb Martin Grigorov <mgrigo...@apache.org>:
> 
> Hi,
> 
> Maybe a simpler solution would be to use custom IHeaderResponseDecorator
> that skips all CssHeaderItems contributed by the base module.
> If you can differentiate your application CssHeaderItems from the one from
> the base module, e.g. by package name, then I think this will work.
> See org.apache.wicket.markup.head.filter.FilteringHeaderResponse for
> inspiration.
> 
> Martin Grigorov
> Wicket Training and Consulting
> https://twitter.com/mtgrigorov
> 
>> On Fri, May 12, 2017 at 10:36 PM, Claudia Hirt <hirt-clau...@gmx.de> wrote:
>> 
>> Hi all,
>> 
>> is it possible to wrap a child page's markup inside an iframe?
>> 
>> The reason I want to do this:
>> My BasePage containing a header- and menu-panel is located in an artifact
>> used by several applications. These applications contain their own
>> stylesheets and I want to avoid side effects like css of application
>> affecting my header-panel.
>> 
>> I think the only way to solve this would be to have the whole application
>> page inside an iframe, because using CSS namespaces via IDs would be a
>> hudge effort and be to risky.
>> 
>> Thanks in advance!
>> 
>> Best regards,
>> Claudia Hirt
>> 
>> 
>> -
>> 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



inside inline frame

2017-05-12 Thread Claudia Hirt

Hi all,

is it possible to wrap a child page's markup inside an iframe?

The reason I want to do this:
My BasePage containing a header- and menu-panel is located in an 
artifact used by several applications. These applications contain their 
own stylesheets and I want to avoid side effects like css of application 
affecting my header-panel.


I think the only way to solve this would be to have the whole 
application page inside an iframe, because using CSS namespaces via IDs 
would be a hudge effort and be to risky.


Thanks in advance!

Best regards,
Claudia Hirt


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



Re: Disabled links in 6.24

2017-03-02 Thread Claudia Hirt
Oh sorry, i think this was to fast. I had the opposite of this problem with 
wicket 7 where the  tag is not rendered anymore for disabled links. So be 
aware that you have to remove your handling using setBeforeDisabledLink when 
you plan to migate to wicket 7. 

> Am 02.03.2017 um 19:35 schrieb Entropy :
> 
> I'll ask our CSS guy if that works for him.  He tends to like use to not use
> unnecessary tags, so ideally, I'd like to get rid of the SPAN altogether. 
> Thanks for the quick response.
> 
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/Disabled-links-in-6-24-tp4677228p4677233.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: Disabled links in 6.24

2017-03-02 Thread Claudia Hirt
Hi, 
I faced the same problem migrating to wicket 6. i simpy solved this with 
css-selector a:not([href]). 

> Am 02.03.2017 um 19:11 schrieb Entropy :
> 
> Using Wicket 6.24, when i disable links, they get SPAN and EM tags instead. 
> This throws off our CSS guy.  We would like to not do those.  How would I go
> about that?
> 
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/Disabled-links-in-6-24-tp4677228.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: Display PDF in new tab

2017-03-01 Thread Claudia Hirt
Hi,
Maybe this solution could help you:
https://cwiki.apache.org/confluence/display/WICKET/AJAX+update+and+file+download+in+one+blow

Von meinem iPhone gesendet

> Am 01.03.2017 um 21:20 schrieb SeldonCrisis :
> 
> Actually, scratch that. My question is now: How do I add Ajax events to
> resourceLink so that I can enable/disable certain components after having
> served my resource? OR how do I use my resourceReference in an AjaxButton to
> actually serve the resource? ResourceLink practically takes care of that for
> you. 
> 
> I've tried this HTML trick: 
> 
> 
> but I end up with this error: Unable to find component with id
> 'resourceButton' in [ResourceLink [Component id = resourceLink]] 
> 
> and 
> 
> is not a valid solution. Any suggestions?
> 
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/Display-PDF-in-new-tab-tp4677202p4677222.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
>