OnChangeAjaxBehavior

2009-04-01 Thread Vitek Tajzich
Hi,

I have RadioChoice component and CompoundPropertyModel.

I've added OnChangeAjaxBehavior but when I change value and go to method
"onUpdate" then the model object is not updated yet.

am I using wrong behaviour or what is it wrong?

thx,

Vitek


page parameters for home page

2009-03-29 Thread Vitek Tajzich
Hi,

I want to get page parameters for home page.

When I have page mounted to url etc: "page1" and I enter url
"/page1/key/value" then I get this parameter via special constructor. How
can I do same thing for Home page?

I mean that I want to enter only "/key/value" .is it possible?

thx,

Vitek


load html according to page parameters

2009-03-22 Thread Vitek Tajzich
Hi,

I would like to load HTML according to page parameters. So If I get as page
parameter "page1" a need to get page1.html or page1_en.html and so on...

Any guess?


thank you,

Vitek


Re: form - ajax submit and validation

2009-02-20 Thread Vitek Tajzich
Yes, that is right...I'mit is obvious :-)

thank you all for your help!

V.

2009/2/20 Martin Voigt 

> You can set the form processing mode per button:
>
> submitButton.setDefaultFormProcessing(true);
> cancelButton.setDefaultFormProcessing(false);
>
> So if the user clicks submitButton, the form is validated, if she
> clicks cancelButton, it is not.
>
> Martin
>
>
>
> 2009/2/20 Vitek Tajzich :
> > Wellsometimes is a good idea to read a documentation :-)
> >
> > I found on wicket's wiki that I have to update feedback panel. This
> should
> > be done like this:
> >
> > protected void onError(final AjaxRequestTarget target, final Form form) {
> >// or update the feedback panel
> >target.addComponent(form.getPage().get("feedback"));
> > }
> >
> >
> > And It is work! :-)
> >
> > So, If you have only one submit button, do not set defaultFormProcessing
> =
> > false, because this will remove validation and do not forget to update
> > feedbackpanel like in an example above.
> >
> > One more question remains. What If I have more than one submit buttons
> and I
> > have to set defaultFormProcessing = false. How can I call validation?
> >
> > thx,
> >
> > V.
> >
> > 2009/2/20 Vitek Tajzich 
> >
> >> well it happend inside of FormI cannot do anything
> >>
> >> 2009/2/20 Martijn Dashorst 
> >>
> >> perhaps add the feedback panel to the ajax request target?
> >>>
> >>> Martijn
> >>>
> >>> On Fri, Feb 20, 2009 at 10:55 AM, Vitek Tajzich 
> >>> wrote:
> >>> > Hi,
> >>> >
> >>> > that was my mistake. I set to submit button defaultFormProcessing =
> >>> false
> >>> > and that is why validation haven't been processed.
> >>> >
> >>> > Now validations are processed but I'm getting this warning:
> >>> > Component-targetted feedback message was left unrendered. This could
> be
> >>> > because you are missing a FeedbackPanel on the page.
> >>> >
> >>> > And no validation message is displayed.
> >>> >
> >>> > But when I use non ajax based submit then message are shown
> correctly.
> >>> >
> >>> > piece of code...
> >>> >
> >>> > IndicatingAjaxButton orderSubmit = new
> >>> IndicatingAjaxButton("order-submit",
> >>> > orderForm) {
> >>> >
> >>> >private static final long serialVersionUID =
> >>> > -3779837727856697099L;
> >>> >
> >>> >/** {...@inheritdoc} */
> >>> >@Override
> >>> >protected void onSubmit(AjaxRequestTarget target, Form
> >>> form)
> >>> > {
> >>> >
> >>> >//some bussines logic here
> >>> >}
> >>> >};
> >>> >
> >>> >
> >>> >
> >>> > 2009/2/19 Matt Welch 
> >>> >
> >>> >>
> >>> >> I think more information is needed before someone can provide a
> useful
> >>> >> response:
> >>> >>
> >>> >>
> >>> >> Are you initializing the AjaxButton with the form (in the the
> >>> constructor
> >>> >> of
> >>> >> the AjaxButton or with setter)?
> >>> >> Is the form data being submitted? If not, this would indicate a
> problem
> >>> >> somewhere other than in the validation itself.
> >>> >> Can you show your actual code?
> >>> >>
> >>> >>
> >>> >>
> >>> >>
> >>> >> Vitek.Tajzich wrote:
> >>> >> >
> >>> >> > Hi guys,
> >>> >> >
> >>> >> > I have form and AjaxButton as submit button for the form. If I use
> >>> non
> >>> >> > ajax
> >>> >> > button validation is called and input fields are validated. But If
> I
> >>> use
> >>> >> > AjaxButton then validation are passedWhat should I do to get
> form
> >>> >> > validated even If I use ajax button?
> >>> >> >
> >>> >> > thank you,
> >>> >> >
> >>> >> > Vitek
> >>> >> >
> >>> >> >
> >>> >>
> >>> >> --
> >>> >> View this message in context:
> >>> >>
> >>>
> http://www.nabble.com/form---ajax-submit-and-validation-tp22102523p22104799.html
> >>> >> Sent from the Wicket - User mailing list archive at Nabble.com.
> >>> >>
> >>> >
> >>>
> >>>
> >>>
> >>> --
> >>> Become a Wicket expert, learn from the best: http://wicketinaction.com
> >>> Apache Wicket 1.3.5 is released
> >>> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
> >>>
> >>> -
> >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >>> For additional commands, e-mail: users-h...@wicket.apache.org
> >>>
> >>>
> >>
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: form - ajax submit and validation

