Modal Window not opening the second time

2008-04-24 Thread Marieke Vandamme

Hello, 

i'm having problems with the modal window. It shows up fine when I click my
link the first time, but after closing the window with the 'X', it won't
open again.
I don't know if I'm using it wrong or if it's a bug. 
Any help is welcome ! thanks. Marieke.

My code :
public class TestModalWindow extends WebPage {

public TestModalWindow() {
final ModalWindow modal = new ModalWindow("dataChooser");
add(modal);
final MyChooser myChooser = new MyChooser(modal);
modal.setPageCreator(new ModalWindow.PageCreator() {

public Page createPage() {
return myChooser;
}
});

 add(new AjaxLink("lnkOpen") {

public void onClick(AjaxRequestTarget target) {
myChooser.reload(target);
}
});
}

public class MyChooser extends WebPage {

private ModalWindow window;

public MyChooser(ModalWindow w) {
this.window = w;
}

public void reload(AjaxRequestTarget target) {
this.window.show(target);
}
}
}
-- 
View this message in context: 
http://www.nabble.com/Modal-Window-not-opening-the-second-time-tp16850180p16850180.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Modal Window not opening the second time

2008-04-28 Thread Marieke Vandamme

Hello, 

can't anyone help me with this problem?
If I need to code it differently, please tell me.
Thanks !!


Marieke Vandamme wrote:
> 
> Hello, 
> 
> i'm having problems with the modal window. It shows up fine when I click
> my link the first time, but after closing the window with the 'X', it
> won't open again.
> I don't know if I'm using it wrong or if it's a bug. 
> Any help is welcome ! thanks. Marieke.
> 
> My code :
> public class TestModalWindow extends WebPage {
> 
> public TestModalWindow() {
> final ModalWindow modal = new ModalWindow("dataChooser");
> add(modal);
> final MyChooser myChooser = new MyChooser(modal);
> modal.setPageCreator(new ModalWindow.PageCreator() {
> 
> public Page createPage() {
> return myChooser;
> }
> });
> 
>  add(new AjaxLink("lnkOpen") {
> 
> public void onClick(AjaxRequestTarget target) {
> myChooser.reload(target);
> }
> });
> }
> 
> public class MyChooser extends WebPage {
> 
> private ModalWindow window;
> 
> public MyChooser(ModalWindow w) {
> this.window = w;
> }
> 
> public void reload(AjaxRequestTarget target) {
> this.window.show(target);
> }
> }
> }
> 

-- 
View this message in context: 
http://www.nabble.com/Modal-Window-not-opening-the-second-time-tp16850180p16935903.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Modal Window not opening the second time

2008-04-28 Thread Marieke Vandamme

Hello, 
Thanks for the reply. 
But isn't it possible to reuse the modalwindow? Because in my application
the window needs to be opened many times, and I thought it would be better
to reuse the same window multiple times. Or has that no affect to the
memory-usage?


