ModalWindow to ModalDialog // closedCallback

2023-10-20 Thread Korbinian Bachl
Hi,

when I try to migrate a ModalWindow to ModalDialog i came accross this:

 add(new AjaxLink("edit") {
@Override
public void onClick(AjaxRequestTarget target) {
getModalWindow().setModel(ReferenceEditorPanel.this.getModel());
getModalWindow().setWindowClosedCallback(new 
ModalWindow.WindowClosedCallback() {
public void onClose(AjaxRequestTarget target) {
target.add(ReferenceEditorPanel.this);
ReferenceEditorPanel.this.onUpdate(target);
}
});
getModalWindow().show(target);
}
});

-> What would a correct way be for the setWindowClosedCallback? Have only see 
some onOk(AjaxRequestTarget) and onCancel(AjaxRequestTarget)?


Best,

KB

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



Re: Wicket 10 Release Plans

2023-09-11 Thread Korbinian Bachl
+1 for M2 or maybe even a RC1 if no big changes are outstanding?

Usually I dont care for latest wicket versions (we stayed on 6 way too long 
:D), 
but since the JavaEE -> JakartaEE this is a showstopper for us as you even 
cant access anything HTTPSession related as you include the jakarta-api on 
jakarta.* 
namespace but wicket 9 only delivers javax.* results

Or if this really takes a year to release maybe a wicket-9-jakarta version?


- Ursprüngliche Mail -
> Von: "Martin Grigorov" 
> An: "users" 
> Gesendet: Montag, 11. September 2023 13:00:46
> Betreff: Re: Wicket 10 Release Plans

> On Mon, Sep 11, 2023 at 11:06 AM Andrea Del Bene 
> wrote:
> 
>> Hi,
>>
>> as usual it's not easy making precise plans for the future since many of us
>> (probably all of us) works on Wicket on a voluntary base. However, for the
>> imminent future we are about to release Wicket 10 M2 and check that
>> everything is fine with the new dependency on Commons FileUpload M1. After
>>
> 
> +1 for M2 to re-test the latest dependencies updates (fileupload and
> others) !
> 
> 
>> this step we might be ready for a GA release of Wicket 10, but there are
>> some necessary steps (make a public announce, update the site, etc...) that
>> make it quite unlikely to release it before the end of the year. At the
>>
> 
> Next year ?!
> I really do not understand why it has to be delayed so much when there is
> almost no active work on Wicket!
> Kudos to Maxim for working on the FileUpload issue! But apart from that I
> don't see any plans for working on anything major that could not be
> introduced in a minor version!
> The official announcement (coordinated with press@a.o) has proved to be an
> issue for the last few major releases! I'd rather go without it than delay
> the release for half a year.
> 
> 
>> moment I don't have elements to be more precise, but probably after the M2
>> we will have a clearer view of the next steps toward a final release.
>>
>> Andrea.
>>
>> On Mon, Sep 11, 2023 at 8:18 AM Korbinian Bachl <
>> korbinian.ba...@whiskyworld.de> wrote:
>>
>> > Hi Fellow Wicket-Devs!
>> >
>> > I'd like to also ask this question as wicket is the only part that holds
>> > us back from jumping up to JakartaEE (currently JavaEE 8).
>> >
>> > Any eta on final release?
>> >
>> > - Ursprüngliche Mail -
>> > > Von: "Tony Tkacik" 
>> > > An: "users" 
>> > > Gesendet: Donnerstag, 7. September 2023 13:54:41
>> > > Betreff: Wicket 10 Release Plans
>> >
>> > > Hi,
>> > > we are using Wicket 10 M1 for few months and we plan to release LTS of
>> > our open
>> > > source project midPoint 4.8 on 17 October 2023,
>> > > are there any concrete plans about release timeframe of Wicket 10?
>> > >
>> > > Thanks
>> > > Anton Tkacik
>> >
>> > -
>> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> > For additional commands, e-mail: users-h...@wicket.apache.org
>> >
>> >
>>
>> --
>> Andrea Del Bene.
>> Apache Wicket committer.

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



Re: Wicket 10 Release Plans

2023-09-11 Thread Korbinian Bachl
Hi Fellow Wicket-Devs!

I'd like to also ask this question as wicket is the only part that holds us 
back from jumping up to JakartaEE (currently JavaEE 8). 

Any eta on final release?

- Ursprüngliche Mail -
> Von: "Tony Tkacik" 
> An: "users" 
> Gesendet: Donnerstag, 7. September 2023 13:54:41
> Betreff: Wicket 10 Release Plans

> Hi,
> we are using Wicket 10 M1 for few months and we plan to release LTS of our 
> open
> source project midPoint 4.8 on 17 October 2023,
> are there any concrete plans about release timeframe of Wicket 10?
> 
> Thanks
> Anton Tkacik

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



Re: prevent client request being intercepted for attack

2022-05-27 Thread Korbinian Bachl
Use HTTPS with TLS

Also note: if you or your service operates within the EU and you dont secure 
this via encryption you are violating the GDPR!


- Ursprüngliche Mail -
> Von: "Arunachalam Sibisakkaravarthi" 
> An: "users" 
> Gesendet: Freitag, 27. Mai 2022 09:27:14
> Betreff: prevent client request being intercepted for attack

> Hi guys,
> Form submission requests can be intercepted using a third party tool (eg:
> ZAP) to change the data. Is there a way to prevent this attack? How do we
> validate data integrity?
> 
> 
> 
> *Thanks And RegardsSibi.ArunachalammCruncher*

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



Re: migration from wicket 8 to 9 -> PageManagerProvider

2021-11-10 Thread Korbinian Bachl
Hi Sven,

thanks a lot!

I've looked into that GaePageManagerProvider and adapted it myself. However, 
during test I somehow observed that the reason why I did use the HTTPSession 
store some long time ago (wicket 1.5/6?) doesn't seem to be existing anymore. 
Reason was that the underlying storage of our prod server has the typical small 
cloud latency. Now with wicket 9 all doing async I didnt see any benefit after 
all with having or not having the custom provider. I even suspect the 
HTTPSession solution to be a tad slower (1 to 10ms) from observation, but cant 
really pinpoint it down.

Its really nice to see how good wicket got here so that speed is quite well 
without the need for custom optimisation.

If you have any idea how to even speed things more up I'm always happy to hear 
;)

Best,

KB

- Ursprüngliche Mail -
> Von: "Sven Meier" 
> An: "users" 
> Gesendet: Mittwoch, 10. November 2021 20:31:52
> Betreff: Re: migration from wicket 8 to 9 -> PageManagerProvider

> Hi Korbinian,
> 
> > it was a real breeze. I'm very impressed!
> 
> thanks, glad to hear that.
> 
> You application is persisting pages in the Http session instead of disk.
> Essentially what the wicketstuff's gae-initializer does too:
> 
> https://github.com/wicketstuff/core/blob/master/gae-initializer-parent/gae-initializer/src/main/java/org/wicketstuff/gae/GaePageManagerProvider.java
> 
> InsessionPageStore has a maxBytes constructor too.
> Watch out for the override of the #getKey() method - I'm not happy with
> that, but your question triggers me to look into that once again.
> 
> Have fun
> Sven
> 
> 
> On 10.11.21 12:05, Korbinian Bachl wrote:
>> Hi,
>>
>> Im currently migrating our applications from wicket 8 to wicket 9.6 and so 
>> far
>> it was a real breeze. I'm very impressed!
>>
>> One thing however that puzzles me is the following code I had in the 
>> application
>> init();
>>
>>
>> setPageManagerProvider(new DefaultPageManagerProvider(this) {
>>  protected IDataStore newDataStore() {
>>  return new HttpSessionDataStore(getPageManagerContext(),
>>  new 
>> MemorySizeEvictionStrategy(Bytes.megabytes(24)));
>>  }
>>  });
>> getStoreSettings().setInmemoryCacheSize(0);
>>
>>
>>
>> I honestly dont know from when this originated but I had to disable it as it
>> doesnt seem to exist anymore accorting to the migration guide.
>>
>> So I just let de default settings now apply. The original solution was aimed 
>> at
>> maximum page delivery speed and didnt care much about RAM as we got plenty of
>> it. Any idea if I should let the default or can I squeeze out some 
>> milliseconds
>> by going pure in memory again?
>>
>> Best,
>>
>> KB
>>
>> -
>> 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



migration from wicket 8 to 9 -> PageManagerProvider

2021-11-10 Thread Korbinian Bachl
Hi,

Im currently migrating our applications from wicket 8 to wicket 9.6 and so far 
it was a real breeze. I'm very impressed!

One thing however that puzzles me is the following code I had in the 
application init();


setPageManagerProvider(new DefaultPageManagerProvider(this) {
protected IDataStore newDataStore() {
return new HttpSessionDataStore(getPageManagerContext(),
new MemorySizeEvictionStrategy(Bytes.megabytes(24)));
}
});
getStoreSettings().setInmemoryCacheSize(0);



I honestly dont know from when this originated but I had to disable it as it 
doesnt seem to exist anymore accorting to the migration guide.

So I just let de default settings now apply. The original solution was aimed at 
maximum page delivery speed and didnt care much about RAM as we got plenty of 
it. Any idea if I should let the default or can I squeeze out some milliseconds 
by going pure in memory again?

Best,

KB

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



Wicket 8 + 9 on jdk17?

2021-10-07 Thread Korbinian Bachl
Hi,

has anyone any details about using of wicket 8.x or 9.x under jdk 17?
We currently just migrated from jdk8 to jdk11 as runtime in production and 
wicket 8.x was fine under all things (still had some problems with third party 
libs however). 
Next we want to go to wicket 9.x but since there are some nice bits added to 
the track from 11 to 17 I wonder if anyone has some experience with higher 
version of java and wicket 8 or 9 running under it...

Best,

KB

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



Re: RedirectRequestHandler and HttpHeader?

2021-08-23 Thread Korbinian Bachl
Hi Martin,

I digged through the past and I now went to make a custom 
Redirect301ToUrlException class that handles it the way I need. 

The problem for me is that wicket has various ways to do a 301 and sometimes it 
sends Cache headers, sometimes it doesnt. 
(e.g.: throw new RedirectToUrlException -> it has no Cache headers, 
getRequestCycle().scheduleRequestHandlerAfterCurrent(new RedirectRequestHandler 
-> it has Cache haders for "no-cache" )
Now, 301 had the idea for "permanent" but in reality, what is now permanent 
isn't permanent in some future time... and now deleted/not anymore existing 
URLs might go back into service. 


An uncached 301 or a short cached one helps to solve problems that arise when 
you delete a resource and let it then point to a new resource just to have the 
original resouce to be resurrected some time later when someone finds out that 
his deletion wasnt a bright idea ;)

Thats also the reason browsers nowadays dont handle 301s that strict way they 
did some years ago. 
Domains get sold, content changes and once 301-URLs get 201s. If you put too 
long a cache on it you face real problems. 
(and I dont mention now the SEO guys :X)


Thanks for your help!

Best,

KB



- Ursprüngliche Mail -
> Von: "Martin Grigorov" 
> An: "users" 
> Gesendet: Montag, 23. August 2021 11:30:50
> Betreff: Re: RedirectRequestHandler and HttpHeader?

