Re: wicket1.3 on websphere6.0.11.

2007-12-11 Thread narup

hello all,

It seems to be solved, i used WicketFilter in web.xml before with which
websphere had a problem, so for that i changed some settings in websphere to
deploy the app. though it got deployed with that setting but showed some
weird behavior.

So i again reverted back to WicketServlet and it again worked fine, so moral
of the story is websphere doesn't handle filter properly

Thanks



narup wrote:
> 
> Hello All,
> 
> I recently did an upgrade from wicket1.2.6 to wicket1.3 and also
> successfully deployed in a websphere, but my cancel and apply buttons on
> the page and modal window are not working everywhere. I don't get any
> error in the log file also.
> 
> Interesting thing is it works everything fine in Jetty server, in
> localhost. So if anyone of you have had this problem before can please let
> me know. Not sure but websphere should not have any problem with AJAX.
> 
> Thanks 
> Puran
> 

-- 
View this message in context: 
http://www.nabble.com/wicket1.3-on-websphere6.0.11.-tp14285196p14286715.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]



wicket1.3 on websphere6.0.11.

2007-12-11 Thread narup

Hello All,

I recently did an upgrade from wicket1.2.6 to wicket1.3 and also
successfully deployed in a websphere, but my cancel and apply buttons on the
page and modal window are not working everywhere. I don't get any error in
the log file also.

Interesting thing is it works everything fine in Jetty server, in localhost.
So if anyone of you have had this problem before can please let me know. Not
sure but websphere should not have any problem with AJAX.

Thanks 
Puran
-- 
View this message in context: 
http://www.nabble.com/wicket1.3-on-websphere6.0.11.-tp14285196p14285196.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: Server cannot find /app url after migration to 1.3 filter

2007-12-11 Thread narup

Well i also had a similar problem,actually websphere doesn't handle servlet
filters properly. So upgrading wicket to 1.3 and if you are using
org.apache.wicket.protocol.http.WicketFilter
instead of wicket servlet then have to do change
Setting com.ibm.ws.webcontainer.invokefilterscompatibility property to true
in

Servers > Server > Web Container Settings > Web Container > Custom
Properties.

select New and then enter
"com.ibm.ws.webcontainer.invokefilterscompatibility" as the property name
and "true" as the value
- save the update and restart the server 

Hope this works