2009-02-20 Thread Vitek Tajzich
Wellsometimes is a good idea to read a documentation :-)

I found on wicket's wiki that I have to update feedback panel. This should
be done like this:

protected void onError(final AjaxRequestTarget target, final Form form) {
// or update the feedback panel
target.addComponent(form.getPage().get("feedback"));
}


And It is work! :-)

So, If you have only one submit button, do not set defaultFormProcessing =
false, because this will remove validation and do not forget to update
feedbackpanel like in an example above.

One more question remains. What If I have more than one submit buttons and I
have to set defaultFormProcessing = false. How can I call validation?

thx,

V.

2009/2/20 Vitek Tajzich 

> well it happend inside of FormI cannot do anything
>
> 2009/2/20 Martijn Dashorst 
>
> perhaps add the feedback panel to the ajax request target?
>>
>> Martijn
>>
>> On Fri, Feb 20, 2009 at 10:55 AM, Vitek Tajzich 
>> wrote:
>> > Hi,
>> >
>> > that was my mistake. I set to submit button defaultFormProcessing =
>> false
>> > and that is why validation haven't been processed.
>> >
>> > Now validations are processed but I'm getting this warning:
>> > Component-targetted feedback message was left unrendered. This could be
>> > because you are missing a FeedbackPanel on the page.
>> >
>> > And no validation message is displayed.
>> >
>> > But when I use non ajax based submit then message are shown correctly.
>> >
>> > piece of code...
>> >
>> > IndicatingAjaxButton orderSubmit = new
>> IndicatingAjaxButton("order-submit",
>> > orderForm) {
>> >
>> >private static final long serialVersionUID =
>> > -3779837727856697099L;
>> >
>> >/** {...@inheritdoc} */
>> >@Override
>> >protected void onSubmit(AjaxRequestTarget target, Form
>> form)
>> > {
>> >
>> >//some bussines logic here
>> >}
>> >};
>> >
>> >
>> >
>> > 2009/2/19 Matt Welch 
>> >
>> >>
>> >> I think more information is needed before someone can provide a useful
>> >> response:
>> >>
>> >>
>> >> Are you initializing the AjaxButton with the form (in the the
>> constructor
>> >> of
>> >> the AjaxButton or with setter)?
>> >> Is the form data being submitted? If not, this would indicate a problem
>> >> somewhere other than in the validation itself.
>> >> Can you show your actual code?
>> >>
>> >>
>> >>
>> >>
>> >> Vitek.Tajzich wrote:
>> >> >
>> >> > Hi guys,
>> >> >
>> >> > I have form and AjaxButton as submit button for the form. If I use
>> non
>> >> > ajax
>> >> > button validation is called and input fields are validated. But If I
>> use
>> >> > AjaxButton then validation are passedWhat should I do to get form
>> >> > validated even If I use ajax button?
>> >> >
>> >> > thank you,
>> >> >
>> >> > Vitek
>> >> >
>> >> >
>> >>
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/form---ajax-submit-and-validation-tp22102523p22104799.html
>> >> Sent from the Wicket - User mailing list archive at Nabble.com.
>> >>
>> >
>>
>>
>>
>> --
>> Become a Wicket expert, learn from the best: http://wicketinaction.com
>> Apache Wicket 1.3.5 is released
>> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>