> On Mon, Aug 23, 2021 at 11:37 AM Korbinian Bachl <
> korbinian.ba...@whiskyworld.de> wrote:
> 
>> Hi Jon,
>> Hi Martin,
>>
>> thanks for pointing me there. It would work that way:
>>
>> getRequestCycle().scheduleRequestHandlerAfterCurrent((requestCycle -> {
>> WebResponse response = (WebResponse)
>> requestCycle.getResponse();
>> response.setHeader("test", "1");
>> response.setHeader("Location", targetUrl);
>> response.setStatus(301);
>> // response.sendRedirect(targetUrl); -> is only
>> 302!
>> }));
>>
>>
>> the sendRedirect ist always 302, 301 only works with the location header.
>> Feels bit "un"wicket to do all this.
>> The main goal is to just redirect with 301 to an URL and have some headers
>> set - is there any easier/ faster way to do this?
> 
> 
>> In times before wicket 8 I had a custom RedirectTarget301 extends
>> RedirectRequestTarget for this.
>>
> 
> You could still do it with:
> getRequestCycle().scheduleRequestHandlerAfterCurrent(new
> RedirectRequestHandler("...", 301) {
>  @Override
>  public void respond(IRequestCycle cycle) {
>   super.respond(cycle);
> 
>   WebResponse response = (WebResponse) cycle.getResponse();
>   response.setHeader("test", "1");
>  }
> }
> 
> 
>>
>> I've seen the RedirectToUrlException in wicket 8 but that basically just
>> wraps the above logic into a super(new RedirectRequestHandler()) of
>> ReplaceHandlerException.
>>
>> Would that be the best way to have this solved? A custom
>> Redirect301ToUrlException(String targetUrl, Headers... header) ?
>>
> 
> As with any framework it should be possible to do anything you need than to
> have an API for every possible use case out there!
> 
> But let's assume we add such "Headers..." parameter.
> Should we also add logic to protect the users from doing strange things
> like adding caching response headers to a PERMANENT redirect ? What is the
> idea behind caching something that should never be there ever again ?!
> 
> 
>>
>>
>> Best,
>>
>> KB
>>
>>
>>
>> - Ursprüngliche Mail -
>> > Von: "Martin Grigorov"
>> > An: "users" 
>> > Gesendet: Montag, 23. August 2021 10:03:34
>> > Betreff: Re: RedirectRequestHandler and HttpHeader?
>>
>> > Hi Korbinian,
>> >
>> > I am not sure this is possible.
>> > You could set response headers for normal responses, but not for
>> redirects'
>> > targets.
>> >
>> > On Mon, Aug 23, 2021 at 1:41 AM Locke, Jonathan (Luo Shibo) <
>> > jonath...@telenav.com> wrote:
>> >
>> >> It's been a while, but can't you get the WebResponse from
>> WebRequestCycle
>> >> and then call response.setHeader()?
>> >>
>> >
>> > To continue Jon's idea:
>> >
>> > getRequestCycle().scheduleRequestHandlerAfterCurrent((requestCycle) -> {
>> >   WebResponse response = (WebResponse

Re: RedirectRequestHandler and HttpHeader?

2021-08-23 Thread Korbinian Bachl
Hi Jon, 
Hi Martin,

thanks for pointing me there. It would work that way:

getRequestCycle().scheduleRequestHandlerAfterCurrent((requestCycle -> {
WebResponse response = (WebResponse) 
requestCycle.getResponse();
response.setHeader("test", "1");
response.setHeader("Location", targetUrl);
response.setStatus(301);
// response.sendRedirect(targetUrl); -> is only 302!
}));


the sendRedirect ist always 302, 301 only works with the location header. Feels 
bit "un"wicket to do all this. 
The main goal is to just redirect with 301 to an URL and have some headers set 
- is there any easier/ faster way to do this?

In times before wicket 8 I had a custom RedirectTarget301 extends 
RedirectRequestTarget for this.

I've seen the RedirectToUrlException in wicket 8 but that basically just wraps 
the above logic into a super(new RedirectRequestHandler()) of 
ReplaceHandlerException.

Would that be the best way to have this solved? A custom 
Redirect301ToUrlException(String targetUrl, Headers... header) ?


Best,

KB



- Ursprüngliche Mail -
> Von: "Martin Grigorov" 
> An: "users" 
> Gesendet: Montag, 23. August 2021 10:03:34
> Betreff: Re: RedirectRequestHandler and HttpHeader?

> Hi Korbinian,
> 
> I am not sure this is possible.
> You could set response headers for normal responses, but not for redirects'
> targets.
> 
> On Mon, Aug 23, 2021 at 1:41 AM Locke, Jonathan (Luo Shibo) <
> jonath...@telenav.com> wrote:
> 
>> It's been a while, but can't you get the WebResponse from WebRequestCycle
>> and then call response.setHeader()?
>>
> 
> To continue Jon's idea:
> 
> getRequestCycle().scheduleRequestHandlerAfterCurrent((requestCycle) -> {
>   WebResponse response = (WebResponse) requestCycle.getResponse();
>   response.setHeader(...);
>   response.setRedirect("...");
> });
> 
> Play with it but you should set the headers in the response after the
> redirect happens.
> 
> Martin
> 
> 
>> Jon
>>
>> 
>> From: Korbinian Bachl 
>> Sent: Sunday, August 22, 2021 4:58 AM
>> To: users 
>> Subject: RedirectRequestHandler and HttpHeader?
>>
>> Hi,
>>
>> I call this:
>>
>> getRequestCycle().scheduleRequestHandlerAfterCurrent(new
>> RedirectRequestHandler("myNewURL",301));
>>
>> How could I add a custom HttpHeader to the response?
>> e.g.: Cache-Control: max-age=300
>>
>>
>> Best,
>>
>> KB
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>> [EXTERNAL EMAIL] CAUTION: This email originated from outside of Telenav.
>> DO NOT CLICK links or attachments unless you recognize the sender and know
>> the content is safe.

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



RedirectRequestHandler and HttpHeader?

2021-08-22 Thread Korbinian Bachl
Hi,

I call this:

getRequestCycle().scheduleRequestHandlerAfterCurrent(new 
RedirectRequestHandler("myNewURL",301));

How could I add a custom HttpHeader to the response?
e.g.: Cache-Control: max-age=300


Best,

KB 

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



Re: Does wicket 9 support reactive programming?

2020-09-18 Thread Korbinian Bachl
Maybe Ajax 
https://ci.apache.org/projects/wicket/guide/9.x/single.html#_creating_custom_ajax_call_listener
or Websockets 
https://ci.apache.org/projects/wicket/guide/9.x/single.html#_native_websockets

- Ursprüngliche Mail -
> Von: "Emmanuel Sowah" 
> An: "users" 
> Gesendet: Freitag, 18. September 2020 10:35:24
> Betreff: Does wicket 9 support reactive programming?

> Hi,
> 
> I am using spring 5 and via reactive programming, I am receiving a Flux
> data which I am trying to display in a table on a Wicket page. However I
> get an exception during rendering of the table. The exception basically
> says the RequestCycle is closed, which sounds logical to me if wicket is
> not supporting reactive programming due to the non-blocking nature of
> reactive programming.
> 
> Does someone have a work-around for this problem? I was thinking along the
> lines of saving the RequestCycle and reusing it when data arrives later but
> I am not sure if that is the right way to go.
> 
> Currently I am using blocking on the reactive stream as a work-around but
> that leads to a sequential behaviour, which of course defeats the basic
> idea of reactive programming.
> 
> Any tips or ideas?
> 
> Cheers,
> Emmanuel

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



Re: best way to get wysiwyg with wicket

2020-04-04 Thread Korbinian Bachl
Hello Maxim,

thank you for the list. However, beside that tinymce3 + 4 are quite outdated 
isn't there anything non html-wysiwyg existing so far? 
My problem is that, after we use tinymce in another part of the project we made 
the experience that letting non-tech people write HTML (even in WYSIWYG) mode 
just doesnt work. They end up copy n pasting from all over the web and 
inserting things they neither see nor understand - thats why we need some 
simplification like markdown (e.g.: https://ui.toast.com/) or even pure 
block-based editors (https://editorjs.io/)...

I've stumbled over toast UI (https://ui.toast.com/), but I'm not sure if wicket 
would be able to execute some kind of JS function (editor.getMarkdown()) on 
before sending the form and catching it into a model...? 

Best,

KB

- Ursprüngliche Mail -
> Von: "Maxim Solodovnik" 
> An: "users" 
> Gesendet: Samstag, 4. April 2020 03:02:07
> Betreff: Re: best way to get wysiwyg with wicket

> Here are couple examples
> http://www.7thweb.net/wicket-jquery-ui/plugins/wysiwyg/WysiwygEditorPage?1
> https://github.com/wicketstuff/core/tree/master/tinymce3-parent
> https://github.com/wicketstuff/core/tree/master/tinymce4-parent
> 
> 
> On Sat, 4 Apr 2020 at 01:24, Korbinian Bachl 
> wrote:
> 
>> Hi,
>>
>> I need to be able to let complete novices edit and write nicely formatted
>> texts in an backend thats powered by wicket (required e.g.: H1-H4, normal
>> text, bold text, images - only simple stuff mostly).
>> In the past I used the ckeditor but that outputs html and Im not sure that
>> cluttering font sizes and stuff like that into anything that needs later be
>> to transformed to be used on either desktop or mobile in the year 2020 is
>> still as sufficent as it was 10 years ago. So I stumbled over markdown that
>> might be a way to avoid this, but not sure If I missed somthing better?
>>
>> Beside, has any of you an idea where to look at to put this together with
>> wicket, especially as I need to be able to have them insert images from
>> some gallery picker that gets its image-resources from some kind of
>> dataprovider.
>>
>> Any idea or solution is greatly appreciated. I know this is not pure
>> wicket related stuff but I hope its still ok to ask here.
>>
>> Best,
>>
>> KB
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
> 
> --
> Best regards,
> Maxim

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



best way to get wysiwyg with wicket

2020-04-03 Thread Korbinian Bachl
Hi,

I need to be able to let complete novices edit and write nicely formatted texts 
in an backend thats powered by wicket (required e.g.: H1-H4, normal text, bold 
text, images - only simple stuff mostly).
In the past I used the ckeditor but that outputs html and Im not sure that 
cluttering font sizes and stuff like that into anything that needs later be to 
transformed to be used on either desktop or mobile in the year 2020 is still as 
sufficent as it was 10 years ago. So I stumbled over markdown that might be a 
way to avoid this, but not sure If I missed somthing better?

Beside, has any of you an idea where to look at to put this together with 
wicket, especially as I need to be able to have them insert images from some 
gallery picker that gets its image-resources from some kind of dataprovider.

Any idea or solution is greatly appreciated. I know this is not pure wicket 
related stuff but I hope its still ok to ask here.

Best,

KB

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



Re: Wicket.Ajax.Call.processEvaluation // how to not get reference errors in case one has to check for a var?

2020-04-02 Thread Korbinian Bachl
Ok,

got the error. It wasn't wicket but an required resource send an old version 
not having the expected var definition; I need to change to an typeof check 
since I cant seem to get this reliable. Thanks anyway.

Best,

KB

- Ursprüngliche Mail -
> Von: "Sven Meier" 
> An: "users" 
> Gesendet: Donnerstag, 2. April 2020 17:56:53
> Betreff: Re: Wicket.Ajax.Call.processEvaluation // how to not get reference 
> errors in case one has to check for a var?

> Hi Korbinian,
> 
> Wicket just evaluates your JS, if you get a ReferenceError then surely
> there's something wrong in your code.
> 
> Are you sure you're looking on the correct source line?
> 
> Have fun
> 
> Sven
> 
> 
> On 02.04.20 15:57, Korbinian Bachl wrote:
>> Hi,
>>
>> i've added some JS to be exectued after AJAX but wicket always sees an error
>> where none is:
>>
>> Wicket.Ajax:  Wicket.Ajax.Call.processEvaluation: Exception evaluating
>> javascript: ReferenceError: etCommerce is not defined, text: (function(){var 
>> p=
>> {
>> ...
>> }
>> if(etCommerce) { etCommerce.sendEvent('insertToBasket', product, 1); }})();
>>
>> Here we get an error that etCommerce is not defined - thats right but it is
>> checked for it with "if(etCommerce)", so its perfectly valid JS?
>>
>> Also if I user if(etCommerce !== 'undefined') nothing changes as well, error
>> stays?!?
>>
>> How can I get rid of these console alarms? And why is this also done in
>> production mode?
>>
>> Best,
>>
>> KB
>>
>> -
>> 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.Ajax.Call.processEvaluation // how to not get reference errors in case one has to check for a var?

2020-04-02 Thread Korbinian Bachl
Hi Sven,

yes, I am sure. I can give you the url to an example live app if you like. 
Wicket logs this error at the console level, yet the browser detects no error 
in execution at all... 

I mean if you look at the code below, you see the reference error to the 
etCommerce variable, but i got an if(etCommerce) check beforehand?

Best,

KB

- Ursprüngliche Mail -
> Von: "Sven Meier" 
> An: "users" 
> Gesendet: Donnerstag, 2. April 2020 17:56:53
> Betreff: Re: Wicket.Ajax.Call.processEvaluation // how to not get reference 
> errors in case one has to check for a var?

> Hi Korbinian,
> 
> Wicket just evaluates your JS, if you get a ReferenceError then surely
> there's something wrong in your code.
> 
> Are you sure you're looking on the correct source line?
> 
> Have fun
> 
> Sven
> 
> 
> On 02.04.20 15:57, Korbinian Bachl wrote:
>> Hi,
>>
>> i've added some JS to be exectued after AJAX but wicket always sees an error
>> where none is:
>>
>> Wicket.Ajax:  Wicket.Ajax.Call.processEvaluation: Exception evaluating
>> javascript: ReferenceError: etCommerce is not defined, text: (function(){var 
>> p=
>> {
>> ...
>> }
>> if(etCommerce) { etCommerce.sendEvent('insertToBasket', product, 1); }})();
>>
>> Here we get an error that etCommerce is not defined - thats right but it is
>> checked for it with "if(etCommerce)", so its perfectly valid JS?
>>
>> Also if I user if(etCommerce !== 'undefined') nothing changes as well, error
>> stays?!?
>>
>> How can I get rid of these console alarms? And why is this also done in
>> production mode?
>>
>> Best,
>>
>> KB
>>
>> -
>> 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



Wicket.Ajax.Call.processEvaluation // how to not get reference errors in case one has to check for a var?

2020-04-02 Thread Korbinian Bachl
Hi,

i've added some JS to be exectued after AJAX but wicket always sees an error 
where none is:

Wicket.Ajax:  Wicket.Ajax.Call.processEvaluation: Exception evaluating 
javascript: ReferenceError: etCommerce is not defined, text: (function(){var p= 
{
   ...
}
if(etCommerce) { etCommerce.sendEvent('insertToBasket', product, 1); }})();

Here we get an error that etCommerce is not defined - thats right but it is 
checked for it with "if(etCommerce)", so its perfectly valid JS?

Also if I user if(etCommerce !== 'undefined') nothing changes as well, error 
stays?!?

How can I get rid of these console alarms? And why is this also done in 
production mode?

Best,

KB

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



Re: AttributeModifier values gets escaped

2019-08-18 Thread Korbinian Bachl
Hi Sven,

im using this in regards to the picture element's and the values then are going 
through JS :/

I coded now around this for the JS part, but it would be nice to have a 
.setNoEscape(boolean ) option on the AttributeModifiert 

Browsers get the ampersand in URLs but JS is a nightmare with it; Funnywise, 
even if I go on the onComponentTag and try to do it there it gets escaped... 
not sure why though;

Best & Thanks for the feedback!



- Ursprüngliche Mail -
> Von: "Sven Meier" 
> An: "users" 
> Gesendet: Sonntag, 18. August 2019 13:21:30
> Betreff: Re: AttributeModifier values gets escaped

> Hi Korbinian,
> 
> AttributeModifier always escapes its value, there's no way around that.
> 
> Why aren't you starting with an escaped url in the first place?
> 
>   image.add(AttributeModifier.replace("src", imgUrl + "?a=1=2"));
> 
> Have fun
> 
> Sven
> 
> 
> On 18.08.19 13:13, Korbinian Bachl wrote:
>> Hi,
>>
>> I try to manipulate some tags on an WebMarkupContainer called image. If I do:
>>
>> image.add(AttributeModifier.replace("src", imgUrl + "?a=1b=2"));
>>
>> the src is not as expected: "...?a=1b=2"
>> but its escaped as "...?a=1amp;b=2"
>>
>> I tried setEscapeModelStrings false on the image itself, wont work and
>> AttributeModifier has no way to escape
>>
>> Any idea what to do now?
>>
>> Best,
>>
>> KB
>>
>> -
>> 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



AttributeModifier values gets escaped

2019-08-18 Thread Korbinian Bachl
Hi,

I try to manipulate some tags on an WebMarkupContainer called image. If I do:

image.add(AttributeModifier.replace("src", imgUrl + "?a=1b=2"));

the src is not as expected: "...?a=1b=2" 
but its escaped as "...?a=1amp;b=2"

I tried setEscapeModelStrings false on the image itself, wont work and 
AttributeModifier has no way to escape

Any idea what to do now?

Best,

KB

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



Re: multiple AjaxFileDropBehaviour on single page

2019-08-13 Thread Korbinian Bachl
Hi Sven,

so to get this right: all wicket ajax is basically a queue where only 1 
instance is worked on at a time and nothing is possible in parallel? 
(but browsers and ajax in parallel is working since at least 2011? e.g.: 
jQuery.when() )

You mention the upload to a resource - how would this change it in that in 
could be parallel and could you point me an example?

Best & Thanks for the answer so far,

KB

- Ursprüngliche Mail -
> Von: "Sven Meier" 
> An: "users" 
> Gesendet: Dienstag, 13. August 2019 09:03:49
> Betreff: Re: multiple AjaxFileDropBehaviour on single page

> Hi,
> 
> all Ajax behaviors' requests are queued in the browser. Even if you
> disable this (see AjaxRequestAttributes#channel), all access to the page
> is synchronized on the server anyway.
> 
> You could to upload to a resource instead, AjaxFileDropBehaviour doesn't
> support this though.
> 
> Have fun
> Sven
> 
> 
> On 13.08.19 08:19, Korbinian Bachl wrote:
>> Hi,
>>
>> wicket 8 has this neat AjaxFileDropBehaviour and it works like charm. 
>> However,
>> if I have multiple components on one page with a AjaxFileDropBehaviour each 
>> and
>> the upload of 1 drop is running, i cant upload a 2nd one at the same time; 
>> Any
>> idea how to solve this?
>>
>> E.g.: File 1 with 100MB gets dropped onto component A, File B wiht 50MB gets
>> dropped onto Component B about 10 secs later - upload of a is not working and
>> page somehow goes stale. It might be noteworthy that during the upload an
>> IAjaxIndicatorAware spinner is shown on Component A (and expected on B);
>>
>> Best,
>>
>> KB
>>
>> -
>> 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



multiple AjaxFileDropBehaviour on single page

2019-08-13 Thread Korbinian Bachl
Hi,

wicket 8 has this neat AjaxFileDropBehaviour and it works like charm. However, 
if I have multiple components on one page with a AjaxFileDropBehaviour each and 
the upload of 1 drop is running, i cant upload a 2nd one at the same time; Any 
idea how to solve this? 

E.g.: File 1 with 100MB gets dropped onto component A, File B wiht 50MB gets 
dropped onto Component B about 10 secs later - upload of a is not working and 
page somehow goes stale. It might be noteworthy that during the upload an 
IAjaxIndicatorAware spinner is shown on Component A (and expected on B);

Best,

KB

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



Re: Demo Page with User Related Data

2018-09-26 Thread Korbinian Bachl
Hi,

in case of a regular session you can use a HttpSessionListener and use the 
public void sessionDestroyed(HttpSessionEvent event), similar to that one here:
https://stackoverflow.com/questions/7756054/how-to-call-a-method-before-the-session-object-is-destroyed
(wicket is still a java framework, meaning all underlying java web things 
usually just work)

Also AFAIK the page should not get detached as long as the page is still 
active, meaning it has AJAX panels on it that are still doing things, maybe 
MartinG can shed some light on this;

Best,

KB


- Ursprüngliche Mail -
> Von: "yvus" 
> An: users@wicket.apache.org
> Gesendet: Mittwoch, 26. September 2018 08:52:18
> Betreff: Re: Demo Page with User Related Data

> Hi,
> 
> Thanks for your answer. From reading your answer and the one of KB, I have
> the feeling that the best place to be sure that the pointers get deleted is
> to follow your suggestion: creation in Page#onConfigure, deletion in
> Page#onDetach. BUT imagine I have a panel in my page in which I have an Ajax
> request. Therefore, if I am not mistaken, I would
> - either have to call the pointers construction again in the
> Panel#onConfigure, but that would lead to duplicates of the pointers (which
> I don't want),
> - either keep the pointers the same as in the Parent page, but then the
> parent page onDetach would kill them. And hence my Ajax request in the panel
> would have no access to the pointers, correct?
> 
> Following your leads I would then propose to override a
> LoadableDetachableModel that would generate the pointers in the onAttach and
> delete them in the onDetach. This would imply many re-creation of the
> pointers though...
> 
> In your second suggestion, you provide a way to keep the pointers alive
> during the Http Session, but this is the case for which we don't know when
> to delete the pointers, correct?
> 
> Thanks again
> 
> 
> 
> --
> Sent from: 
> http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html
> 
> -
> 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: Demo Page with User Related Data

2018-09-25 Thread Korbinian Bachl
>> and you can use
>> onRemove()
>> to free it up as this is called when the component gets removed from the
>> page / the page itself gets removed;
>>
> 
> "the page itself gets removed"
> I think this is not correct.
>

As far as I understood all pages go after creation und usage to the page store 
and get removed from that depending on the configuration?

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



Re: Demo Page with User Related Data

2018-09-25 Thread Korbinian Bachl
Hi,

take a look at 
https://ci.apache.org/projects/wicket/guide/8.x/single.html#_components_lifecycle

You might want to move the code from constructor to 
onInitialize()
and you can use 
onRemove()
to free it up as this is called when the component gets removed from the page / 
the page itself gets removed;
Keep in mind that wicket stores old pages by default. In your case you might 
also want to have a look at LoadableDetachableModel, so that the model can 
react with "activation"/"passivation" of its data;

The goal should usually be to not store any data at all that can be retrieved, 
so to not waste memory - said, it might be necessary in your case to store it 
with the page as it might be very expensive to (re)create the data, then the 
above onInitialize/ onRemove on the page level would be good to use;

Best,

KB



- Ursprüngliche Mail -
> Von: "yvus" 
> An: users@wicket.apache.org
> Gesendet: Dienstag, 25. September 2018 11:22:15
> Betreff: Demo Page with User Related Data

> Dear All,
> 
> I have the complex task to develop a webpage GUI for a java/c++ app, i.e.
> the java app contains objects that wrap c++ classes of a .so library. For
> example the Frame.java class wraps a corresponding c++ class frame.h (which
> does the math). Therefore we call in the constructor of the Frame.java class
> a c++ constructor through JNA and store the Pointer in a field.
> 
> public class Frame {
>private Pointer cppPointer;
>public Frame() {
>cppPointer = Wrapper.INSTANCE.frameConstructor(...)  // JNA call to
> c++ constructor retrieving the c++ pointer.
>}
> }
> 
> On the webpage, I have the following scenario in which we display a demo
> page which renders a 3d view. The user is able to displace an object which
> position is determined by the fields of Frame.java and hence the c++
> classes. Moving the object is done by changing 'values' in a form. Each of
> these 'values' directly modify the Frames and hence the Frame c++-class's
> attributes.
> 
> In order to have the pointers created only once per page, we construct all
> the pointers in the constructor of the page and store them in a model which
> serializes the addresses. This allows to have the c++ side created only once
> on the page. This seems fine until we have to destroy the pointers memory.
> 
> How to determine when we leave the page in order to destroy the Pointers?
> How would you manage this scenario? is it a good thing to construct the
> pointers in the constructors of the page? When would you allow to destroy
> the c++ allocated memory?
> 
> Thanks
> 
> --
> Sent from: 
> http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html
> 
> -
> 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: ListenerRequestHandler / urls from the past... - component not found

2018-06-30 Thread Korbinian Bachl
Yeah - no;

the problem is here the amount of pages and the crawl-budget of a crawler per 
domain; 
If you waste 1000's of urls you get not indexed well enough and even penalized; 
I know this and we use canonical all over the places, but seo guys clearly 
showed that we need to get rid of this and if we cant we have at least to put 
it into a named parameter;

Beside, when I look into google webmaster myself I can clearly see these many 
component/ parameter combos make a real pain, so we need to get rid of these. 
While all our pages are already stateless we still have these in terms of AJAX 
and Forms.

Best

KB


- Ursprüngliche Mail -
> Von: "Bas Gooren" 
> An: users@wicket.apache.org
> Gesendet: Samstag, 30. Juni 2018 21:06:00
> Betreff: Re: ListenerRequestHandler / urls from the past... - component not 
> found

> Hi!
> 
> Well that’s something you can fix by embedding a canonical url in your
> page. It tells search engines to ignore all other urls for that page,
> including the ones with wicket info in them.
> 
> // Bas
> 
> Verstuurd vanaf mijn iPhone
> 
>> Op 30 jun. 2018 om 19:41 heeft Korbinian Bachl 
>> 
>> het volgende geschreven:
>>
>> Hi Sven,
>>
>> well, the problem here are our clever webbots - especially bing and even 
>> worse
>> google :)
>>
>> See, bingbot or googlebot index now e.g.:
>> (derived from wicket examples)
>>
>> www.domain.com/choice
>>
>> and a load of bullshit like
>>
>> choice?2-1.IBehaviorListener.0-form-makes
>> choice?2-1.IBehaviorListener.0-form-go
>> [add here sometimes 100's of further ajax links]
>>
>> that now lead to having indexed many many pages that nearly cant be taimed; 
>> Even
>> using robots.txt or their webmastertools makes this a nightmare as the
>> potential namings you can manually fix are in the hundreds or thousands;
>>
>> If all wicket things would be behind an parameter e.g:
>> ?wicketHandling=2-1.IBehaviorListener.0-form-makes
>> ?wicketHandling=2-1.IBehaviorListener.0-form-go
>>
>> you could just concentrate on that parameter and save literally many many 
>> hours
>> of work and seo complaints :)
>>
>> IMHO this was standard up to wicket 1.4 in a way that all those page and
>> component info was put to a certain wicket interface root path e.g:
>> ?wicket:interface=:0 and that allowed much easier taming of these 
>> problems
>> than its currently for me;
>>
>> Best,
>>
>> KB
>>
>>
>>
>>
>> - Ursprüngliche Mail -
>>> Von: "Sven Meier" 
>>> An: users@wicket.apache.org
>>> Gesendet: Samstag, 30. Juni 2018 13:37:06
>>> Betreff: Re: ListenerRequestHandler / urls from the past... - component not
>>> found
>>
>>> Hi,
>>>
>>>> http://examples7x.wicket.apache.org/forminput/?0-1.IFormSubmitListener-inputForm
>>>
>>> "0-1.IFormSubmitListener-inputForm" *is* a parameter, it just doesn't
>>> have a value.
>>>
>>> How would renaming that parameter improve anything?
>>>
>>> Have fun
>>> Sven
>>>
>>>
>>>> Am 30.06.2018 um 12:06 schrieb Korbinian Bachl:
>>>> Thanks for the answer - that gives me the right direction. Say, do you 
>>>> know if
>>>> it would be possible to have the wicket component part not in the url like
>>>> currently but using a named parameter? e.g.:
>>>>
>>>> http://examples7x.wicket.apache.org/forminput/?0-1.IFormSubmitListener-inputForm
>>>>
>>>> should instead be
>>>>
>>>> http://examples7x.wicket.apache.org/forminput/?wicketHandling=0-1.IFormSubmitListener-inputForm
>>>>
>>>> where wicketHandling would be the global named paramter where the wicket 
>>>> puts
>>>> all its infos into that parameter and not just add it to the url?
>>>>
>>>> Best,
>>>>
>>>> KB
>>>>
>>>>
>>>>
>>>> - Ursprüngliche Mail -
>>>>> Von: "Bas Gooren" 
>>>>> An: users@wicket.apache.org, "Korbinian Bachl" 
>>>>> 
>>>>> Gesendet: Freitag, 29. Juni 2018 12:06:39
>>>>> Betreff: Re: ListenerRequestHandler / urls from the past... - component 
>>>>> not
>>>>> found
>>>>> Hi!
>>>>>
>>>>> I think there are many ways to fix this, ranging from easy to complex.
>>>>>
>

Re: ListenerRequestHandler / urls from the past... - component not found

2018-06-30 Thread Korbinian Bachl
Hi Sven,

well, the problem here are our clever webbots - especially bing and even worse 
google :)

See, bingbot or googlebot index now e.g.: 
(derived from wicket examples)

www.domain.com/choice

and a load of bullshit like 

choice?2-1.IBehaviorListener.0-form-makes
choice?2-1.IBehaviorListener.0-form-go
[add here sometimes 100's of further ajax links]

that now lead to having indexed many many pages that nearly cant be taimed; 
Even using robots.txt or their webmastertools makes this a nightmare as the 
potential namings you can manually fix are in the hundreds or thousands;

If all wicket things would be behind an parameter e.g: 
?wicketHandling=2-1.IBehaviorListener.0-form-makes
?wicketHandling=2-1.IBehaviorListener.0-form-go

you could just concentrate on that parameter and save literally many many hours 
of work and seo complaints :)

IMHO this was standard up to wicket 1.4 in a way that all those page and 
component info was put to a certain wicket interface root path e.g: 
?wicket:interface=:0 and that allowed much easier taming of these problems 
than its currently for me;

Best,

KB




- Ursprüngliche Mail -
> Von: "Sven Meier" 
> An: users@wicket.apache.org
> Gesendet: Samstag, 30. Juni 2018 13:37:06
> Betreff: Re: ListenerRequestHandler / urls from the past... - component not 
> found

> Hi,
> 
> >http://examples7x.wicket.apache.org/forminput/?0-1.IFormSubmitListener-inputForm
> 
> "0-1.IFormSubmitListener-inputForm" *is* a parameter, it just doesn't
> have a value.
> 
> How would renaming that parameter improve anything?
> 
> Have fun
> Sven
> 
> 
> Am 30.06.2018 um 12:06 schrieb Korbinian Bachl:
>> Thanks for the answer - that gives me the right direction. Say, do you know 
>> if
>> it would be possible to have the wicket component part not in the url like
>> currently but using a named parameter? e.g.:
>>
>> http://examples7x.wicket.apache.org/forminput/?0-1.IFormSubmitListener-inputForm
>>
>> should instead be
>>
>> http://examples7x.wicket.apache.org/forminput/?wicketHandling=0-1.IFormSubmitListener-inputForm
>>
>> where wicketHandling would be the global named paramter where the wicket puts
>> all its infos into that parameter and not just add it to the url?
>>
>> Best,
>>
>> KB
>>
>>
>>
>> - Ursprüngliche Mail -
>>> Von: "Bas Gooren" 
>>> An: users@wicket.apache.org, "Korbinian Bachl" 
>>> 
>>> Gesendet: Freitag, 29. Juni 2018 12:06:39
>>> Betreff: Re: ListenerRequestHandler / urls from the past... - component not
>>> found
>>> Hi!
>>>
>>> I think there are many ways to fix this, ranging from easy to complex.
>>>
>>> The easiest one: either catch it in a IRequestCycleListener (in
>>> onException), and “fix” the request handler by stripping the
>>> pageAndComponent info from it
>>> Next option: override wicket’s exception mapper (see
>>> DefaultExceptionMapper), and catch/fix it there.
>>>
>>> Since this is a common issue for you, I’d got with a request cycle listener
>>> since it’s quite easy to plug in:
>>> - catch ComponentNotFoundException
>>> - check if the request handler is a ListenerInterfaceRequestHandler
>>> - return a BookmarkablePageRequestHandler or a RenderPageRequestHandler,
>>> depending on the type of page that was being rendered (stateless,
>>> bookmarkable)
>>>
>>> Good luck.
>>>
>>> Met vriendelijke groet,
>>> Kind regards,
>>>
>>> Bas Gooren
>>>
>>> Op 29 juni 2018 bij 11:50:27, Korbinian Bachl (
>>> korbinian.ba...@whiskyworld.de) schreef:
>>>
>>> Hi,
>>>
>>> I've got some problems with 404/ 500 error codes in my wicket app that
>>> happen to come from the past... Now, when wicket makes any url for a
>>> component this one gets added to the path, e.g.:
>>> http://examples7x.wicket.apache.org/forminput/?0-1.IFormSubmitListener-inputForm
>>>
>>> So when time goes by and the component name changes to e.g.: inputForm3 and
>>> one then calls the above URL wicket annoys with an 500 error...
>>> (attention: it is also related to the fact if there is an active session or
>>> there is not! - happy debugging !)
>>>
>>> reason:
>>>
>>> org.apache.wicket.core.request.handler.ComponentNotFoundException:
>>> Component 'brix-tile-24:form' has been removed from page.
>>> at
>>> org.apache.wicket.core.request.handler.ListenerRequestHandler.respond(ListenerRequestHandler.java:1

Re: ListenerRequestHandler / urls from the past... - component not found

2018-06-30 Thread Korbinian Bachl
Thanks for the answer - that gives me the right direction. Say, do you know if 
it would be possible to have the wicket component part not in the url like 
currently but using a named parameter? e.g.:

http://examples7x.wicket.apache.org/forminput/?0-1.IFormSubmitListener-inputForm

should instead be 

http://examples7x.wicket.apache.org/forminput/?wicketHandling=0-1.IFormSubmitListener-inputForm

where wicketHandling would be the global named paramter where the wicket puts 
all its infos into that parameter and not just add it to the url?

Best,

KB



- Ursprüngliche Mail -
> Von: "Bas Gooren" 
> An: users@wicket.apache.org, "Korbinian Bachl" 
> 
> Gesendet: Freitag, 29. Juni 2018 12:06:39
> Betreff: Re: ListenerRequestHandler / urls from the past... - component not 
> found

> Hi!
> 
> I think there are many ways to fix this, ranging from easy to complex.
> 
> The easiest one: either catch it in a IRequestCycleListener (in
> onException), and “fix” the request handler by stripping the
> pageAndComponent info from it
> Next option: override wicket’s exception mapper (see
> DefaultExceptionMapper), and catch/fix it there.
> 
> Since this is a common issue for you, I’d got with a request cycle listener
> since it’s quite easy to plug in:
> - catch ComponentNotFoundException
> - check if the request handler is a ListenerInterfaceRequestHandler
> - return a BookmarkablePageRequestHandler or a RenderPageRequestHandler,
> depending on the type of page that was being rendered (stateless,
> bookmarkable)
> 
> Good luck.
> 
> Met vriendelijke groet,
> Kind regards,
> 
> Bas Gooren
> 
> Op 29 juni 2018 bij 11:50:27, Korbinian Bachl (
> korbinian.ba...@whiskyworld.de) schreef:
> 
> Hi,
> 
> I've got some problems with 404/ 500 error codes in my wicket app that
> happen to come from the past... Now, when wicket makes any url for a
> component this one gets added to the path, e.g.:
> http://examples7x.wicket.apache.org/forminput/?0-1.IFormSubmitListener-inputForm
> 
> So when time goes by and the component name changes to e.g.: inputForm3 and
> one then calls the above URL wicket annoys with an 500 error...
> (attention: it is also related to the fact if there is an active session or
> there is not! - happy debugging !)
> 
> reason:
> 
> org.apache.wicket.core.request.handler.ComponentNotFoundException:
> Component 'brix-tile-24:form' has been removed from page.
> at
> org.apache.wicket.core.request.handler.ListenerRequestHandler.respond(ListenerRequestHandler.java:166)
> 
> at
> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:912)
> 
> 
> (error from my app - u get a bit different one from the wicket examples app
> if you manually change the component info part - sometimes just an 404,
> sometimes 500)
> 
> 
> So, how can this be fixed that instead of giving us this 500er error in
> live systems that wicket should just ignore the problem? I mean failing in
> dev is OK but in deploy? So basically wicket shall treat it as
> 
> http://examples7x.wicket.apache.org/forminput/
> 
> request;
> 
> 
> IMHO the problem here is in ListenerRequestHandler at 164:
> 
> if ((component == null && !freshPage) || (component != null &&
> component.getPage() != page))
> {
> throw new ComponentNotFoundException("Component '" + getComponentPath()
> + "' has been removed from page.");
> }
> 
> so we know there is no component and then wicket goes berserk and throws
> it... Problem arises with many URLs indexed anywhere on the web and
> pointing to ones page as well as bookmarked pages from users - they have
> the old component info in the paths and there is no way to remove that!
> 
> 
> Best
> KB
> 
> -
> 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



ListenerRequestHandler / urls from the past... - component not found

2018-06-29 Thread Korbinian Bachl
Hi,

I've got some problems with 404/ 500 error codes in my wicket app that happen 
to come from the past... Now, when wicket makes any url for a component this 
one gets added to the path, e.g.: 
http://examples7x.wicket.apache.org/forminput/?0-1.IFormSubmitListener-inputForm

So when time goes by and the component name changes to e.g.: inputForm3 and one 
then calls the above URL wicket annoys with an 500 error... 
(attention: it is also related to the fact if there is an active session or 
there is not! - happy debugging !)

reason: 

org.apache.wicket.core.request.handler.ComponentNotFoundException: Component 
'brix-tile-24:form' has been removed from page.
at 
org.apache.wicket.core.request.handler.ListenerRequestHandler.respond(ListenerRequestHandler.java:166)
at 
org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:912)

(error from my app - u get a bit different one from the wicket examples app if 
you manually change the component info part - sometimes just an 404, sometimes 
500)


So, how can this be fixed that instead of giving us this 500er error in live 
systems that wicket should just ignore the problem? I mean failing in dev is OK 
but in deploy? So basically wicket shall treat it as 

http://examples7x.wicket.apache.org/forminput/

request;


IMHO the problem here is in ListenerRequestHandler at 164:

if ((component == null && !freshPage) || (component != null && 
component.getPage() != page))
{
throw new ComponentNotFoundException("Component '" + 
getComponentPath()
+ "' has been removed from page.");
}

so we know there is no component and then wicket goes berserk and throws it... 
Problem arises with many URLs indexed anywhere on the web and pointing to ones 
page as well as bookmarked pages from users - they have the old component info 
in the paths and there is no way to remove that!


Best
KB

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



Re: wicket 8 / RootRequestMapper vs CompoundRequestMapper

2018-06-11 Thread Korbinian Bachl
Awesome! - I think I now got this. 

So, i need to use 
IRequestHandler mapRequest(Request request);
to handle the incoming request to "decode" the fake path/ part
and using 
Url mapHandler(IRequestHandler requestHandler);
I can put in any fake path/ part into the URL that goes to the outside.

Thanks a lot Martin! That saves me from doing any JCR/ Brix related hacking as 
I can now internally map the pages/ paths as I need it :)




- Ursprüngliche Mail -
> Von: "Martin Grigorov" 
> An: users@wicket.apache.org
> Gesendet: Montag, 11. Juni 2018 12:38:43
> Betreff: Re: wicket 8 / RootRequestMapper vs CompoundRequestMapper

> On Mon, Jun 11, 2018 at 1:33 PM, Korbinian Bachl <
> korbinian.ba...@whiskyworld.de> wrote:
> 
>> Hi,
>>
>> thanks a lot for the clarification. So say I want to do some kind of path
>> rewriting/ faking like the apache mod_rewrite does. I then would use a new
>> root mapper and have this one handle the request, fake the url and give it
>> to the "prior" mappers to resolve as in that case I need to make sure I'm
>> the first one in the hierarchy. But where would I then rewrite the
>> generated URLs?
>>
> 
> The request mappers are hierarchical.
> See how CryptoMapper does it.
> An encrypted url comes, CryptoMapper decrypts it, pass it to the underlying
> mappers, they handle the request, then produce readable urls for the
> links/redirect, and finally CryptoMapper encrypts those.
> 
> 
>>
>> Best,
>>
>> KB
>>
>> - Ursprüngliche Mail -
>> > Von: "Bas Gooren" 
>> > An: users@wicket.apache.org, "Korbinian Bachl" <
>> korbinian.ba...@whiskyworld.de>
>> > Gesendet: Montag, 11. Juni 2018 12:06:12
>> > Betreff: Re: wicket 8 / RootRequestMapper vs CompoundRequestMapper
>>
>> > Hi!
>> >
>> > The Compound mapper is merely a wrapper which can have many child
>> mappers.
>> > The Root mapper is the mapper that wicket calls to do mapping and reverse
>> > mapping. For wicket itself it’s not important whether it is a mapper or
>> > compound mapper.
>> >
>> > The higher up in the mapper hierarchy (root -> compound -> compound ->
>> > mapper etc), the earlier it is called.
>> > Note that this is not that important, since the compound mapper works
>> with
>> > scores, but nevertheless if you want to do something like prefixing or
>> > postfixing urls, order does matter.
>> >
>> > This is also why, for example, the https mapper should be installed after
>> > all other mappers, and as the root mapper.
>> >
>> > If you just want to map some pages, just add the mapper and don’t worry
>> > about where in the hierarchy it is. As long as it returns a score higher
>> > than any other, it will be used.
>> >
>> > Met vriendelijke groet,
>> > Kind regards,
>> >
>> > Bas Gooren
>> >
>> > Op 11 juni 2018 bij 11:38:31, Korbinian Bachl (
>> > korbinian.ba...@whiskyworld.de) schreef:
>> >
>> > Hi,
>> >
>> > situation: I need to add some "special" URL handling for certain URLs to
>> > have product pages and catalog pages on root. As we also use brix we
>> > already have at least one compoundRequestMapper already in use.
>> > Now, wicket seems to have 2 places for that. A new RootRequestMapper
>> e.g.:
>> >
>> > YourApplication#init():
>> > old = application.getRootRequestMapper()
>> > application.setRootRequestMapper(new CustomRequestMapper(old))
>> >
>> > or a CompoundRequestMapper e.g.:
>> >
>> > application.getRootRequestMapperAsCompound().add(new
>> > CustomRequestMapper(old));
>> >
>> > But what are the pros or cons of using either RootRequestMapper vs
>> > CompoundRequestMapper?
>> >
>> > From my point of view the only difference is that CompoundRequestMapper
>> > gets exectued based on score, where max score gets used first and lower
>> > scores later as long as the
>> >
>> > public IRequestHandler mapRequest(Request request)
>> >
>> > doesnt return null anymore; Did I miss something?
>> >
>> >
>> > Best,
>> >
>> > KB
>> >
>> > -
>> > 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 8 / RootRequestMapper vs CompoundRequestMapper

2018-06-11 Thread Korbinian Bachl
Thanks for pointing me to this!


- Ursprüngliche Mail -
> Von: "Martin Grigorov" 
> An: users@wicket.apache.org
> Gesendet: Montag, 11. Juni 2018 12:11:32
> Betreff: Re: wicket 8 / RootRequestMapper vs CompoundRequestMapper

> Hi,
> 
> The main method for mounting is WebApplication#mount(IRequestMapper).
> It uses getRootRequestMapperAsCompound().add(mapper);, i.e. no matter
> whether your root mapper is already compound or not, Wicket will make it
> compound by wrapping it in SystemMapper
> 
> 
> https://github.com/apache/wicket/blob/950403d5ccea5643e6005450c6b808ea72079d59/wicket-core/src/main/java/org/apache/wicket/protocol/http/WebApplication.java#L319
> https://github.com/apache/wicket/blob/950403d5ccea5643e6005450c6b808ea72079d59/wicket-core/src/main/java/org/apache/wicket/Application.java#L741-L750
> 
> On Mon, Jun 11, 2018 at 12:38 PM, Korbinian Bachl <
> korbinian.ba...@whiskyworld.de> wrote:
> 
>> Hi,
>>
>> situation: I need to add some "special" URL handling for certain URLs to
>> have product pages and catalog pages on root. As we also use brix we
>> already have at least one compoundRequestMapper already in use.
>> Now, wicket seems to have 2 places for that. A new RootRequestMapper e.g.:
>>
>> YourApplication#init():
>> old = application.getRootRequestMapper()
>> application.setRootRequestMapper(new CustomRequestMapper(old))
>>
>> or a CompoundRequestMapper e.g.:
>>
>> application.getRootRequestMapperAsCompound().add(new
>> CustomRequestMapper(old));
>>
>> But what are the pros or cons of using either RootRequestMapper vs
>> CompoundRequestMapper?
>>
>> From my point of view the only difference is that CompoundRequestMapper
>> gets exectued based on score, where max score gets used first and lower
>> scores later as long as the
>>
>> public IRequestHandler mapRequest(Request request)
>>
>> doesnt return null anymore; Did I miss something?
>>
>>
>> Best,
>>
>> KB
>>
>> -
>> 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 8 / RootRequestMapper vs CompoundRequestMapper

2018-06-11 Thread Korbinian Bachl
Hi,

thanks a lot for the clarification. So say I want to do some kind of path 
rewriting/ faking like the apache mod_rewrite does. I then would use a new root 
mapper and have this one handle the request, fake the url and give it to the 
"prior" mappers to resolve as in that case I need to make sure I'm the first 
one in the hierarchy. But where would I then rewrite the generated URLs?

Best,

KB

- Ursprüngliche Mail -
> Von: "Bas Gooren" 
> An: users@wicket.apache.org, "Korbinian Bachl" 
> 
> Gesendet: Montag, 11. Juni 2018 12:06:12
> Betreff: Re: wicket 8 / RootRequestMapper vs CompoundRequestMapper

> Hi!
> 
> The Compound mapper is merely a wrapper which can have many child mappers.
> The Root mapper is the mapper that wicket calls to do mapping and reverse
> mapping. For wicket itself it’s not important whether it is a mapper or
> compound mapper.
> 
> The higher up in the mapper hierarchy (root -> compound -> compound ->
> mapper etc), the earlier it is called.
> Note that this is not that important, since the compound mapper works with
> scores, but nevertheless if you want to do something like prefixing or
> postfixing urls, order does matter.
> 
> This is also why, for example, the https mapper should be installed after
> all other mappers, and as the root mapper.
> 
> If you just want to map some pages, just add the mapper and don’t worry
> about where in the hierarchy it is. As long as it returns a score higher
> than any other, it will be used.
> 
> Met vriendelijke groet,
> Kind regards,
> 
> Bas Gooren
> 
> Op 11 juni 2018 bij 11:38:31, Korbinian Bachl (
> korbinian.ba...@whiskyworld.de) schreef:
> 
> Hi,
> 
> situation: I need to add some "special" URL handling for certain URLs to
> have product pages and catalog pages on root. As we also use brix we
> already have at least one compoundRequestMapper already in use.
> Now, wicket seems to have 2 places for that. A new RootRequestMapper e.g.:
> 
> YourApplication#init():
> old = application.getRootRequestMapper()
> application.setRootRequestMapper(new CustomRequestMapper(old))
> 
> or a CompoundRequestMapper e.g.:
> 
> application.getRootRequestMapperAsCompound().add(new
> CustomRequestMapper(old));
> 
> But what are the pros or cons of using either RootRequestMapper vs
> CompoundRequestMapper?
> 
> From my point of view the only difference is that CompoundRequestMapper
> gets exectued based on score, where max score gets used first and lower
> scores later as long as the
> 
> public IRequestHandler mapRequest(Request request)
> 
> doesnt return null anymore; Did I miss something?
> 
> 
> Best,
> 
> KB
> 
> -
> 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 8 / RootRequestMapper vs CompoundRequestMapper

2018-06-11 Thread Korbinian Bachl
Hi,

situation: I need to add some "special" URL handling for certain URLs to have 
product pages and catalog pages on root. As we also use brix we already have at 
least one compoundRequestMapper already in use. 
Now, wicket seems to have 2 places for that. A new RootRequestMapper e.g.:

YourApplication#init():
old = application.getRootRequestMapper()
application.setRootRequestMapper(new CustomRequestMapper(old))

or a CompoundRequestMapper e.g.:

application.getRootRequestMapperAsCompound().add(new CustomRequestMapper(old));

But what are the pros or cons of using either RootRequestMapper vs 
CompoundRequestMapper?

>From my point of view the only difference is that CompoundRequestMapper gets 
>exectued based on score, where max score gets used first and lower scores 
>later as long as the 

public IRequestHandler mapRequest(Request request) 

doesnt return null anymore; Did I miss something?


Best,

KB

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



Re: wicket component lifecycle after form submit

2018-05-08 Thread Korbinian Bachl


- Ursprüngliche Mail -
> 
>> But how does it go for the lifecycle of a component on a page where the
>> page gets submitted by a form in another component?
>>
> 
> I do not understand this sentence


It may sound a bit awkward but the situation is like this:

Page with componentes A, B, C, D on it
Component A is just an resolver that fills a request scoped CDI with decoded 
data for components B,C,D in its constructor
Component B,C,D now reacts onto these data from Component A in the 
onBeforeRender method

all is fine if its not rerendered like it was used some years now (code stems 
from looong time ago :/ )

now I introduced an form into component D and there the mess began as A's 
construtor didnt get called again as its page was already rendered... 

this was all made before wicket had the current lifecycle as well as the 
methods that get invoked we have today in wicket 7 and 8;


> 
>>
> 
> onConfigure() and onDetach() are called at every request
> if the component is visible then onBeforeRender, onRender() and
> onAfterRender() will be called too

Ah ok,

So is it correct if I assume that onConfigure gets called in the same order as 
the components get added to the page and in that order on each re-render?

What would be the best way in 2018 to have decoupled components that share 
logic?


Best,

KB

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



wicket component lifecycle after form submit

2018-05-08 Thread Korbinian Bachl
Hi,

from 
https://ci.apache.org/projects/wicket/guide/8.x/single.html#_lifecycle_stages_of_a_component
 and 
https://ci.apache.org/projects/wicket/guide/6.x/guide/componentLifecycle.html I 
see how the lifecycle of a wicket component is intended to be.

But how does it go for the lifecycle of a component on a page where the page 
gets submitted by a form in another component?

I know that the page tree wont get recreated completely after the onSubmit, but 
I wonder if there is any method that is guaranteed to be called on each 
re-render phase as I somehow struggle with parallel CDI work done in a 
@RequestScoped bean 
(this is re-created completely when the submit is called as it is a new http 
request) 
and some things in onBeforeRender wont even get called - or can it be that this 
is because the "hasBeenRendered" is true for rerenders by form submits?

Sorry if the question is dumb but I somehow locked myself in by doing too much 
in different onBeforeRender methods all over the place..  (that is also mainly 
because most of that code stems from wicket 1.3/1.4 era);

Is there a method that gets executed every rerender after the page has been 
constructed - similar to onConfigure ?

Best,

KB



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



Re: make all links to absolute ones?

2018-04-30 Thread Korbinian Bachl
Thanks a lot Martin!


I now did an quick override of it and now all URLs are absolute like I wanted 
them to be... Is there a special reason why wicket is so into this relative 
nightmare? I mean, why not just make all either absolute or full-URLs? 

I mean depending on the Url paths you get so great things like (same jquery, 
different wicket pages):


make all links to absolute ones?

2018-04-28 Thread Korbinian Bachl
Hi,

in wicket 8 (M9) in RequestCylce there is

protected UrlRenderer newUrlRenderer()
{
// All URLs will be rendered relative to current request (can 
be overridden afterwards)
return new UrlRenderer(getRequest());
}

but how can I override it with a custom UrlRenderer? - I try to make all URLs 
to absolute ones and I tried to just override the shouldRenderAsFull with true 
in UrlRenderer but I cant seem to find how to make wicket use the new 
UrlRenderer. The only part where this is used is in ServletWebResponse as well 
as RequestCycle, however, RequestCycle itself is used only on 
Application.internalInit and the warnings there to not touch it are strong :/

Any Idea how I can override this part globally?

Best,

KB

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



Re: manual resolving of path

2018-04-13 Thread Korbinian Bachl
Hello Bas,

thank you very much - that really led me to what I needed.

Best,

KB

- Ursprüngliche Mail -
> Von: "Bas Gooren" <b...@iswd.nl>
> An: users@wicket.apache.org, "Korbinian Bachl" 
> <korbinian.ba...@whiskyworld.de>
> Gesendet: Mittwoch, 11. April 2018 11:01:58
> Betreff: Re: manual resolving of path

> Hi,
> 
> This is actually relatively simple!
> 
> Steps:
> 
>   - Create a mapper for this which extends AbstractMapper
>   - Return a compatibility score which is higher than other mappers if you
>   want to override them (e.g. return Integer.MAX_VALUE)
>   - Implement mapRequest() to resolve the url to a RenderPageRequestHandler
>   - Implement mapHandler() to resolve a handler for your target page class
>   to a url (e.g. check for IPageClassRequestHandler and use provided page
>   parameters to build url)
>   - Mount your custom mapper in your application’s init() method
> 
> Done!
> 
> Met vriendelijke groet,
> Kind regards,
> 
> Bas Gooren
> 
> Op 11 april 2018 bij 09:47:16, Korbinian Bachl (
> korbinian.ba...@whiskyworld.de) schreef:
> 
> Hi,
> 
> where would I need to look at if I wanted to resolve the path from the root
> of the webapplication inside a wicket application root?
> 
> 
> e.g.: domain.com <- has wicket app on ROOT deployed
> domain.com/foo <- path mapped to foo-webpage
> domain.com/foo/bar <- I now want to get the request not resolved by
> foo-webpage but by my own custom resolver-webpage but I cant map this as
> usual as the mapping comes from a DB and can change anytime
> domain.com/bar2 <- I also want to hijack this one temporary even we have a
> page mounted to /bar2
> 
> Any idea how I might "hijack" the request and resolve it to another page?
> 
> Best,
> 
> KB
> 
> -
> 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



manual resolving of path

2018-04-11 Thread Korbinian Bachl
Hi,

where would I need to look at if I wanted to resolve the path from the root of 
the webapplication inside a wicket application root?


e.g.: domain.com <- has wicket app on ROOT deployed
domain.com/foo <- path mapped to foo-webpage
domain.com/foo/bar <- I now want to get the request not resolved by foo-webpage 
but by my own custom resolver-webpage but I cant map this as usual as the 
mapping comes from a DB and can change anytime
domain.com/bar2 <- I also want to hijack this one temporary even we have a page 
mounted to /bar2

Any idea how I might "hijack" the request and resolve it to another page?

Best,

KB

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



Re: AjaxFormComponentUpdatingBehavior not triggering ListChoice model update in Firefox in Wicket 7.9.0

2017-10-11 Thread Korbinian Bachl
Is there any kind of defer or async on any of these JS script resources? 
Maybe you want to publish the quickstart?

- Ursprüngliche Mail -
> Von: "Chris Colman" <chr...@stepaheadsoftware.com>
> An: users@wicket.apache.org
> Gesendet: Mittwoch, 11. Oktober 2017 10:06:23
> Betreff: RE: AjaxFormComponentUpdatingBehavior not triggering ListChoice 
> model update in Firefox in Wicket 7.9.0

> The cut down app that works fine in FireFox also has both jquery.js and
> bootstrap.js so this probably means that it's ok to have both of these
> together.
> 
> ./wicket/resource/org.apache.wicket.resource.JQueryResourceReference/jquery/jquery-1.12.4.js
> 
> ./wicket/resource/de.agilecoders.wicket.webjars.request.resource.WebjarsJavaScriptResourceReference/webjars/bootstrap/3.3.7-1/js/bootstrap.js
> 
> 
>> -Original Message-
>> From: Korbinian Bachl [mailto:korbinian.ba...@whiskyworld.de]
>> Sent: Wednesday, 11 October 2017 6:44 PM
>> To: users@wicket.apache.org
>> Subject: Re: AjaxFormComponentUpdatingBehavior not triggering ListChoice
>> model update in Firefox in Wicket 7.9.0
>> 
>> Hi Chris,
>> 
>> can it be that you have 2 instances of jQuery in your page? - bootstrap.js
>> often comes with embedded jQuery and then you would overwrite the wicket
>> one with the bootstrap one, that will lead to problems where you dont get
>> notfied at all. I know this from foundation / sites, where you are best
>> using a second global variable beside the one from default jQuery.
>> 
>> In this part wicket is a bit of a troublemaker, you could try to replace
>> the wicket jQuery with an empty.js resource or even pull in the bootstrap
>> one instead (e.g.: bootstrap script file instead of wickets jquery only
>> script), so only 1 jQuery gets executed. Also the migrate you use is quite
>> old, I would suggest 1.4.1;
>> 
>> Best,
>> 
>> KB
>> 
>> 
>> - Ursprüngliche Mail -
>> > Von: "Chris Colman" <chr...@stepaheadsoftware.com>
>> > An: users@wicket.apache.org
>> > Gesendet: Mittwoch, 11. Oktober 2017 04:39:22
>> > Betreff: RE: AjaxFormComponentUpdatingBehavior not triggering ListChoice
>> model update in Firefox in Wicket 7.9.0
>> 
>> > I've made some progress. I have created a cut down app that produces a
>> > similar page to the troublesome one in the large app that exhibits the
>> > problem - except I can't make the cut down app exhibit the problem yet
>> > ;)
>> >
>> > ... but I have found a suble difference between the two apps:
>> >
>> > It seems to be something to do with the order/inclusion of .js files
>> > added within a HeaderResponseContainer component.
>> >
>> > In the working app the .js is ordered like this:
>> > (left out unimportant tags, paths etc., for brevity)
>> >
>> > src="... /jquery/jquery-1.12.4.js">
>> > src="... /wicket-event-jquery.js">
>> > src="... /wicket-ajax-jquery.js">
>> > 
>> > /*<![CDATA[*/
>> > Wicket.Ajax.baseUrl="";
>> > /*]]>*/
>> > 
>> > 
>> > src="... /jquery-migrate-1.3.0.js">
>> > id="bootstrap-js" src="... /
>> > webjars/bootstrap/3.3.7-1/js/bootstrap.js">
>> > 
>> > /*<![CDATA[*/
>> >
>> > In the app that doesn't work in FireFox the .js ordering is:
>> >
>> > src="... /jquery/jquery-1.12.4.js">
>> > src="... /wicket-event-jquery.js">
>> > src="... /js/jquery-migrate-1.3.0.js">
>> > src="... /webjars/bootstrap/3.3.7-1/js/bootstrap.js">
>> > src="... /prettify.js">
>> > 
>> > 

Re: AjaxFormComponentUpdatingBehavior not triggering ListChoice model update in Firefox in Wicket 7.9.0

2017-10-11 Thread Korbinian Bachl
Hi Chris,

can it be that you have 2 instances of jQuery in your page? - bootstrap.js 
often comes with embedded jQuery and then you would overwrite the wicket one 
with the bootstrap one, that will lead to problems where you dont get notfied 
at all. I know this from foundation / sites, where you are best using a second 
global variable beside the one from default jQuery.

In this part wicket is a bit of a troublemaker, you could try to replace the 
wicket jQuery with an empty.js resource or even pull in the bootstrap one 
instead (e.g.: bootstrap script file instead of wickets jquery only script), so 
only 1 jQuery gets executed. Also the migrate you use is quite old, I would 
suggest 1.4.1;

Best,

KB


- Ursprüngliche Mail -
> Von: "Chris Colman" 
> An: users@wicket.apache.org
> Gesendet: Mittwoch, 11. Oktober 2017 04:39:22
> Betreff: RE: AjaxFormComponentUpdatingBehavior not triggering ListChoice 
> model update in Firefox in Wicket 7.9.0

> I've made some progress. I have created a cut down app that produces a
> similar page to the troublesome one in the large app that exhibits the
> problem - except I can't make the cut down app exhibit the problem yet
> ;)
> 
> ... but I have found a suble difference between the two apps:
> 
> It seems to be something to do with the order/inclusion of .js files
> added within a HeaderResponseContainer component.
> 
> In the working app the .js is ordered like this:
> (left out unimportant tags, paths etc., for brevity)
> 
> src="... /jquery/jquery-1.12.4.js">
> src="... /wicket-event-jquery.js">
> src="... /wicket-ajax-jquery.js">
> 
> /* Wicket.Ajax.baseUrl="";
> /*]]>*/
> 
> 
> src="... /jquery-migrate-1.3.0.js">
> id="bootstrap-js" src="... /
> webjars/bootstrap/3.3.7-1/js/bootstrap.js">
> 
> /* 
> In the app that doesn't work in FireFox the .js ordering is:
> 
> src="... /jquery/jquery-1.12.4.js">
> src="... /wicket-event-jquery.js">
> src="... /js/jquery-migrate-1.3.0.js">
> src="... /webjars/bootstrap/3.3.7-1/js/bootstrap.js">
> src="... /prettify.js">
> 
> 

wicket 7 / 8.x and relative to absolute path

2017-03-16 Thread Korbinian Bachl
Hello,

how is it possible to make from an relative page path and absolute one as 
string in wicket 7 or 8?

In wicket 1.4 it was quite a mess where one had to manually build it from 
string and this tended to be quite buggy (and much much code), and I somehow 
hope that it may now be easier in times of wicket 8 and java 8;

The idea is to have a basic funtion e.g:

public static String toAbsolutePath(String relativePagePath) 

where one could enter the relativePagePath, relative to the current URL in the 
browser window;

Best,

Korbinian

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



Re: wicket 6.x / java.text.ParseException on multiple div's

2016-05-15 Thread Korbinian Bachl
@Martin Spielmann, @Per Negro

thank you for your help. In fact I found out that there was a glitch in the 
HTML, however, not with the div's! - It seems as the parser has some problems 
when there is an error in the markup with quotations; In my case I had a 
innocent looking 



on the page hirarchy at the divs; (content a much lower level)

If you look at it you see 2 quotations at 340 and this seems to break the 
parser. He gives out the error, but the error is not where he reported it. 
Since my HTML got over 1000 lines i had quite a time to find this little bugger.

Anyway thanks for your help!

Best,

Korbinian

- Ursprüngliche Mail -
> Von: "Martin Spielmann" <martin.spielm...@pingunaut.com>
> An: users@wicket.apache.org
> Gesendet: Sonntag, 15. Mai 2016 11:47:07
> Betreff: Re: wicket 6.x / java.text.ParseException on multiple div's

> Hello Korbinian,
> 
> the error message tells you about a duplicated attribute. Please check if 
> there
> is a tag looking like this in your code:
> 
> 
> 
> 
> 
> E.g. smth like this:
> 
> Happened some times to me...
> 
> Best regards,
> Martin
> 
> 
> 
> Am 15. Mai 2016 11:39:30 MESZ, schrieb Korbinian Bachl
> <korbinian.ba...@whiskyworld.de>:
>>Hello,
>>
>>I'm still on migrating a big wicket 1.4 app to wicket 6.23, and I now
>>got a problem I dont know how to solve. A page throws following error:
>>
>>java.text.ParseException: Same attribute found twice: div (line 163,
>>column 52)
>>at
>>org.apache.wicket.markup.parser.XmlPullParser.parseTagText(XmlPullParser.java:698)
>>at
>>org.apache.wicket.markup.parser.XmlPullParser.next(XmlPullParser.java:311)
>>
>>
>>so far I would expect this to happen on wrong/ malformed HTML - but my
>>HTML is fine is indeed needed this way!
>>
>>complained HTML:
>>
>>
>>
>>      
>>           content
>>        
>>        
>>        
>>              content
>>        
>>
>>
>>So what is going on here? Why does wicket complain about those poor
>>div's? Is there any way I can disable this check for div's??? For me
>>this behaviour seems as a bug as div following a div is perfectly fine
>>HTML code?
>>
>>Best,
>>
>>Korbinian
>>
>>-
>>To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>For additional commands, e-mail: users-h...@wicket.apache.org
> 
> --
> Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.

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



Re: wicket 6.x / java.text.ParseException on multiple div's

2016-05-15 Thread Korbinian Bachl
Hello Per,

yes, when I remove just 1 of the 2 div's it works instantly; I can tigger this 
by putting in:

A
B


and he complains

Best,

Korbinian

- Ursprüngliche Mail -
> Von: "Per Newgro" <per.new...@gmx.ch>
> An: users@wicket.apache.org
> Gesendet: Sonntag, 15. Mai 2016 11:54:30
> Betreff: Re: wicket 6.x / java.text.ParseException on multiple div's

> Did you try to remove the questionable markup to see what is happening?
> 
> Am 15.05.2016 um 11:39 schrieb Korbinian Bachl:
>> Hello,
>>
>> I'm still on migrating a big wicket 1.4 app to wicket 6.23, and I now got a
>> problem I dont know how to solve. A page throws following error:
>>
>> java.text.ParseException: Same attribute found twice: div (line 163, column 
>> 52)
>> at
>> org.apache.wicket.markup.parser.XmlPullParser.parseTagText(XmlPullParser.java:698)
>>  at 
>> org.apache.wicket.markup.parser.XmlPullParser.next(XmlPullParser.java:311)
>> 
>>
>> so far I would expect this to happen on wrong/ malformed HTML - but my HTML 
>> is
>> fine is indeed needed this way!
>>
>> complained HTML:
>>
>> 
>>
>>
>> content
>>  
>>  
>>  
>>content
>>  
>> 
>>
>> So what is going on here? Why does wicket complain about those poor div's? Is
>> there any way I can disable this check for div's??? For me this behaviour 
>> seems
>> as a bug as div following a div is perfectly fine HTML code?
>>
>> Best,
>>
>> Korbinian
>>
>> -
>> 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 6.x / java.text.ParseException on multiple div's

2016-05-15 Thread Korbinian Bachl
Hello Martin,

I tried to look for this but I isn't that easy. He really complains about fine 
closed div's if I remove the mentioned div's it renders fine;

I can trigger the error when I just enter this into my page HTML:


A
B


and thats a perfectly fine HTML

Best,
Korbinian 


- Ursprüngliche Mail -
> Von: "Martin Spielmann" <martin.spielm...@pingunaut.com>
> An: users@wicket.apache.org
> Gesendet: Sonntag, 15. Mai 2016 11:47:07
> Betreff: Re: wicket 6.x / java.text.ParseException on multiple div's

> Hello Korbinian,
> 
> the error message tells you about a duplicated attribute. Please check if 
> there
> is a tag looking like this in your code:
> 
> 
> 
> 
> 
> E.g. smth like this:
> 
> Happened some times to me...
> 
> Best regards,
> Martin
> 
> 
> 
> Am 15. Mai 2016 11:39:30 MESZ, schrieb Korbinian Bachl
> <korbinian.ba...@whiskyworld.de>:
>>Hello,
>>
>>I'm still on migrating a big wicket 1.4 app to wicket 6.23, and I now
>>got a problem I dont know how to solve. A page throws following error:
>>
>>java.text.ParseException: Same attribute found twice: div (line 163,
>>column 52)
>>at
>>org.apache.wicket.markup.parser.XmlPullParser.parseTagText(XmlPullParser.java:698)
>>at
>>org.apache.wicket.markup.parser.XmlPullParser.next(XmlPullParser.java:311)
>>
>>
>>so far I would expect this to happen on wrong/ malformed HTML - but my
>>HTML is fine is indeed needed this way!
>>
>>complained HTML:
>>
>>
>>
>>      
>>           content
>>        
>>        
>>        
>>              content
>>        
>>
>>
>>So what is going on here? Why does wicket complain about those poor
>>div's? Is there any way I can disable this check for div's??? For me
>>this behaviour seems as a bug as div following a div is perfectly fine
>>HTML code?
>>
>>Best,
>>
>>Korbinian
>>
>>-
>>To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>For additional commands, e-mail: users-h...@wicket.apache.org
> 
> --
> Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.

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



wicket 6.x / java.text.ParseException on multiple div's

2016-05-15 Thread Korbinian Bachl
Hello,

I'm still on migrating a big wicket 1.4 app to wicket 6.23, and I now got a 
problem I dont know how to solve. A page throws following error:

java.text.ParseException: Same attribute found twice: div (line 163, column 52)
at 
org.apache.wicket.markup.parser.XmlPullParser.parseTagText(XmlPullParser.java:698)
at 
org.apache.wicket.markup.parser.XmlPullParser.next(XmlPullParser.java:311)


so far I would expect this to happen on wrong/ malformed HTML - but my HTML is 
fine is indeed needed this way!

complained HTML:



      
           content
               
        
        
              content
        


So what is going on here? Why does wicket complain about those poor div's? Is 
there any way I can disable this check for div's??? For me this behaviour seems 
as a bug as div following a div is perfectly fine HTML code?

Best,

Korbinian

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



Re: wicket 6.x / FeedbackPanel StackOverflowError

2016-05-14 Thread Korbinian Bachl
Thank you Tobias,

I followed your advice and it worked, after looking at 
https://ci.apache.org/projects/wicket/guide/6.x/guide/componentLifecycle.html 
it seems the best way to fix this is e.g.:

@Override
protected void onConfigure() {
if(loginForm.hasError()) {
setVisible(true);
} else {
setVisible(false);
}
}

The lifecycle is a bit off from my wicket 1.3/ 1.4 memories it seems :)

Best,

Korbinian


- Ursprüngliche Mail -
> Von: "Tobias Soloschenko" <tobiassolosche...@googlemail.com>
> An: users@wicket.apache.org
> Gesendet: Samstag, 14. Mai 2016 14:07:51
> Betreff: Re: wicket 6.x / FeedbackPanel StackOverflowError

> Hi,
> 
> try to set the visibility in onConfigure and store it as field in that local
> anonymous class - (return myVisibilityField;)
> 
> kind regards
> 
> Tobias
> 
>> Am 14.05.2016 um 13:23 schrieb Korbinian Bachl 
>> <korbinian.ba...@whiskyworld.de>:
>> 
>> Hello,
>> 
>> I'm currently migrating a wicket / brix application from wicket 1.4 to wicket
>> 6.23; So far most seems well, but there is a thing I'm really stuck at. My 
>> code
>> uses FeedbackPanel regularly like this (on many many pages/ tiles):
>> 
>> loginForm.add(new FeedbackPanel("feedBack") {
>>private static final long serialVersionUID = 
>> -2594094600209896717L;
>> 
>>@Override
>>public boolean isVisible() {
>>return loginForm.hasError();
>>}
>> 
>> 
>>}.setEscapeModelStrings(false));
>> 
>> and this worked fine in wicket 1.4; With wicket 6 now if I access a page
>> containing this I get
>> 
>> [2016-05-14T13:14:48.163+0200] [Payara 4.1] [WARNING] [] 
>> [javax.enterprise.web]
>> [tid: _ThreadID=33 _ThreadName=http-listener-2(1)] [timeMillis: 
>> 1463224488163]
>> [levelValue: 900] [[
>>  StandardWrapperValve[default]: Servlet.service() for servlet default threw
>>  exception
>> java.lang.StackOverflowError
>>at org.apache.wicket.Component.isVisibleInHierarchy(Component.java:2132)
>>at org.apache.wicket.Component.isVisibleInHierarchy(Component.java:2132)
>>at org.apache.wicket.Component.isVisibleInHierarchy(Component.java:2132)
>>at org.apache.wicket.Component.isVisibleInHierarchy(Component.java:2132)
>>at org.apache.wicket.markup.html.form.Form$8.component(Form.java:1161)
>>at org.apache.wicket.markup.html.form.Form$8.component(Form.java:1157)
>>at org.apache.wicket.util.visit.Visits.visitChildren(Visits.java:144)
>>at org.apache.wicket.util.visit.Visits.visitChildren(Visits.java:123)
>>at 
>> org.apache.wicket.MarkupContainer.visitChildren(MarkupContainer.java:860)
>>at 
>> org.apache.wicket.markup.html.form.Form.anyFormComponentError(Form.java:1156)
>>at org.apache.wicket.markup.html.form.Form.hasError(Form.java:667)
>>at xxx.login.LoginExistingPanel$2.isVisible(LoginExistingPanel.java:92)
>>at org.apache.wicket.Component.determineVisibility(Component.java:4347)
>>at org.apache.wicket.Component.isVisibleInHierarchy(Component.java:2138)
>>at org.apache.wicket.markup.html.form.Form$8.component(Form.java:1161)
>>at org.apache.wicket.markup.html.form.Form$8.component(Form.java:1157)
>>at org.apache.wicket.util.visit.Visits.visitChildren(Visits.java:144)
>>at org.apache.wicket.util.visit.Visits.visitChildren(Visits.java:123)
>>at 
>> org.apache.wicket.MarkupContainer.visitChildren(MarkupContainer.java:860)
>>at 
>> org.apache.wicket.markup.html.form.Form.anyFormComponentError(Form.java:1156)
>>at org.apache.wicket.markup.html.form.Form.hasError(Form.java:667)
>>at .LoginExistingPanel$2.isVisible(LoginExistingPanel.java:92)
>>  repeating the error dozens of times;
>> 
>> Did anything change here that makes the good old isVisible() not usable 
>> anymore?
>> 
>> 
>> Best,
>> 
>> Korbinian
>> 
>> 
>> 
>> 
>> 
>> 
>> -
>> 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



wicket 6.x / FeedbackPanel StackOverflowError

2016-05-14 Thread Korbinian Bachl
Hello,

I'm currently migrating a wicket / brix application from wicket 1.4 to wicket 
6.23; So far most seems well, but there is a thing I'm really stuck at. My code 
uses FeedbackPanel regularly like this (on many many pages/ tiles):

loginForm.add(new FeedbackPanel("feedBack") {
private static final long serialVersionUID = -2594094600209896717L;

@Override
public boolean isVisible() {
return loginForm.hasError();
}


}.setEscapeModelStrings(false));

and this worked fine in wicket 1.4; With wicket 6 now if I access a page 
containing this I get 

[2016-05-14T13:14:48.163+0200] [Payara 4.1] [WARNING] [] [javax.enterprise.web] 
[tid: _ThreadID=33 _ThreadName=http-listener-2(1)] [timeMillis: 1463224488163] 
[levelValue: 900] [[
  StandardWrapperValve[default]: Servlet.service() for servlet default threw 
exception
java.lang.StackOverflowError
at org.apache.wicket.Component.isVisibleInHierarchy(Component.java:2132)
at org.apache.wicket.Component.isVisibleInHierarchy(Component.java:2132)
at org.apache.wicket.Component.isVisibleInHierarchy(Component.java:2132)
at org.apache.wicket.Component.isVisibleInHierarchy(Component.java:2132)
at org.apache.wicket.markup.html.form.Form$8.component(Form.java:1161)
at org.apache.wicket.markup.html.form.Form$8.component(Form.java:1157)
at org.apache.wicket.util.visit.Visits.visitChildren(Visits.java:144)
at org.apache.wicket.util.visit.Visits.visitChildren(Visits.java:123)
at 
org.apache.wicket.MarkupContainer.visitChildren(MarkupContainer.java:860)
at 
org.apache.wicket.markup.html.form.Form.anyFormComponentError(Form.java:1156)
at org.apache.wicket.markup.html.form.Form.hasError(Form.java:667)
at xxx.login.LoginExistingPanel$2.isVisible(LoginExistingPanel.java:92)
at org.apache.wicket.Component.determineVisibility(Component.java:4347)
at org.apache.wicket.Component.isVisibleInHierarchy(Component.java:2138)
at org.apache.wicket.markup.html.form.Form$8.component(Form.java:1161)
at org.apache.wicket.markup.html.form.Form$8.component(Form.java:1157)
at org.apache.wicket.util.visit.Visits.visitChildren(Visits.java:144)
at org.apache.wicket.util.visit.Visits.visitChildren(Visits.java:123)
at 
org.apache.wicket.MarkupContainer.visitChildren(MarkupContainer.java:860)
at 
org.apache.wicket.markup.html.form.Form.anyFormComponentError(Form.java:1156)
at org.apache.wicket.markup.html.form.Form.hasError(Form.java:667)
at .LoginExistingPanel$2.isVisible(LoginExistingPanel.java:92)
 repeating the error dozens of times;

Did anything change here that makes the good old isVisible() not usable anymore?


Best,

Korbinian






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



Re: how to add rel=nofollow to all links

2013-04-18 Thread Korbinian
rel=nofollow will tell to not weight it but google will still go it - a 
way to stop this is by doing a robots.txt

e.g.: 

User-agent: *
disallow: /*?wicket

for wicket 1.4 does the trick, in your case

User-agent: *
disallow: *ILinkListener*

might work - can test this with the google webmaster tools on the specific 
links that harms you



Am Dienstag, 30. Oktober 2012 11:56:54 UTC+1 schrieb danisevsky:

 Hi, 

 when I look on my site (Brix and Wicket 6 application) in the google 
 webmasters tools I see 300 thousands of wrong urls. All of them are 
 from links (contains ILinkListener). So I would like to ask you if it 
 would make sense to add attribute rel=nofollow to all wicket links? 
 If so is there some way how to do it automatically? 

 Thanks in advance! 


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

Re: how to prevent the log file was full of exceptions

2012-09-03 Thread Korbinian
Hi,

exceptions are usually thrown with a reason - and the main reason why you 
get so much in your log is that brix with wicket 6 isnt yet finished. 
Especially the url-sharing part between brix and wicket is quite a problem 
as brix relies on full control of the space while wickt 5 + 6 introduced 
the concept of multiple url handlers - a concept brix itself never cared 
for as it was created against 1.4 once and the traversal to wicket 5 and 
wicket 6 never got finished yed. Especially the introduction of wicket 5 
into brix is full of errors. I started to clear out many of them on the 6 
branch, but hadn't enough time yet. Beside that I wanted to wait till 
wicket 6 is released, as programming against dailies is problematic when 
your low on time.

What brix currently needs is a logic similar to the SSL Url handler in 
wicket 6, where requests go dont the flow while still the brix handler is 
the master of these requests. I've done that on an experimental 
base. 

Best,

Kobinian

Am Samstag, 1. September 2012 12:20:10 UTC+2 schrieb wickeria:

 Hi,

 I am looking for some solution how to log all exceptions in my code. I 
 tried to override onException method in RequestCycleListener but log file 
 was full of exceptions like this:

 org.apache.wicket.protocol.http.servlet.ResponseIOException: 
 ClientAbortException:  java.net.SocketException: Broken pipe

 So I am thinking about something like this:

 private static Class[] KNOWN_EXCEPTIONS = 
 {ListenerInvocationNotAllowedException.class, ResponseIOException.class};

 @Override
 public IRequestHandler onException(RequestCycle cycle, Exception ex) {
 HttpServletRequest request = (HttpServletRequest) 
 cycle.getRequest().getContainerRequest();
 if (ex instanceof PageExpiredException) {
 LOG.debug(MessageFormat.format(PageExpiredException for 
 request ''{0}'', request.toString()));
 }else if(isKnownException(ex)){
 LOG.warn(MessageFormat.format(InternalErrorPage for request 
 ''{0}'', Exception message ''{1}'', request.toString(), ex.getMessage()));
 } else {
 LOG.error(MessageFormat.format(InternalErrorPage for request 
 ''{0}'', request.toString()), ex);
 }
 return super.onException(cycle, ex);
 }

 private boolean isKnownException(Exception ex) {
 for (Class? extends Throwable clazz : KNOWN_EXCEPTIONS) {
 if(Exceptions.findCause(ex, clazz) != null){
 return true;
 }
 }
 return false;
 }


 Is this right approach? If yes, another question is how to deal with this 
 exception:

 2012-08-17 09:58:43,184 [http-77.48.124.51-80-32] ERROR 
 c.w.web.WicketRequestCycleListener - InternalErrorPage for request '
 http://sportave.com/wicket/resource/com.wickeria.web.WickeriaApplication/jquery-and-wicket-ver-134BD6850DBC85F8DCBCD3A0DB7207C6.js
 '
 java.lang.IllegalStateException: Header was already written to response!
 at 
 org.apache.wicket.protocol.http.HeaderBufferingWebResponse.checkHeader(HeaderBufferingWebResponse.java:64)
  
 ~[wicket-core-6.0-20120809.004947-1468.jar:6.0-SNAPSHOT]
 at 
 org.apache.wicket.protocol.http.HeaderBufferingWebResponse.sendError(HeaderBufferingWebResponse.java:105)
  
 ~[wicket-core-6.0-20120809.004947-1468.jar:6.0-SNAPSHOT]
 at 
 org.apache.wicket.request.http.handler.ErrorCodeRequestHandler.respond(ErrorCodeRequestHandler.java:77)
  
 ~[wicket-request-6.0-20120809.004719-1476.jar:6.0-SNAPSHOT]
 at 
 org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:814)
  
 ~[wicket-core-6.0-20120809.004947-1468.jar:6.0-SNAPSHOT]
 at 
 org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
  
 ~[wicket-request-6.0-20120809.004719-1476.jar:6.0-SNAPSHOT]
 at 
 org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:302)
  
 [wicket-core-6.0-20120809.004947-1468.jar:6.0-SNAPSHOT]
 at 
 org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:311)
  
 [wicket-core-6.0-20120809.004947-1468.jar:6.0-SNAPSHOT]
 at 
 org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:311)
  
 [wicket-core-6.0-20120809.004947-1468.jar:6.0-SNAPSHOT]
 at 
 org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:311)
  
 [wicket-core-6.0-20120809.004947-1468.jar:6.0-SNAPSHOT]
 at 
 org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:311)
  
 [wicket-core-6.0-20120809.004947-1468.jar:6.0-SNAPSHOT]
 at 
 org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:311)
  
 [wicket-core-6.0-20120809.004947-1468.jar:6.0-SNAPSHOT]
 at 
 org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:311)
  
 

Re: Wicket Examples

2012-05-08 Thread Korbinian Bachl - privat

Hi,

some hints:

Make sure the jvm the server is running in is started with (I assume JRE 
1.6 - 1.6.0_32):


-server
-XX:+UseConcMarkSweepGC
-XX:+CMSPermGenSweepingEnabled
-XX:+CMSClassUnloadingEnabled

Also make sure permGen is specified big enough, e.g:
-XX:MaxPermSize=384m


Also, I wouldn't recommend to restart the tomcat too often, else you'll 
loose the goodies of the HotSpot VM;


Best



Am 08.05.12 11:59, schrieb Martin Grigorov:

I can see it now ...
Maybe it is because I uploaded the examples for 6.x, 1.5.x, 1.4.x,
inmethod-grid and Brix at it.
I'm not sure how much this machine can handle ...
I'll undeploy Brix and some old wicket-contrib examples.

On Tue, May 8, 2012 at 12:43 PM, Fergal Keating
fergal.keat...@directski.com  wrote:

I got a PermGen space error on that URL.

javax.servlet.ServletException: Filter execution threw an exception

*root cause*

java.lang.OutOfMemoryError: PermGen space


On 8 May 2012 08:31, Martin Grigorovmgrigo...@apache.org  wrote:



http://www.wicket-library.com/wicket-examples/repeater/wicket/bookmarkable/org.apache.wicket.examples.repeater.FormPage
works OK for me

On Tue, May 8, 2012 at 12:43 AM, Corbin, Jamesjcor...@iqnavigator.com
wrote:

The wicket examples (www.wicket-library.com/wicket-examples/) seems to

be having issues.


I select the Contacts Editor option under the repeaters section and I

get a permgen error.


Is this site working properly?  I assume the URL above is appropriate?

J.D.




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





--
Fergal Keating
IT Senior Engineer
---
e. fergal.keat...@directski.com
p. NA
w. www.directski.com






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



Re: Wicket 1.5 and glassfish 3.1.1 clustering (session replication)

2011-08-03 Thread Korbinian Bachl - privat

Hello,

Vytautas, can you please make a bugreport on
http://java.net/jira/browse/GLASSFISH

3.1.1 indeed has some quirks, but its better than 3.1; HTTP/HTTPS and 
wicket will loose JSessionId

(http://java.net/jira/browse/GLASSFISH-17131)
a.t.m. but if we give nice bug reports they will get fixed in 3.1.2 :)

Best


Am 03.08.11 08:14, schrieb Vytautas R.:

Yes, i know, it looks like glassfish is not very stable - same application
different tests - different results :(
I should clean up the cache from my head :D

On Tue, Aug 2, 2011 at 9:55 PM, Zilvinas Vilutiscika...@gmail.com  wrote:


I thought session is managed by container ( Glassfish in this case )
and wicket version should not matter at all.

Unless wicket is checking host / path / port or whatever when checking
to create a session or not?

Regards

Žilvinas Vilutis

Mobile:   (+1) 623 330 6048
E-mail:   cika...@gmail.com



On Tue, Aug 2, 2011 at 8:05 PM, Vytautasturi...@gmail.com  wrote:

Same application, Apache Tomcat 7.x withCluster /  enabled, Apache
mod_proxy, mod_proxy_balancer - everything looks perfect :)

Added


getRequestCycleSettings().setRenderStrategy(RenderStrategy.ONE_PASS_RENDER);

still no success on Glassfish.


--
Regards,
Vytautas
---
www.xaloon.org
www.allcarindex.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







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



Re: [Vote] New Wicket Version Numbering

2011-04-01 Thread Korbinian Bachl - whiskyworld
OMG?!? ARE YOU SERIOUS??? Here we are already using WINDOWS 2000 with 
OFFICE 2010 ;)


(Note: never ever believe any mails, blogs, newspapers on april 1st *g*)



Am 01.04.11 20:14, schrieb nino martinez wael:

Gotta be a aprils fools thing..

Who would decide what framework to be used based on version number?
Why not take a look at architecture instead... Ooh lets chose windows
95 instead of windows 7, it has a higher number so it gotta be better
.

2011/4/1 Igor Vaynbergigor.vaynb...@gmail.com:

where do i apply for a job there? sounds like fun!

-igor

On Fri, Apr 1, 2011 at 10:56 AM, Jim Pinkhampinkh...@gmail.com  wrote:

I've had a hard time lately trying to get corporate acceptance of the Wicket
framework.

In fact, our company looked at this comparison of java frameworks:

http://en.wikipedia.org/wiki/Comparison_of_web_application_frameworks

  *Project* *Current Stable Version*  Apache Click  2.2.0   Apache Cocoon
2.2.0   Apache Struts  2.2.1.1   Apache Tapestry  5.2.4   Apache Wicket
1.4.15   AppFuse  2.0.2   Aranea  1.0.10   Eclipse RAP  1.2.0   FormEngine
1.7.1   Google Web Toolkit  2.2.0   Hamlets  1.6  IceFaces  2  ItsNat
1  JavaServer
Faces  2  JBoss Seam  2.2.0 GA   Jspx-bay  1.1.0   JVx WebUI  0.8  ManyDesigns
Portofino  3.1.10   OpenLaszlo  4.1  OpenXava  4.0.1   Oracle ADF  11.1.1.4
Play  1.1.1   RIFE  1.6.2   Shale  1.0.4   Sling  5  SmartClient  8  Spring
3.0.5   Stripes  1.5.4   Telosys  1.1.1   ThinWire  1.2  Vaadin(IT Mill
Toolkit)  6.5.1   Wavemaker  6.1.10   WebObjects  5.4.3   WebWork  2.2.6
ZK  5.0.5   ztemplates  0.9.9.6

The powers that be decided to pick Smart Client over Apache Wicket because
they have the highest version number.

So, I think the time is right to move straight to the front of the pack and
release version 10.0.

Who's with me?

-- Jim

Spinal Tap Industries, Inc.



-
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



--

  whiskyworld e.K.
  http://www.whiskyworld.de
  Ziegelfeld 6
  94481 Grafenau/ Haus im Wald
  Tel. 08555/ 406 320
  Fax. 08555/ 406 319

  Amtsgericht Passau: HRA 11760
  Geschäftsführer: Ulrike Bachl
  UstID: DE260619452
  

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



Re: Wicket and Amazon EC2

2011-03-03 Thread Korbinian Bachl - privat
As long as you're using any EC2 instance with an EBS-AMI its just 
another server you can deploy any operating system on you like.


Only remind that you mustn't terminate the machine but only stop/pause 
it as terminating equals to throwing away the server in reality while 
pausing means to shut it down (not pause it in memory);


So to use wicket on I suggest you to first create an Ubuntu LTS AMI 
following these instructions:

http://www.ubuntu.com/cloud/public/deploy

Then you install java on it using apt-get or aptitude (make sure to 
update indices first) and install the wanted appserver like e.g.: tomcat 
or glassfish and do the startup-scripts, and thats it.


After that I suggest you to clone the EBS drive to a SNAPSHOT, so 
instantly can launch more instances on exact same config (see EC2/EBS doc).


Then you bind any needed elastic-IP's to it and deploy you wicket app - 
thats it :D


In case you run low on power or memory you can adjust the instance type 
to the one you need, but bear in mind that the micro instance only 
provides you 32 BIT while the rest is 64 BIT, so in case you did a 64BIT 
OS you can't go to micro;


thats it :)





Am 03.03.11 06:15, schrieb ookpalm:

Not at all?

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-and-Amazon-EC2-tp3332718p3332775.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: Wicket and Amazon EC2

2011-03-03 Thread Korbinian Bachl - privat

PS:

please forget the link to ubuntu-setup - they try to promote their 
landscape there, made a mistake :(


instead just use the aws-console with these preconfigured AMIs: 
http://uec-images.ubuntu.com/releases/lucid/release/



Am 03.03.11 06:15, schrieb ookpalm:

Not at all?

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-and-Amazon-EC2-tp3332718p3332775.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: Brix CMS : Based Wicket framework

2010-12-10 Thread Korbinian Bachl - privat

Hello Moez,

the link to the repo is wrong. Brix is no longer on googlecode but on 
github: https://github.com/brix-cms/brix-cms


Keep spreading the word for Brix,

best,

Korbinian




Am 10.12.10 15:58, schrieb moèz ben rhouma:

It's very important for wicket users to now what is Brix CMS. So see the
following link:
http://javajeedevelopment.blogspot.com/2010/12/brix-cms-apache-wicket-based-cms.html



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



Re: URLs using wicket wizard

2010-12-01 Thread Korbinian Bachl - privat
What type of URLCodingStrategy do you use? IMHO the 
HybridURLCodingStrategy should do what you want


Best

Am 01.12.10 10:13, schrieb bamse:


I am rather new to Wicket, still I am building an application using the
Wizard-functionality, since this is very suitable for the app.
The app consists of several modules, implemented as wizards. Each wizard
obviously has a number of steps, using the WizardStep, which is a panel.
This works fine, but as an example I would like to have the url for a single
step look like this: /module1/step1, instead of
/?wicket:interface=:26.

I mount each wizard as a page, so the url then looks nice. But when step two
is accessed, the url is the strange one. I do not want to destroy the
functionality that Wicket gives such as regarding the pagemap, therefore I
am reluctant to making too much on my own.

I have searched the forum, but haven't found anything that really helps me.
I would be grateful for any help.



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



wicket + BPM/ jpbm

2010-11-29 Thread Korbinian Bachl - privat

Hello,

as I had no luck in the ICQ channel, I post it here:

Has anyone some knowledge about putting wicket and BPM together? I saw 
that there was a wicketBPM project in past by kgalligan under 
http://bigheadco.blogspot.com/2007/02/wicket-bpm-update.html but email 
and site are dead. Beside that I found a wicket-jbpm project on google, 
but it looks quite abandoned with latest updates from last year and 
targeting an old jBPM 3 version.


If anyone has knowledge of any workflow/ BPM solution and wicket I would 
be really happy to hear.


Best,

Korbinian

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



Re: [OT] where is JPA 2.0 API spec in maven?

2010-09-09 Thread Korbinian Bachl - privat

Oh, didn't know that - thx :)

in fact I haven't yet had any situation where I needed the JPA-API from 
maven but not any persistence library as well; Nino, for what is it good 
for in your case?


Best


Am 09.09.10 09:34, schrieb Jan Kriesten:


Hi Korbinian,


in fact the current is 2.1.1, but 2.0.0 is reference implementation and
for the JPA 2.0 API it wont matter what 2.0.x it is (see scope provided
here - just API);


actually, I meant the javax.persistence-API, which can be referenced
with eclipse:

   dependency
 groupIdorg.eclipse.persistence/groupId
 artifactIdjavax.persistence/artifactId
 version2.0.2/version
   /dependency

The current version there is 2.0.2. From the release notification:

The javax.persistence library has been updated in our repository and in
maven.

The new version, 2.0.2, should address any issues people have had
related to some churn of previous versioned javax.persistence libraries
in our maven repository.

Best regards, --- Jan.


-
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: [OT] where is JPA 2.0 API spec in maven?

2010-09-08 Thread Korbinian Bachl - privat

JEE 6:
dependency
groupIdjavax/groupId
artifactIdjavaee-api/artifactId
version6.0/version
scopeprovided/scope
/dependency

JPA 2:
dependency
groupIdorg.eclipse.persistence/groupId
artifactIdeclipselink/artifactId
version2.0.0/version
scopeprovided/scope
/dependency

Best,

Korbinian



Am 08.09.10 15:35, schrieb nino martinez wael:

Sorry to spam but I am wondering where the JPA 2.0 Spec are cant find
it in maven...

regards Nino

-
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: [OT] where is JPA 2.0 API spec in maven?

2010-09-08 Thread Korbinian Bachl - privat
in fact the current is 2.1.1, but 2.0.0 is reference implementation and 
for the JPA 2.0 API it wont matter what 2.0.x it is (see scope provided 
here - just API);
- usually one uses JPA API of the persistence provider he's using as 
long as he won't depend on an app server;


Best,

Korbinian



Am 08.09.10 16:51, schrieb Jan Kriesten:


Hi,


JPA 2:
dependency
 groupIdorg.eclipse.persistence/groupId
 artifactIdeclipselink/artifactId
 version2.0.0/version
 scopeprovided/scope
 /dependency


AFAIK the current version is 2.0.2

Best regards, --- Jan.


-
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: Serialization of injected EJBs

2010-07-10 Thread Korbinian Bachl - privat

Hi Igor,

as I might hit the problem in next weeks (GF 3.0.1 + EJB + Wicket) i 
just wanted to ask if your code is public and if not if its possible to 
scheme out the actions you did so far?


Best,

Korbinian


Am 09.07.10 20:03, schrieb Igor Vaynberg:

no, the module is for seam 2.1 which does not use weld.

-igor

On Fri, Jul 9, 2010 at 10:55 AM, Harald Wellmann
harald.wellm...@multi-m.de  wrote:

And Seam uses CDI/Weld, right? So your module might solve my problems... Is it 
public?

Regards,
Harald

Von: Igor Vaynberg [igor.vaynb...@gmail.com]
Gesendet: Freitag, 9. Juli 2010 18:06
An: users@wicket.apache.org
Betreff: Re: AW: Serialization of injected EJBs

well, i recently wrote a wicket-ioc module for seam and it took me a
couple of hours :)

-igor


-
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: Beginner question about wicket:extend

2009-08-14 Thread Korbinian Bachl - privat

Hi,

well, wicket and JSP have not much in common beside the fact that they 
both rely on Java...


a simple example for your needs would be this here:
http://wicket.apache.org/examplemarkupinheritance.html

Best,

Korbinian

Oliver-Sven Fritsch schrieb:

Hi everybody!

I'm really new to wicket and it's concepts. I so far created a very 
simple page having some div containers and some static text. What I want 
to do now is to include a page header. What I tried is to use the 
wicket:extend and wicket:child tags to get thing working but with no 
success. I have my two pages Index and Header. Having some basic jsp 
experience I thought extending should work like jsp:include. When I 
try to get my header into the index page nothing is showing up.


Code of Index.html
html   headtitlesome titlet/title
   link rel=stylesheet type=text/css href=styles.css/
/head
   body
   div id=page
   div id=header
   wicket:child/
   /div
[]

Code of Header.html
html
   head/head
   body
   wicket:extend
   div id=header
   h1Header.html/h1
   /div
   /wicket:extend
   /body
/html

Maybe I'm getting things totally wrong?

Another thing I wonder about is how does wicket know which page to include?

Thanks in advance!

Oliver


-
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: spring dojo or wicket for 508 application

2009-06-11 Thread Korbinian Bachl - privat

dumb question: what is 508?

tubin gen schrieb:

My application must be 508 , we are using wicket , recentlyheard spring
dojo , or spring dwr provides rich UI and  ajax support and its 90% 508
complaint is that true ?  Please suggest us If we should go with spring
dojo  or wicket ?



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



Re: spring dojo or wicket for 508 application

2009-06-11 Thread Korbinian Bachl - privat

hmmm... german google tells me a different list ;)

but ty anyway

Martin Funk schrieb:

how about:
http://www.google.com/#hl=enq=508aq=foq=aqi=g10fp=JchEd6hFBSg

Thnx to google I'm only half as dumb as I used to be.

Cheers Korbinian whiskyworld.de Bachl :-)

mf


Am 11.06.2009 um 10:46 schrieb Korbinian Bachl - privat:


dumb question: what is 508?

tubin gen schrieb:
My application must be 508 , we are using wicket , recentlyheard 
spring

dojo , or spring dwr provides rich UI and  ajax support and its 90% 508
complaint is that true ?  Please suggest us If we should go with spring
dojo  or wicket ?


-
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: 5 Days of Wicket

2009-03-10 Thread Korbinian Bachl - privat

Hi Andrew,

first I was a bit curious about another wicket intro(TM) but after 
reading it I was amazed. It is one of the best blog entries for wicket 
starting I've read as it elegantly uses helps like the quickstart and 
then shows how to config it for real world usage.


Only things I miss is:

- as you use Hibernate directly you really should mention databinder 
(databinder.net) somehow, as this spares you much work in that way


- some more words to the image thing, as its IMHO not clear why youre 
doing this for a pastebin-like app


*Thumbs up*,

Korbinian


Andrew Lombardi schrieb:

Hey guys,

Just wanted to let you guys know, that here at Mystic we're doing a 
series of blog posts about Wicket, the basics on setting everything up, 
tests, backend, components, etc.  If you're interested, would definitely 
love your comments (on the blog and mailing list of course).  We're 
definitely in love with how Wicket performs for us in our development 
and strive to use it in our projects when it makes sense.  I'll also be 
giving a talk about Wicket at TSSJS/LV in a week (gah!), so stop by and 
say hello: 
http://javasymposium.techtarget.com/html/frameworks.html#ALombardiWicket


Here's the intro article, showing what each day will cover:

http://www.mysticcoders.com/blog/2009/03/09/5-days-of-wicket/

and here's day 1 of 5 (duh!):

http://www.mysticcoders.com/blog/2009/03/09/5-days-of-wicket-day-1/


and if you have digg / reddit, and wouldn't mind upvoting it:

reddit info:

http://bit.ly/3DS2F
http://bit.ly/CFzVI

digg info:

http://bit.ly/PpLD
http://bit.ly/HM0kl


Cheers!



To our success!

Mystic Coders, LLC | Code Magic | www.mysticcoders.com

ANDREW LOMBARDI | and...@mysticcoders.com
2321 E 4th St. Ste C-128, Santa Ana CA 92705
ofc: 949-528-6480
fax: 714-782-6024
cell: 714-697-8046
linked-in: http://www.linkedin.com/in/andrewlombardi

Eco-Tip: Printing e-mails is usually a waste.


This message is for the named person's use only. You must not, directly 
or indirectly, use,
 disclose, distribute, print, or copy any part of this message if you 
are not the intended recipient.






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



Re: Blob or File for Images

2009-02-28 Thread Korbinian Bachl - privat



Francisco Diaz Trepat - gmail schrieb:

Hi all.

I am building a small shopping app for my girlfriend who sells women
underwear (no, i do not get to run around with hot models, other than the
uml ones).


HA HA HA! :P

*sorry could not resist*



As the He-Man of this project I opted for Wicket (obviously) with
ActiveObjects and Postgres.

Now to the question or opinion request.

I have to show a nice catalog display, maybe with the gallery style of small
pic large image for enlargement.

Should I put my images in the database and use a blob type or should I build
file system hierarchy?


I would do neither! - you should have a look at JCR, especially Apache 
Jackrabbit as its reference impl. - that'll solve your problems while 
still keeping you flexible in future. You also might want to have a look 
at Brix-CMS as a good starting point and has good reasons to use it:

- it gives you most needed CMS functions for your shop
- it uses JCR to save its content
- it can be extended using Tiles that are somewhat wicket-panels that 
implement a special interface
- its made by 2 wicket core devs that build it as a basement for their 
selling-shopsoftware

- big part of its code is written by Igor :)

Best,

Korbinian



Should I stay or Should I go? ;-)



thats obviously a thing your gilfriend has to answer... ;D


f(t)



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



Re: [OT] Simple file repository?

2009-02-23 Thread Korbinian Bachl - privat

Hi Kaspar,

just to save you some pain: in case of Jackrabbit don't use 
TransientRepository but RepositoryImpl instead and make it launch in the 
init() of you app and go down on the onDestroy() (in case you want to 
bundle it with your app).


Transient has some bad behaviour and currently makes problem (1.5.2) 
when shutting it down using the repo.shutdown() as not all resources are 
100% released in case you have still some connections (e.g. over RMI).


Also make sure you safely de-register any exports first, then shutdown 
the repo using repo.shutdown() to prevent any locks. Also don't share 
Session over longer runs or threads as Session is not thread-safe.


To see whats in your jackrabbit repo its best to connect via RMI, so 
you only depend on your real config, not any fancy (especially this also 
saves you from pain by having tools depending on different JR version 
than you are on!). A good way to dig in is using the JCRBRowser (either 
eclipse plugin or standalone) from 
http://sourceforge.net/projects/jcrbrowser .


Also a good tool pool is under: 
http://dev.day.com/microsling/content/blogs/main/jcrtools.html - a JCR 
Tools roundup, bit older (2007) but still worth looking at; Under 
http://wiki.apache.org/jackrabbit/FrontPage you'll also find good info 
(the Jackrabbit page itself and its doc can be best described as 
useless nightmare).


Also a side-start-point might be the DAY CRX Developer edition from 
http://www.day.com/content/day/en/products/crx/download/registration.html 
as this is practically a jackrabbit + tools thing. Its good to start and 
understand the idea and behaviour behind JCR, even the prices are 
Enterprise only you are free to use them for developement purposes only.


Hope this one helps you get started.

Best,

Korbinian

PS: you also might want to have a look at Brix-CMS 
http://code.google.com/p/brix-cms/ and checkout the latest src to see 
how they implemented and used it (latest is on JR 1.5.2 IMHO)!


Kaspar Fischer schrieb:
Thank you all very much for your advice. I will take a look at 
JackRabitt and Alfresco.


Kaspar

On 16.02.2009, at 01:45, Fabrizio Giudici wrote:


Kaspar Fischer wrote:
User's of my application will upload, edit, and delete files. For 
this, I'd like to have a simple file repository with the following 
features:


- Files are stored on the file system.
- Files are distributed over several folders (to avoid a single 
folder with 10,000 files, say).

- Support for transactions

Does anybody know of a simple Java library that satisfies these 
requirements?


For example: a Hibernate database with a relation Files holding 
tuples (DocId, FilePath), and a service with:


- id store(stream): creates from the stream a new file on the file 
system and inserts a new tuple into the relation, returns id
- stream edit(id): returns a stream to a temporary copy of the file 
with the given id; updates the corresponding tuple to point to the 
temp file

- void remove(id): removes the corresponding tuple form the relation

... and a background job which deletes dangling files.
I suggest you something implemented on the top of JackRabbit (Java 
Content Repository). You might have a look at Brix, which is a CMS 
based on Wicket and JackRabbit.


--
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
weblogs.java.net/blog/fabriziogiudici - www.tidalwave.it/blog
fabrizio.giud...@tidalwave.it - mobile: +39 348.150.6941


-
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: propertycolumn - date column, checkbox column

2009-02-14 Thread Korbinian Bachl - privat

Hi,

use AbstractColumn instead and provide a panel that does what you want, eg:

columns.add(new AbstractColumnMarke(new ModelString(CHGE), 
changed) {


public void populateItem(ItemICellPopulatorMarke 
cellItem, String componentId, IModelMarke model) {
cellItem.add(new ChangedCellPanel(componentId, 
model.getObject().isChanged()));

}


@Override
public String getCssClass() {
return center w50;
}
});

It is usually always a good idea to have a look at the classes you want 
to customise (here: PropertyColumn that extends AbstractColumn) as most 
parts of wicket utilize extensions of abstract classes and/ or 
implementations of interfaces;


Best

PS: the code is from 1.4-rc2, so using generics - in 1.3 you can't do that

Christoph Grün schrieb:

Hi all,

 


columns.add(new PropertyColumn(new ModelString(Title), title,  title
));

 

How can I have such a  property column that displays java.util.dates? 


I would also need the same for checkboxes or true/false values.

 


Thanks a lot,

Christoph

 





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



wicket + spring + jpa/ hibernate = lazy load exception

2008-09-29 Thread Korbinian Bachl - privat

Hi,

I'm currently struggling with the famous lazy load exception under 
spring + jpa with wicket.


The problem is, in my case, that i pull an entity from the database 
using a spring-bean (@SpringBean) and JPA (hibernate). Then in the 
wicket class i need to walk the entity tree a bit, based on the needs of 
the user (preloading wont work, as i dont know the direction the user 
wants to walk and the whole entity tree is too complex to grab it all at 
once).


If I use the Entity myEntity.getMyOtherConnectedEntity I get the lazy 
load exception (transaction already closed). So I tried to use the 
OpenSessionInViewFilter to solve this, but it just won't work - no 
reason why, as the error stays exactly the same.


Currently I ended up using this:
@PersistenceContext(type = PersistenceContextType.EXTENDED)
private EntityManager em;

However, I'm not sure if this is the way it is supposed to be?
( I read so far that this disables a big part of springs-transaction 
handling support but didnt see any impacts so far)


Has anyone a different aproach/ solution for this using wicket + spring 
with JPA?


Best,

Korbinan

PS: im on wicket 1.4-m3

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: wicket + spring + jpa/ hibernate = lazy load exception

2008-09-29 Thread Korbinian Bachl - privat

I think it could be something about
 missing usage of loadabledetachable model..?

not for me, as the original entity is pulled using an 
loadabledetachableModel via a SortedDataProvider :/


if you look around, the all called solution for this is the 
OpenSessionInViewFilter and the usage of
bean id=transactionManager 
class=org.springframework.orm.jpa.JpaTransactionManager

for that (latter one is used by me, too)

However, the OpenSessionInViewFilter will not work with wicket, even if 
mapped to /* in the web.xml


Best,

Korbinian




Nino Saturnino Martinez Vazquez Wael schrieb:

Hi Korbinian

Im facing the same problems... I also use extended.. So gonna be great 
to see the outcome of this thread.. I think it could be something about 
missing usage of loadabledetachable model..?






Korbinian Bachl - privat wrote:

Hi,

I'm currently struggling with the famous lazy load exception under 
spring + jpa with wicket.


The problem is, in my case, that i pull an entity from the database 
using a spring-bean (@SpringBean) and JPA (hibernate). Then in the 
wicket class i need to walk the entity tree a bit, based on the needs 
of the user (preloading wont work, as i dont know the direction the 
user wants to walk and the whole entity tree is too complex to grab it 
all at once).


If I use the Entity myEntity.getMyOtherConnectedEntity I get the lazy 
load exception (transaction already closed). So I tried to use the 
OpenSessionInViewFilter to solve this, but it just won't work - no 
reason why, as the error stays exactly the same.


Currently I ended up using this:
@PersistenceContext(type = PersistenceContextType.EXTENDED)
private EntityManager em;

However, I'm not sure if this is the way it is supposed to be?
( I read so far that this disables a big part of springs-transaction 
handling support but didnt see any impacts so far)


Has anyone a different aproach/ solution for this using wicket + 
spring with JPA?


Best,

Korbinan

PS: im on wicket 1.4-m3

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: wicket + spring + jpa/ hibernate = lazy load exception

2008-09-29 Thread Korbinian Bachl - privat

really? - I tried it but...

would you please be so nice and post the part of the web.xml where it is 
mapped and the corresponding part of the spring-application.xml ?


what wicket version are you on? what runtime (Tomcat 6?)?

Best,

Korbinian


James Carman schrieb:

On Mon, Sep 29, 2008 at 7:14 AM, Korbinian Bachl - privat
[EMAIL PROTECTED] wrote:


However, the OpenSessionInViewFilter will not work with wicket, even if
mapped to /* in the web.xml


Huh?  We use it and it works just fine.  By the way, have you tried
OpenEntityManagerInViewFilter if you're using JPA?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: wicket + spring + jpa/ hibernate = lazy load exception

2008-09-29 Thread Korbinian Bachl - privat

Hmm,

I copied it to web.xml, but result is:

2008-09-29 18:07:24,125 ERROR org.hibernate.LazyInitializationException 
- failed to lazily initialize a collection of role: 
de.xxx....xxx., no session or session was closed
org.hibernate.LazyInitializationException: failed to lazily initialize a 
collection of role: de.xxx....xxx., no session or 
session was closed
	at 
org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationException(AbstractPersistentCollection.java:358)
	at 
org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationExceptionIfNotConnected(AbstractPersistentCollection.java:350)
	at 
org.hibernate.collection.AbstractPersistentCollection.readSize(AbstractPersistentCollection.java:97)

at org.hibernate.collection.PersistentSet.size(PersistentSet.java:139)
..

web.xml looks:

?xml version=1.0 encoding=UTF-8?
web-app xmlns=http://java.sun.com/xml/ns/j2ee;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee 
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;

 version=2.4

display-namewhiskas-application/display-name

listener 
listener-classorg.springframework.web.context.ContextLoaderListener/listener-class

/listener

listener 
listener-classorg.springframework.web.context.request.RequestContextListener/listener-class

/listener

!-- ##
  Filters
   ## --

!-- TEST --
filter
filter-nameOpenEntityManagerInViewFilter/filter-name 


filter-classorg.springframework.orm.jpa.support.OpenEntityManagerInViewFilter/filter-class
/filter


!-- Wicket Application --
filter
filter-nameWhiskasApplication/filter-name 
filter-classorg.apache.wicket.protocol.http.WicketFilter/filter-class

init-param
param-nameapplicationFactoryClassName/param-name 


param-valueorg.apache.wicket.spring.SpringWebApplicationFactory/param-value
/init-param

init-param
param-nameconfiguration/param-name
param-valuedeployment/param-value
/init-param
/filter

!-- ##
Filter Mappings
 ## --

filter-mapping
filter-nameOpenEntityManagerInViewFilter/filter-name
url-pattern/*/url-pattern
/filter-mapping