Cristi Manole wrote:
> 
> I am 99% certain that if you change your code from :
> 
> *final MyChooser myChooser = new MyChooser(modal);*
> *modal.setPageCreator(new ModalWindow.PageCreator() {
>  public Page createPage() {
>return myChooser;
>}
> }
> *
> to this :
> 
> *modal.setPageCreator(new ModalWindow.PageCreator() {
>  public Page createPage() {
>return new MyChooser(modal);
>}
> }
> *
> it will work.
> 
> Try it.
> Cristi Manole
> 
> On Mon, Apr 28, 2008 at 1:07 PM, Marieke Vandamme <[EMAIL PROTECTED]> wrote:
> 
>>
>> Hello,
>>
>> can't anyone help me with this problem?
>> If I need to code it differently, please tell me.
>> Thanks !!
>>
>>
>> Marieke Vandamme wrote:
>> >
>> > Hello,
>> >
>> > i'm having problems with the modal window. It shows up fine when I
>> click
>> > my link the first time, but after closing the window with the 'X', it
>> > won't open again.
>> > I don't know if I'm using it wrong or if it's a bug.
>> > Any help is welcome ! thanks. Marieke.
>> >
>> > My code :
>> > public class TestModalWindow extends WebPage {
>> >
>> > public TestModalWindow() {
>> > final ModalWindow modal = new ModalWindow("dataChooser");
>> > add(modal);
>> > final MyChooser myChooser = new MyChooser(modal);
>> > modal.setPageCreator(new ModalWindow.PageCreator() {
>> >
>> > public Page createPage() {
>> > return myChooser;
>> > }
>> > });
>> >
>> >  add(new AjaxLink("lnkOpen") {
>> >
>> > public void onClick(AjaxRequestTarget target) {
>> > myChooser.reload(target);
>> > }
>> > });
>> > }
>> >
>> > public class MyChooser extends WebPage {
>> >
>> > private ModalWindow window;
>> >
>> > public MyChooser(ModalWindow w) {
>> > this.window = w;
>> > }
>> >
>> > public void reload(AjaxRequestTarget target) {
>> > this.window.show(target);
>> > }
>> > }
>> > }
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Modal-Window-not-opening-the-second-time-tp16850180p16935903.html
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Modal-Window-not-opening-the-second-time-tp16850180p16953499.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Modal Window not opening the second time

2008-04-29 Thread Marieke Vandamme

The javascript debug window is printing no error. 
The server returns an empty response ()
I did some debugging and came to the function in ModalWindow
public void show(AjaxRequestTarget target)
there the boolean shown is tested. The content is only showed when
shown=false, in my case shown=true...

Can you please try the code from my first post? If you say you reuse the
dialog, what am I doing wrong? How do you guys do it? 
Thanks !


Johan Compagner wrote:
> 
> We reuse the dialog constantly, so i dont know what goes wrong for
> you. What does the javascript debug window tell you?
> Maybe the modal window some things that is is still shown
> 
> On 4/29/08, Marieke Vandamme <[EMAIL PROTECTED]> wrote:
>>
>> Hello,
>> Thanks for the reply.
>> But isn't it possible to reuse the modalwindow? Because in my application
>> the window needs to be opened many times, and I thought it would be
>> better
>> to reuse the same window multiple times. Or has that no affect to the
>> memory-usage?
>>
>>
>> Cristi Manole wrote:
>> >
>> > I am 99% certain that if you change your code from :
>> >
>> > *final MyChooser myChooser = new MyChooser(modal);*
>> > *modal.setPageCreator(new ModalWindow.PageCreator() {
>> >  public Page createPage() {
>> >return myChooser;
>> >}
>> > }
>> > *
>> > to this :
>> >
>> > *modal.setPageCreator(new ModalWindow.PageCreator() {
>> >  public Page createPage() {
>> >return new MyChooser(modal);
>> >}
>> > }
>> > *
>> > it will work.
>> >
>> > Try it.
>> > Cristi Manole
>> >
>> > On Mon, Apr 28, 2008 at 1:07 PM, Marieke Vandamme <[EMAIL PROTECTED]> 
>> > wrote:
>> >
>> >>
>> >> Hello,
>> >>
>> >> can't anyone help me with this problem?
>> >> If I need to code it differently, please tell me.
>> >> Thanks !!
>> >>
>> >>
>> >> Marieke Vandamme wrote:
>> >> >
>> >> > Hello,
>> >> >
>> >> > i'm having problems with the modal window. It shows up fine when I
>> >> click
>> >> > my link the first time, but after closing the window with the 'X',
>> it
>> >> > won't open again.
>> >> > I don't know if I'm using it wrong or if it's a bug.
>> >> > Any help is welcome ! thanks. Marieke.
>> >> >
>> >> > My code :
>> >> > public class TestModalWindow extends WebPage {
>> >> >
>> >> > public TestModalWindow() {
>> >> > final ModalWindow modal = new ModalWindow("dataChooser");
>> >> > add(modal);
>> >> > final MyChooser myChooser = new MyChooser(modal);
>> >> > modal.setPageCreator(new ModalWindow.PageCreator() {
>> >> >
>> >> > public Page createPage() {
>> >> > return myChooser;
>> >> > }
>> >> > });
>> >> >
>> >> >  add(new AjaxLink("lnkOpen") {
>> >> >
>> >> > public void onClick(AjaxRequestTarget target) {
>> >> > myChooser.reload(target);
>> >> > }
>> >> > });
>> >> > }
>> >> >
>> >> > public class MyChooser extends WebPage {
>> >> >
>> >> > private ModalWindow window;
>> >> >
>> >> > public MyChooser(ModalWindow w) {
>> >> > this.window = w;
>> >> > }
>> >> >
>> >> > public void reload(AjaxRequestTarget target) {
>> >> > this.window.show(target);
>> >> > }
>> >> > }
>> >> > }
>> >> >
>> >>
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/Modal-Window-not-opening-the-second-time-tp16850180p16935903.html
>> >> Sent from the Wicket - User mailing list archive at Nabble.com.
>> >>
>> >>
>> >> -
>> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >>
>> >>
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Modal-Window-not-opening-the-second-time-tp16850180p16953499.html
>> Sent from the Wicket - User mailing list archive at Nabble.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]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Modal-Window-not-opening-the-second-time-tp16850180p16955484.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Modal Window not opening the second time

2008-04-29 Thread Marieke Vandamme

You are creating a new instance of your Panel. 
I don't need to create a new ModalWindow or Panel, because all the data on
my ModalWindow is the same.
Your solution works because setContent sets shown = false.
Shouldn't it work without this call to setContent? 


Nino.Martinez wrote:
> 
> Im doing it like this:
> 
> 
> AjaxLink popupLink = new AjaxLink("manageWeightPop") {
> @Override
> public void onClick(AjaxRequestTarget target) {
> target
> modalWindow.setTitle(getString("weightlog"));
> modalWindow.setMinimalHeight(700);
> modalWindow.setContent(new ManageWeightPanel(modalWindow
> .getContentId(), modalWindow,
> new BaseEntityDetachableModel(getPerson(;
>     modalWindow.show(target);
> 
> }
> };
> 
> 
> Marieke Vandamme wrote:
>> The javascript debug window is printing no error. 
>> The server returns an empty response (> encoding="UTF-8"?>)
>> I did some debugging and came to the function in ModalWindow
>> public void show(AjaxRequestTarget target)
>> there the boolean shown is tested. The content is only showed when
>> shown=false, in my case shown=true...
>>
>> Can you please try the code from my first post? If you say you reuse the
>> dialog, what am I doing wrong? How do you guys do it? 
>> Thanks !
>>
>>
>> Johan Compagner wrote:
>>   
>>> We reuse the dialog constantly, so i dont know what goes wrong for
>>> you. What does the javascript debug window tell you?
>>> Maybe the modal window some things that is is still shown
>>>
>>> On 4/29/08, Marieke Vandamme <[EMAIL PROTECTED]> wrote:
>>> 
>>>> Hello,
>>>> Thanks for the reply.
>>>> But isn't it possible to reuse the modalwindow? Because in my
>>>> application
>>>> the window needs to be opened many times, and I thought it would be
>>>> better
>>>> to reuse the same window multiple times. Or has that no affect to the
>>>> memory-usage?
>>>>
>>>>
>>>> Cristi Manole wrote:
>>>>   
>>>>> I am 99% certain that if you change your code from :
>>>>>
>>>>> *final MyChooser myChooser = new MyChooser(modal);*
>>>>> *modal.setPageCreator(new ModalWindow.PageCreator() {
>>>>>  public Page createPage() {
>>>>>return myChooser;
>>>>>}
>>>>> }
>>>>> *
>>>>> to this :
>>>>>
>>>>> *modal.setPageCreator(new ModalWindow.PageCreator() {
>>>>>  public Page createPage() {
>>>>>return new MyChooser(modal);
>>>>>}
>>>>> }
>>>>> *
>>>>> it will work.
>>>>>
>>>>> Try it.
>>>>> Cristi Manole
>>>>>
>>>>> On Mon, Apr 28, 2008 at 1:07 PM, Marieke Vandamme <[EMAIL PROTECTED]>
>>>>> wrote:
>>>>>
>>>>> 
>>>>>> Hello,
>>>>>>
>>>>>> can't anyone help me with this problem?
>>>>>> If I need to code it differently, please tell me.
>>>>>> Thanks !!
>>>>>>
>>>>>>
>>>>>> Marieke Vandamme wrote:
>>>>>>   
>>>>>>> Hello,
>>>>>>>
>>>>>>> i'm having problems with the modal window. It shows up fine when I
>>>>>>> 
>>>>>> click
>>>>>>   
>>>>>>> my link the first time, but after closing the window with the 'X',
>>>>>>> 
>>>> it
>>>>   
>>>>>>> won't open again.
>>>>>>> I don't know if I'm using it wrong or if it's a bug.
>>>>>>> Any help is welcome ! thanks. Marieke.
>>>>>>>
>>>>>>> My code :
>>>>>>> public class TestModalWindow extends WebPage {
>>>>>>>
>>>>>>> public TestModalWindow() {
>>>>>>> final ModalWindow modal = new ModalWindow("dataChooser");
>>>>>>>   

Re: Modal Window not opening the second time

2008-04-29 Thread Marieke Vandamme

Sorry, but I don't know what the solution is for me now?
When looking into ModalWindow again :
public void close(AjaxRequestTarget target)
{
getContent().setVisible(false);
target.appendJavascript(getCloseJavacript());
shown = false;
}
When debugging, the shown is set to false. 
But the next time, in the show function, it's true again...

Should I set it somewhere to false myself?


Johan Compagner wrote:
> 
> exactly what i thought
> somehow your shown boolean stays on true
> So the problem is not showing it again
> The problem for you is in the closing..
> Because the shown boolean should be reverted to false
> 
> johan
> 
> 
> On Tue, Apr 29, 2008 at 10:21 AM, Marieke Vandamme <[EMAIL PROTECTED]> wrote:
> 
>>
>> The javascript debug window is printing no error.
>> The server returns an empty response (> encoding="UTF-8"?>)
>> I did some debugging and came to the function in ModalWindow
>> public void show(AjaxRequestTarget target)
>> there the boolean shown is tested. The content is only showed when
>> shown=false, in my case shown=true...
>>
>> Can you please try the code from my first post? If you say you reuse the
>> dialog, what am I doing wrong? How do you guys do it?
>> Thanks !
>>
>>
>> Johan Compagner wrote:
>> >
>> > We reuse the dialog constantly, so i dont know what goes wrong for
>> > you. What does the javascript debug window tell you?
>> > Maybe the modal window some things that is is still shown
>> >
>> > On 4/29/08, Marieke Vandamme <[EMAIL PROTECTED]> wrote:
>> >>
>> >> Hello,
>> >> Thanks for the reply.
>> >> But isn't it possible to reuse the modalwindow? Because in my
>> application
>> >> the window needs to be opened many times, and I thought it would be
>> >> better
>> >> to reuse the same window multiple times. Or has that no affect to the
>> >> memory-usage?
>> >>
>> >>
>> >> Cristi Manole wrote:
>> >> >
>> >> > I am 99% certain that if you change your code from :
>> >> >
>> >> > *final MyChooser myChooser = new MyChooser(modal);*
>> >> > *modal.setPageCreator(new ModalWindow.PageCreator() {
>> >> >  public Page createPage() {
>> >> >return myChooser;
>> >> >}
>> >> > }
>> >> > *
>> >> > to this :
>> >> >
>> >> > *modal.setPageCreator(new ModalWindow.PageCreator() {
>> >> >  public Page createPage() {
>> >> >return new MyChooser(modal);
>> >> >}
>> >> > }
>> >> > *
>> >> > it will work.
>> >> >
>> >> > Try it.
>> >> > Cristi Manole
>> >> >
>> >> > On Mon, Apr 28, 2008 at 1:07 PM, Marieke Vandamme <[EMAIL PROTECTED]>
>> wrote:
>> >> >
>> >> >>
>> >> >> Hello,
>> >> >>
>> >> >> can't anyone help me with this problem?
>> >> >> If I need to code it differently, please tell me.
>> >> >> Thanks !!
>> >> >>
>> >> >>
>> >> >> Marieke Vandamme wrote:
>> >> >> >
>> >> >> > Hello,
>> >> >> >
>> >> >> > i'm having problems with the modal window. It shows up fine when
>> I
>> >> >> click
>> >> >> > my link the first time, but after closing the window with the
>> 'X',
>> >> it
>> >> >> > won't open again.
>> >> >> > I don't know if I'm using it wrong or if it's a bug.
>> >> >> > Any help is welcome ! thanks. Marieke.
>> >> >> >
>> >> >> > My code :
>> >> >> > public class TestModalWindow extends WebPage {
>> >> >> >
>> >> >> > public TestModalWindow() {
>> >> >> > final ModalWindow modal = new ModalWindow("dataChooser");
>> >> >> > add(modal);
>> >> >> > final MyChooser myChooser = new MyChooser(modal);
>> >> >> > modal.setPageCreator(new ModalWindow.PageCreator() {
>> >> >> >
>> >

Re: Modal Window not opening the second time

2008-04-29 Thread Marieke Vandamme

I created a jira issue

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

Thanks !


Johan Compagner wrote:
> 
> make a test case then and attach it to a jira issue
> 
> On Tue, Apr 29, 2008 at 11:11 AM, Marieke Vandamme <[EMAIL PROTECTED]> wrote:
> 
>>
>> Sorry, but I don't know what the solution is for me now?
>> When looking into ModalWindow again :
>> public void close(AjaxRequestTarget target)
>>{
>>getContent().setVisible(false);
>>target.appendJavascript(getCloseJavacript());
>>shown = false;
>>}
>> When debugging, the shown is set to false.
>> But the next time, in the show function, it's true again...
>>
>> Should I set it somewhere to false myself?
>>
>>
>> Johan Compagner wrote:
>> >
>> > exactly what i thought
>> > somehow your shown boolean stays on true
>> > So the problem is not showing it again
>> > The problem for you is in the closing..
>> > Because the shown boolean should be reverted to false
>> >
>> > johan
>> >
>> >
>> > On Tue, Apr 29, 2008 at 10:21 AM, Marieke Vandamme <[EMAIL PROTECTED]>
>> wrote:
>> >
>> >>
>> >> The javascript debug window is printing no error.
>> >> The server returns an empty response (> >> encoding="UTF-8"?>)
>> >> I did some debugging and came to the function in ModalWindow
>> >> public void show(AjaxRequestTarget target)
>> >> there the boolean shown is tested. The content is only showed when
>> >> shown=false, in my case shown=true...
>> >>
>> >> Can you please try the code from my first post? If you say you reuse
>> the
>> >> dialog, what am I doing wrong? How do you guys do it?
>> >> Thanks !
>> >>
>> >>
>> >> Johan Compagner wrote:
>> >> >
>> >> > We reuse the dialog constantly, so i dont know what goes wrong for
>> >> > you. What does the javascript debug window tell you?
>> >> > Maybe the modal window some things that is is still shown
>> >> >
>> >> > On 4/29/08, Marieke Vandamme <[EMAIL PROTECTED]> wrote:
>> >> >>
>> >> >> Hello,
>> >> >> Thanks for the reply.
>> >> >> But isn't it possible to reuse the modalwindow? Because in my
>> >> application
>> >> >> the window needs to be opened many times, and I thought it would be
>> >> >> better
>> >> >> to reuse the same window multiple times. Or has that no affect to
>> the
>> >> >> memory-usage?
>> >> >>
>> >> >>
>> >> >> Cristi Manole wrote:
>> >> >> >
>> >> >> > I am 99% certain that if you change your code from :
>> >> >> >
>> >> >> > *final MyChooser myChooser = new MyChooser(modal);*
>> >> >> > *modal.setPageCreator(new ModalWindow.PageCreator() {
>> >> >> >  public Page createPage() {
>> >> >> >return myChooser;
>> >> >> >}
>> >> >> > }
>> >> >> > *
>> >> >> > to this :
>> >> >> >
>> >> >> > *modal.setPageCreator(new ModalWindow.PageCreator() {
>> >> >> >  public Page createPage() {
>> >> >> >return new MyChooser(modal);
>> >> >> >}
>> >> >> > }
>> >> >> > *
>> >> >> > it will work.
>> >> >> >
>> >> >> > Try it.
>> >> >> > Cristi Manole
>> >> >> >
>> >> >> > On Mon, Apr 28, 2008 at 1:07 PM, Marieke Vandamme <[EMAIL PROTECTED]>
>> >> wrote:
>> >> >> >
>> >> >> >>
>> >> >> >> Hello,
>> >> >> >>
>> >> >> >> can't anyone help me with this problem?
>> >> >> >> If I need to code it differently, please tell me.
>> >> >> >> Thanks !!
>> >> >> >>
>> >> >> >>
>> >> >> >> Marieke Vandamme wrote:
>> >> >> >> >
>> >> >> >> > Hello,
>> &

Re: Back button problem with form

2008-05-29 Thread Marieke Vandamme

Hello, 

I noticed the same behavior in firefox, but for me everything works fine in
internet explorer. 
My form is not working with ajax, but with the standard submit. 
Is it browser specific or can I change the behavior in my code?
Marie.


Mathias P.W Nilsson wrote:
> 
> Hi!
> 
> I have a form where a user can select payment option like visa, mastercard
> or post parcel.
> When I click in my AjaxSubmitLink for the first time everything is
> alright. If I press browser backbutton and choose another payment option
> the old one is retained. Is there anyway pass this?
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Back-button-problem-with-form-tp17512965p17551959.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



ModalWindow with internal ModalWindow problem

2008-06-18 Thread Marieke Vandamme

Hello, 

I have a rather complex situation, but If I'm not clear enough here, I can
make a test case. 

My situation:
- Page with contact details
- Open a window to send the details to my colleague by email
- In that window open another window to choose my colleague from a list of
employees

My Application :
- Normal page with ajax link that opens ModalWindow
  |-> ModalWindow. 
Contains link to open another ModalWindow, 
and a list that is updated by the child modalwindow
|-> ChildModalWindow (of the ModalWindow).
  This is a chooser, which needs to fill the list on
ModalWindow.

My error situation:
- I open the ModalWindow and fill the list with employees from the
ChildModalWindow.
- I close the ModalWindow, (send the email).
- I open the ModalWindow again (want to send the details to another
colleague)
- I choose a colleague from the ChildModalWindow, but the list isn't
updated...

After much of testing and searching, I think it has something to do with the
RequestCycle or something... 
- The first time the modalwindow is opened, the list on it has markupid 'a1'
- When closing the ChildModalWindow, the list is filled with ajax using
markupid 'a1'
- The second time the modalwindow is opened, the list on it has markupid
'b1'
- When closing the ChildModalWindow, ajax tries to get the component with
markupid 'a1' (and not 'b1')

Even when I refresh the main-page, ajax still searches for the component
with markupid 'a1'.

Can someone please help me? I've been stuck on this for a while, but can't
get to the bottom of it.
Can I post a testcase-war to this list of where should I post it?

Thanks in advance !
Marie.
-- 
View this message in context: 
http://www.nabble.com/ModalWindow-with-internal-ModalWindow-problem-tp17980837p17980837.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: ModalWindow with internal ModalWindow problem

2008-06-18 Thread Marieke Vandamme

Hey, 

I found a place where I can place my war for a while :
http://www.driespannenkoeken.be/ModalWindowTestcase2.war

I can change my application without modalwindows, but I first want to find
out what the problem is..
Would find it easier if I don't have to change it :-)

Hope you guys find the time to download my war and test it. 
Thanks again !


Nino.Martinez wrote:
> 
> Hi Marieke
> 
> First of all upload your quickstart project somewhere and share the link 
> here. Please be sure theres not too many commercials when downloading, 
> people tend to bully you with it:)
> 
> So I have two suggestions.
> 
>1. I think that we should try to sort out if it's a bug causing your
>   problem or it's wrong usage.
>2. I used modal window too, as you can see from one of our previous
>   discussions. But I found that it were better to actually just
>   forward to another panel or page, hence no popup and no trouble,
>   and better focus, and when people are done they return to the old
>   panel/page. You can still use modal window for simple stuff, sort
>   of like the prototip but with stuff that requires a larger screen.
> 
> Please ask if you are in any doubt.
> 
> Marieke Vandamme wrote:
>> Hello, 
>>
>> I have a rather complex situation, but If I'm not clear enough here, I
>> can
>> make a test case. 
>>
>> My situation:
>> - Page with contact details
>> - Open a window to send the details to my colleague by email
>> - In that window open another window to choose my colleague from a list
>> of
>> employees
>>
>> My Application :
>> - Normal page with ajax link that opens ModalWindow
>>   |-> ModalWindow. 
>> Contains link to open another ModalWindow, 
>> and a list that is updated by the child modalwindow
>> |-> ChildModalWindow (of the ModalWindow).
>>   This is a chooser, which needs to fill the list on
>> ModalWindow.
>>
>> My error situation:
>> - I open the ModalWindow and fill the list with employees from the
>> ChildModalWindow.
>> - I close the ModalWindow, (send the email).
>> - I open the ModalWindow again (want to send the details to another
>> colleague)
>> - I choose a colleague from the ChildModalWindow, but the list isn't
>> updated...
>>
>> After much of testing and searching, I think it has something to do with
>> the
>> RequestCycle or something... 
>> - The first time the modalwindow is opened, the list on it has markupid
>> 'a1'
>> - When closing the ChildModalWindow, the list is filled with ajax using
>> markupid 'a1'
>> - The second time the modalwindow is opened, the list on it has markupid
>> 'b1'
>> - When closing the ChildModalWindow, ajax tries to get the component with
>> markupid 'a1' (and not 'b1')
>>
>> Even when I refresh the main-page, ajax still searches for the component
>> with markupid 'a1'.
>>
>> Can someone please help me? I've been stuck on this for a while, but
>> can't
>> get to the bottom of it.
>> Can I post a testcase-war to this list of where should I post it?
>>
>> Thanks in advance !
>> Marie.
>>   
> 
> -- 
> -Wicket for love
> 
> Nino Martinez Wael
> Java Specialist @ Jayway DK
> http://www.jayway.dk
> +45 2936 7684
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/ModalWindow-with-internal-ModalWindow-problem-tp17980837p17981566.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: ModalWindow with internal ModalWindow problem

2008-06-19 Thread Marieke Vandamme

Hello, 

Okay, second try..
I made my war again and tested it myself in tomcat 6. It seems to work, so I
put it on the server again and hope it works for you too..
I also created a zip with my sources and libraries that you can use in
eclipse :
http://www.driespannenkoeken.be/src.zip

If that's still not enough , please let me know. 
Thanks for the help.


Nino.Martinez wrote:
> 
> Hi Marieke
> 
> Your war file does not deploy/startup, atleast on tomcat, could you do 
> the same using the quickstart archetype, it should take you 2 mins doing 
> that(and give me something that I can look at in eclipse without too 
> much hassle)? I know Im being lazy but, thats the benefit of being the 
> helper...
> 
> Jun 19, 2008 11:37:53 AM org.apache.catalina.startup.Catalina start
> INFO: Server startup in 3722 ms
> Jun 19, 2008 11:41:58 AM org.apache.catalina.core.StandardContext start
> SEVERE: Error filterStart
> Jun 19, 2008 11:41:58 AM org.apache.catalina.core.StandardContext start
> SEVERE: Context [/ModalWindowTestcase2] startup failed due to previous 
> errors
>  
> Marieke Vandamme wrote:
>> Hey, 
>>
>> I found a place where I can place my war for a while :
>> http://www.driespannenkoeken.be/ModalWindowTestcase2.war
>>
>> I can change my application without modalwindows, but I first want to
>> find
>> out what the problem is..
>> Would find it easier if I don't have to change it :-)
>>
>> Hope you guys find the time to download my war and test it. 
>> Thanks again !
>>
>>
>> Nino.Martinez wrote:
>>   
>>> Hi Marieke
>>>
>>> First of all upload your quickstart project somewhere and share the link 
>>> here. Please be sure theres not too many commercials when downloading, 
>>> people tend to bully you with it:)
>>>
>>> So I have two suggestions.
>>>
>>>1. I think that we should try to sort out if it's a bug causing your
>>>   problem or it's wrong usage.
>>>2. I used modal window too, as you can see from one of our previous
>>>   discussions. But I found that it were better to actually just
>>>   forward to another panel or page, hence no popup and no trouble,
>>>   and better focus, and when people are done they return to the old
>>>   panel/page. You can still use modal window for simple stuff, sort
>>>   of like the prototip but with stuff that requires a larger screen.
>>>
>>> Please ask if you are in any doubt.
>>>
>>> Marieke Vandamme wrote:
>>> 
>>>> Hello, 
>>>>
>>>> I have a rather complex situation, but If I'm not clear enough here, I
>>>> can
>>>> make a test case. 
>>>>
>>>> My situation:
>>>> - Page with contact details
>>>> - Open a window to send the details to my colleague by email
>>>> - In that window open another window to choose my colleague from a list
>>>> of
>>>> employees
>>>>
>>>> My Application :
>>>> - Normal page with ajax link that opens ModalWindow
>>>>   |-> ModalWindow. 
>>>> Contains link to open another ModalWindow, 
>>>> and a list that is updated by the child modalwindow
>>>> |-> ChildModalWindow (of the ModalWindow).
>>>>   This is a chooser, which needs to fill the list on
>>>> ModalWindow.
>>>>
>>>> My error situation:
>>>> - I open the ModalWindow and fill the list with employees from the
>>>> ChildModalWindow.
>>>> - I close the ModalWindow, (send the email).
>>>> - I open the ModalWindow again (want to send the details to another
>>>> colleague)
>>>> - I choose a colleague from the ChildModalWindow, but the list isn't
>>>> updated...
>>>>
>>>> After much of testing and searching, I think it has something to do
>>>> with
>>>> the
>>>> RequestCycle or something... 
>>>> - The first time the modalwindow is opened, the list on it has markupid
>>>> 'a1'
>>>> - When closing the ChildModalWindow, the list is filled with ajax using
>>>> markupid 'a1'
>>>> - The second time the modalwindow is opened, the list on it has
>>>> markupid
>>>> 'b1'
>>>> - When closing the ChildModalWindow, ajax tries to get the component
>>>> with
>>>> markupid 'a1' (and not 'b1&

Re: ModalWindow with internal ModalWindow problem

2008-06-19 Thread Marieke Vandamme

Are you sure? The version I'm using is 1.4m2, so I don't think so much has
changed. 

Did you do the following steps and have the list filled the second time? :
1- click 'Open Head Modal Window'
2- click 'Open Inner Modal Window'
3- close the modalwindow with 'When closing this window a date will be added
to the list..' on it
4- close the head modal window
5- redo steps 1 to 3

Can you please test above for me again? Thanks.



Nino.Martinez wrote:
> 
> Hmm, okay I went ahead and created a maven project with a pom. For 
> minimal setup. Using wicket 1.4-snapshot.
> 
> And it are working, which browser are you using, im using FF2 and
> safari3..
> 
> However this are using wicket 1.4-snapshot(from wicketstuff repo) can 
> you try to use that and see it the problem are solved? Just to be sure?
> 
> Marieke Vandamme wrote:
>> Hello, 
>>
>> Okay, second try..
>> I made my war again and tested it myself in tomcat 6. It seems to work,
>> so I
>> put it on the server again and hope it works for you too..
>> I also created a zip with my sources and libraries that you can use in
>> eclipse :
>> http://www.driespannenkoeken.be/src.zip
>>
>> If that's still not enough , please let me know. 
>> Thanks for the help.
>>
>>
>> Nino.Martinez wrote:
>>   
>>> Hi Marieke
>>>
>>> Your war file does not deploy/startup, atleast on tomcat, could you do 
>>> the same using the quickstart archetype, it should take you 2 mins doing 
>>> that(and give me something that I can look at in eclipse without too 
>>> much hassle)? I know Im being lazy but, thats the benefit of being the 
>>> helper...
>>>
>>> Jun 19, 2008 11:37:53 AM org.apache.catalina.startup.Catalina start
>>> INFO: Server startup in 3722 ms
>>> Jun 19, 2008 11:41:58 AM org.apache.catalina.core.StandardContext start
>>> SEVERE: Error filterStart
>>> Jun 19, 2008 11:41:58 AM org.apache.catalina.core.StandardContext start
>>> SEVERE: Context [/ModalWindowTestcase2] startup failed due to previous 
>>> errors
>>>  
>>> Marieke Vandamme wrote:
>>> 
>>>> Hey, 
>>>>
>>>> I found a place where I can place my war for a while :
>>>> http://www.driespannenkoeken.be/ModalWindowTestcase2.war
>>>>
>>>> I can change my application without modalwindows, but I first want to
>>>> find
>>>> out what the problem is..
>>>> Would find it easier if I don't have to change it :-)
>>>>
>>>> Hope you guys find the time to download my war and test it. 
>>>> Thanks again !
>>>>
>>>>
>>>> Nino.Martinez wrote:
>>>>   
>>>>   
>>>>> Hi Marieke
>>>>>
>>>>> First of all upload your quickstart project somewhere and share the
>>>>> link 
>>>>> here. Please be sure theres not too many commercials when downloading, 
>>>>> people tend to bully you with it:)
>>>>>
>>>>> So I have two suggestions.
>>>>>
>>>>>1. I think that we should try to sort out if it's a bug causing
>>>>> your
>>>>>   problem or it's wrong usage.
>>>>>2. I used modal window too, as you can see from one of our previous
>>>>>   discussions. But I found that it were better to actually just
>>>>>   forward to another panel or page, hence no popup and no trouble,
>>>>>   and better focus, and when people are done they return to the
>>>>> old
>>>>>   panel/page. You can still use modal window for simple stuff,
>>>>> sort
>>>>>   of like the prototip but with stuff that requires a larger
>>>>> screen.
>>>>>
>>>>> Please ask if you are in any doubt.
>>>>>
>>>>> Marieke Vandamme wrote:
>>>>> 
>>>>> 
>>>>>> Hello, 
>>>>>>
>>>>>> I have a rather complex situation, but If I'm not clear enough here,
>>>>>> I
>>>>>> can
>>>>>> make a test case. 
>>>>>>
>>>>>> My situation:
>>>>>> - Page with contact details
>>>>>> - Open a window to send the details to my colleague by email
>>>>>> - In that window open another window to choose my colleague from a
>>

Re: ModalWindow with internal ModalWindow problem

2008-06-19 Thread Marieke Vandamme

That's nice. Our company's surfing control blocks the site :-)
I'll try to download it at home.

I don't think the problems happen because it's the homepage.
In my original project, the page wasn't the homepage and the problem was the
same.
I debugged the project a couple of times and also couldn't get a grip of why
things go wrong..
I also think it's strange nobody else noticed this, as the example of a
modal window opening from another modal window is in the wicket-examples.

Are you going to post it as a bug?

Thanks for the help !


Nino.Martinez wrote:
> 
> Got it working, I believe there are an issue. Somehow the model on the 
> modal window invoking page are not being updated. If I create a final 
> page and pass that into the PageCreator it seems to work. But im still a 
> little curious about why it seems that the main page's model aren't 
> updated, could it be because it's the homepage maybe?...
> 
> Heres the edited source (please remember the full url including dots or 
> you will get spammed with ads):
> 
> http://www15.flyupload.com/dl?fid=175617&x=cCFDALnJB9T2ETL9UDILeA..
> 
> BTW if you know a better place to share files without too much hassle 
> please say so..
> 
> Nino Saturnino Martinez Vazquez Wael wrote:
>> Hmm seems to be something very wierd. I've debugged it(changed your 
>> source a bit so that the main page now gives the arraylist as a model 
>> to the headmodal), and it does not seem to maintain state somehow. So 
>> head modal gets an empty list on click 1 and then at click 3 it's 
>> suddenly there again wierd, filled. I'll poke at it some more.. Do you 
>> want the edited source?
>>
>> Nino Saturnino Martinez Vazquez Wael wrote:
>>> Ahh, I did steps 1,2,3,2,3,2,4
>>>
>>> Problem appears as you write.
>>>
>>> Somethings seem to get out of synch. And it does seem that there are 
>>> something that are inconsistant, 10 mins and i'll see if I can hack 
>>> something up that works. Or if it's a true bug.
>>>
>>> Marieke Vandamme wrote:
>>>> Are you sure? The version I'm using is 1.4m2, so I don't think so 
>>>> much has
>>>> changed.
>>>> Did you do the following steps and have the list filled the second 
>>>> time? :
>>>> 1- click 'Open Head Modal Window'
>>>> 2- click 'Open Inner Modal Window'
>>>> 3- close the modalwindow with 'When closing this window a date will 
>>>> be added
>>>> to the list..' on it
>>>> 4- close the head modal window
>>>> 5- redo steps 1 to 3
>>>>
>>>> Can you please test above for me again? Thanks.
>>>>
>>>>
>>>>
>>>> Nino.Martinez wrote:
>>>>  
>>>>> Hmm, okay I went ahead and created a maven project with a pom. For 
>>>>> minimal setup. Using wicket 1.4-snapshot.
>>>>>
>>>>> And it are working, which browser are you using, im using FF2 and
>>>>> safari3..
>>>>>
>>>>> However this are using wicket 1.4-snapshot(from wicketstuff repo) 
>>>>> can you try to use that and see it the problem are solved? Just to 
>>>>> be sure?
>>>>>
>>>>> Marieke Vandamme wrote:
>>>>>   
>>>>>> Hello,
>>>>>> Okay, second try..
>>>>>> I made my war again and tested it myself in tomcat 6. It seems to 
>>>>>> work,
>>>>>> so I
>>>>>> put it on the server again and hope it works for you too..
>>>>>> I also created a zip with my sources and libraries that you can 
>>>>>> use in
>>>>>> eclipse :
>>>>>> http://www.driespannenkoeken.be/src.zip
>>>>>>
>>>>>> If that's still not enough , please let me know. Thanks for the help.
>>>>>>
>>>>>>
>>>>>> Nino.Martinez wrote:
>>>>>>   
>>>>>>> Hi Marieke
>>>>>>>
>>>>>>> Your war file does not deploy/startup, atleast on tomcat, could 
>>>>>>> you do the same using the quickstart archetype, it should take 
>>>>>>> you 2 mins doing that(and give me something that I can look at in 
>>>>>>> eclipse without too much hassle)? I know Im being lazy but, thats 
>>>>>>> the benefit of being the helper...
>>>&

Re: ModalWindow with internal ModalWindow problem

2008-06-20 Thread Marieke Vandamme

Hey, 

I tried your example and seems to be working indeed. 
I haven't found the time to update my original project, but I'm sure it'll
work using the same implementation. 
I just hope that someone will fix the bug, because the other bug I reported,
also concerning ModalWindow, hasn't been fixed to
(https://issues.apache.org/jira/browse/WICKET-1576).
So I'll have to implement your workaround, if I want my project to go in
production.

Thanks again for the help / time.


Nino.Martinez wrote:
> 
> Hi Marieke
> 
> Could you confirm that your problem are solved?
> 
> Nino Saturnino Martinez Vazquez Wael wrote:
>>
>>
>> Marieke Vandamme wrote:
>>> That's nice. Our company's surfing control blocks the site :-)
>>> I'll try to download it at home.
>>>
>>> I don't think the problems happen because it's the homepage.
>>>   
>> Could just be a problem in what I've done then...
>>> In my original project, the page wasn't the homepage and the problem 
>>> was the
>>> same.
>>> I debugged the project a couple of times and also couldn't get a grip 
>>> of why
>>> things go wrong..
>>>   I also think it's strange nobody else noticed this, as the example 
>>> of a
>>> modal window opening from another modal window is in the 
>>> wicket-examples.
>>>
>>> Are you going to post it as a bug?
>>>   
>> https://issues.apache.org/jira/browse/WICKET-1710
>>
>> you can get the workaround there too. BTW your it department doesnt 
>> like zip files either...
>>> Thanks for the help !
>>>
>>>
>>> Nino.Martinez wrote:
>>>  
>>>> Got it working, I believe there are an issue. Somehow the model on 
>>>> the modal window invoking page are not being updated. If I create a 
>>>> final page and pass that into the PageCreator it seems to work. But 
>>>> im still a little curious about why it seems that the main page's 
>>>> model aren't updated, could it be because it's the homepage maybe?...
>>>>
>>>> Heres the edited source (please remember the full url including dots 
>>>> or you will get spammed with ads):
>>>>
>>>> http://www15.flyupload.com/dl?fid=175617&x=cCFDALnJB9T2ETL9UDILeA..
>>>>
>>>> BTW if you know a better place to share files without too much 
>>>> hassle please say so..
>>>>
>>>> Nino Saturnino Martinez Vazquez Wael wrote:
>>>>
>>>>> Hmm seems to be something very wierd. I've debugged it(changed your 
>>>>> source a bit so that the main page now gives the arraylist as a 
>>>>> model to the headmodal), and it does not seem to maintain state 
>>>>> somehow. So head modal gets an empty list on click 1 and then at 
>>>>> click 3 it's suddenly there again wierd, filled. I'll poke at it 
>>>>> some more.. Do you want the edited source?
>>>>>
>>>>> Nino Saturnino Martinez Vazquez Wael wrote:
>>>>>  
>>>>>> Ahh, I did steps 1,2,3,2,3,2,4
>>>>>>
>>>>>> Problem appears as you write.
>>>>>>
>>>>>> Somethings seem to get out of synch. And it does seem that there 
>>>>>> are something that are inconsistant, 10 mins and i'll see if I can 
>>>>>> hack something up that works. Or if it's a true bug.
>>>>>>
>>>>>> Marieke Vandamme wrote:
>>>>>>
>>>>>>> Are you sure? The version I'm using is 1.4m2, so I don't think so 
>>>>>>> much has
>>>>>>> changed.
>>>>>>> Did you do the following steps and have the list filled the 
>>>>>>> second time? :
>>>>>>> 1- click 'Open Head Modal Window'
>>>>>>> 2- click 'Open Inner Modal Window'
>>>>>>> 3- close the modalwindow with 'When closing this window a date 
>>>>>>> will be added
>>>>>>> to the list..' on it
>>>>>>> 4- close the head modal window
>>>>>>> 5- redo steps 1 to 3
>>>>>>>
>>>>>>> Can you please test above for me again? Thanks.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Nino.Martinez wrote:
>

Re: Page Expired with ModalWindow

2008-06-20 Thread Marieke Vandamme

Why would you want to open a new ModalWindow? 
Can't you just open your WebPage in the first ModalWindow?


Daniel Wu wrote:
> 
> Hi,
> the application I've been developing have to open modal dialogs in
> sequence. I have a dialog A, which is a panel with an AjaxLink, and when
> this AjaxLink is pressed, the dialog A should close and dialog B, which
> content is a WebPage, should be opened.
> 
> In order to close dialog A before opening dialog B, the only way I found
> to do that is simulating the click of an AjaxSubmitLink of the page that
> contains all these modal dialogs, appending some javascript on the
> AjaxRequestTarget, which calls the onClick() of the AjaxSubmitLink. This
> is done when I click the AjaxLink of the panel of dialog A.
> 
> After that, dialog B is being correctly opened. This dialog B also has an
> AjaxLink, which should close dialog B. This AjaxLink just call
> ModalWindow.closeCurrent(target); The problem is that when I click this
> AjaxLink, I'm getting a PageExpired error.
> 
> Am I doing something wrong? Does anyone have any idea of why I'm getting
> this PageExpired? Is there an easier way to open modal dialogs in
> sequence, opening a new one only the previous one is closed?
> 
> Daniel
> 

-- 
View this message in context: 
http://www.nabble.com/Page-Expired-with-ModalWindow-tp17993206p18029428.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Spring's AbstractMessageSource : read new label from DB

2008-06-23 Thread Marieke Vandamme

Hello, 

I don't know if my question is Spring related or wicket related, but i guess
it's wicket related so...
If not, my apologies, but please tell me so i can post my question to the
correct mailinglist.

I use the org.springframework.context.support.AbstractMessageSource to read
my labels from a database (in the method resolveCode I use my dao to get the
correct label). In the application-context, I use the bean with name
"messageSource" to link my AbstractMessageSource implementation in wicket.

Now my question:
The labels are only readed once from the database. They are cached somewhere
in wicket, i guess. But when deploying my application, most labels are not
translated yet. Is it possible to delete the cached labels somehow?

Thanks !
-- 
View this message in context: 
http://www.nabble.com/Spring%27s-AbstractMessageSource-%3A-read-new-label-from-DB-tp18064364p18064364.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Spring's AbstractMessageSource : read new label from DB

2008-06-23 Thread Marieke Vandamme

Hello again, 

maybe some more clarification why I guess this is wicket related. 
org.apache.wicket.resource.loader.IStringResourceLoader is the
implementation that is used in wicket to get the label from the DB, because
there the necessary function of the Spring MessageSource is called. The
function "loadStringResource" in IStringResourceLoader is only called once
for a label. Only when redeploying the application, the message is again
retreived with the "loadStringResource". Is there any way to clear that
cache manually or something?
Thanks again !


Marieke Vandamme wrote:
> 
> Hello, 
> 
> I don't know if my question is Spring related or wicket related, but i
> guess it's wicket related so...
> If not, my apologies, but please tell me so i can post my question to the
> correct mailinglist.
> 
> I use the org.springframework.context.support.AbstractMessageSource to
> read my labels from a database (in the method resolveCode I use my dao to
> get the correct label). In the application-context, I use the bean with
> name "messageSource" to link my AbstractMessageSource implementation in
> wicket.
> 
> Now my question:
> The labels are only readed once from the database. They are cached
> somewhere in wicket, i guess. But when deploying my application, most
> labels are not translated yet. Is it possible to delete the cached labels
> somehow?
> 
> Thanks !
> 

-- 
View this message in context: 
http://www.nabble.com/Spring%27s-AbstractMessageSource-%3A-read-new-label-from-DB-tp18064364p18064730.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



write translated messages in renderhead

2007-09-05 Thread Marieke Vandamme

Hello, 

With new 1.3beta3 release I changed all the entries from StringResourceModel
to ResourceModel to avoid the warning 'Tried to retrieve a localized string
for a component that has not yet been added to the page.' (I still get this
warning when using  tag.. but I guess that's a bug.)

But now my real problem : 
I'm using the renderHead from IHeaderContributor to print some translated
text in javascript. 

public void renderHead(IHeaderResponse hr) {
String js += "var myMsg = '" + JavascriptUtils.escapeQuotes(new
ResourceModel("MY_MSG", null) + "") + "';";
hr.renderJavascript(js, null);
}

But now the result on my html-page is :

var myMsg = 'Model:classname=[org.apache.wicket.model.ResourceModel]';

instead I want my translated "MY_MSG".
Thanks for your help !
-- 
View this message in context: 
http://www.nabble.com/write-translated-messages-in-renderhead-tf4383719.html#a12496870
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: write translated messages in renderhead

2007-09-05 Thread Marieke Vandamme

getString("key") works perfect for me.. I didn't know something like that
existed.
new ResourceModel("MY_MSG", null).getObject() gave me nullpointer.
Thanks a lot !


Matej Knopp-2 wrote:
> 
> It's easier to just call getString("key") instead of using
> ResourceModel in this case.
> 
> -Matej
> 
> On 9/5/07, Johan Compagner <[EMAIL PROTECTED]> wrote:
>> String js += "var myMsg = '" + JavascriptUtils.escapeQuotes(new
>> ResourceModel("MY_MSG", null) + "") + "';";
>>
>> that looks a bit wrong, try something like this
>>
>> String js += "var myMsg = '" + JavascriptUtils.escapeQuotes(new
>> ResourceModel("MY_MSG", null).getObject() + "") + "';";
>>
>> On 9/5/07, Marieke Vandamme <[EMAIL PROTECTED]> wrote:
>> >
>> >
>> > Hello,
>> >
>> > With new 1.3beta3 release I changed all the entries from
>> > StringResourceModel
>> > to ResourceModel to avoid the warning 'Tried to retrieve a localized
>> > string
>> > for a component that has not yet been added to the page.' (I still get
>> > this
>> > warning when using  tag.. but I guess that's a
>> > bug.)
>> >
>> > But now my real problem :
>> > I'm using the renderHead from IHeaderContributor to print some
>> translated
>> > text in javascript.
>> >
>> > public void renderHead(IHeaderResponse hr) {
>> > String js += "var myMsg = '" + JavascriptUtils.escapeQuotes(new
>> > ResourceModel("MY_MSG", null) + "") + "';";
>> > hr.renderJavascript(js, null);
>> > }
>> >
>> > But now the result on my html-page is :
>> >
>> > var myMsg = 'Model:classname=[org.apache.wicket.model.ResourceModel]';
>> >
>> > instead I want my translated "MY_MSG".
>> > Thanks for your help !
>> > --
>> > View this message in context:
>> >
>> http://www.nabble.com/write-translated-messages-in-renderhead-tf4383719.html#a12496870
>> > Sent from the Wicket - User mailing list archive at Nabble.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]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/write-translated-messages-in-renderhead-tf4383719.html#a12497122
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Wicket-Stuff Tinymce-Editor: No toolbars in IE6

2007-09-14 Thread Marieke Vandamme

Hello, 

I had the same problem with tinymce in internet explorer. I was glad to read
this thread and downloaded the latest sources from CVS. But now I get a
firefox error saying : tinyMCE.baseURL has no properties
(tiny_mce_src.js:88). Am i the only one getting this error or is it a common
error? 


Iulian Costan wrote:
> 
> the fix is committed, let me know if is works as expected.
> 
> good to be back to wicket ;)
> 
> /iulian
> 
> On 9/10/07, Benjamin Ernst <[EMAIL PROTECTED]> wrote:
>>
>> Hi,
>>
>> I solved the problem by changing the TinyMceBehavior.renderHead()-method.
>>
>> It now looks like this:
>>
>> /**
>>  * @see org.apache.wicket.behavior.AbstractAjaxBehavior#renderHead(
>> org.apache.wicket.markup.html.IHeaderResponse)
>>  */
>> public void renderHead(IHeaderResponse response)
>> {
>> // add wicket-ajax support
>> super.renderHead(response);
>>
>> // since wicket modifies the src attribute of a pre-loaded script
>> tag
>> // then we
>> // need this workaround to safely import tinymce script
>>
>> // import script
>> // IS NOT NEEDED ANY LONGER
>> //StringBuilder importBuilder = new StringBuilder();
>> //importBuilder.append("var script = document.createElement
>> ('script');\n");
>> //importBuilder.append("script.id='tinyMCEScript';\n");
>> //importBuilder.append("script.src='" +
>> RequestCycle.get().urlFor(reference)
>> + "';\n");
>> //importBuilder.append("script.type='text/javascript';\n");
>> //importBuilder.append("document.getElementsByTagName
>> ('head')[0].appendChild(script);\n");
>> //response.renderJavascript(importBuilder.toString(), "import");
>>
>>   // THE NEW LINE
>> response.renderJavascriptReference(reference);
>>
>> // init script
>> StringBuilder initBuilder = new StringBuilder();
>> initBuilder.append("tinyMCE.init({" + settings.toJavaScript(ajax)
>> +
>> "\n});\n");
>> initBuilder.append(settings.getLoadPluginJavaScript());
>> initBuilder.append(settings.getAdditionalPluginJavaScript());
>> response.renderJavascript(initBuilder.toString(), "init");
>> }
>>
>>
>> I don´t really know why the script was not imported this way.
>> But now it works fine in IE6.
>>
>>
>> Benjamin
>>
>> 2007/9/3, Benjamin Ernst <[EMAIL PROTECTED]>:
>> >
>> > Hi Iulian,
>> >
>> > I just want to check if there is any progress with this issue? Did you
>> > find anything?
>> >
>> > Benjamin
>> >
>> > 2007/8/21, Iulian Costan <[EMAIL PROTECTED]>:
>> > >
>> > > hey guys,
>> > >
>> > > i am supposed to be the maintainer of tinymce module but lately i
>> didnt
>> > > put
>> > > much effort into it.
>> > > let me take a look and see how i can fix that issue.
>> > >
>> > > /iulian
>> > >
>> > > On 8/21/07, Benjamin Ernst < [EMAIL PROTECTED]> wrote:
>> > > >
>> > > > Hi Thijs,
>> > > > Thank you for opening the JIRA. At least there is someone who has
>> the
>> > > same
>> > > > error.
>> > > >
>> > > > So let's hope for the best.
>> > > >
>> > > > Benjamin
>> > > >
>> > > > 2007/8/20, Thijs <[EMAIL PROTECTED]>:
>> > > > >
>> > > > > He Benjamin,
>> > > > >
>> > > > > I have the same problem. I have opened a JIRA issue for it:
>> > > > > http://wicketstuff.org/jira/browse/WCTINYMCE-2 But no response so
>> > > far. I
>> > > > > can't help you any further but lets hoop the maintainer of the
>> > > tinymce
>> > > > > project picks it up...
>> > > > >
>> > > > > Thijs
>> > > > >
>> > > > > Benjamin Ernst wrote:
>> > > > > > Hi,
>> > > > > >
>> > > > > > has nobody an idea? Any help would be great!
>> > > > > >
>> > > > > > Thanks,
>> > > > > > Benjamin
>> > > > > >
>> > > > > > 2007/8/16, Benjamin Ernst <[EMAIL PROTECTED]>:
>> > > > > >
>> > > > > >> Hi,
>> > > > > >>
>> > > > > >> I have a problem with the wicket-stuff Tinymce-Editor in the
>> > > > > >> InternetExplorer:
>> > > > > >>
>> > > > > >> the first time the page is loaded, there are no tool-icons,
>> just
>> > > the
>> > > > > >> text-area. And IE gives the following Error:
>> > > > > >>
>> > > > > >> Error: 'tinyMCE is undefined'
>> > > > > >>
>> > > > > >> It' s an Java-Script-Error and it might be, that the scripts
>> are
>> > > not
>> > > > > >> loaded the right way. But I don´t know how to fix this. Here
>> are
>> > > the
>> > > > > scripts
>> > > > > >> from generated the HTML-Source:
>> > > > > >>
>> > > > > >> > > > > id="import">]]>*/
>> > > > > >>
>> > > > > >> > > > id="init">null
at org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:455)
at org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:353)
at
org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279)
at
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260)
at
org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:105)
at
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4574)
at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5184)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:726)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:702)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:697)
at
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:579)
at
org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1744)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:722)
Caused by: net.sf.cglib.core.CodeGenerationException:
java.lang.reflect.InvocationTargetException-->null
at
net.sf.cglib.core.AbstractClassGenerator.generate(AbstractClassGenerator.java:320)
at net.sf.cglib.proxy.Enhancer.generate(Enhancer.java:445)
at
net.sf.cglib.core.AbstractClassGenerator$ClassLoaderData$3.apply(AbstractClassGenerator.java:82)
at
net.sf.cglib.core.AbstractClassGenerator$ClassLoaderData$3.apply(AbstractClassGenerator.java:80)
at net.sf.cglib.core.internal.LoadingCache$2.call(LoadingCache.java:54)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at net.sf.cglib.core.internal.LoadingCache.createEntry(LoadingCache.java:61)
at net.sf.cglib.core.internal.LoadingCache.get(LoadingCache.java:34)
at
net.sf.cglib.core.AbstractClassGenerator$ClassLoaderData.get(AbstractClassGenerator.java:102)
at
net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:275)
at net.sf.cglib.proxy.Enhancer.nextInstance(Enhancer.java:643)
at
net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:279)
at net.sf.cglib.proxy.Enhancer.createHelper(Enhancer.java:433)
at net.sf.cglib.proxy.Enhancer.create(Enhancer.java:304)
at org.apache.wicket.jmx.Initializer.createProxy(Initializer.java:294)
at org.apache.wicket.jmx.Initializer.register(Initializer.java:249)
at org.apache.wicket.jmx.Initializer.init(Initializer.java:192)
at org.apache.wicket.Application.initInitializers(Application.java:741)
at org.apache.wicket.Application.initializeComponents(Application.java:643)
at org.apache.wicket.Application.initApplication(Application.java:949)
at org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:429)
... 18 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor53.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at net.sf.cglib.core.ReflectUtils.defineClass(ReflectUtils.java:409)
at
net.sf.cglib.core.AbstractClassGenerator.generate(AbstractClassGenerator.java:311)
... 39 more
Caused by: java.lang.LinkageError: loader (instance of
 org/apache/catalina/loader/WebappClassLoader): attempted  duplicate class