Re: form - ajax submit and validation

2009-02-20 Thread Vitek Tajzich
well it happend inside of FormI cannot do anything

2009/2/20 Martijn Dashorst 

> perhaps add the feedback panel to the ajax request target?
>
> Martijn
>
> On Fri, Feb 20, 2009 at 10:55 AM, Vitek Tajzich 
> wrote:
> > Hi,
> >
> > that was my mistake. I set to submit button defaultFormProcessing = false
> > and that is why validation haven't been processed.
> >
> > Now validations are processed but I'm getting this warning:
> > Component-targetted feedback message was left unrendered. This could be
> > because you are missing a FeedbackPanel on the page.
> >
> > And no validation message is displayed.
> >
> > But when I use non ajax based submit then message are shown correctly.
> >
> > piece of code...
> >
> > IndicatingAjaxButton orderSubmit = new
> IndicatingAjaxButton("order-submit",
> > orderForm) {
> >
> >private static final long serialVersionUID =
> > -3779837727856697099L;
> >
> >/** {...@inheritdoc} */
> >@Override
> >protected void onSubmit(AjaxRequestTarget target, Form
> form)
> > {
> >
> >//some bussines logic here
> >}
> >};
> >
> >
> >
> > 2009/2/19 Matt Welch 
> >
> >>
> >> I think more information is needed before someone can provide a useful
> >> response:
> >>
> >>
> >> Are you initializing the AjaxButton with the form (in the the
> constructor
> >> of
> >> the AjaxButton or with setter)?
> >> Is the form data being submitted? If not, this would indicate a problem
> >> somewhere other than in the validation itself.
> >> Can you show your actual code?
> >>
> >>
> >>
> >>
> >> Vitek.Tajzich wrote:
> >> >
> >> > Hi guys,
> >> >
> >> > I have form and AjaxButton as submit button for the form. If I use non
> >> > ajax
> >> > button validation is called and input fields are validated. But If I
> use
> >> > AjaxButton then validation are passedWhat should I do to get form
> >> > validated even If I use ajax button?
> >> >
> >> > thank you,
> >> >
> >> > Vitek
> >> >
> >> >
> >>
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/form---ajax-submit-and-validation-tp22102523p22104799.html
> >> Sent from the Wicket - User mailing list archive at Nabble.com.
> >>
> >
>
>
>
> --
> Become a Wicket expert, learn from the best: http://wicketinaction.com
> Apache Wicket 1.3.5 is released
> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: form - ajax submit and validation

2009-02-20 Thread Vitek Tajzich
Hi,

that was my mistake. I set to submit button defaultFormProcessing = false
and that is why validation haven't been processed.

Now validations are processed but I'm getting this warning:
Component-targetted feedback message was left unrendered. This could be
because you are missing a FeedbackPanel on the page.

And no validation message is displayed.

But when I use non ajax based submit then message are shown correctly.