filter-mapping
filter-nameWhiskasApplication/filter-name
url-pattern/*/url-pattern
/filter-mapping


/web-app

so, what can be wrong there? - web.xml seems 100% fine to me. Is there 
anything that has to be put into the application.xml?


Best,

Korbinian


James Carman schrieb:

We don't use JPA at work, but we use OSIV (we're using straight
hibernate).  Anyway, for the JPA configuration, you can look at:

https://wicketopia.svn.sourceforge.net/svnroot/wicketopia/trunk/jpa-archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml


On Mon, Sep 29, 2008 at 7:57 AM, Korbinian Bachl - privat
[EMAIL PROTECTED] wrote:

really? - I tried it but...

would you please be so nice and post the part of the web.xml where it is
mapped and the corresponding part of the spring-application.xml ?

what wicket version are you on? what runtime (Tomcat 6?)?

Best,

Korbinian


James Carman schrieb:

On Mon, Sep 29, 2008 at 7:14 AM, Korbinian Bachl - privat
[EMAIL PROTECTED] wrote:


However, the OpenSessionInViewFilter will not work with wicket, even if
mapped to /* in the web.xml

Huh?  We use it and it works just fine.  By the way, have you tried
OpenEntityManagerInViewFilter if you're using JPA?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: ListView - modify css for some column

2008-09-29 Thread Korbinian Bachl - privat
you should use DataTable instead of ListView for that; there you can 
easily manipulate by overriding the getCSS() function of the columns.


Best,

Korbinian

radovan schrieb:

Hallo community, my code looks like this:

listView = new ListViewMyItem(collectionIterator,
listOfMyItems) {

@Override
protected void populateItem(ListItemMyItem item) {
MyItem myItem = (MyItem) item.getDefaultModelObject();
String name = myItem.getName();
String value = myItem.getValue();
item.add(new Label(name, name));
item.add(new Label(value, value));
}
};

table
trthName/ththValue/th/tr
tr wicket:id=collectionIterator
td/td
td/td
/tr
/table

and I need to change css class for td element in table.  


If I add this:

item.add(new AttributeAppender(class, new
ModelString(newCssClass), ));

It adds this css class for all td tags. By oter words for whole row. But I
need modify only some td, only some column. Could you give me some advice?
Thanks a lot.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Wicket Cart: open-source e-commerce wicket app

2008-08-29 Thread Korbinian Bachl - privat

Hello James,

I'm also quite interested into this, however I'm stuck in work at
moment, so don't have too much time.

2 things you really should consider:

- Brix! the CMS mentioned before, developed by 2 wicket-core devs and 
it would add all content functionality and house the cart, list etc;


- BmeCAT: you *really* want to have a look at the BMECat 2005 
definition; Its just an XML definition format but will show you what 
kind of information and details about products should be stored and at 
what way - just have a look at: http://www.bmecat.org/English/index.asp?


If you got any questions, feel free to ask!

Best,

Korbinian

PS: you also could have a look a osCommerce to see how you shouldn't do 
it :P


James Perry schrieb:

Thanks to the individuals who have both replied to the thread and
emailed me personally. I will get the ball rolling next week.

Cheers,
James.

On Thu, Aug 28, 2008 at 1:54 PM, Serkan Camurcuoglu
[EMAIL PROTECTED] wrote:

I have another idea for brix.. I believe that a portlet which displays these
brix tiles as portlets would be incredibly useful for portal developers,
because WYSIWYG content editing in portals is a very handy feature, and it's
missing in Jetspeed AFAIK.. For example, one could add an instance of this
portlet to a portal page, and in the edit (or edit-defaults) mode of the
portlet, he/she would select the tile that should be displayed by this
portlet fragment, and in the view mode the portlet would display the tile
content..



Patrick Angeles wrote:

James,

If you need any CMS functionality at all for your cart project, please
have
a look at:

http://brix-cms.googlecode.com/

For example, you could incorporate your cart panels as tiles inside of
Brix.


msc65jap wrote:


Is anyone interested in contributing to an open-source e-commerce
wicket engine? I was thinking of calling it WicketCart. I have written
a primitive version which serves as a good foundation to build upon.

I have a new client, a royal college, requiring an e-commerce web app
so just pondering the idea of WicketCart. If other developers are
interested in contributing then I will make it open-source. I have
written it so far using Spring and Hibernate but very open for it to
additionally be implemented for other frameworks.

If anyone wants specific details or wants to discuss it a bit more,
then feel free to email me.

Best,
James.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]








-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: wicket-contrib-tinymce problem

2008-08-29 Thread Korbinian Bachl - privat

AFAIK you should add the tinyMCEBehaviour to the Textarea, sth like this:

ta = new TextArea(field, model);
ta.setRequired(required);
ta.setLabel(new Model(label));
ta.setConvertEmptyInputStringToNull(false);
TinyMceBehavior tmb = new TinyMceBehavior(getAdvancedSettings());

Best,

Korbinian

btakacs schrieb:

Hi

If I try to add the TinyMCEPanel to my page it doesn't appear. If I try to
add parameters, and some extra marups, it throws the following exception:
WicketMessage: Markup of type 'html' for component
'com.myapp.wicket.ContentEditor' not found. Enable debug messages for
org.apache.wicket.util.resource to get a list of all filenames tried:
[Page class = com.myapp.wicket.ContentEditor, id = 3, version = 0]

html:
!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN

html
  head
title/title
link wicket:id='stylesheet'/
  /head
  body
  
  
wicket:extend

tinyMCE
center
test texarea2
textarea wicket:id=ta id=ta name=ta rows=30
columns=20test texarea/textarea
/center
/wicket:extend
  /body
/html


java:

public ContentEditor()  {
setModel(new CompoundPropertyModel(this));

TinyMCESettings settings=new

TinyMCESettings(TinyMCESettings.Theme.advanced);

add(new TinyMCEPanel(tinyMCE, settings));
add(new TextArea(ta, new Model(TEXT)));
}

Any tips?

Thanks:
   Bence


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Dynamically Making changes to Tree Node

2008-08-02 Thread Korbinian Bachl - privat

He is a core dev - just listen to him :P

ok, simple treeNode would be:

wicket:panel
IM A NODE
div wicket:id=content-/div
/wicket:pane

and Java:

class TreeNode extends Panel {

public TreeNode(String id, AnyOtherPossibleThingsYouNeed o) {

if(IWantADeeperNodeFromHere) {
add(new TreeNode(content));
}
else {
add(TheContenYouWantPanel(content));
}
}

}


as long as your IWantDeeperNodeFromHere is true you get a tree based 
upon this:


IM A NODE
div
IM A NODE
div
IM A NODE
div
   TheContentYouWant
/div
/div
/div

(case of 3 Nodes you get 3 stacked divs - place whatever you like; 
Wicket is all about OO so inheriting itself and recursive calls are no 
problem at all.


Best,

Korbinian

vishy_sb schrieb:

I am sorry that I have been really bothering you here but I just need to get
this working asap.

so from your reply are you suggesting that I should have a tree structure
like this:

Panel1
 --Panel2
 --Panel3

with an HTML markup like:

body
 wicket-panel
 div wicket:id=tree/div
/wicket-panel
/body

But when I am going to add the components to the tree, don't you think it
would look for the those panels in the mark up. So how do I put the panels
in the mark up??? Will something like this work:

body
 wicket-panel
 div wicket:id=tree/div
 div wicket:id=Panel1/div
 
 div wicket:id=Panel2/div

 div wicket:id=Panel3/div

/wicket-panel
/body


vishy



Matej Knopp-2 wrote:

You need to use panels. Every panel can have different markup. So you
will have a panel for every node type.

-Matej

On Fri, Aug 1, 2008 at 11:03 PM, vishy_sb [EMAIL PROTECTED]
wrote:

Any ideas about how to get this working



vishy_sb wrote:

Thanks for the quick reply Matej.

Well in my implementation I am using a CheckBoxTree example discussed in
the forum already
(http://www.nabble.com/Checkbox-tree-component-td13433102.html#a13439520).
and I am adding all the components in the addcomponents() method in the
CheckBoxIconPanel class. However since the HTML mark up that I can have
will always remain the same so I am not able to use different component
for different nodes. The code is shown below:

Java Code for the CheckBoxIconPanel class
protected void addComponents(final IModel model, final BaseTree tree) {
  final LimitViewerCheckBoxTree cbTree =
(LimitViewerCheckBoxTree) tree;
  LimitViewerCheckBoxTree.ICheckCallback callback = new
LimitViewerCheckBoxTree.ICheckCallback() {
  private static final long serialVersionUID = 1L;

  public void onUpdate(AjaxRequestTarget target) {
  onNodeCheckUpdated((TreeNode)
model.getObject(), cbTree, target);
  }
  };

  IModel dataModel = cbTree.newCheckBoxModel((TreeNode)
model.getObject());
  int level = (Integer)
((DefaultMutableTreeNode)model.getObject()).getLevel();

  if(level == 1){
  MarkupContainer cb = null;
  cb = cbTree.newCheckBox(checkbox, dataModel,
callback);
  ((CheckBox) cb).setVisible(false);
  add(cb);
  Component component =
newContentComponent(content, tree, model);
  add(component);
  limitPanel = new LimitPanel(limitPanel);
  add(limitPanel);
  limitPanel.setVisible(false);

  InstrumentLimitViewerPanel
instrumentLimitViewerPanel = new
InstrumentLimitViewerPanel(instrumentLimitViewerPanel, limitInputPanel
,limitViewerForm);
  add(instrumentLimitViewerPanel);
  instrumentLimitViewerPanel.setVisible(false);

  }
  if(level == 2){
  MarkupContainer cb = null;
  cb = cbTree.newCheckBox(checkbox, dataModel,
callback);

  add(cb);
  Component component =
newContentComponent(content, tree, model);
  add(component);
  limitPanel = new LimitPanel(limitPanel);
  add(limitPanel);

  InstrumentLimitViewerPanel
instrumentLimitViewerPanel = new
InstrumentLimitViewerPanel(instrumentLimitViewerPanel,limitInputPanel,
limitViewerForm);
  add(instrumentLimitViewerPanel);
 
instrumentLimitViewerPanel.setVisible(false);


  }
  if(level == 3){
  MarkupContainer cb = null;
  cb = cbTree.newCheckBox(checkbox, dataModel,
callback

Re: [ANN] Brix 1.0 beta1

2008-07-25 Thread Korbinian Bachl - privat

Jeremy,

please believe me and *don't* use either osCommerce or XTCommerce. Their 
code is just useless, they have no way of easy changing things and every 
release you will need to alter most of your provided code (there is no 
stable plugin system - they plan to do this for long now but havent been 
very successful yet).


The only promising one solution yet is IMHO magentocommerce ( 
http://www.magentocommerce.com/ ) but it suffers a bit from performance 
perspective (but they are just 1.0 - so there will be improvement here).


If you need a basement for some small shops you either want to go 
megantocommerce or maybe look at some rent solutions (even amazon has 
one that is not too bad) - but dont use the 2 osCommerce's (XTCommerce 
is more a fork, but still suffers from many things osCommerce has) - or 
take a look at brix, as you only would need some special tiles that fit 
your needs and could be shared among your shops mostly.


Best,

Korbinian


Jeremy Thomerson schrieb:

Igor,
  I'm curious about your use of it in ecommerce sites.  Several friends of
mine want small shops built for them so that they can sell some things
online.  Until this point, I've just been throwing together instances of
osCommerce [1] for them.  But, then, they need me to change page layouts,
etc.  I've been wishing there was an easy solution that rolled the two
together - give them a storefront, and they can edit their own pages
(without FTP / editing PHP - these are not developers by any stretch).
Something where they could edit page content with a WYSIWYG.

Of course, I could build this with Wicket, but can't afford the time right
now.  And then you have the Wicket / PHP binding which would be a pain, too.

Anyway - is there some open source ecommerce package that you bundle with
the CMS, or is the ecommerce part what your company does, and the CMS is the
open part?



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [ANN] Brix 1.0 beta1

2008-07-24 Thread Korbinian Bachl - privat

Hi Igor  Company!

nice to see your CMS nearly ready! I already had a quick look at it and 
there is one thing I'm not quite sure about: Is Brix thougt of giving a 
underlying space and then build a wicket-app on it or is it more a way 
to extend a existing wicket-app with the features of a CMS?


I mean I looked the images and read the wiki, and while 
http://code.google.com/p/brix-cms/wiki/Architecture shows it as more a 
new underlying layer in the features under 
http://code.google.com/p/brix-cms/wiki/Features its listed as Easy to 
embed into existing Wicket Web Applicatons  - which puzzles me a bit.


I mean, lets say you 2 things:

1. you want to build a new pet-shop (or cheese-shop in case of Eelco and 
Martinj ;) - would you start by using brix and put the rest on top of it?


2. you already have a pet-shop based on wicket but want to extend it 
with some informational area - could you just embed brix into it or 
would this mean some bigger changes to the rest of the pet-shop?


Best,

Korbinian

Igor Vaynberg schrieb:

we have released Brix 1.0 beta1 [1] yesterday. for those of you who do
not know what Brix is, it is an embeddable CMS for wicket apps based
on wicket (of course) and the jcr (jackrabbit). Brix is pretty much
feature-complete for 1.0, next we are going to focus on stabilizing it
for the 1.0 release. feel free to have a look, we are looking for
feedback.

[1] http://brix-cms.googlecode.com

-igor

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [ANN] Brix 1.0 beta1

2008-07-24 Thread Korbinian Bachl - privat

Hi Igor!

Igor Vaynberg schrieb:

On Thu, Jul 24, 2008 at 12:52 PM, Korbinian Bachl - privat
[EMAIL PROTECTED] wrote:

Hi Igor  Company!

nice to see your CMS nearly ready! I already had a quick look at it and
there is one thing I'm not quite sure about: Is Brix thougt of giving a
underlying space and then build a wicket-app on it or is it more a way to
extend a existing wicket-app with the features of a CMS?


brix is about cms functionality only, it is not a higher-level
wicket application framework.

it embeds in both directions: you can have pure wicket pages living
next to brix-managed cms pages, and you can also have wicket
components living inside brix pages via brix's concept of Tiles.


Sounds very good - can you also have brix-pages living in a 
wicket-page? (some kind of embedded part)





I mean, lets say you 2 things:

1. you want to build a new pet-shop (or cheese-shop in case of Eelco and
Martinj ;) - would you start by using brix and put the rest on top of it?


does your cheese shop require any cms functionality? 


its a special existing-just-to-ask-such-dumb-questions-one - so yes ;)


if you need an
admin to be able to change markup for your cheese shop pages via a cms
or add new pages to the website via a cms then i would build the
ecommerce part as a set of tiles and drop them into brix pages. this
is, indeed, the primary usecase for brix as my company is using it to
build ecommerce sites.


cool - sounds very interesting; I will definitely dig in.




2. you already have a pet-shop based on wicket but want to extend it with
some informational area - could you just embed brix into it or would this
mean some bigger changes to the rest of the pet-shop?


you can pretty much just drop brix in and map it to a subset of url space.


sounds very impressive - its hard to believe that Brix offers so much 
flexibility, so im quite impressed by now. Thanks for your fast response 
Igor!


Best,

Korbinian



-igor


Best,

Korbinian

Igor Vaynberg schrieb:

we have released Brix 1.0 beta1 [1] yesterday. for those of you who do
not know what Brix is, it is an embeddable CMS for wicket apps based
on wicket (of course) and the jcr (jackrabbit). Brix is pretty much
feature-complete for 1.0, next we are going to focus on stabilizing it
for the 1.0 release. feel free to have a look, we are looking for
feedback.

[1] http://brix-cms.googlecode.com

-igor

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



FactoryPattern + Forms/ Enclosures + Feedback

2008-04-15 Thread Korbinian Bachl - privat

Hello,

Ive got 2 problems,

1st;
I tried the FactoryPattern with form components like TextField and now
have the problem, that due to the recreation of the FormFields by the
Factory the inserted value into the model gets lost in case of a invalid
form submit (e.g: error in one field = all entered value is lost). I 
think this is because the Factory always generates a new one;


code is this (just 1 example):
ListIRapidFormPanelFactory flist = new 
ArrayListIRapidFormPanelFactory();

flist.add(new IRapidFormPanelFactory() {

public RapidFormBasePanel getFormPanel(String id) {
return new TextFieldRapidFormPanel(id, LABEL, 
NOTE, model.bind(field));

}
});

The model itself is a final one - how can I make sure that these 
formfields behave like they should (not loosing their input in case of 
valid errors)?



2nd;
how can I bind an wicket:enclosure to a feedbackform? I tried to 
override the isVisible()

of the feedback by

isVisibel() {
return anyError();
}

but that didnt work; What would the optimal code be to use it?


Best,

Korbinian

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Strange behavior of wicket-security libraries in netbeans

2008-04-15 Thread Korbinian Bachl - privat
AFAIK the packages have changed between the Versions, so NB cant find 
them (thats correct though); try a full recompile (the one with delete  
recompile) and you should get the wrong classes in the output; there hit 
the link to the classes and issue an Fix Imports via the right context 
menu, that'll do it;


Hope that helps,

Korbinian

Sergey Podatelev schrieb:

Hello Wicket people,

I'm experiencing a strange behavior of Netbeans (6.0.1) IDE working with
Wicket-Security components. Maybe this question is more Netbeans- than
Wicket-related, but I thought I'd better ask here first.

I have a BaseSecurePage class that implements ISecurePage.
Its constructor looks like this:

public BaseSecurePage() {
  super();
  setSecurityCheck(new ComponentSecurityCheck(this));
}

Wasp-0.1 and Swarm-0.1 were included in a library class Wicket-Security-0.1
in Netbeans IDE and everything was fine.
Once I created Wicket-Security-1.3, added Wasp-1.3 and Swarm-1.3 in it,
removed old Wicket-Security-0.1 and added the Wicket-Security-1.3 to the
project, strange thing had happened:

Netbeans now says it can't find symbol ComponentSecurityCheck(this).
Moreover, when I Ctrl+click the ComponentSecurityCheck(this), it takes me to
the sources (which I didn't import, just swarm/wasp-1.3.0 and
swarm/wasp-javadoc-1.3.0), and there in the sources of
ComponentSecurityCheck I can see Netbeans complaining about the fact that it
can't find Component class.

There's one good thing though -- it builds with no problems, but still I'd
like to fix somehow.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: FactoryPattern + Forms/ Enclosures + Feedback

2008-04-15 Thread Korbinian Bachl - privat

Follow-UP:

I solved the problem I had with the listView; it works as expected if 
you do a


.setReuseItems(true); to the ListView

However, the problem with the wicket enclose to a feedBackPanel still 
exists... this one wont work;




Korbinian Bachl - privat schrieb:

Hello,

Ive got 2 problems,

1st;
I tried the FactoryPattern with form components like TextField and now
have the problem, that due to the recreation of the FormFields by the
Factory the inserted value into the model gets lost in case of a invalid
form submit (e.g: error in one field = all entered value is lost). I 
think this is because the Factory always generates a new one;


code is this (just 1 example):
ListIRapidFormPanelFactory flist = new 
ArrayListIRapidFormPanelFactory();

flist.add(new IRapidFormPanelFactory() {

public RapidFormBasePanel getFormPanel(String id) {
return new TextFieldRapidFormPanel(id, LABEL, 
NOTE, model.bind(field));

}
});

The model itself is a final one - how can I make sure that these 
formfields behave like they should (not loosing their input in case of 
valid errors)?



2nd;
how can I bind an wicket:enclosure to a feedbackform? I tried to 
override the isVisible()

of the feedback by

isVisibel() {
return anyError();
}

but that didnt work; What would the optimal code be to use it?


Best,

Korbinian

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Removing the jsessionid for SEO

2008-04-14 Thread Korbinian Bachl - privat

Hi Rüdiger,

AFAIK this could lead to some punishment by google, as he browses the 
site multiple times using different agents and origin IPs and in case he 
sees different behaviours he thinks about cloaking/ prepared content and 
will act accordingly to it;


This is usually noticed after the regular google index refreshes that 
happen some times a year - you should keep an eye onto this;


Best,

Korbinian

Rüdiger Schulz schrieb:

Hello everybody,

I just want to add my 2 cents to this discussion.

At IndyPhone we too wanted to get rid of jesessionid-URLs in google's index.
Yeah, it would be nice if the google bot would be as clever as the one from
yahoo, and just remove them himself. But he doesn't.

So I implemented a Servlet-Filter which checks the user agent header for
google bot, and skips the url rewriting just for those clients. As this will
generate lots of new sessions, the filter invalidates the session right
after the request. Also, if a crawler is doing a request containing a
jsessionid (which he stored before the filter was implemented), he redirects
the crawler to the same URL, just without the jsessionid parameter. That
way, the index will be updated for those old URLs.

Now we have almost none of those URLs in google's index.

If anyone is interested in the code, I'd be willing to publish this. As it
is not wicket specific, I could share it with some generic servlet tools OS
project - is there something like that on apache or elsewhere?

But maybe Google is smarter by now, and it is not required anymore?



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Removing the jsessionid for SEO

2008-04-14 Thread Korbinian Bachl - privat


Yeah, its quite a shame that google doesnt open source their logic ;)

would be nice if you could give us the code however, so we could have a 
look at it :)


Rüdiger Schulz schrieb:

Hm, SEO is really a little bit like black science sometimes *g*

This (german) article states, that SID cloaking would be ok for google:
http://www.trafficmaxx.de/blog/google/gutes-cloaking-schlechtes-cloaking

Some more googling, and here someone seems to confirm this:
http://www.webmasterworld.com/cloaking/3201743.htm
 I was actually at SMX West and Matt Cutts specifically sa*id* that this is
OK

All I can say in our case is that I added this filter several months ago,
and I can't see any negative effects so far.


greetings,

Rüdiger


2008/4/14, Korbinian Bachl - privat [EMAIL PROTECTED]:

Hi Rüdiger,

AFAIK this could lead to some punishment by google, as he browses the site
multiple times using different agents and origin IPs and in case he sees
different behaviours he thinks about cloaking/ prepared content and will act
accordingly to it;

This is usually noticed after the regular google index refreshes that
happen some times a year - you should keep an eye onto this;

Best,

Korbinian

Rüdiger Schulz schrieb:


Hello everybody,

I just want to add my 2 cents to this discussion.

At IndyPhone we too wanted to get rid of jesessionid-URLs in google's
index.
Yeah, it would be nice if the google bot would be as clever as the one
from
yahoo, and just remove them himself. But he doesn't.

So I implemented a Servlet-Filter which checks the user agent header for
google bot, and skips the url rewriting just for those clients. As this
will
generate lots of new sessions, the filter invalidates the session right
after the request. Also, if a crawler is doing a request containing a
jsessionid (which he stored before the filter was implemented), he
redirects
the crawler to the same URL, just without the jsessionid parameter. That
way, the index will be updated for those old URLs.

Now we have almost none of those URLs in google's index.

If anyone is interested in the code, I'd be willing to publish this. As
it
is not wicket specific, I could share it with some generic servlet tools
OS
project - is there something like that on apache or elsewhere?

But maybe Google is smarter by now, and it is not required anymore?



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Removing the jsessionid for SEO

2008-04-13 Thread Korbinian Bachl - privat

Hi Jeremy,

youre absolutely right; Nearly all spiders today can handle the default 
sessions, may it be Java, PHP, .Net etc. ; those guys at google and 
mircosoft arent beginners!


And its also important to understand that a URL with wicket in fact is 
to a part nothing more than a plain string that can be manipulated the 
way you like. Wicket (a.k.a. your page) needs 1 or maybe 2 parameters - 
and it has to know how to find them, the rest of the URL can be messed 
with so it fits to your needs as long as you can garantue the unique 
behaviour of content-to-URL so you dont get marked as duplicate content 
spammer;


Best,


Korbinian

Jeremy Thomerson schrieb:

If I understood you correctly, the first page is bookmarkable, the second is
a wicket URL, tied to the session.  That'd be bad for SEO - search engines
couldn't see page 2, or they would, but the URL is tied to their session, so
even if a user visited that URL, they wouldn't get that page.  This means
that any content past page one is unreachable from a search engine.  I had
another thread going about a problem I was having with sessions, which
turned up some interesting data.  I have over 31,000 pages indexed by
Google, they are visiting bookmarkable URLS that DO have jsessionid in them,
but only two pages in their index have a jsessionid in them.  They obviously
handle jsessionid fine these days, or at least they are for me.

If you need all of your content to be indexed, you really need to concern
yourself with making every page bookmarkable.  Take a look at Korbinian's
comments above - it looks like he is doing it well.  Or have a look at my
comments or my site http://www.texashuntfish.com.

You should specifically look at http://www.texashuntfish.com/thf/app/forum -
I am using DataTable's there, but every link (including sort, etc) is
bookmarkable.  So, you may go into a category and get an URL like
http://www.texashuntfish.com/thf/app/forum/cat-53/Let-s-Talk-Texas-Outdoors-Classifieds-Buy-Sell-Tradeor
http://www.texashuntfish.com/thf/app/forum/18395/Winchester-22-model-61-for-sell.
The cat-53 or the /18395/ are the only things that matters.  I have a
strategy mounted on /forum that will take the first parameter and use it
to decode what kind of page is being requested - a category page, or a
specific post, etc.  Everything after that first parameter is specifically
for SEO.

Putting good keywords in the URL like that, and putting the subject of every
article / calendar event / news or forum thread is what shot us up in the
rankings of multiple search engines.  Migrating the app from what it was
before somerandomscript.cfm?foo=123123bar=12321 to this made a HUGE
difference.  It wasn't without work - Wicket is super easy if you don't have
to worry about URLs - but they also make it easy to totally customize all of
your URLs, too.

Shoot back any questions you have.  Hopefully I can share more information,
or even some code later.  Maybe Korbinian and I should put some information
on the Wiki about pretty URLs and SEO.

Jeremy

On Fri, Apr 4, 2008 at 1:09 PM, Dan Kaplan [EMAIL PROTECTED] wrote:


Thanks,

That's kinda the route I've already taken.  On my site, www.startfound.com
,
if you click on any company to see more details it goes to a bookmarkable
page.  Same with any tag.  Maybe if I've already got that much, I
shouldn't
concern myself with the fact that page 2 of my list is not bookmarkable
but
reachable by google bot.  Or maybe I should just add a noindex meta tag on
every page that's not page 1.

It'd be kinda ridiculous to require login to see past page 1.  That may be
good for SEO but it'll drive people away.


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Jeremy Thomerson
Sent: Thursday, April 03, 2008 10:00 PM
To: users@wicket.apache.org
Subject: Re: Removing the jsessionid for SEO

I've been building a community-driven hunting and fishing site in Texas
for
the past year and a half.  Since I have converted it to Wicket from
ColdFusion, our search engine rankings have gone WAY UP.  That's right,
we're on the first page for tons of searches.  Search for texas

hunting

-
we're second under only the Texas Parks and Wildlife Association.

How?  With Wicket?  Yes - it requires a little more work.  What I do is
that
for any link that I want Google to be able to follow, I have a subclass

of

Link specific to that.  For instance, ViewThreadLink, which takes the ID
for
the link and a model (detachable) of the thread.  Then I mount an
IRequestTargetUrlCodingStrategy for each big category of things in my
webapp.  I've made several strategies that I use over and over, just
giving
them a different mount path and a different parameter to tell it what

kind

of article, etc, that it will match to.  This is made easier because

over

75% of the objects in our site are all similar enough that the extend

from

a
base class that provides the basic functionality for an article / thread

/

etc that has

Re: Shared resources with parameters?

2008-04-13 Thread Korbinian Bachl - privat

Hi Erik,

you might want to use IndexedPageParams, so you could do:

mount(/myPath, myForwardClass.class); in init;

the parameter with index 0 is the first one, the index 1 is second and 
so on, delimiteds are the ones by /


eg:

myapp.com/myPath/param0/param1/param2 ... and so on;

alternatively you can use 1 named param (here example) and have the real 
URLs be manipulated by replacing each / to some kind of letter that 
doesnt exist in your target-scheme, eg: / - _


so you get myapp.com/myPath/example/mytarget_myfile.ending

- your param example then holds mytarget_myfile.ending wich needs 
to be rechanged then;


the page itself might hold a simple Label that displays the content 
based on the params;


Hope that helps to get started,

Best,

Korbinian

Erik van Oosten schrieb:

Hi,

I am looking for a way to serve many static images. It is important that
I do not have to separately register them (as with SharedResources, as I
understood) as there about 20.000 to 50.000 of them, and the set changes
continuously.

The most obvious thing that comes to mind is a static resource that
takes parameters that are extracted from the URL (similar to Page). But
I could not find such a thing.

I am now considering implementing a servlet, but I'd rather stay within
the framework.

Regards,
Erik.

--
Erik van Oosten
http://day-to-day-stuff.blogspot.com/


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: @SpringBean in init

2008-04-08 Thread Korbinian Bachl - privat

Hi Mathias,

in short: you cant;

the @SpringBean injection is usually done before the class is really 
created so at a time wicket and spring aren't registered yet;


What you could do (not 100% sure) would be to call a simple proxy-pojo 
that gets you the data (even maybe a LoadableDetachable one?) during 
startup - so the firs request to @SpringBean is done after the creation 
and initalisation of the application class (and the line with the 
SpringComponentInjector).


Maybe it could also try to use your needed bean without the spring call 
but instantiate it directly?


Best,

Korbinian

Mathias P.W Nilsson schrieb:

Hi!

I have extended the SpringWebApplication and the init method looks like

addComponentInstantiationListener(new SpringComponentInjector(this));


I want to access my @SpringBean in the init method but it fails. How can I
do this? I need to cache
all users from a webservice in application startup.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: localizer and variables

2008-04-08 Thread Korbinian Bachl - privat

Hi,

 How can I use this in my wicket page? I have looked at getLocalizer() but
 there is no were to set the name variable. How can I use this in wicket?

you could start using the search function on the mailinglist or browisng 
the wicket wiki as we had this question just 23 hours ago


http://cwiki.apache.org/WICKET/general-i18n-in-wicket.html

shows you how to use it;

Regards,

Korbinian


Mathias P.W Nilsson schrieb:

Hi!

In my property file i can do this

email.subject=Hi {name}! Here is your confirmation.

How can I use this in my wicket page? I have looked at getLocalizer() but
there is no were to set the name variable. How can I use this in wicket?


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: @SpringBean in init

2008-04-08 Thread Korbinian Bachl - privat
Ah, shame on me! youre right - in case of extending SpringWebApplication 
it works; in case of ext. WebApplication it wont work - thats what I 
mixed up - but only if not using @SpringBean but the get direct;


thx for info Daniel,

Regards,

Korbinian

Daniel Stoch schrieb:

Hi,

I think he can :).
SpringWebApplication is not a Component so this:
addComponentInstantiationListener(new SpringComponentInjector(this));
doesn't matter here.

Before you want to use this @SpringBean in your init() method you should call:
InjectorHolder.getInjector().inject(this);

But then you should use AnnotSpringWebApplication or manually setup
injector in InjectorHolder:
InjectorHolder.setInjector(new AnnotSpringInjector(getSpringContextLocator()));

--
Daniel

On Tue, Apr 8, 2008 at 10:19 AM, Korbinian Bachl - privat
[EMAIL PROTECTED] wrote:

Hi Mathias,

 in short: you cant;

 the @SpringBean injection is usually done before the class is really
created so at a time wicket and spring aren't registered yet;

 What you could do (not 100% sure) would be to call a simple proxy-pojo that
gets you the data (even maybe a LoadableDetachable one?) during startup - so
the firs request to @SpringBean is done after the creation and initalisation
of the application class (and the line with the SpringComponentInjector).

 Maybe it could also try to use your needed bean without the spring call but
instantiate it directly?

 Best,

 Korbinian

 Mathias P.W Nilsson schrieb:



Hi!

I have extended the SpringWebApplication and the init method looks like

addComponentInstantiationListener(new SpringComponentInjector(this));


I want to access my @SpringBean in the init method but it fails. How can I
do this? I need to cache
all users from a webservice in application startup.




 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: localizer and variables

2008-04-08 Thread Korbinian Bachl - privat
well, in your case its not an easy string, but one with 2 parameters - 
in case you have a plain string you can also use the wicket:message 
method that is quite better suited for this (e.g: 2 message blocks - 1 
before, 1 after and in middle a simple label that spews out the user data);


if you need many hard facts inserted into many strings holding many 
parameters it might be easier to supply different language-markups (aka: 
i8n of whole page in wiki) all over (however, im not sure how your email 
thing works under the hood);


here in your case I could imagine that having several

mailcontent.html
mailcontent_en.html


might be easier so you just put in the hard facts using simple label; if 
its just this one line however your solution is best IMHO;


Best,

Korbinian


Mathias P.W Nilsson schrieb:

This is what I got so far

 new StringResourceModel( email.forgotlogin.body , Login.this, new
Model(), new Object[]{  user.getUserName(), user.getPassWord() } 
).getString();


must I really do this for every string?


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Maven multi module app using wicket spring hibernate

2008-04-07 Thread Korbinian Bachl - privat
you need to assign the correct application class (fully path!) derived 
from WebApplication


-
!--param-nameapplicationClassName/param-name
param-valueHelloWorldApplication/param-value--

is outcommented and not set, correct this;

also remember to call

addComponentInstantiationListener(new SpringComponentInjector(this));

in your application's init() function

Best

Korbinian

pxk schrieb:

Hello all,

I trying to configure a maven multi module app which uses wicket spring and
hibernate and unfortunately i'm stuck. I know that this may be the wrong
forum to post but since the exception is more relative to wicket i thought i
should try here. Anyway enough nagging.

The web.xml is this one:

?xml version=1.0 encoding=UTF-8?
web-app id=simple-webapp version=2.4
xmlns=http://java.sun.com/xml/ns/j2ee;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee 
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;

display-nameSimple Web Application/display-name
context-param
param-namecontextConfigLocation/param-name
param-value
classpath:applicationContext-weather.xml
classpath:applicationContext-persist.xml
/param-value
/context-param
context-param
param-namelog4jConfigLocation/param-name
param-value/WEB-INF/log4j.properties/param-value
/context-param
listener
   
listener-classorg.springframework.web.context.ContextLoaderListener/listener-class

/listener
listener
   
listener-classorg.springframework.web.util.Log4jConfigListener/listener-class

/listener
servlet
servlet-nameWicketSpring/servlet-name
   
servlet-classorg.apache.wicket.protocol.http.WicketServlet/servlet-class

init-param
param-nameapplicationFactoryClassName/param-name
   
param-valueorg.apache.wicket.spring.SpringWebApplicationFactory/param-value

!--param-nameapplicationClassName/param-name
param-valueHelloWorldApplication/param-value--
/init-param
/servlet
servlet-mapping
servlet-nameWicketSpring/servlet-name
url-pattern/*/url-pattern
/servlet-mapping
/web-app