definition for name: "org/apache/wicket/jmx/Application"
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:791)
... 44 more

-- 


 DISCLAIMER 

http://www.tvh.com/glob/en/email-disclaimer

"This message is delivered to all addressees subject to the conditions
set forth in the attached disclaimer, which is an integral part of this
message."


Re: wicket 7 + cglib + asm: net.sf.cglib.core.CodeGenerationException

2016-03-30 Thread Marieke Vandamme
Hi,

That's something I first tried, but other libraries we use (like
org.apache.tika.tika-parsers) set version of asm or cglib.
I also see that asm-util is used, but with version 5.0.3.
Is there no standard dependencies I can use to solve this? I do not have to
possibility to not set the version, because I then end up with multiple
version of asm in my war-file.
Thanks again.


2016-03-30 16:08 GMT+02:00 Martin Grigorov :

> Hi,
>
> The versions were "latest" at the time Wicket 7 was in development (ASM
> 5.0.x, CGLIB 3.1.x).
> The current latest of ASM and CGLIB are targeted for Java 8 (ASM 5.1.x,
> CGLIB 3.2.x).
> Both ASM and CGLIB do not follow semantic versioning and this leads to
> confusions like this one.
>
> The solution is simple: do not set the versions in your pom.xml but just
> use the transitive dependencies coming with wicket-spring.
>
> Martin Grigorov
> Wicket Training and Consulting
> https://twitter.com/mtgrigorov
>
> On Wed, Mar 30, 2016 at 4:00 PM, Marieke Vandamme <
> marieke.vanda...@tvh.com>
> wrote:
>
> > ​Hi,
> >
> > I'm trying to use wicket 7.2.0 and saw in the migration guide ​that other
> > libraries also changed to the latest stable version.
> > So I also tried this, and the following are used by me now:
> > - Spring Framework 4.2.5
> > - ASM 5.1
> > - CGLIB 3.2.1
> >
> > I get the following stacktrace, on which I'm really lost, and could not
> > find any answer on the internet on..
> > Thanks for any help. Kind Regards, Marieke
> >
> > javax.servlet.ServletException:
> net.sf.cglib.core.CodeGenerationException:
> > java.lang.reflect.InvocationTargetException-->null
> > at
> org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:455)
> > at
> org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:353)
> > at
> >
> >
> org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279)
> > at
> >
> >
> org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260)
> > at
> >
> >
> org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:105)
> > at
> >
> >
> org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4574)
> > at
> >
> >
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5184)
> > at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> > at
> >
> >
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:726)
> > at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:702)
> > at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:697)
> > at
> >
> >
> org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:579)
> > at
> >
> >
> org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1744)
> > at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> > at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
> > at java.util.concurrent.FutureTask.run(FutureTask.java:166)
> > at
> >
> >
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> > at
> >
> >
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> > at java.lang.Thread.run(Thread.java:722)
> > Caused by: net.sf.cglib.core.CodeGenerationException:
> > java.lang.reflect.InvocationTargetException-->null
> > at
> >
> >
> net.sf.cglib.core.AbstractClassGenerator.generate(AbstractClassGenerator.java:320)
> > at net.sf.cglib.proxy.Enhancer.generate(Enhancer.java:445)
> > at
> >
> >
> net.sf.cglib.core.AbstractClassGenerator$ClassLoaderData$3.apply(AbstractClassGenerator.java:82)
> > at
> >
> >
> net.sf.cglib.core.AbstractClassGenerator$ClassLoaderData$3.apply(AbstractClassGenerator.java:80)
> > at net.sf.cglib.core.internal.LoadingCache$2.call(LoadingCache.java:54)
> > at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
> > at java.util.concurrent.FutureTask.run(FutureTask.java:166)
> > at
> > net.sf.cglib.core.internal.LoadingCache.createEntry(LoadingCache.java:61)
> > at net.sf.cglib.core.internal.LoadingCache.get(LoadingCache.java:34)
> > at
> >
> >
> net.sf.cglib.core.AbstractClassGenerator$ClassLoaderData.get(AbstractClassGenerator.java:102)
> > at
> >
> >
> net.sf.cglib.core.AbstractClassGenerator.creat