piece of code...

IndicatingAjaxButton orderSubmit = new IndicatingAjaxButton("order-submit",
orderForm) {

private static final long serialVersionUID =
-3779837727856697099L;

/** {...@inheritdoc} */
@Override
protected void onSubmit(AjaxRequestTarget target, Form form)
{

//some bussines logic here
}
};



2009/2/19 Matt Welch 

>
> I think more information is needed before someone can provide a useful
> response:
>
>
> Are you initializing the AjaxButton with the form (in the the constructor
> of
> the AjaxButton or with setter)?
> Is the form data being submitted? If not, this would indicate a problem
> somewhere other than in the validation itself.
> Can you show your actual code?
>
>
>
>
> Vitek.Tajzich wrote:
> >
> > Hi guys,
> >
> > I have form and AjaxButton as submit button for the form. If I use non
> > ajax
> > button validation is called and input fields are validated. But If I use
> > AjaxButton then validation are passedWhat should I do to get form
> > validated even If I use ajax button?
> >
> > thank you,
> >
> > Vitek
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/form---ajax-submit-and-validation-tp22102523p22104799.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>


form - ajax submit and validation

2009-02-19 Thread Vitek Tajzich
Hi guys,

I have form and AjaxButton as submit button for the form. If I use non ajax
button validation is called and input fields are validated. But If I use
AjaxButton then validation are passedWhat should I do to get form
validated even If I use ajax button?

thank you,

Vitek


wicketstuff-how to contribute

2009-01-17 Thread Vitek Tajzich
Hi,



I know that this question is not directly related to wicket itself but I
hope that somebody knows answer J

 

I have updated wicketstuff-lightbox project to be compliant with wicket
1.4-rc1 and I would send my changes back but I cannot find some contact,
mail or something about wicketstuff group.

 

Could someone point me where I can find these information? May be I'm really
blind.. ;-)

 

Thank you,

 

Vitek



Re: Problem with dynamic insertion to Tree

2009-01-15 Thread Vitek Tajzich
what about call target.addComponent(this);

?

you have updated tree but you didn't tell wicket to update this component
visually...

V.

2009/1/15 PSkarthic 

>
> I have a problem in inserting/adding nodes dynamically to tree.
>
> When i inserted/added a node on click, the plus icon appears but it is not
> expanded, that is it is not showing the child node i have tried tree.update
> but not worked.
>
> My Code
> protected void onNodeLinkClicked(org.apache.wicket.ajax.AjaxRequestTarget
> target,
>javax.swing.tree.TreeNode node){
>
>MyTreeNode nd = (MyTreeNode)node;
>//nd.add(new DefaultMutableTreeNode("sample"));
>System.out.println(node + "Ajax Clicked");
>nd.insert(new MyTreeNode(node + "child"), 0);
>
>//this.modelChanged();
>//this.nodeExpanded(node);
>this.updateTree();
>
>
>}
>
> Why it is happening like.
>
>
>
> Thanks
> Karthic
> --
> View this message in context:
> http://www.nabble.com/Problem-with-dynamic-insertion-to-Tree-tp21474815p21474815.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: Modal window - chagne width and height

2009-01-06 Thread Vitek Tajzich
there is no special code

just on ajaxrequesttarget call method appendJavascript() and use the code
below.

Window will get resized and centered. I have also noticed that If I set
width and height to empty strings, window will resize to it's needs :-)

V.

2009/1/6 Martin Makundi 