The spring application context is this one:

?xml version=1.0 encoding=UTF-8?
!DOCTYPE beans PUBLIC -//SPRING//DTD BEAN//EN
http://www.springframework.org/dtd/spring-beans.dtd;

beans  
 bean id=weatherController 
   class=com.sonatype.maven.web.WeatherController

   property name=weatherService ref=weatherService/
   property name=weatherDAO ref=weatherDAO/
 /bean

 bean id=historyController 
   class=com.sonatype.maven.web.HistoryController

   property name=weatherDAO ref=weatherDAO/
   property name=locationDAO ref=locationDAO/
 /bean

 !-- you can have more than one handler defined --




 bean id=velocityConfig
class=org.springframework.web.servlet.view.velocity.VelocityConfigurer
   property name=resourceLoaderPath value=/WEB-INF/vm//
 /bean

 bean id=viewResolver
class=org.springframework.web.servlet.view.velocity.VelocityViewResolver
   property name=cache value=true/
   property name=prefix value=/
   property name=suffix value=.vm/
   property name=exposeSpringMacroHelpers value=true/
 /bean
 
 !-- setup wicket application --

 bean id=wicketApplication
class=com.sonatype.maven.web.WicketApplication/
/beans

and the exception which has ruined my week is this one:

javax.servlet.ServletException: Servlet.init() for servlet WicketSpring
threw exception

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)