Re: wicket 7 + cglib + asm: net.sf.cglib.core.CodeGenerationException

2016-03-30 Thread Marieke Vandamme
net.sf.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:24)
at
net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:231)
at net.sf.cglib.core.KeyFactory$Generator.create(KeyFactory.java:149)
at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:117)
at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:109)
at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:105)
at net.sf.cglib.proxy.Enhancer.(Enhancer.java:71)



2016-03-30 16:34 GMT+02:00 Martin Grigorov :

> In that case try with CGLIB 3.2.0.
> I remember seeing NPE like this when I tried to upgrade Wicket 8.x to
> 3.2.1.
>
> Martin Grigorov
> Wicket Training and Consulting
> https://twitter.com/mtgrigorov
>
> On Wed, Mar 30, 2016 at 4:20 PM, Marieke Vandamme <
> marieke.vanda...@tvh.com>
> wrote:
>
> > Hi,
> >
> > That's something I first tried, but other libraries we use (like
> > org.apache.tika.tika-parsers) set version of asm or cglib.
> > I also see that asm-util is used, but with version 5.0.3.
> > Is there no standard dependencies I can use to solve this? I do not have
> to
> > possibility to not set the version, because I then end up with multiple
> > version of asm in my war-file.
> > Thanks again.
> >
> >
> > 2016-03-30 16:08 GMT+02:00 Martin Grigorov :
> >
> > > Hi,
> > >
> > > The versions were "latest" at the time Wicket 7 was in development (ASM
> > > 5.0.x, CGLIB 3.1.x).
> > > The current latest of ASM and CGLIB are targeted for Java 8 (ASM 5.1.x,
> > > CGLIB 3.2.x).
> > > Both ASM and CGLIB do not follow semantic versioning and this leads to
> > > confusions like this one.
> > >
> > > The solution is simple: do not set the versions in your pom.xml but
> just
> > > use the transitive dependencies coming with wicket-spring.
> > >
> > > Martin Grigorov
> > > Wicket Training and Consulting
> > > https://twitter.com/mtgrigorov
> > >
> > > On Wed, Mar 30, 2016 at 4:00 PM, Marieke Vandamme <
> > > marieke.vanda...@tvh.com>
> > > wrote:
> > >
> > > > ​Hi,
> > > >
> > > > I'm trying to use wicket 7.2.0 and saw in the migration guide ​that
> > other
> > > > libraries also changed to the latest stable version.
> > > > So I also tried this, and the following are used by me now:
> > > > - Spring Framework 4.2.5
> > > > - ASM 5.1
> > > > - CGLIB 3.2.1
> > > >
> > > > I get the following stacktrace, on which I'm really lost, and could
> not
> > > > find any answer on the internet on..
> > > > Thanks for any help. Kind Regards, Marieke
> > > >
> > > > javax.servlet.ServletException:
> > > net.sf.cglib.core.CodeGenerationException:
> > > > java.lang.reflect.InvocationTargetException-->null
> > > > at
> > >
> org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:455)
> > > > at
> > >
> org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:353)
> > > > at
> > > >
> > > >
> > >
> >
> org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279)
> > > > at
> > > >
> > > >
> > >
> >
> org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260)
> > > > at
> > > >
> > > >
> > >
> >
> org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:105)
> > > > at
> > > >
> > > >
> > >
> >
> org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4574)
> > > > at
> > > >
> > > >
> > >
> >
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5184)
> > > > at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> > > > at
> > > >
> > > >
> > >
> >
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:726)
> > > > at
> > > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:702)
> > > > at
> > org.apache.catalina.core.StandardHost.addChild(StandardHost.java:697)
> > > > at
> > > >
> > > >
> > >
> >
> org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:579)
> > > > at
> > > >
> > > >
> > >
>