> Hi, would you be kind to post also the server-side java code here?
> Otherwise, I have to go guessing ...
>
> **
> Martin
>
> 2009/1/6 Vitek Tajzich :
> > Hi,
> >
> > I've found a solution to this problem. It is straight forward but I did
> one
> > mistake in my javascript. Thanks god for firebug ;-)
> >
> > So, If you want to resize ModalWindow by ajax call lets append these 3
> lines
> > in your target.appendJavascript...
> >
> > Code:
> >
> > Wicket.Window.get().window.style.width="800px";\n
> > Wicket.Window.get().content.style.height="600px";\n
> > Wicket.Window.get().center();\n
> >
> > Notice that properties and units should be get from modal's java object
> > properties...
> >
> > Last line will center your modal Windows after resizing.
> >
> > BR,
> >
> > V.
> >
> > -Original Message-
> > From: Martin Makundi [mailto:martin.maku...@koodaripalvelut.com]
> > Sent: Monday, January 05, 2009 10:53 AM
> > To: users@wicket.apache.org
> > Subject: Re: Modal window - chagne width and height
> >
> > Why don't you just set the modal window div css properties with
> javascript?
> >
> > http://developer.apple.com/internet/webcontent/styles.html
> >
> > 2009/1/5 Vitek Tajzich :
> >> Yes, that right but these properties are read only at construction time
> so
> >> I'm not able to change size of already shown window by ajax
> >>
> >> If you have a solution I will be happy :-)
> >>
> >> V.
> >>
> >> 2009/1/5 Piller Sébastien 
> >>
> >>> Hum yes sorry, I didn't get that you were in a modal window
> >>>
> >>> So there is some method setInitialWidth/setInitialHeight in ModalWindow
> >>> that should work :)
> >>>
> >>>
> >>> Vitek Tajzich a écrit :
> >>>
> >>>  As far as I know that is not a window but only div actually,
> >>>>
> >>>> so I can't user resizeTo, can I?
> >>>>
> >>>> 2009/1/5 Piller Sébastien 
> >>>>
> >>>>
> >>>>
> >>>>> Even here?
> >>>>>
> >>>>> http://www.javascripter.net/faq/resizing.htm
> >>>>>
> >>>>>
> >>>>> Vitek Tajzich a écrit :
> >>>>>
> >>>>>  Hi,
> >>>>>
> >>>>>
> >>>>>> actually there is now JS function resizeTo :-(
> >>>>>>
> >>>>>> V.
> >>>>>>
> >>>>>> 2009/1/4 Sébastien Piller 
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>> Hi,
> >>>>>>>
> >>>>>>> I doubt such a feature is implemented in the wicket code
> >>>>>>>
> >>>>>>> most likely, you will need to call the javascript function
> >>>>>>> "window.resizeTo" yourself, with an AjaxBehavior (ie
> >>>>>>> AjaxAbstractDefaultBehavior#respond and
> >>>>>>> AjaxRequestTarget#appendJavascript)
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>> Vitek Tajzich wrote:
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>> Hi,
> >>>>>>>>
> >>>>>>>>
> >>>>>>>> Is it possible to resize Modal Window by ajax?
> >>>>>>>>
> >>>>>>>>
> >>>>>>>> I need for some reason to resize currently opened window. I've
> been
> >>>>>>>> looking
> >>>>>>>> on google and mailing list and I didn't found anything usable. I
> > also
> >>>>>>>> looked
> >>>>>>>> into javascript for modal window and I think It should be
> possible..
> >>>>>>>>
> >>>>>>>>
> >>>>>>>> Thanks..
> >>>>>>>>
> >>>>>>>>
> >>>>>>>> V.
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>
> -
> >>>>>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >>>>>>> For additional commands, e-mail: users-h...@wicket.apache.org
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>> -
> >>>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >>>>> For additional commands, e-mail: users-h...@wicket.apache.org
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>
> >>>>
> >>>>
> >>>
> >>>
> >>> -
> >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >>> For additional commands, e-mail: users-h...@wicket.apache.org
> >>>
> >>>
> >>
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


RE: Modal window - chagne width and height

2009-01-05 Thread Vitek Tajzich
Hi,

I've found a solution to this problem. It is straight forward but I did one
mistake in my javascript. Thanks god for firebug ;-)

So, If you want to resize ModalWindow by ajax call lets append these 3 lines
in your target.appendJavascript...

Code:

Wicket.Window.get().window.style.width="800px";\n
Wicket.Window.get().content.style.height="600px";\n
Wicket.Window.get().center();\n

Notice that properties and units should be get from modal's java object
properties...

Last line will center your modal Windows after resizing.

BR,

V.

-Original Message-
From: Martin Makundi [mailto:martin.maku...@koodaripalvelut.com] 
Sent: Monday, January 05, 2009 10:53 AM
To: users@wicket.apache.org
Subject: Re: Modal window - chagne width and height

Why don't you just set the modal window div css properties with javascript?

http://developer.apple.com/internet/webcontent/styles.html

2009/1/5 Vitek Tajzich :
> Yes, that right but these properties are read only at construction time so
> I'm not able to change size of already shown window by ajax
>
> If you have a solution I will be happy :-)
>
> V.
>
> 2009/1/5 Piller Sébastien 
>
>> Hum yes sorry, I didn't get that you were in a modal window
>>
>> So there is some method setInitialWidth/setInitialHeight in ModalWindow
>> that should work :)
>>
>>
>> Vitek Tajzich a écrit :
>>
>>  As far as I know that is not a window but only div actually,
>>>
>>> so I can't user resizeTo, can I?
>>>
>>> 2009/1/5 Piller Sébastien 
>>>
>>>
>>>
>>>> Even here?
>>>>
>>>> http://www.javascripter.net/faq/resizing.htm
>>>>
>>>>
>>>> Vitek Tajzich a écrit :
>>>>
>>>>  Hi,
>>>>
>>>>
>>>>> actually there is now JS function resizeTo :-(
>>>>>
>>>>> V.
>>>>>
>>>>> 2009/1/4 Sébastien Piller 
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> I doubt such a feature is implemented in the wicket code
>>>>>>
>>>>>> most likely, you will need to call the javascript function
>>>>>> "window.resizeTo" yourself, with an AjaxBehavior (ie
>>>>>> AjaxAbstractDefaultBehavior#respond and
>>>>>> AjaxRequestTarget#appendJavascript)
>>>>>>
>>>>>>
>>>>>>
>>>>>> Vitek Tajzich wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>> Hi,
>>>>>>>
>>>>>>>
>>>>>>> Is it possible to resize Modal Window by ajax?
>>>>>>>
>>>>>>>
>>>>>>> I need for some reason to resize currently opened window. I've been
>>>>>>> looking
>>>>>>> on google and mailing list and I didn't found anything usable. I
also
>>>>>>> looked
>>>>>>> into javascript for modal window and I think It should be possible..
>>>>>>>
>>>>>>>
>>>>>>> Thanks..
>>>>>>>
>>>>>>>
>>>>>>> V.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>> -
>>>>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>>>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>> -
>>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>

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



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



AjaxRequestTarget.appendJavascript

2009-01-05 Thread Vitek Tajzich
Hi,

 

I have really newbe question. 

 

I did in my code (just for test):

 

target.appendJavascript("alert("message");");

 

And I found in debug window:

 



 

So I gues that alert Windows with my message should be displayed but it is
not.

 

How does the "appendJavascript" work?

 

Could you provide me with link or example?

 

Thanks

 

V.



Re: Modal window - chagne width and height

2009-01-05 Thread Vitek Tajzich
Yes, that right but these properties are read only at construction time so
I'm not able to change size of already shown window by ajax

If you have a solution I will be happy :-)

V.

2009/1/5 Piller Sébastien 

> Hum yes sorry, I didn't get that you were in a modal window
>
> So there is some method setInitialWidth/setInitialHeight in ModalWindow
> that should work :)
>
>
> Vitek Tajzich a écrit :
>
>  As far as I know that is not a window but only div actually,
>>
>> so I can't user resizeTo, can I?
>>
>> 2009/1/5 Piller Sébastien 
>>
>>
>>
>>> Even here?
>>>
>>> http://www.javascripter.net/faq/resizing.htm
>>>
>>>
>>> Vitek Tajzich a écrit :
>>>
>>>  Hi,
>>>
>>>
>>>> actually there is now JS function resizeTo :-(
>>>>
>>>> V.
>>>>
>>>> 2009/1/4 Sébastien Piller 
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>> Hi,
>>>>>
>>>>> I doubt such a feature is implemented in the wicket code
>>>>>
>>>>> most likely, you will need to call the javascript function
>>>>> "window.resizeTo" yourself, with an AjaxBehavior (ie
>>>>> AjaxAbstractDefaultBehavior#respond and
>>>>> AjaxRequestTarget#appendJavascript)
>>>>>
>>>>>
>>>>>
>>>>> Vitek Tajzich wrote:
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>>
>>>>>> Is it possible to resize Modal Window by ajax?
>>>>>>
>>>>>>
>>>>>> I need for some reason to resize currently opened window. I've been
>>>>>> looking
>>>>>> on google and mailing list and I didn't found anything usable. I also
>>>>>> looked
>>>>>> into javascript for modal window and I think It should be possible..
>>>>>>
>>>>>>
>>>>>> Thanks..
>>>>>>
>>>>>>
>>>>>> V.
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>> -
>>>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>
>>>
>>>
>>>
>>
>>
>>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Modal window - chagne width and height

2009-01-05 Thread Vitek Tajzich
As far as I know that is not a window but only div actually,

so I can't user resizeTo, can I?

2009/1/5 Piller Sébastien 

> Even here?
>
> http://www.javascripter.net/faq/resizing.htm
>
>
> Vitek Tajzich a écrit :
>
>  Hi,
>>
>> actually there is now JS function resizeTo :-(
>>
>> V.
>>
>> 2009/1/4 Sébastien Piller 
>>
>>
>>
>>> Hi,
>>>
>>> I doubt such a feature is implemented in the wicket code
>>>
>>> most likely, you will need to call the javascript function
>>> "window.resizeTo" yourself, with an AjaxBehavior (ie
>>> AjaxAbstractDefaultBehavior#respond and
>>> AjaxRequestTarget#appendJavascript)
>>>
>>>
>>>
>>> Vitek Tajzich wrote:
>>>
>>>
>>>
>>>> Hi,
>>>>
>>>>
>>>> Is it possible to resize Modal Window by ajax?
>>>>
>>>>
>>>> I need for some reason to resize currently opened window. I've been
>>>> looking
>>>> on google and mailing list and I didn't found anything usable. I also
>>>> looked
>>>> into javascript for modal window and I think It should be possible..
>>>>
>>>>
>>>> Thanks..
>>>>
>>>>
>>>> V.
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>
>>>
>>>
>>>
>>
>>
>>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Modal window - chagne width and height

2009-01-04 Thread Vitek Tajzich
Hi,

actually there is now JS function resizeTo :-(

V.

2009/1/4 Sébastien Piller 

> Hi,
>
> I doubt such a feature is implemented in the wicket code
>
> most likely, you will need to call the javascript function
> "window.resizeTo" yourself, with an AjaxBehavior (ie
> AjaxAbstractDefaultBehavior#respond and AjaxRequestTarget#appendJavascript)
>
>
>
> Vitek Tajzich wrote:
>
>> Hi,
>>
>>
>> Is it possible to resize Modal Window by ajax?
>>
>>
>> I need for some reason to resize currently opened window. I've been
>> looking
>> on google and mailing list and I didn't found anything usable. I also
>> looked
>> into javascript for modal window and I think It should be possible..
>>
>>
>> Thanks..
>>
>>
>> V.
>>
>>
>>
>>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Modal window - chagne width and height

2009-01-04 Thread Vitek Tajzich
Hi,

 

Is it possible to resize Modal Window by ajax?

 

I need for some reason to resize currently opened window. I've been looking
on google and mailing list and I didn't found anything usable. I also looked
into javascript for modal window and I think It should be possible..

 

Thanks..

 

V.