org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
java.lang.Thread.run(Thread.java:595)


root cause 


java.lang.IllegalStateException: bean of type
[org.apache.wicket.protocol.http.WebApplication] not found

org.apache.wicket.spring.SpringWebApplicationFactory.createApplication(SpringWebApplicationFactory.java:107)

org.apache.wicket.spring.SpringWebApplicationFactory.createApplication(SpringWebApplicationFactory.java:86)
org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:503)

org.apache.wicket.protocol.http.WicketServlet.init(WicketServlet.java:188)
javax.servlet.GenericServlet.init(GenericServlet.java:212)

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)

org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process

Re: wicket, spring and aop

2008-04-04 Thread Korbinian Bachl - privat

Hello,

im quite new to spring, but afaik you cant have spring manipulating 
wicket itself; however you could create a spring based proxy-class for 
those purposes and have it used by @SpringBean(name=name) where you 
put the logic in it;


maybe its possible to have a wicket-PageClass be also a managed by 
spring but im not sure if this works...


Is spring spewing out its lines at your current app startup? (if not: 
http://cwiki.apache.org/WICKET/spring.html helds details for this)


Best,

Korbinian

[EMAIL PROTECTED] schrieb:

Hi there,

I'm just trying to integrate wicket 1.3.2, spring 2.0 and aspect oriented 
programming (spring-aop). I've an aspect for instrumenting a dao provider that 
is defined as follow:

@Aspect()
public class DaoProviderInstrumentation {

@Around(execution(* *(..))  target(org.mypackage.dao.DaoProvider))

public Object executeFinder(ProceedingJoinPoint pjp) throws Throwable {
   // stuff not important for now
}

A dao provider is intended to be an interface similar to the following:

public interface Daos extends DaoProvider{

 public AnimalDAO getAnimalDao();
}

where AnimalDAO is another interface with methods to retrieve animals. The 
instrumentation should get executed when i'm trying to access to the getAnimalDao() and 
it should create a proxy of animalDAO that exposes finder methods to retrieve 
animals using some conventions defined by name of the methods.

The instrumentation isn't executed. I know wicket is not managed but i like the 
wicket framework and it would be great to use integrate it but i don't know if 
it is possible and what is the correct way of doing it.
I've tried to use the SpringWebApplication in the wicket-spring package  but i 
don't know how to use it to integrate the instrumentation.

I don't need to inject components using the @SpringBean annotation.

Thanks for your time,


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Removing the jsessionid for SEO

2008-04-04 Thread Korbinian Bachl - privat

Hi Jeremy,
Hi Dan,

for a project long ago I had the trail of making a product-browser SEO 
friendly; I used a plain PagingNavigator at first, and then extended it 
to have it to use the IndexedUrlPageParameters; this allowed me to put 
anything into the path to have a nice URL;


the key here is to look at the URL and treat it as a unique resource 
line; so I did it sth like that:


mountName{(/anyparams)}*{/pageNumber}

this gave me the possiblity to have a browsing URL where I could put 
anything in while the rest still works; remember also that the URL for 
SEO may (!) change in future, so go for maximum flexible designs, up you 
see a resource, then any params to feed the spider (there may be 0 to 
over 10) and a hook at the end that has to be a number (where 0 is 
pretended in case nothing at the end is a number);


so I was able to finally let the spider see things like:

e.g:
product/brand_New/BestItemOfTheWorld
product/specialCategory/moreSpecial/moreInfo/2
product/spcialCategory/moreSpecail/brandName/moreDetails/1

etc.

now, you wonder if I feed the spider with this how do I know where to 
end?  the key was that the part between got merged internally and was 
specified by the application so we overcome the problem of:


a, recreating the view that should be the right one (here: we had a 
tree-like behaviour for our products where we could compare to the tree 
in database)


b, duplicate content (very bad! - never, ever have a spider find the 
same content (or very very similar!) under more than one URL !)


this strategy did very well; Today with wicket 1.3 I would go nearly the 
same but stick to the HybridURL scheme, and maybe try to be even more 
flexible with URL scheme by having the basic schemes and resources 
specified in persistence (URL-hook, initialState); Remember it is 
important to feed same resources under same URLs out, else the spider 
will think you might try to fake content for him;


The jsessionID is sth. I dont care about anymore - its 2008, spiders 
knows it and the usual visitor/ surfer has no clue how to different a 
URL from an emailadress; however many people have turned cookies + JS 
off because of security fears - in turn the JSessionID will concern only 
few people who know about some details but hamper many people that have 
no knowledge of the internet and its techniques all over - IMHO.


@Jeremy: your aproach also seems interesting to me, can you give more 
details about it?


Best,

Korbinian

Jeremy Thomerson schrieb:




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: YUI integration?

2008-03-03 Thread Korbinian Bachl - privat

Hello,

im currently the only one on it, and I have very short time currently.

wicketstuff-YUI is currently at 2.4.1, but 2.5 is a problem as they had 
some api-changes, which means it isnt a drop in replacement. The trouble 
is IMHO that they (YUI) havent made their homework first by completing 
the YUI Loader to final (it still has bad quirks :( - for example in 
YuiEditor its ok to use it only if you dont need the picture adding 
dialog, as the necessary CSS is missing... ) wich means updating to 2.5 
= changing all JS of all components to new one;


If you have some time however you may feel free to go for it. But please 
note that you currently cant use YuiLoader because of the problems 
mentioned above.


Best,

Korbinian




Edward Yakop schrieb:

On Mon, Mar 3, 2008 at 5:19 AM, Igor Vaynberg [EMAIL PROTECTED] wrote:

there are a whole bunch of js lib integrations in wicket-stuff


Is it possible to update the wicket-contrib-yui to version 2.5.0?

Regards,
Edward Yakop

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: get Form information after submit

2008-03-01 Thread Korbinian Bachl - privat

do you have the necessary setters/ getters for teststring???

Regards,

Korbinian

taygolf schrieb:

teststring in onSubmit is always null no matter what I have entered in the
textfield. 


Any help with this would be most appreciated.

Thanks

T

igor.vaynberg wrote:

what about it didnt work? it looks fine...

-igor


On Thu, Feb 28, 2008 at 12:43 PM, taygolf [EMAIL PROTECTED]
wrote:

 hey igor thanks for all the help I really am learning a lot here.

 I am having an issue forwarding the model tp my textfiled in my panel
and I
 wanted to show you my code and see what you thought the issue is. I am
sure
 it is something simple I have overlooked.

 Template.java
 public class Template extends WebPage {
 private String teststring;
 Form form = new Form(myform) {
protected void onSubmit() {
callDatabase(teststring);//this is always coming back
null and I am not
 sure why.
};
 };
 form.setMarkupId(myform);
 form.setOutputMarkupId(true);
 add(form);
 form.add(new FeedbackPanel(feedback));
 form.add(new TextFieldPanel(textfield, new PropertyModel(this,
 teststring)));
 }


 Template.html
 body
form wicket:id=myform
  all feedback messages go here!
  TextFieldPanel go here
/form
 /body

 TextFieldPanel.java

 public TextFieldPanel(String id, PropertyModel pm) {
  super(id, pm);
  add(new RequiredTextField(textField1, pm));
 }


 TextFieldPanel.html
 wicket:panel
 input wicket:id=textField1 type=text/
 /wicket:panel


 Now I was thinking that since I sent the PropertyModel to the
TextFieldPanel
 it should work but it did not. Is there an inheritance that i need to do
to
 get this to work? The goal here is to create a bunch of textFields on
the
 fly but first I would like to get this working so I know what I am doing
 hince the simple example of my code.

 Thanks again for the help



 T


 igor.vaynberg wrote:
 
  no, it wont change, just have the panel forward the model to the
  textfield.
 
  -igor
 
 
  On Wed, Feb 27, 2008 at 1:50 PM, taygolf [EMAIL PROTECTED]
wrote:
 
   Thanks igor I really appreciate the help. My code was really close
but I
  was
   not creating:
 
  private object selection1;
private object selection2;
 
   which was giving me my issues of getting the object in the onSubmit
   override. I do not know why I did not see something that simple I
think
  I
   was just blocked.
 
   Will the code change at all if the textfield on page 2 is created in
  nested
   panels. Since I am creating my form on the fly the textfield will be
in
  a
   panel nested in a panel. I might be able to change my code to allow
just
  one
   panel but I am not sure yet.
 
   Thanks again
 
   T
 
 
 
   igor.vaynberg wrote:
   
class page1 {
  private object selection1;
  private object selection2;
   
  public page1() {
  form form=new form(form) {
 onsubmit() { setresponsepage(new
  page2(selection1,selection2)); }
  }
  form.add(new dropdownchoice(s1, new propertymodel(this,
selection1), ...));
  form.add(new dropdownchoice(s2, new propertymodel(this,
selection2), ...));
  }
}
   
class page2 {
   private final object selection1;
   private final object selection2;
   private final String text;
   
   public page2(object selection1, object selection2) {
  this.selection1=selection1; this.selection2=selection2;
  form=new form(form) {
  onsubmit() {
  sendemails(selection1,selection2,text);
  savetodb(selection1,selection2,text);
   setresponsepage(donepage.class);
   }
   }
   form.add(new textfield(tf, new
propertymodel(this,text)));
 }
}
   
-igor
   
On Wed, Feb 27, 2008 at 11:16 AM, taygolf
[EMAIL PROTECTED]
wrote:
   
 yes all of my experiance is in JSP so I guess I am just confused
  about
how
 forms work in wicket compared to JSP.  Maybe you can help me
  understand
and
 suggest a way to accomplish what I am looking to do.
   
 I have a form that takes in 2 dropdown chioces. When selected
these
 dropdownchoices are set to session variables. I then set the
  response
page
 to a new page with a form. that form is created off of a query
based
  on
what
 was selected in the 2 dropdown choices. I have all of this
working
today.
   
 Now when the form is filled out I want to save the information
to
  the
 database, make a few other calls to push the data to outside
applications
 and databases and send emails and things like that. Then I
simply
  want
to
 display that the form was submitted properly.
   
 There is no need to see the form once it is submitted so that is
why
  I
want
 to push it to another page but if I can override onSubmit to
insert
  the
data
 in the database then all I would have to do is set

WicketWebBeans

2008-01-06 Thread Korbinian Bachl

Hi,

i just wanted to have a look at it but im somehow stuck.

First I wanted to get it from src so I checked out the 
wicketwebbeans-examples from trunk and did:


mvn install

error:

GroupId: net.sourceforge.wicketwebbeans.parent
ArtifactId: WicketWebBeans-parent
Version: 1.0-SNAPSHOT

Reason: Unable to download the artifact from any repository


net.sourceforge.wicketwebbeans.parent:WicketWebBeans-parent:pom:1.0-SNAPSHOT

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  javax.jdo.snapshots (http://www.jpox.org/downloads/maven-nightly)

so, as you dont specify the correct repo in the pom.xml, wich one holds it?


Then i downloaded the 1.02rc from Sourforge (the examples.war) and 
loaded it into tomacat, but when opening the root of it 
127.0.0.1:8080/wicketwebbeans-examples/ i get a 404error - so whats the 
correct deeplink? And why is there no redirect to it installed?


regards,

Korbinian


PS: both examples (the 1.3 wicket and the 1.2.6) also spew out an error 
saying that no log4j config file is existing





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: MyWebApplication, SpringWebApplication + AuthenticatedWebApplication

2008-01-03 Thread Korbinian Bachl

Hi Dan,

I know the wiki - but this somehow confuses me... in the Wicket-Examples 
all Springapps are extending SpringWebApplication - and that file has 
more than just a line in the init()... -


No If I look at the SpringWebApplication I doubt that they would provide 
all those lines in it if a simple line in the init() would be enough?


I mean if I just do:
e.g:
 addComponentInstantiationListener(new SpringComponentInjector(this));

like you said why are they doing all this then in the SpringWebApplication

e.g:
public abstract class SpringWebApplication extends WebApplication
implements
ApplicationContextAware
{
private ApplicationContext applicationContext;

/**
 * Singleton instance of spring application context locator
 */
	private final static ISpringContextLocator contextLocator = new 
ISpringContextLocator()

{

public ApplicationContext getSpringContext()
{
Application app = Application.get();
return 
((SpringWebApplication)app).internalGetApplicationContext();
}
};
.
---

as well as more things - arent this needed?

Best,

Korbinian


Dan Kaplan schrieb:

The wiki has a section on spring integration.  You put a line in your app's
init() method to accomplish this.  It should be easy to find.

-Original Message-
From: Korbinian Bachl [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 02, 2008 1:44 PM

To: users@wicket.apache.org
Subject: MyWebApplication, SpringWebApplication +
AuthenticatedWebApplication

Hi,

usually my WebApp is based on Wicket-Auth-Roles, so I do:

MyWebApp extends AuthenticatedWebApplication {


Lately I played around with spring 2.5 a bit and so used

MyWebApp extends SpringWebApplication {

but how can I now integrate a SpringWebApplication to use Wicket-Auth-Roles?

The only way I currently see is to copy'n paste the content of the 
SpringWebApplication into MyWebApp and let it extend 
AuthenticatedWebApplication - but copy'n paste is not my preferable way 
however...


Any ideas?

Best,


Korbinian

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



MyWebApplication, SpringWebApplication + AuthenticatedWebApplication

2008-01-02 Thread Korbinian Bachl

Hi,

usually my WebApp is based on Wicket-Auth-Roles, so I do:

MyWebApp extends AuthenticatedWebApplication {


Lately I played around with spring 2.5 a bit and so used

MyWebApp extends SpringWebApplication {

but how can I now integrate a SpringWebApplication to use Wicket-Auth-Roles?

The only way I currently see is to copy'n paste the content of the 
SpringWebApplication into MyWebApp and let it extend 
AuthenticatedWebApplication - but copy'n paste is not my preferable way 
however...


Any ideas?

Best,


Korbinian

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Wicket + Spring 2.5

2007-12-15 Thread Korbinian Bachl

Hi,

im currently using ANT + IDE (EAR having EJBapp + WEBapp) to get my 
wicket apps started, but somehow I looked at the new spring 2.5 and it 
seems interesting to me (same possibilities but no big appserver 
needed)... can anyone post a example app or structure to me where I can 
see how to plug wicket + spring 2.5 together? (or a Maven2 Archetype for 
it?)


I mean, where do you stere there? first a spring 2.5 App and then put 
wicket in? or wicket first and then spring in?... sorry for the noobish 
question but I never used spring before.


Best,

Korbinian

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to secure passwords?

2007-12-03 Thread Korbinian Bachl
This is nothing about wicket - its about base security. MD5 is a 
hash-algorithm (see: http://en.wikipedia.org/wiki/Md5) which is no more 
secure (flaw found 1996) as there are tables to reverse given md5 (from 
2003 on) to a valid input


if you need security youre best with SHA at the moment, that has a 
greater length than the 128 Bit of MD5 and therefore more non-collision 
space - have a look here: http://en.wikipedia.org/wiki/SHA_hash_functions


the implementation is available in java itself have a look at these 
examples here:


http://mindprod.com/jgloss/sha1.html
http://o9y.net/archives/2005/11/30/java-string-to-md5-hash/

Best,

Korbinian

Pills schrieb:

Hello,

I've a little question with wicket: I would like to hash my users' passwords
(with md5) to make them unreadable for a human. And I also would like to
hash them before sending them through the network (to avoid the biggest part
of security issues).

Is there a way to achieve this?

Thank you ;)


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to secure passwords?

2007-12-03 Thread Korbinian Bachl


Pills schrieb:


Korbinian Bachl wrote:
This is nothing about wicket - its about base security. MD5 is a 
hash-algorithm (see: http://en.wikipedia.org/wiki/Md5) which is no more 
secure (flaw found 1996) as there are tables to reverse given md5 (from 
2003 on) to a valid input




thank you for your answers. I know that MD5 isn't much secure, but it
doesn't matter (I just want to obfuscate them, to prevent an admin to get a
clear password from his admin console). But I agree, SHA may be better...


to get a wanted md5 collision requires a person that uses a rainbow 
table under 1h time by a successrate at about 99,9% - 
http://www.antsight.com/zsl/rainbowcrack/




I guessed there was a wicket way to 1) crypt some data before sending them
out of the client's browser (so it doesn't travel in clear) 2) compare it on
the server side with the required hashed password.


you want to use SSL (TLS now called) for this! - go to a banklogin and 
you see changing the http://www.mybank.com to https://www.mybank.com


see http://en.wikipedia.org/wiki/Transport_Layer_Security for a overview




I know how to write the crypto algorithm... I just don't know the best way
to integrate it into wicket. However, I saw some interface on Wicket (like
ICrypt) and guessed there is a way to use it well...


1. there are under 100 people on this planet that know how to write a 
secure crapto algorithm - and believe me that we two arent anywhere near 
them :)


2. AFAIK the ICrypt is good for obscuring the URL itself - not for the 
content (but im not sure on this)




Thank you for your interest ;)


youre welcome,

Korbinian

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



  1   2   >