StringResourceModel - setParameters - ConverterLocator

2016-05-19 Thread Marieke Vandamme
​Dear,

I use the new method within Wicket 7 (​currently using 7.3.0) :
new StringResourceModel("MYLABEL").setParameters(new double(1.2)).
Also in my application I have a ConverterLocator defined, which converts
doubles.
But I don't think this conversion is used within my StringResourceModel.
Is that possible? Or am I doing something wrong?
Thanks for any help ! Kind regards, Marieke

-- 


 DISCLAIMER 

http://www.tvh.com/glob/en/email-disclaimer

"This message is delivered to all addressees subject to the conditions
set forth in the attached disclaimer, which is an integral part of this
message."


Re: StringResourceModel - setParameters - ConverterLocator

2016-05-19 Thread Marieke Vandamme
Hi,

Really? Isn't that something that should be managed by wicket? I thought
this was going to be default behavior, so maybe other people will also
think that..
Should I create a jira change request for this?


2016-05-19 10:41 GMT+02:00 Martin Grigorov :

> Hi,
>
> You will have to do it yourself. The converters are used only by the
> components.
> In your case I guess you'll have to do something like:
> String converted = converterLocator.get(Double.class).convert(1.2d)
> new StringResourceModel("MYLABEL").setParameters(converted).
>
> Martin Grigorov
> Wicket Training and Consulting
> https://twitter.com/mtgrigorov
>
> On Thu, May 19, 2016 at 10:24 AM, Marieke Vandamme <
> marieke.vanda...@tvh.com
> > wrote:
>
> > ​Dear,
> >
> > I use the new method within Wicket 7 (​currently using 7.3.0) :
> > new StringResourceModel("MYLABEL").setParameters(new double(1.2)).
> > Also in my application I have a ConverterLocator defined, which converts
> > doubles.
> > But I don't think this conversion is used within my StringResourceModel.
> > Is that possible? Or am I doing something wrong?
> > Thanks for any help ! Kind regards, Marieke
> >
> > --
> >
> >
> >  DISCLAIMER 
> >
> > http://www.tvh.com/glob/en/email-disclaimer
> >
> > "This message is delivered to all addressees subject to the conditions
> > set forth in the attached disclaimer, which is an integral part of this
> > message."
> >
>

-- 


 DISCLAIMER 

http://www.tvh.com/glob/en/email-disclaimer

"This message is delivered to all addressees subject to the conditions
set forth in the attached disclaimer, which is an integral part of this
message."


AutoCompleteTextField Stateless

2017-06-29 Thread Marieke Vandamme
​Hi,

I'm using Apache Wicket 7.7.0.
Is it possible to make  AutoCompleteTextField Stateless?
​I'm using StatelessChecker in my application and @StatelessComponent on my
Panel.
I've overridden getStatelessHint for the AutoCompleteTextField to return
true.
But the StatelessChecker is complaining:
java.lang.IllegalArgumentException: '[CategorySearchPanel [Component id =
searchPanel]]' claims to be stateless but isn't. Offending component:
[AutoCompleteTextField [Component id = searchTxt]]

Thanks ! Kind Regards, Marieke

-- 


 DISCLAIMER 

http://www.tvh.com/glob/en/email-disclaimer

"This message is delivered to all addressees subject to the conditions
set forth in the attached disclaimer, which is an integral part of this
message."


Re: AutoCompleteTextField Stateless

2017-06-29 Thread Marieke Vandamme
And maybe even a more difficult one, is it possible to make ModalWindow
stateless?
Thanks again !


Met vriendelijke groeten, Salutations distinguées, Kind Regards,


*MARIEKE VANDAMMECORPORATE SERVICES* • *Domain Coordinator*
T +32 56 43 42 45 <+3256434245> • F +32 56 43 44 46 •
marieke.vanda...@tvh.com

*TVH GROUP NV*
Brabantstraat 15 • BE-8790 WAREGEM
T +32 56 43 42 11 <+3256434211> • F +32 56 43 44 88 • www.tvh.com
View our company movies via downloads on our website.

2017-06-29 12:05 GMT+02:00 Marieke Vandamme :

> ​Hi,
>
> I'm using Apache Wicket 7.7.0.
> Is it possible to make  AutoCompleteTextField Stateless?
> ​I'm using StatelessChecker in my application and @StatelessComponent on
> my Panel.
> I've overridden getStatelessHint for the AutoCompleteTextField to return
> true.
> But the StatelessChecker is complaining:
> java.lang.IllegalArgumentException: '[CategorySearchPanel [Component id =
> searchPanel]]' claims to be stateless but isn't. Offending component:
> [AutoCompleteTextField [Component id = searchTxt]]
>
> Thanks ! Kind Regards, Marieke
>

-- 


 DISCLAIMER 

http://www.tvh.com/glob/en/email-disclaimer

"This message is delivered to all addressees subject to the conditions
set forth in the attached disclaimer, which is an integral part of this
message."


Re: AutoCompleteTextField Stateless

2017-06-29 Thread Marieke Vandamme
Hi,

​This is working. Thanks !
Do you also have a solution for the ModalWindow, or isn't that possible. ​


2017-06-29 16:06 GMT+02:00 Andrea Del Bene :

> Hi,
>
> try to override getStatelessHint also for the internal behavior used by
> AutoCompleteTextField. you have to override
> AutoCompleteTextField#newAutoCompleteBehavior and make it return something
> like this:
>
> return new AutoCompleteBehavior(renderer, settings)
> {
> private static final long serialVersionUID = 1L;
>
> @Override
> protected Iterator getChoices(final String input)
> {
> return AutoCompleteTextField.this.getChoices(input);
> }
>
> @Override
> protected void updateAjaxAttributes(AjaxRequestAttributes
> attributes)
> {
> super.updateAjaxAttributes(attributes);
>
> AutoCompleteTextField.this.updateAjaxAttributes(
> attributes);
> }
>
> @Override
> protected boolean getStatelessHint(Component component)
>{
>    return true;
>}
> };
>
> On Thu, Jun 29, 2017 at 12:19 PM, Marieke Vandamme <
> marieke.vanda...@tvh.com
> > wrote:
>
> > And maybe even a more difficult one, is it possible to make ModalWindow
> > stateless?
> > Thanks again !
> >
> >
> > Met vriendelijke groeten, Salutations distinguées, Kind Regards,
> >
> >
> > *MARIEKE VANDAMMECORPORATE SERVICES* • *Domain Coordinator*
> > T +32 56 43 42 45 <+3256434245> • F +32 56 43 44 46 •
> > marieke.vanda...@tvh.com
> >
> > *TVH GROUP NV*
> > Brabantstraat 15 • BE-8790 WAREGEM
> > T +32 56 43 42 11 <+3256434211> • F +32 56 43 44 88 • www.tvh.com
> > View our company movies via downloads on our website.
> >
> > 2017-06-29 12:05 GMT+02:00 Marieke Vandamme :
> >
> > > ​Hi,
> > >
> > > I'm using Apache Wicket 7.7.0.
> > > Is it possible to make  AutoCompleteTextField Stateless?
> > > ​I'm using StatelessChecker in my application and @StatelessComponent
> on
> > > my Panel.
> > > I've overridden getStatelessHint for the AutoCompleteTextField to
> return
> > > true.
> > > But the StatelessChecker is complaining:
> > > java.lang.IllegalArgumentException: '[CategorySearchPanel [Component
> id
> > =
> > > searchPanel]]' claims to be stateless but isn't. Offending component:
> > > [AutoCompleteTextField [Component id = searchTxt]]
> > >
> > > Thanks ! Kind Regards, Marieke
> > >
> >
> > --
> >
> >
> >  DISCLAIMER 
> >
> > http://www.tvh.com/glob/en/email-disclaimer
> >
> > "This message is delivered to all addressees subject to the conditions
> > set forth in the attached disclaimer, which is an integral part of this
> > message."
> >
>

-- 


 DISCLAIMER 

http://www.tvh.com/glob/en/email-disclaimer

"This message is delivered to all addressees subject to the conditions
set forth in the attached disclaimer, which is an integral part of this
message."


StatelessForm with CheckGroup

2017-07-03 Thread Marieke Vandamme
​Hi,

I'm using Apache Wicket 7.7.0.
Using following (summarized) code works:
Form form = new Form("form");
CheckGroup group = new CheckGroup("group")​;
group.add(new ListView("list"){
populateItem(ListItem li){
 li.add(new CheckBox("chk"));
}
}.setReuseItems(true));

But when I change the Form to a StatelessForm,
I get the following exception:
org.apache.wicket.WicketRuntimeException: submitted http post value
[check0] for CheckGroup component [form:group] contains an illegal value
[check0] which does not point to a Check component. Due to this the
CheckGroup component cannot resolve the selected Check component pointed to
by the illegal value. A possible reason is that component hierarchy changed
between rendering and form submission.

Thanks ! Kind Regards, Marieke

-- 


 DISCLAIMER 

http://www.tvh.com/glob/en/email-disclaimer

"This message is delivered to all addressees subject to the conditions
set forth in the attached disclaimer, which is an integral part of this
message."


Re: AutoCompleteTextField Stateless

2017-07-14 Thread Marieke Vandamme
Hi,

I tried for some time to display modal window with only javascript, like
Pedro is proposing, but can't find the right approach.
Pedro or somebody else, can you please send me some sample code for this?
Thanks in advance !


Met vriendelijke groeten, Salutations distinguées, Kind Regards,


*MARIEKE VANDAMMECORPORATE SERVICES* • *Domain Coordinator*
T +32 56 43 42 45 <+3256434245> • F +32 56 43 44 46 •
marieke.vanda...@tvh.com

*TVH GROUP NV*
Brabantstraat 15 • BE-8790 WAREGEM
T +32 56 43 42 11 <+3256434211> • F +32 56 43 44 88 • www.tvh.com
View our company movies via downloads on our website.

2017-06-30 4:45 GMT+02:00 Pedro Santos :

> Hi Marieke,
>
> in a similar situation I chose to send the components that should be
> presented in the modal window in the markup, hidden by the page CSS, and to
> create a modal window to show them using purely javascript.
>
> cheers
>
> Pedro Santos
>
> On Thu, Jun 29, 2017 at 11:33 AM, Marieke Vandamme <
> marieke.vanda...@tvh.com
> > wrote:
>
> > Hi,
> >
> > ​This is working. Thanks !
> > Do you also have a solution for the ModalWindow, or isn't that possible.
> ​
> >
> >
> > 2017-06-29 16:06 GMT+02:00 Andrea Del Bene :
> >
> > > Hi,
> > >
> > > try to override getStatelessHint also for the internal behavior used by
> > > AutoCompleteTextField. you have to override
> > > AutoCompleteTextField#newAutoCompleteBehavior and make it return
> > something
> > > like this:
> > >
> > > return new AutoCompleteBehavior(renderer, settings)
> > > {
> > > private static final long serialVersionUID = 1L;
> > >
> > > @Override
> > > protected Iterator getChoices(final String input)
> > > {
> > > return AutoCompleteTextField.this.getChoices(input);
> > > }
> > >
> > > @Override
> > > protected void updateAjaxAttributes(AjaxRequestAttributes
> > > attributes)
> > > {
> > > super.updateAjaxAttributes(attributes);
> > >
> > >     AutoCompleteTextField.this.updateAjaxAttributes(
> > > attributes);
> > > }
> > >
> > > @Override
> > > protected boolean getStatelessHint(Component component)
> > >{
> > >return true;
> > >}
> > > };
> > >
> > > On Thu, Jun 29, 2017 at 12:19 PM, Marieke Vandamme <
> > > marieke.vanda...@tvh.com
> > > > wrote:
> > >
> > > > And maybe even a more difficult one, is it possible to make
> ModalWindow
> > > > stateless?
> > > > Thanks again !
> > > >
> > > >
> > > > Met vriendelijke groeten, Salutations distinguées, Kind Regards,
> > > >
> > > >
> > > > *MARIEKE VANDAMMECORPORATE SERVICES* • *Domain Coordinator*
> > > > T +32 56 43 42 45 <+3256434245> • F +32 56 43 44 46 •
> > > > marieke.vanda...@tvh.com
> > > >
> > > > *TVH GROUP NV*
> > > > Brabantstraat 15 • BE-8790 WAREGEM
> > > > T +32 56 43 42 11 <+3256434211> • F +32 56 43 44 88 • www.tvh.com
> > > > View our company movies via downloads on our website.
> > > >
> > > > 2017-06-29 12:05 GMT+02:00 Marieke Vandamme <
> marieke.vanda...@tvh.com
> > >:
> > > >
> > > > > ​Hi,
> > > > >
> > > > > I'm using Apache Wicket 7.7.0.
> > > > > Is it possible to make  AutoCompleteTextField Stateless?
> > > > > ​I'm using StatelessChecker in my application and
> @StatelessComponent
> > > on
> > > > > my Panel.
> > > > > I've overridden getStatelessHint for the AutoCompleteTextField to
> > > return
> > > > > true.
> > > > > But the StatelessChecker is complaining:
> > > > > java.lang.IllegalArgumentException: '[CategorySearchPanel
> [Component
> > > id
> > > > =
> > > > > searchPanel]]' claims to be stateless but isn't. Offending
> component:
> > > > > [AutoCompleteTextField [Component id = searchTxt]]
> > > > >
> > > > > Thanks ! Kind Regards, Marieke
> > > > >
> > > >
> > > > --
> > > >
> > > >
> > > >  DISCLAIMER 
> > > >
> > > > http://www.tvh.com/glob/en/email-disclaimer
> > > >
> > > > "This message is delivered to all addressees subject to the
> conditions
> > > > set forth in the attached disclaimer, which is an integral part of
> this
> > > > message."
> > > >
> > >
> >
> > --
> >
> >
> >  DISCLAIMER 
> >
> > http://www.tvh.com/glob/en/email-disclaimer
> >
> > "This message is delivered to all addressees subject to the conditions
> > set forth in the attached disclaimer, which is an integral part of this
> > message."
> >
>