smallufo wrote:
> 
> 2007/10/13, smallufo <[EMAIL PROTECTED]>:
>>
>> Hi ,
>> I had a strong suspicion that WicketFilter (from 1.3 b3)  not compatible
>> with Resin ( I tried 2.1.17 and latest 3.0.24 )
> 
> 
> I just grabbed the latest 1.3 b4 , the problem remains.
> 
> I also found that the following filter-mapping works :
>   
>   
> 
> while the following doesn't work  :
> 
>   
> 
> 
>   
>   
> When I try to connect to foo.bar.com:8080/app , it throws :
> 
> java.lang.IllegalArgumentException: Error initializing WicketFilter - you
> have no  element with a url-pattern that uses filter:
> wicket
> 
> It seems that WicketFilter cannot parse @filter-name and @url-pattern of
>  tag.
> (But it can correctly parse @filter-name , @filter-class of  tag.)
> I have to change it to :
> 
>   
> wicket
> /app/*
>   
> 
> But 1.3b4 's filter still cannot intercept "/app" at port 80.
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Server-cannot-find--app-url-after-migration-to-1.3-filter-tp12998876p14279914.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: annoying alert message while closing modal window with wizard

2007-12-05 Thread narup

Ya Matej's advice is good, actually i wanted to stick with wicket provided
wizard. But any way i got my own custom wizard with ajax button bar working.
thanks everyone for the reply.
wicket rocks!!


wicket user wrote:
> 
> If you need to do the business operation I'm pretty sure you have to
> follow
> Matej's advice and implement ajax button to close it properly.
> 
> On 04/12/2007, narup <[EMAIL PROTECTED]> wrote:
>>
>>
>> Oh i take back my words :(
>> the window gets closed but due to some AJAX error, so clicking finish
>> button
>> doesn't do the business operation , that it should do. It just closes the
>> modal window with wizard.
>>
>>
>> narup wrote:
>> >
>> > yes it worked for me..
>> > thanks Matej.
>> >
>> >
>> >
>> > wicket user wrote:
>> >>
>> >> I tried the javascript and never got it to suppress the pop up, did it
>> >> work
>> >> for you?
>> >>
>> >> On 04/12/2007, Matej Knopp <[EMAIL PROTECTED]> wrote:
>> >>>
>> >>> You need to use ajax button to properly close the window.
>> >>> Alternatively, you can put this script to your page (only for 1.3):
>> >>>
>> >>> 
>> >>> Wicket.Window.unloadConfirmation = false;
>> >>> 
>> >>>
>> >>> -Matej
>> >>>
>> >>> On Dec 3, 2007 7:48 PM, narup <[EMAIL PROTECTED]> wrote:
>> >>> >
>> >>> > Hello All,
>> >>> >
>> >>> > I am using a custom wizard in a modal window, so i have my own
>> custom
>> >>> button
>> >>> > bar such as next, previous, finish and cancel.
>> >>> > so when i click cancel or finish. i get this alert message.
>> >>> > http://www.nabble.com/file/p14136120/alert.jpeg
>> >>> > if i append the javascript like this
>> >>> > target.appendJavascript("window.onbeforeunload=null"); it cause the
>> >>> modal
>> >>> > window to close but it does not do the save operation that i want
>> to
>> >>> when i
>> >>> > click finish button at the end.
>> >>> > I tried to use the new wicket 1.3 wizard but got the same problem
>> >>> > if anyone has any idea please let me know.
>> >>> > Thanks
>> >>> >
>> >>> > --
>> >>> > View this message in context:
>> >>>
>> http://www.nabble.com/annoying-alert-message-while-closing-modal-window-with-wizard-tf4938532.html#a14136120
>> >>> > 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/annoying-alert-message-while-closing-modal-window-with-wizard-tf4938532.html#a14160472
>> 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/annoying-alert-message-while-closing-modal-window-with-wizard-tf4938532.html#a14177710
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: annoying alert message while closing modal window with wizard

2007-12-04 Thread narup

Oh i take back my words :( 
the window gets closed but due to some AJAX error, so clicking finish button
doesn't do the business operation , that it should do. It just closes the
modal window with wizard.


narup wrote:
> 
> yes it worked for me..
> thanks Matej.
> 
> 
> 
> wicket user wrote:
>> 
>> I tried the javascript and never got it to suppress the pop up, did it
>> work
>> for you?
>> 
>> On 04/12/2007, Matej Knopp <[EMAIL PROTECTED]> wrote:
>>>
>>> You need to use ajax button to properly close the window.
>>> Alternatively, you can put this script to your page (only for 1.3):
>>>
>>> 
>>> Wicket.Window.unloadConfirmation = false;
>>> 
>>>
>>> -Matej
>>>
>>> On Dec 3, 2007 7:48 PM, narup <[EMAIL PROTECTED]> wrote:
>>> >
>>> > Hello All,
>>> >
>>> > I am using a custom wizard in a modal window, so i have my own custom
>>> button
>>> > bar such as next, previous, finish and cancel.
>>> > so when i click cancel or finish. i get this alert message.
>>> > http://www.nabble.com/file/p14136120/alert.jpeg
>>> > if i append the javascript like this
>>> > target.appendJavascript("window.onbeforeunload=null"); it cause the
>>> modal
>>> > window to close but it does not do the save operation that i want to
>>> when i
>>> > click finish button at the end.
>>> > I tried to use the new wicket 1.3 wizard but got the same problem
>>> > if anyone has any idea please let me know.
>>> > Thanks
>>> >
>>> > --
>>> > View this message in context:
>>> http://www.nabble.com/annoying-alert-message-while-closing-modal-window-with-wizard-tf4938532.html#a14136120
>>> > 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/annoying-alert-message-while-closing-modal-window-with-wizard-tf4938532.html#a14160472
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: annoying alert message while closing modal window with wizard

2007-12-04 Thread narup

yes it worked for me..
thanks Matej.



wicket user wrote:
> 
> I tried the javascript and never got it to suppress the pop up, did it
> work
> for you?
> 
> On 04/12/2007, Matej Knopp <[EMAIL PROTECTED]> wrote:
>>
>> You need to use ajax button to properly close the window.
>> Alternatively, you can put this script to your page (only for 1.3):
>>
>> 
>> Wicket.Window.unloadConfirmation = false;
>> 
>>
>> -Matej
>>
>> On Dec 3, 2007 7:48 PM, narup <[EMAIL PROTECTED]> wrote:
>> >
>> > Hello All,
>> >
>> > I am using a custom wizard in a modal window, so i have my own custom
>> button
>> > bar such as next, previous, finish and cancel.
>> > so when i click cancel or finish. i get this alert message.
>> > http://www.nabble.com/file/p14136120/alert.jpeg
>> > if i append the javascript like this
>> > target.appendJavascript("window.onbeforeunload=null"); it cause the
>> modal
>> > window to close but it does not do the save operation that i want to
>> when i
>> > click finish button at the end.
>> > I tried to use the new wicket 1.3 wizard but got the same problem
>> > if anyone has any idea please let me know.
>> > Thanks
>> >
>> > --
>> > View this message in context:
>> http://www.nabble.com/annoying-alert-message-while-closing-modal-window-with-wizard-tf4938532.html#a14136120
>> > 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/annoying-alert-message-while-closing-modal-window-with-wizard-tf4938532.html#a14156082
Sent from the Wicket - User mailing list archive at Nabble.com.


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



annoying alert message while closing modal window with wizard

2007-12-03 Thread narup

Hello All,

I am using a custom wizard in a modal window, so i have my own custom button
bar such as next, previous, finish and cancel.
so when i click cancel or finish. i get this alert message.
http://www.nabble.com/file/p14136120/alert.jpeg 
if i append the javascript like this 
target.appendJavascript("window.onbeforeunload=null"); it cause the modal
window to close but it does not do the save operation that i want to when i
click finish button at the end.
I tried to use the new wicket 1.3 wizard but got the same problem
if anyone has any idea please let me know.
Thanks

-- 
View this message in context: 
http://www.nabble.com/annoying-alert-message-while-closing-modal-window-with-wizard-tf4938532.html#a14136120
Sent from the Wicket - User mailing list archive at Nabble.com.


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



org.apache.wicket.WicketRuntimeException: no set method defined for value: [] on object:

2007-11-30 Thread narup

Hello All,

Can anyone tell me why this error comes up, it was not there in wicket1.2.6.
i see this after i did an upgrade.

thanks 

-- 
View this message in context: 
http://www.nabble.com/org.apache.wicket.WicketRuntimeException%3A-no-set-method-defined-for-value%3Aon-object%3A-tf4924381.html#a14093011
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: having problem using wicket wizard in a modal window

2007-11-29 Thread narup

well,  i was using this replacement technique and custom button panels when i
was in wicket1.2.6. I just did an upgrade to 1.3 to get rid of all those
custom . but quite sad...

thanks 


Mr Mean wrote:
> 
> That is because you are using normal links / form submits. If you use
> ajax and stay on the same page (do some panel replacement) you won't
> get that message.
> Alternatively i do believe there is a setting to turn that message
> off, somewhere.
> 
> Maurice
> 
> On Nov 29, 2007 12:51 AM, narup <[EMAIL PROTECTED]> wrote:
>>
>> Hello All,
>>
>> i am trying to use a wizard in modal window, but when i click next or
>> cancel
>> button i get one warning message like this
>> http://www.nabble.com/file/p14016058/untitled.jpeg
>>
>> each of the wizard page i have different form, not sure if it's the cause
>> since Wizard already has a default form.
>>
>> Thanks
>> --
>> View this message in context:
>> http://www.nabble.com/having-problem-using-wicket-wizard-in-a-modal-window-tf4894068.html#a14016058
>> 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/having-problem-using-wicket-wizard-in-a-modal-window-tf4894068.html#a14033715
Sent from the Wicket - User mailing list archive at Nabble.com.


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



having problem using wicket wizard in a modal window

2007-11-28 Thread narup

Hello All,

i am trying to use a wizard in modal window, but when i click next or cancel
button i get one warning message like this 
http://www.nabble.com/file/p14016058/untitled.jpeg 

each of the wizard page i have different form, not sure if it's the cause
since Wizard already has a default form.

Thanks 
-- 
View this message in context: 
http://www.nabble.com/having-problem-using-wicket-wizard-in-a-modal-window-tf4894068.html#a14016058
Sent from the Wicket - User mailing list archive at Nabble.com.


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



focus form first field with wicket, without using javascript

2007-11-21 Thread narup

hello All,

i wonder if there is a better way to set the first field or element of the
form focus when the page loads
right now i am using 
target.appendJavascript("document.forms['" + component.getMarkupId() +
"'].elements[1].focus()");
but i would love to see if wicket has any thing 

thanks 

-- 
View this message in context: 
http://www.nabble.com/focus-form-first-field-with-wicket%2C-without-using-javascript-tf4852655.html#a13885440
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: convertToString in custom Converter is not called

2007-11-19 Thread narup

for more details i have a converter 
 public class UserConverter extends ConverterLocator {
private static final long serialVersionUID = 1L;

public UserConverter () {
super();
set(User.class, new StringToUserConverter());
set(String.class, new UserToStringConverter());
}
}

and also in UserToStringConverter class i have overriden convertToString
method of AbstractConverter but it uses the convertToString from
AbstractConverter class only.



narup wrote:
> 
> Hello All,
> I am also having a problem with custom converter, convertToString method
> is never called.
> 
> Thanks 
> 
> 
> igor.vaynberg wrote:
>> 
>> afik ddcs dont use converters because they use a choice renderer.
>> see ddc.setchoicerenderer();
>> -igor
>> 
>> 
>> On 8/13/07, Benjamin Ernst <[EMAIL PROTECTED]> wrote:
>>>
>>> Hi,
>>>
>>> I implemented a custom Converter. It looks like this:
>>>
>>> public class AnredeConverter implements IConverter {
>>>
>>> public Object convertToObject(String arg0, Locale arg1) {
>>> if(arg0 == null) return null;
>>> return Anrede.fromString(arg0);
>>> }
>>>
>>> public String convertToString(Object obj, Locale locale) {
>>> Anrede an = (Anrede) obj;
>>> return an.getValue();
>>> }
>>> }
>>>
>>>
>>> The I added it to the apllication:
>>>
>>> @Override
>>> protected IConverterLocator newConverterLocator() {
>>> ConverterLocator converterLocator = new ConverterLocator();
>>> converterLocator.set(Anrede.class, new AnredeConverter());
>>> return converterLocator;
>>> }
>>>
>>> I use it for a DropDownChoice
>>>
>>> DropDownChoice anrede = new DropDownChoice("anrede", new
>>> PropertyModel(ma,
>>> "anrede"), Anrede.literals());
>>> add(anrede);
>>>
>>> My problem is that the convertToString-Method is never called, so that
>>> the
>>> DropDownChoice is not set to the right value.The convertToObject-Method
>>> works fine.
>>>
>>> How can I tell the DropDownChoice to use the Converter to get the right
>>> value.
>>>
>>> Thanks in advance,
>>> Benjamin
>>>
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/convertToString-in-custom-Converter-is-not-called-tf4260835.html#a13847801
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: convertToString in custom Converter is not called

2007-11-19 Thread narup

Hello All,
I am also having a problem with custom converter, convertToString method is
never called.

Thanks 


igor.vaynberg wrote:
> 
> afik ddcs dont use converters because they use a choice renderer.
> see ddc.setchoicerenderer();
> -igor
> 
> 
> On 8/13/07, Benjamin Ernst <[EMAIL PROTECTED]> wrote:
>>
>> Hi,
>>
>> I implemented a custom Converter. It looks like this:
>>
>> public class AnredeConverter implements IConverter {
>>
>> public Object convertToObject(String arg0, Locale arg1) {
>> if(arg0 == null) return null;
>> return Anrede.fromString(arg0);
>> }
>>
>> public String convertToString(Object obj, Locale locale) {
>> Anrede an = (Anrede) obj;
>> return an.getValue();
>> }
>> }
>>
>>
>> The I added it to the apllication:
>>
>> @Override
>> protected IConverterLocator newConverterLocator() {
>> ConverterLocator converterLocator = new ConverterLocator();
>> converterLocator.set(Anrede.class, new AnredeConverter());
>> return converterLocator;
>> }
>>
>> I use it for a DropDownChoice
>>
>> DropDownChoice anrede = new DropDownChoice("anrede", new
>> PropertyModel(ma,
>> "anrede"), Anrede.literals());
>> add(anrede);
>>
>> My problem is that the convertToString-Method is never called, so that
>> the
>> DropDownChoice is not set to the right value.The convertToObject-Method
>> works fine.
>>
>> How can I tell the DropDownChoice to use the Converter to get the right
>> value.
>>
>> Thanks in advance,
>> Benjamin
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/convertToString-in-custom-Converter-is-not-called-tf4260835.html#a13847626
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: Feedback messages and setResponsePage

2007-11-16 Thread narup

hello i am upgrading from wicket 1.2.6 to 1.3 rc1, and feedback messaging is
not showing up with setResponse page.

i am doing
Page userPage = getUserPage();
//1.2.6 version code which was fine
// userPage.getFeedbackMessage().info(userPage, getUser().getDescription() +
" Saved");
//now i changed above line to this
 getSession().getFeedbackMessages().info(EditUserPage.this,
getUser().getDescription() + " Saved");
setResponsePage(userPage);

but this doesn't work!! not sure what's wrong .
thanks



igor.vaynberg wrote:
> 
> getsession().info/error/warn will work across pages
> 
> -igor
> 
> 
> On 10/5/07, dkarnows <[EMAIL PROTECTED]> wrote:
>>
>> Greetings,
>>
>> I've noticed when I do:
>>   info("blah blah blah");
>>   setResponsePage(...);
>> that whether or not the feedback displays seems to be dependent on which
>> version of "setResponsePage()" I call. If I call this version:
>>   setResponsePage(Page page)  (e.g. setResponsePage(new FooPage());)
>> I see the feedback, but if I call this version:
>>   setResponsePage(java.lang.Class cls)   (e.g.
>> setResponsePage(FooPage.class);)
>> I don't see the feedback.
>>
>> I'm new to Wicket (using 1.3 beta) so grateful for any help. Is this
>> expected?
>>
>> thanks,
>> David
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Feedback-messages-and-setResponsePage-tf4576987.html#a13065185
>> 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/Feedback-messages-and-setResponsePage-tf4576987.html#a13800146
Sent from the Wicket - User mailing list archive at Nabble.com.


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