-- 


 DISCLAIMER 

http://www.tvh.com/glob/en/email-disclaimer

"This message is delivered to all addressees subject to the conditions
set forth in the attached disclaimer, which is an integral part of this
message."


FileNotFoundException when saving page to disk

2017-09-05 Thread Marieke Vandamme
Hi,

This morning we release a new version of our website, and start getting
strange exceptions in the logfile.
*2017-09-05 15:49:06 ERROR DiskDataStore:438 -
/run/jetty/aaa/bbb.dir/cccFilter-filestore/6809/6405/11rhtvkkhzsiqk1jcfde055w23b/data
(No such file or directory)*
*java.io.FileNotFoundException:
/run/jetty/aaa/bbb.dir/cccFilter-filestore/6809/6405/11rhtvkkhzsiqk1jcfde055w23b/data
(No such file or directory)*
*at java.io.RandomAccessFile.open(Native Method)*
*at java.io.RandomAccessFile.(RandomAccessFile.java:243)*
*at
org.apache.wicket.pageStore.DiskDataStore$SessionEntry.getFileChannel(DiskDataStore.java:432)*
*at
org.apache.wicket.pageStore.DiskDataStore$SessionEntry.savePage(DiskDataStore.java:350)*
*at
org.apache.wicket.pageStore.DiskDataStore.storeData(DiskDataStore.java:188)*
*at
org.apache.wicket.pageStore.AsynchronousDataStore$PageSavingRunnable.run(AsynchronousDataStore.java:355)*
*at java.lang.Thread.run(Thread.java:745)*

- With the previous version, wicket-7.6.0 we didn't have this problem. The
new version we are using is wicket-7.7.0.
- it can't really be related to filesystem permissions, because this error
only occurs once in a while.
- We don't know if it's related, but we also experience some strange
behavior with some ajax calls. Also, this behavior only happens once in a
while. The ajax call returns
*Ajax-Location:../PageExpired.html*
But the session isn't expired !

Anyone has any clue? Thanks in advance ! Kind Regards, Marieke

-- 


 DISCLAIMER 

http://www.tvh.com/glob/en/email-disclaimer

"This message is delivered to all addressees subject to the conditions
set forth in the attached disclaimer, which is an integral part of this
message."


RadioGroup lost value after onError form

2009-03-26 Thread Marieke Vandamme

Hello, 

consider example underneath. 
Form with DateTextField and RadioGroup. When an incorrect date is entered in
the TextField, the value choosen in radiogroup is lost. When correct date is
entered, the value is shown correct in radiogroup.
Is this an error in my code? Or a bug?
I'm using wicket 1.4-rc2. 
Thanks for any help !!

==TestPage.java==
public class TestPage extends WebPage {
private String color;
private Date date;
public TestPage(){
Form myform = new Form("myform");
myform.add(new FeedbackPanel("feedback"));
myform.add(new DateTextField("date", new PropertyModel(this,
"date")));
List colors = Arrays.asList(new String[]{"green", "red",
"yellow"});
myform.add(new RadioGroup("colors", new PropertyModel(this,
"color"))
.add(new ListView("color", colors) {
@Override
protected void populateItem(ListItem item) {
item.add(new Radio("radio", item.getModel()))
.add(new Label("value", item.getModelObject()));
}
}));
add(myform);
}

public String getColor() {
return color;
}
public void setColor(String color) {
this.color = color;
}
public Date getDate() {
return date;
}
public void setDate(Date date) {
this.date = date;
}
}

==TestPage.html==





















-- 
View this message in context: 
http://www.nabble.com/RadioGroup-lost-value-after-onError-form-tp22718553p22718553.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: RadioGroup lost value after onError form

2009-03-29 Thread Marieke Vandamme

Hello, 

Can't anyone help me with this? 
Or do I just report a jira bug for this? 
THANKS!


Marieke Vandamme wrote:
> 
> Hello, 
> 
> consider example underneath. 
> Form with DateTextField and RadioGroup. When an incorrect date is entered
> in the TextField, the value choosen in radiogroup is lost. When correct
> date is entered, the value is shown correct in radiogroup.
> Is this an error in my code? Or a bug?
> I'm using wicket 1.4-rc2. 
> Thanks for any help !!
> 
> ==TestPage.java==
> public class TestPage extends WebPage {
> private String color;
> private Date date;
> public TestPage(){
> Form myform = new Form("myform");
> myform.add(new FeedbackPanel("feedback"));
> myform.add(new DateTextField("date", new PropertyModel(this,
> "date")));
> List colors = Arrays.asList(new String[]{"green", "red",
> "yellow"});
> myform.add(new RadioGroup("colors", new PropertyModel(this,
> "color"))
> .add(new ListView("color", colors) {
> @Override
> protected void populateItem(ListItem item) {
> item.add(new Radio("radio", item.getModel()))
> .add(new Label("value", item.getModelObject()));
> }
> }));
> add(myform);
> }
> 
> public String getColor() {
> return color;
> }
> public void setColor(String color) {
> this.color = color;
> }
> public Date getDate() {
> return date;
> }
> public void setDate(Date date) {
> this.date = date;
> }
> }
> 
> ==TestPage.html==
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/RadioGroup-lost-value-after-onError-form-tp22718553p22777319.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: authorizing a tab

2009-04-07 Thread Marieke Vandamme

I think I had the same problem a while ago.
Look at the solution in discussion underneath:
http://www.nabble.com/TabbedPanel-%2B-authorization-strategy-td13949910.html#a13965618


Linda van der Pal wrote:
> 
> I'm trying to disable a tab in a TabbedPanel based on authorization. I'm 
> using wicket-auth-roles, and it works in other places, for example for 
> buttons. Could anybody tell me what I'm doing wrong? The tab just keeps 
> on showing, and if you click on it you go to a page that states that you 
> don't have authorization for that page. (As I have added an annotation 
> to that page as well.)
> 
> public class BookDetailsPanel extends Panel {
> ...
> public BookDetailsPanel(String id, final String isbn, boolean 
> showEditPanel) {
>...
>List tabs = new ArrayList();
>...
>tabs.add(new OwnerEditTab(new Model("edit"), isbn));
>...
> }
> @AuthorizeAction(action = Action.RENDER, roles = { "OWNER" })
> private class OwnerEditTab extends AbstractTab {
> private static final long serialVersionUID = 1L;
> private String isbn;
>
> public OwnerEditTab(IModel model, String isbn) {
> super(model);
> this.isbn = isbn;
> }
>
> @Override
> public Panel getPanel(String panelId) {
> return new BookDetailsEditPanel(panelId, isbn);
> }
> }
> }
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/authorizing-a-tab-tp22925752p22926397.html
Sent from the Wicket - User 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



add id to body with onComponentTag?

2009-06-25 Thread Marieke Vandamme
Hello, 

I'm using the following setup with markup inheritance

ParentPage.java extends WebPage
ChildPage.java extends ParentPage.java

In the constructor of my ParentPage I want the following:
   public Parent(String bodyId)

Then when the html is written, this id should be added to the body-tag in 
the id-attribute.
In this way, each ChildPage will have a different id-attribute in the 
body-tag, that will be used inside css.

I tried to override the OnComponentTag in the ParentPage, but this 
function is never called.

I don't want to add a wicket:id to the body, because then I have to add 
all components for my ChildPage's to that bodyComponent (that is on the 
parent).

Can anyone help me out or give me any hint? Thanks a lot ! Marieke.
 DISCLAIMER 
http://www.tvh.be/newen/pages/emaildisclaimer.html";>
http://www.tvh.be/newen/pages/emaildisclaimer.html 

"This message is delivered to all addressees subject to the conditions
set forth in the attached disclaimer, which is an integral part of this
message."


add id to body with onComponentTag?

2009-06-25 Thread Marieke Vandamme
Hello, 

I'm using the following setup with markup inheritance

ParentPage.java extends WebPage
ChildPage.java extends ParentPage.java

In the constructor of my ParentPage I want the following:
   public Parent(String bodyId)

Then when the html is written, this id should be added to the body-tag in 
the id-attribute.
In this way, each ChildPage will have a different id-attribute in the 
body-tag, that will be used inside css.

I tried to override the OnComponentTag in the ParentPage, but this 
function is never called.

I don't want to add a wicket:id to the body, because then I have to add 
all components for my ChildPage's to that bodyComponent (that is on the 
parent).

Can anyone help me out or give me any hint? Thanks a lot ! Marieke.
 DISCLAIMER 
http://www.tvh.be/newen/pages/emaildisclaimer.html";>
http://www.tvh.be/newen/pages/emaildisclaimer.html 

"This message is delivered to all addressees subject to the conditions
set forth in the attached disclaimer, which is an integral part of this
message."


Re: add id to body with onComponentTag?

2009-06-29 Thread Marieke Vandamme

Can't anyone help me with my problem?
Many thanks in advance ! Marieke


Marieke Vandamme-2 wrote:
> 
> Hello, 
> 
> I'm using the following setup with markup inheritance
> 
> ParentPage.java extends WebPage
> ChildPage.java extends ParentPage.java
> 
> In the constructor of my ParentPage I want the following:
>public Parent(String bodyId)
> 
> Then when the html is written, this id should be added to the body-tag in 
> the id-attribute.
> In this way, each ChildPage will have a different id-attribute in the 
> body-tag, that will be used inside css.
> 
> I tried to override the OnComponentTag in the ParentPage, but this 
> function is never called.
> 
> I don't want to add a wicket:id to the body, because then I have to add 
> all components for my ChildPage's to that bodyComponent (that is on the 
> parent).
> 
> Can anyone help me out or give me any hint? Thanks a lot ! Marieke.
>  DISCLAIMER 
>  http://www.tvh.be/newen/pages/emaildisclaimer.html 
> http://www.tvh.be/newen/pages/emaildisclaimer.html  
> 
> "This message is delivered to all addressees subject to the conditions
> set forth in the attached disclaimer, which is an integral part of this
> message."
> 
> 

-- 
View this message in context: 
http://www.nabble.com/add-id-to-body-with-onComponentTag--tp24211496p24266407.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: add id to body with onComponentTag?

2009-06-29 Thread Marieke Vandamme

Hello, 

Thanks for the answer, but that's not what I want. 
As I specified in my first post:
I don't want to add a wicket:id to the body, because then I have to add
all components for my ChildPage's to that bodyComponent (that is on the
parent).

Thanks again for any help!


igor.vaynberg wrote:
> 
> add(new webmarkupcontainer("body") { istransparentresolver() { return
> true; } oncomponenttag(tag) { tag.put("id",foo); }});
> 
> ...
> 
> -igor
> 
> On Mon, Jun 29, 2009 at 10:47 PM, Marieke Vandamme wrote:
>>
>> Can't anyone help me with my problem?
>> Many thanks in advance ! Marieke
>>
>>
>> Marieke Vandamme-2 wrote:
>>>
>>> Hello,
>>>
>>> I'm using the following setup with markup inheritance
>>>
>>> ParentPage.java extends WebPage
>>> ChildPage.java extends ParentPage.java
>>>
>>> In the constructor of my ParentPage I want the following:
>>>        public Parent(String bodyId)
>>>
>>> Then when the html is written, this id should be added to the body-tag
>>> in
>>> the id-attribute.
>>> In this way, each ChildPage will have a different id-attribute in the
>>> body-tag, that will be used inside css.
>>>
>>> I tried to override the OnComponentTag in the ParentPage, but this
>>> function is never called.
>>>
>>> I don't want to add a wicket:id to the body, because then I have to add
>>> all components for my ChildPage's to that bodyComponent (that is on the
>>> parent).
>>>
>>> Can anyone help me out or give me any hint? Thanks a lot ! Marieke.
>>>  DISCLAIMER 
>>>  http://www.tvh.be/newen/pages/emaildisclaimer.html
>>> http://www.tvh.be/newen/pages/emaildisclaimer.html
>>>
>>> "This message is delivered to all addressees subject to the conditions
>>> set forth in the attached disclaimer, which is an integral part of this
>>> message."
>>>
>>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/add-id-to-body-with-onComponentTag--tp24211496p24266407.html
>> Sent from the Wicket - User 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
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/add-id-to-body-with-onComponentTag--tp24211496p24266549.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: add id to body with onComponentTag?

2009-06-29 Thread Marieke Vandamme

Sorry, my bad. 
I didn't see the overriding of 'isTransparentResolver'. I didn't know that
existed. 
Thanks a lot!


Marieke Vandamme wrote:
> 
> Hello, 
> 
> Thanks for the answer, but that's not what I want. 
> As I specified in my first post:
> I don't want to add a wicket:id to the body, because then I have to add
> all components for my ChildPage's to that bodyComponent (that is on the
> parent).
> 
> Thanks again for any help!
> 
> 
> igor.vaynberg wrote:
>> 
>> add(new webmarkupcontainer("body") { istransparentresolver() { return
>> true; } oncomponenttag(tag) { tag.put("id",foo); }});
>> 
>> ...
>> 
>> -igor
>> 
>> On Mon, Jun 29, 2009 at 10:47 PM, Marieke Vandamme wrote:
>>>
>>> Can't anyone help me with my problem?
>>> Many thanks in advance ! Marieke
>>>
>>>
>>> Marieke Vandamme-2 wrote:
>>>>
>>>> Hello,
>>>>
>>>> I'm using the following setup with markup inheritance
>>>>
>>>> ParentPage.java extends WebPage
>>>> ChildPage.java extends ParentPage.java
>>>>
>>>> In the constructor of my ParentPage I want the following:
>>>>        public Parent(String bodyId)
>>>>
>>>> Then when the html is written, this id should be added to the body-tag
>>>> in
>>>> the id-attribute.
>>>> In this way, each ChildPage will have a different id-attribute in the
>>>> body-tag, that will be used inside css.
>>>>
>>>> I tried to override the OnComponentTag in the ParentPage, but this
>>>> function is never called.
>>>>
>>>> I don't want to add a wicket:id to the body, because then I have to add
>>>> all components for my ChildPage's to that bodyComponent (that is on the
>>>> parent).
>>>>
>>>> Can anyone help me out or give me any hint? Thanks a lot ! Marieke.
>>>>  DISCLAIMER 
>>>>  http://www.tvh.be/newen/pages/emaildisclaimer.html
>>>> http://www.tvh.be/newen/pages/emaildisclaimer.html
>>>>
>>>> "This message is delivered to all addressees subject to the conditions
>>>> set forth in the attached disclaimer, which is an integral part of this
>>>> message."
>>>>
>>>>
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/add-id-to-body-with-onComponentTag--tp24211496p24266407.html
>>> Sent from the Wicket - User 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
>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/add-id-to-body-with-onComponentTag--tp24211496p24266596.html
Sent from the Wicket - User 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



setting value in TextField with ajax fails after field had error

2009-07-07 Thread Marieke Vandamme
Hello, 

Consider my code underneath and following actions:
- Page has a form with a REQUIRED textfield and a button that updates that 
textfield through ajax
- When clicking button the value in textfield is altered with 'hello' => 
Normal situation
- When clearing the textfield again, the onError action of the 
AjaxFormComponentUpdatingBehavior is called, 
   because the value is empty and the field is required
- When clicking the button again the textfield is rewritten, but has an 
empty value instead of 'hello' => ERROR situation

If my explanation isn't enough, please let me know and I try again.
Hope someone can test my code and tell me what I am doing wrong..
Many thanks, Marieke

TestPage.html
--






TestPage.java
---
public class TestPage extends WebPage {
public TestPage(){
Form webform = new Form("webform", new CompoundPropertyModel(new 
FormBean()));
add(webform);
final TextField acTest = new TextField("acTest");
webform.add(acTest);
acTest.setRequired(true);
acTest.add(new AjaxFormComponentUpdatingBehavior("onchange") {
@Override
protected void onUpdate(AjaxRequestTarget target) {
System.out.println("onchange - onupdate");
}
@Override
protected void onError(AjaxRequestTarget target, 
RuntimeException e){
System.out.println("onchange - onerror");
}
});

webform.add(new AjaxLink("btnTest") {
@Override
public void onClick(AjaxRequestTarget target) {
FormBean formBean = 
(FormBean)getPage().get("webform").getDefaultModelObject();
formBean.setAcTest("hello");
target.addComponent(acTest);
}
});
}

public class FormBean implements Serializable{
private String acTest;
public FormBean(){
 
}
public String getAcTest() {
return acTest;
}
public void setAcTest(String acTest) {
this.acTest = acTest;
}
}
}
 DISCLAIMER 
http://www.tvh.be/newen/pages/emaildisclaimer.html";>
http://www.tvh.be/newen/pages/emaildisclaimer.html 

"This message is delivered to all addressees subject to the conditions
set forth in the attached disclaimer, which is an integral part of this
message."


Re: setting value in TextField with ajax fails after field had error

2009-07-08 Thread Marieke Vandamme

Hello, 

The onchange is what I need to use, but that's not my problem at all...
Please try my code, and follow the steps I mentioned above my code. 
Has anyone else got a clue? Thanks !


Mathias Nilsson wrote:
> 
> The onchange is only triggered when you type and then go onblur. Check
> onkeypress, onkeydown, onkeyup
> 

-- 
View this message in context: 
http://www.nabble.com/setting-value-in-TextField-with-ajax-fails-after-field-had-error-tp24385756p24404587.html
Sent from the Wicket - User 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



AutoCompleteTextField with initial focus not working

2009-07-16 Thread Marieke Vandamme
Hello, 

I have AutoCompleteTextField which has the focus when my page is loaded.
When I just start typing (because the field has initial focus), then no 
list is shown.
If I leave the field and then click in it again (loosing focus and then 
gaining it again), the list is shown.

Can somebody help me with this or is it a bug? 
Many thanks in advance! Marieke.
 DISCLAIMER 
http://www.tvh.be/newen/pages/emaildisclaimer.html";>
http://www.tvh.be/newen/pages/emaildisclaimer.html 

"This message is delivered to all addressees subject to the conditions
set forth in the attached disclaimer, which is an integral part of this
message."


Re: AutoCompleteTextField with initial focus not working

2009-07-17 Thread Marieke Vandamme

document.getElementById('mytxt').focus();


igor.vaynberg wrote:
> 
> how are you setting the initial focus?
> 
> -igor
> 
> On Thu, Jul 16, 2009 at 6:45 AM, Marieke
> Vandamme wrote:
>> Hello,
>>
>> I have AutoCompleteTextField which has the focus when my page is loaded.
>> When I just start typing (because the field has initial focus), then no
>> list is shown.
>> If I leave the field and then click in it again (loosing focus and then
>> gaining it again), the list is shown.
>>
>> Can somebody help me with this or is it a bug?
>> Many thanks in advance! Marieke.
>>  DISCLAIMER 
>>  http://www.tvh.be/newen/pages/emaildisclaimer.html 
>> http://www.tvh.be/newen/pages/emaildisclaimer.html  
>>
>> "This message is delivered to all addressees subject to the conditions
>> set forth in the attached disclaimer, which is an integral part of this
>> message."
>>
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/AutoCompleteTextField-with-initial-focus-not-working-tp24516661p24530409.html
Sent from the Wicket - User 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



Check if ajax request in HeaderContributor

2009-07-22 Thread Marieke Vandamme
Hello,

How do I test if the request is an ajax request in the HeaderContributor?
Because I don't want to call renderJavascriptReference and 
renderCSSReference when processing ajax request.

Many thanks in advance! Marieke.
 DISCLAIMER 
http://www.tvh.be/newen/pages/emaildisclaimer.html";>
http://www.tvh.be/newen/pages/emaildisclaimer.html 

"This message is delivered to all addressees subject to the conditions
set forth in the attached disclaimer, which is an integral part of this
message."


Re: Check if ajax request in HeaderContributor

2009-07-22 Thread Marieke Vandamme

I have specific components that need specific javascript or css (jquery,
scriptaculous,...).
For those components I put the includes in headercontributor for those
components. 
And when these are added to a page again, the js and css is loaded again
too. That I want to avoid. 
Thanks !


Linda van der Pal wrote:
> 
> So you are rendering the entire page again? Because usually you only 
> target certain areas of the page, so the headers don't come into the 
> picture.
> 
> Linda
> 
> Marieke Vandamme wrote:
>> Hello,
>>
>> How do I test if the request is an ajax request in the HeaderContributor?
>> Because I don't want to call renderJavascriptReference and 
>> renderCSSReference when processing ajax request.
>>
>> Many thanks in advance! Marieke.
>>  DISCLAIMER 
>>  http://www.tvh.be/newen/pages/emaildisclaimer.html 
>> http://www.tvh.be/newen/pages/emaildisclaimer.html  
>>
>> "This message is delivered to all addressees subject to the conditions
>> set forth in the attached disclaimer, which is an integral part of this
>> message."
>>
>>   
>> 
>>
>>
>> No virus found in this incoming message.
>> Checked by AVG - www.avg.com 
>> Version: 8.5.392 / Virus Database: 270.13.22/2253 - Release Date:
>> 07/21/09 18:02:00
>>
>>   
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Check-if-ajax-request-in-HeaderContributor-tp24602688p24602776.html
Sent from the Wicket - User 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



wicket-1055: How to implement new functionality

2008-12-16 Thread Marieke Vandamme

Hello, 

I was looking at the things that changed in 1.4rc1, and the following looked
interesting to me:
https://issues.apache.org/jira/browse/WICKET-1055
=> Add Radio to RadioGroup, but Radio doesn't need to be inside RadioGroup
in the markup.

The patch is suggesting that there will be a new function in RadioGroup,
addRadio(Radio r), but it's not in the 1.4rc1 sources. 
I looked in the subversion
(http://svn.apache.org/viewvc/wicket/trunk/wicket/src/main/java/org/apache/wicket/markup/html/form/)
and the things that changed (with comment WICKET-1055) are Check and
CheckGroupSelector. How does that affect the RadioGroup?

Any help welcome! Thanks! Marieke.
-- 
View this message in context: 
http://www.nabble.com/wicket-1055%3A-How-to-implement-new-functionality-tp21030374p21030374.html
Sent from the Wicket - User 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



Nested forms : don't process inner form when outer form is submitted

2009-02-09 Thread Marieke Vandamme

Hello, 

I've been reading a lot about nested forms and what should happen with the
inner forms when the outer form gets submitted. But I didn't found out how
you can implement what i'm trying:

I have inner form with some RequiredTextFields on it. These are required
when the inner form is processed with an AjaxButton, but not when the outer
form is submitted.

How can I do this? Thanks for any help !!! Marieke.
-- 
View this message in context: 
http://www.nabble.com/Nested-forms-%3A-don%27t-process-inner-form-when-outer-form-is-submitted-tp21910941p21910941.html
Sent from the Wicket - User 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



SubmitLink only calls form.onsubmit with 1.4-rc2

2009-02-09 Thread Marieke Vandamme

Hello, 

I already use 1.4-rc2 for my projects, and found some error within the
SubmitLink. 

Form form = new Form("webform"){
public void onSubmit(){
System.out.println("on form submit");
}
};
add(form);
form.add(new SubmitLink("btnSubmit1"){
public void onSubmit(){
System.out.println("on submit link clicked - ON FORM");
}
});
add(new SubmitLink("btnSubmit2", form){
public void onSubmit(){
System.out.println("on submit link clicked - OUTSIDE FORM");
}
});

The submit link that's on the form functions correctly, but the one outside
doesn't. on submit link clicked - OUTSIDE FORM doesn't get printed. I tested
with 1.4-rc1 and that works correctly.

Do I need to report jira for this or is 1.4-rc2 still under massive
construction? Thanks. Marieke.
-- 
View this message in context: 
http://www.nabble.com/SubmitLink-only-calls-form.onsubmit-with-1.4-rc2-tp21913795p21913795.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Nested forms : don't process inner form when outer form is submitted

2009-02-10 Thread Marieke Vandamme

Thanks for the suggestions, but I'm still not sure how to implement it.
My innerform implements IFormVisitorParticipant. I override
processChildren(), but how do I know which form is getting submitted???
Because when innerform is submitted, i want to return true, otherwise false. 
Thanks for any help!! Marieke.


igor.vaynberg wrote:
> 
> try letting your inner form implement IFormVisitorParticipant.
> 
> another way is to override isrequired() and check for the submitting
> component.
> 
> -igor
> 
> On Mon, Feb 9, 2009 at 3:17 AM, Marieke Vandamme  wrote:
>>
>> Hello,
>>
>> I've been reading a lot about nested forms and what should happen with
>> the
>> inner forms when the outer form gets submitted. But I didn't found out
>> how
>> you can implement what i'm trying:
>>
>> I have inner form with some RequiredTextFields on it. These are required
>> when the inner form is processed with an AjaxButton, but not when the
>> outer
>> form is submitted.
>>
>> How can I do this? Thanks for any help !!! Marieke.
>> --
>> View this message in context:
>> http://www.nabble.com/Nested-forms-%3A-don%27t-process-inner-form-when-outer-form-is-submitted-tp21910941p21910941.html
>> Sent from the Wicket - User 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
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Nested-forms-%3A-don%27t-process-inner-form-when-outer-form-is-submitted-tp21910941p21929547.html
Sent from the Wicket - User 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



get resource translation with specific locale

2010-06-08 Thread Marieke Vandamme

Hello, 

Is it possible to use the getString or some other kind of function to get
translation not in the language of the session, but one that is different?
We need this to send email, but this email is to our internal employees, so
needs to be in language other than the one that is requesting something. 

Now I save the locale from the session into a temp-locale variable, and
change the locale from the session to the email-language. Than I can use the
getString function. Afterwards I put the temp-locale variable back into the
session. I don't find this a perfect solution, so I have you guys have some
better alternative. 

Thanks for any help ! Marieke
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/get-resource-translation-with-specific-locale-tp2247162p2247162.html
Sent from the Wicket - User 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



get rights for mounted url

2010-06-08 Thread Marieke Vandamme

Hello, 

In my application I have the following:
mountBookmarkablePage("/insecure.html", InsecurePage.class);
mountBookmarkablePage("/secure.html", SecurePage.class);
MetaDataRoleAuthorizationStrategy.authorize(SecurePage.class, Roles.USER);

I have a reusable component (homemade) that generates the navigation for the
site from a database. In the database the 'secure.html' - url is specified,
but when making the link in the navigation, I need to check if the user has
right to the page.

Now my question: Is it possible that I get the rights for my SecurePage,
when only having the 'secure.html' to start from? I tried to look into the
wicket-code, but somewhere between BookmarkablePageRequestTarget and
RequestCycle I got lost... 
Hope someone can help me! Thanks for any help ! Marieke Vandamme
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/get-rights-for-mounted-url-tp2247394p2247394.html
Sent from the Wicket - User mailing list archive at Nabble.com.

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



Re: get resource translation with specific locale

2010-06-09 Thread Marieke Vandamme

Hi Erik,

problem is that I generate the emailtext in the onSubmit of my form. The
data that is printed in my form, and visible to the webuser, needs to be in
the locale from the session. So I can't override the getLocale from the
Form. Or am I missing something? 
Thanks, Marieke
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/get-resource-translation-with-specific-locale-tp2247162p2248749.html
Sent from the Wicket - User mailing list archive at Nabble.com.

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



Re: get rights for mounted url

2010-06-09 Thread Marieke Vandamme

Hi, 

Thanks for the hints, but there's only one thing I'm stuck with. 
I want to use MetaDataRoleAuthorizationStrategy.authorize(component,
Component.RENDER, rights); to set the right on my link, where rights are the
Roles. I now got my class from the IRequestTarget, but the only function in
MetaDataRoleAuthorizationStrategy that returns the Roles for my class,
rolesAuthorizedToInstantiate, is private.. 
Or my I use the code from within that function directly?
 final InstantiationPermissions permissions =
Application.get().getMetaData(
INSTANTIATION_PERMISSIONS);
if (permissions != null)
{
return permissions.authorizedRoles(componentClass);
}

Thanks again! Marieke
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/get-rights-for-mounted-url-tp2247394p2248769.html
Sent from the Wicket - User 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



Modalwindow with confirm box on close button

2010-10-26 Thread Marieke Vandamme
Hello, 

I want to aks the user if he is sure that he wants to close the 
modalwindow. 
Most of the time we use the modalwindow to edit a bean. But when closing 
the modalwindow with close button, we are not sure if the user wants to 
save the data or not. 
Using 'setCloseButtonCallback' is not an option, because showing the 
confirm-box should be just before going to server (or not if user doesn't 
confirm).

Thanks for any help !
Kind Regards, Marieke Vandamme
 DISCLAIMER 

http://www.tvh.com/newen2/emaildisclaimer/default.html 

"This message is delivered to all addressees subject to the conditions
set forth in the attached disclaimer, which is an integral part of this
message."


Betr.: Re: Modalwindow with confirm box on close button

2010-10-27 Thread Marieke Vandamme
Hello, 

Thanks for the response!
I already use jquery in my project for other stuff, so I would be a 
solution.

I hoped there was a standard fitted solution in wicket.
We override 'getEventHandler' often to override the onclick for a 
behavior,
so why can't there be something like that to override the onclick of the 
close button? 
Does it exist or should i put it as 'new feature'? 

Thanks, Marieke





Andrea Del Bene  
27/10/2010 16:23
Antwoord a.u.b. aan
users@wicket.apache.org


Aan
users@wicket.apache.org
Cc

Onderwerp
Re: Modalwindow with confirm box on close button






Hi Marieke,

some times ago I've solved a similar problem using JQuery and a plugin 
called jQuery AOP, but I don't know if exists a simpler solution. I used 
jQuery AOP with close button which is a standard anchor with class 
attribute set to 'w_close'. The following script will ask user to 
confirm before closing window without sending any data to server. I hope 
it could help you:


$('a.w_close').each(function(){
jQuery.aop.around( {target: this, method: 'onclick'},
   function(invocation) {

 if(confirm("Are you REALLY sure?")){
 return invocation.proceed();
 }else{
 return false;
 }
   }
 );
});

bye.
> Hello,
>
> I want to aks the user if he is sure that he wants to close the
> modalwindow.
> Most of the time we use the modalwindow to edit a bean. But when closing
> the modalwindow with close button, we are not sure if the user wants to
> save the data or not.
> Using 'setCloseButtonCallback' is not an option, because showing the
> confirm-box should be just before going to server (or not if user 
doesn't
> confirm).
>
> Thanks for any help !
> Kind Regards, Marieke Vandamme
>  DISCLAIMER 
>
> http://www.tvh.com/newen2/emaildisclaimer/default.html
>
> "This message is delivered to all addressees subject to the conditions
> set forth in the attached disclaimer, which is an integral part of this
> message."
>
> 


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


 DISCLAIMER 

http://www.tvh.com/newen2/emaildisclaimer/default.html 

"This message is delivered to all addressees subject to the conditions
set forth in the attached disclaimer, which is an integral part of this
message."


1.5 - getResourceSettings addResourceFolder - getResource

2012-04-17 Thread Marieke Vandamme
Dear, 

I'm converting a project from wicket 1.4 to wicket 1.5. 
Underneath worked in 1.4, but doesn't in 1.5. 

- In my application I add an additional resource folder:
  getResourceSettings().addResourceFolder("c:\\myfolder");
- I have a class ResourceGetter in com.test package.
- I'm trying to get "test.xml" from the filesystem doing the following:
  ResourceGetter.getClass().getResource("test.xml").
- This works when the "test.xml" is inside my project, but not when it's on
c:\myfolder\com\test\test.xml.

Is this a bug, or am I doing something wrong? Thanks in advance !

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/1-5-getResourceSettings-addResourceFolder-getResource-tp4563969p4563969.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



Wicket 6 - getEventHandler/getAjaxCallDecorator removed

2012-09-13 Thread Marieke Vandamme
Hi,

In wicket 1.5 we used very often getEventHandler or getAjaxCallDecorator to
ask the user if he was sure he wanted to do something. 
Now I see these functions have been deleted. 
What is the new way to do this? I searched around the code, but the new way
of dealing with Ajax en JQuery is kinda complicated when you look at it the
first time.

Many thanks! Kind regards, Marieke Vandamme



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-6-getEventHandler-getAjaxCallDecorator-removed-tp4651968.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Wicket 6 - getEventHandler/getAjaxCallDecorator removed

2012-09-13 Thread Marieke Vandamme
Sorry, 
I guess I should read the information provided first ... 
https://cwiki.apache.org/confluence/display/WICKET/Wicket+Ajax



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-6-getEventHandler-getAjaxCallDecorator-removed-tp4651968p4651970.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Wicket 6 - drupal markup is rendered totally wrong

2012-09-17 Thread Marieke Vandamme
Hi, 
underneath the first part where it goes wrong. 
Al the -tag is printed before the 







*html wicket makes from it:*

Re: Wicket 6 - drupal markup is rendered totally wrong

2012-09-18 Thread Marieke Vandamme
hi Martin,

Could you test with my code? 
Is it a bug or is something in my template not correct. 

Thanks ! kind regards, Marieke



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-6-drupal-markup-is-rendered-totally-wrong-tp4652034p4652084.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Wicket 6 - drupal markup is rendered totally wrong

2012-09-18 Thread Marieke Vandamme
Sorry, 
it's a common fact that women can make something difficult from something
very easy.
I hope my quickstart does the trick.
WICKET-4766

Thanks !



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-6-drupal-markup-is-rendered-totally-wrong-tp4652034p4652092.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: wicket-dnd strange situation

2012-09-19 Thread Marieke Vandamme
Dear Sven, 

Is wicket-dnd already changed for wicket 6 ?
I can't find the sources for this..

Thanks! Kind Regards, Marieke Vandamme



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wicket-dnd-strange-situation-tp4650918p4652141.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Wicket 6 - add AjaxCallListener to existing component

2012-09-27 Thread Marieke Vandamme
Hi, 

I have a component that I use to do my own feedback an stuff. 
This component contains a LabeledWebMarkupContainer, which is passed inside
the constructor. 
This LabeledWebMarkupContainer can be a TextField, DropDownChoice, Radio,
...

The constructor is like this: 

public MyFeedBackComponent(LabeledWebMarkupContainer component){
// here i want to add behavior for all kind of components 
component.getAjaxRequestAttributes().add(new AjaxCallListener());
}

So the implementation you suggest isn't applicable in my situation I guess..



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-6-add-AjaxCallListener-to-existing-component-tp4652404p4652408.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Wicket 6 - add AjaxCallListener to existing component

2012-09-27 Thread Marieke Vandamme
Sorry, I don't get it...
When I don't want to change all the constructors of my components, 
how can I use the function updateAjaxAttributes on an already existing
component ?
I thought this function is only overriddable when you are constructing the
component.

So when you want to add the same AjaxCallListener to all components on a
panel:
this.visitChildren(new IVisitor() {
public void component(Component component, IVisit visit) {
//here I want to add the AjaxCallListener to the
component. I can't use updateAjaxAttributes here.. The components are all of
different Classes, TextField, TextArea, DropDownChoice, ...
}
}



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-6-add-AjaxCallListener-to-existing-component-tp4652404p4652411.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Wicket 6 - add AjaxCallListener to existing component

2012-09-27 Thread Marieke Vandamme
In wicket 1.5 I could do:
this.visitChildren(new IVisitor() { 
public void component(Component component, IVisit visit) { 
component.add(new AjaxEventBehavior("")); 
} 
}



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-6-add-AjaxCallListener-to-existing-component-tp4652404p4652412.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



IE CSS engine doesn't support dynamically injected links in conditional comments

2013-01-15 Thread Marieke Vandamme
Hi, 

We use wicket 6.4.0 and as a result of WICKET-4894 we now get the following
message in our logfiles very often: IE CSS engine doesn't support
dynamically injected links in conditional comments.

I don't know how to solve this, since this is happening when adding a
component to the target.
This component renders a ResourceReference in the renderHead. 
This ResourceReference depends on (with the getDependencies function) a
CssUrlReferenceHeaderItem with the condition 'IE'.
=> This last one is causing the problem

Thanks for any help on how I should solve this.
Kind Regards, Marieke




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/IE-CSS-engine-doesn-t-support-dynamically-injected-links-in-conditional-comments-tp4655395.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



ModalWindow with Panel with inside ModalWindow with Panel

2010-11-14 Thread Marieke Vandamme

Hello,

I was trying the following:
- TestPage opens ModalWindow with inside Panel (TestPanel1)
- TestPanel1 opens ModalWindow with inside Panel (TestPanel2)
- TestPanel2 contains form

Submitting the form on TestPanel2 gives following error in the Ajax Debug
Window:
Trying to submit form with id 'testForm9' that is not in document.

I did set the pageMapName for the ModalWindow, so I don't know what I
forgot.
When using firebug to look inside the generated html, the form with id
'testForm9' isn't present. The form-tag (or some other tag replacing this)
isn't in the html-document at all...

Thanks for any suggestion!
Kind regards, Marieke Vandamme
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/ModalWindow-with-Panel-with-inside-ModalWindow-with-Panel-tp3042576p3042576.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



ModalWindow with panel: Strange model behaviour after onError

2010-11-16 Thread Marieke Vandamme

Hello,

I have ModalWindow with a panel as content. 
This Panel contains: 
- form with a required textfield
- ajaxsubmitbutton to submit the form (btnSave)
- ajaxlink to fill the textfield and reprint the form (btnSetValue)

When just clicking the 'btnSetValue', the form is reprinted and the value is
set => no problem

Problem:
- first submit the form with 'btnSave' => the form is reprinted to show the
feedbackmessages
- then click the 'btnSetValue' to reprint the form with wanted value => the
form is reprinted, but the value isn't filled in

It's like the model of the form is messed up after the onError.
Please help me with this one, because I don't know where to start..
Am I doing something wrong or is it a bug?
Kind Regards, Marieke Vandamme

Underneath the code of my Panel:

  public TestPanel1(String id){
super(id);  
add(new TestForm("testForm"));
}

public class TestForm extends Form {
public TestForm(String id){
super(id, new CompoundPropertyModel(new FormBean()));
add(new RequiredTextField("text"));
add(new FeedbackPanel("feedback"));
add(new AjaxButton("btnSave") {
@Override
protected void onSubmit(AjaxRequestTarget target, Form
form) {
System.out.println("submitting TestPanel1 form");
}

@Override
protected void onError(AjaxRequestTarget target, Form
form) {
target.addComponent(form);
}

});

add(new AjaxLink("btnSetValue") {
@Override
public void onClick(AjaxRequestTarget target) {
TestForm.this.getModelObject().setText("blablabla");
target.addComponent(TestForm.this);
}
});
}
}

public class FormBean implements Serializable {
private String text;

/**
 * @return the text
 */
public String getText() {
return text;
}

/**
 * @param text the text to set
 */
public void setText(String text) {
this.text = text;
}
}
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/ModalWindow-with-panel-Strange-model-behaviour-after-onError-tp3046234p3046234.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: ModalWindow with panel: Strange model behaviour after onError

2010-11-21 Thread Marieke Vandamme

Can someone please help me with this one? 
Or should I put this on the Jira? 

Thanks! Kind Regards, Marieke
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/ModalWindow-with-panel-Strange-model-behaviour-after-onError-tp3046234p3053145.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



Modalwindow showing content from external URL

2011-03-15 Thread Marieke Vandamme
Hello, 

Is there a way to open an external page inside a modalwindow? 
The reason why I ask is to avoid popup-blokkers...
Or should i just put an iframe on my modalwindow?

Thanks, Marieke Vandamme

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Modalwindow-showing-content-from-external-URL-tp3356798p3356798.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



ModalWindow with Panel - HeaderContributor in Panel not called

2011-05-11 Thread Marieke Vandamme
Hello, 

This is my situation:
Page
  |-> ModalWindow
   |-> Panel
   |-> HomeMadeReusableComponent
   |-> HeaderContributor

In this HeaderContributor I override renderHead(IHeaderResponse response).
I thought that everything I wrote to the response would end up in my Page,
but it doesn't...

I know that one option would be to add the HeaderContributor directly to the
page, but then I have duplicate code that is now needly inside my
HomeMadeReusableComponent.

I tried to add the HeaderContributer inside my HomeMadeReusableComponent to
the page instead then adding it to the component, but HeaderContributors are
defined inside the component constructor and then my page isn't ready yet. 

Can anyone help me or give me any hints? 
Thanks in advance ! Marieke vandamme

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/ModalWindow-with-Panel-HeaderContributor-in-Panel-not-called-tp3514628p3514628.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: ModalWindow with Panel - HeaderContributor in Panel not called

2011-05-12 Thread Marieke Vandamme
Igor, 

Thanks for the answer, and you're right indeed. 
I forgot that I added code in my HeaderContributor that checked if it was an
ajax request. Because I found it useless so re-add all the css + js to the
page just when you're readding your form after validation or something. But
when using the HeaderContributor with the modalwindow, I can never be
certain that the css / js is already loaded or not. 
So I just removed my ajax-check, and now it's working. But can I maybe add
some test to check if my HomeMadeReusabel component is inside a ModalWindow?
Because now I re-add the js + css every time on an ajax call, and most of
the time it's not necessary. 

Thanks! Marieke Vandamme

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/ModalWindow-with-Panel-HeaderContributor-in-Panel-not-called-tp3514628p3516743.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



Use pageparameters from authorized page to login

2011-05-25 Thread Marieke Vandamme
Hello, 

In my application all the pages are restricted using the
MetaDataRoleAuthorizationStrategy.
I want to give my user the ability to directly see the data from such a page
using pageParameters:
- http://www.mysite.com/page1.html?login=abc&pass=123
- http://www.mysite.com/page2.html?login=abc&pass=123
- ...

When the page is constructed, wicket sees that the user is not logged in, so
redirects to the loginpage (redirectToInterceptPage). There I want to use
the pageparameters from the initial URL to do authorization and redirect
back (continueToOriginalDestination). 
How can I get the pageparameters from the initial URL? Can't find them in
request, not in pageparameters from loginpage, ... 

Thanks for any help ! Kind regards, Marieke Vandamme

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Use-pageparameters-from-authorized-page-to-login-tp3549134p3549134.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Use pageparameters from authorized page to login

2011-05-25 Thread Marieke Vandamme
Thanks for the answer, but I don't know how to get the PageParameters from
the RequestCycle in the LoginPage, therefore some more information:

- my application extends AuthenticatedWebApplication
- the init of my Page1 or Page2 is never called because user is not
authorized to see page (because not logged in) and therefore
RestartResponseAtInterceptPageException is thrown. 
see AuthenticatedWebApplication:onUnauthorizedInstantiation =>  throw new
RestartResponseAtInterceptPageException(getSignInPageClass());
- in RestartResponseAtInterceptPageException function
redirectToInterceptPage is used which uses
pageMap.redirectToInterceptPage(interceptPage) to go to LoginPage
(=getSignInPageClass()). 
- No pageparameters are passed to the new request, so none are available in
the LoginPage. Even not in the RequestCycle, because this is different from
the initial one.

Do we need to override onUnauthorizedInstantiation and pass the
pageparameters pulled from RequestCycle?

Thanks again. Marieke Vandamme

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Use-pageparameters-from-authorized-page-to-login-tp3549134p3549188.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



Wicket 1.5 - return to previous page link

2011-06-03 Thread Marieke Vandamme
Hello, 

Is it possible to return to previous page with wicket-link (not browser
link).
In 1.4 I used:
PageprevPage = getPage().getPageMap().get(pageIndicator.getPrevPageId(),
-1);
throw new RestartResponseAtInterceptPageException(prevPage);

Thanks a lot, Marieke Vandamme

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-return-to-previous-page-link-tp3570492p3570492.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Wicket 1.5 - return to previous page link

2011-06-03 Thread Marieke Vandamme
Yes, indeed that's because I post it on the mailinglist, to know what I
should use in place.
More info: I can't use javascript function history.go(-1), because the page
can be bookmarkable. So I check if the prevPageId was past in the page
constructor. If passed, I want to go to that cached wicket page, otherwise,
I want to make new instance of the page.
Thanks ! Marieke Vandamme

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-return-to-previous-page-link-tp3570492p3570629.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



  1   2   >