Re: [Wicket-user] ERROR - Internal error cloning object

2007-07-31 Thread Dipu Seminlal
aaah, thank you very much Eelco, you guys rock !

Cheers
Dipu

On 7/30/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
>
> > 2007-07-30 12:25:45:437 ERROR wicket.markup.html.WebPage
> > [http-8080-Processor25] - Page [Page class =
> > com.xmltravel.fab1.wicket.flights.FlightSearchResultPage , id = 1]
> couldn't
> > be cloned to move to another pagemap
> > wicket.WicketRuntimeException: Internal error cloning object
> > at wicket.util.lang.Objects.cloneObject(Objects.java:466)
> > at wicket.markup.html.WebPage.onNewBrowserWindow (WebPage.java:344)
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > at sun.reflect.NativeMethodAccessorImpl.invoke(
> > NativeMethodAccessorImpl.java:39)
> > at sun.reflect.DelegatingMethodAccessorImpl.invoke (
> > DelegatingMethodAccessorImpl.java:25)
> > at java.lang.reflect.Method.invoke(Method.java:585)
> > at wicket.RequestListenerInterface.invoke(
> RequestListenerInterface.java
> > :187)
> > at
> >
> wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents
> (
> > ListenerInterfaceRequestTarget.java:74)
> > at
> wicket.request.compound.DefaultEventProcessorStrategy.processEvents(
> > DefaultEventProcessorStrategy.java:65)
> > at
>
> It tries to clone the current page for use in another window. It looks
> like that spider makes Wicket think the requests are for new windows
> all the time. You could try
> getPageSettings().setAutomaticMultiWindowSupport(false) in your
> application (false by default in 1.3 btw).
>
> Eelco
>
> -
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >>  http://get.splunk.com/
> ___
> IMPORTANT NOTICE:
>
> This mailing list is shutting down. Please subscribe to the Apache Wicket
> user list. Send a message to: "users-subscribe at wicket.apache.org" and
> follow the instructions.
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
IMPORTANT NOTICE:

This mailing list is shutting down. Please subscribe to the Apache Wicket user 
list. Send a message to: "users-subscribe at wicket.apache.org" and follow the 
instructions.
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] ERROR - Internal error cloning object

2007-07-30 Thread Dipu Seminlal
Hi Martijn,

How do i switch the second level page cache off ? I am using version 1.2.6,
do we have second level page in 1.2.6.

Regards
Dipu



On 7/30/07, Martijn Dashorst <[EMAIL PROTECTED]> wrote:
>
> Switch the second level page cache off to use the httpsession store,
> like it was in 1.2. The second level page cache requires the objects
> attached to your components to be serializable as it tries to store
> the pages to disk using serialization.
>
> The old pagemap store didn't require serializable, but does use more
> server memore (though you can configure it yourself)
>
> Martijn
>
> On 7/30/07, Dipu Seminlal <[EMAIL PROTECTED]> wrote:
> > Hi Igor/Eelco and Others,
> >
> > Sorry i am reposting this, can any one please tell me how to get around
> this
> > issue.
> >
> > I am seeing loads of "Internal error cloning object" error in the log
> files.
> > I am running on DEPLOYMENT mode and also  i have set
> > get().getDebugSettings()
> > .setSerializeSessionAttributes(false);
> > ( which is not really required when i am on Deployment mode ) in the
> > application class.
> >
> > I have an Iframe on different site pointing to my application like this
> >  > hspace="0" vspace="0" target="_top"
> > src="
> >
> http://sagittarius:8080/fab1gui/search?wicket:bookmarkablePage=:com.xmltravel.fab1.wicket.flights.HorizontalSearchNavPage
> "
> > allowtransparency="true" frameborder="0" height="210" scrolling="no"
> > width="540">
> >
> > I tried to simulate this situation and noticed that when i do a submit
> on
> > the Iframe for the first time this error is thrown.
> >
> > How can i get around this issue.
> >
> > My client has configured a spider to do searches on the live site and i
> am
> > seeing loads and loads of Internal error cloning object exception.
> > And worst of all today there was an out of memory error, i am wondering
> if
> > the repeated occurrence of cloning excpetion has got anything to
> > do with the out of memory error.
> >
> > Regards
> > Dipu
> >
> >
> > 2007-07-30 12:25:45:437 ERROR wicket.markup.html.WebPage
> > [http-8080-Processor25] - Page [Page class =
> > com.xmltravel.fab1.wicket.flights.FlightSearchResultPage , id = 1]
> couldn't
> > be cloned to move to another pagemap
> > wicket.WicketRuntimeException: Internal error cloning object
> > at wicket.util.lang.Objects.cloneObject(Objects.java:466)
> > at wicket.markup.html.WebPage.onNewBrowserWindow (WebPage.java:344)
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > at sun.reflect.NativeMethodAccessorImpl.invoke(
> > NativeMethodAccessorImpl.java:39)
> > at sun.reflect.DelegatingMethodAccessorImpl.invoke (
> > DelegatingMethodAccessorImpl.java:25)
> > at java.lang.reflect.Method.invoke(Method.java:585)
> > at wicket.RequestListenerInterface.invoke(
> RequestListenerInterface.java
> > :187)
> > at
> >
> wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents
> (
> > ListenerInterfaceRequestTarget.java:74)
> > at
> wicket.request.compound.DefaultEventProcessorStrategy.processEvents(
> > DefaultEventProcessorStrategy.java:65)
> > at
> >
> wicket.request.compound.AbstractCompoundRequestCycleProcessor.processEvents
> (
> > AbstractCompoundRequestCycleProcessor.java:57)
> > at wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java
> :896)
> > at wicket.RequestCycle.processEventsAndRespond(RequestCycle.java
> :929)
> > at wicket.RequestCycle.step (RequestCycle.java:1010)
> > at wicket.RequestCycle.steps(RequestCycle.java:1084)
> > at wicket.RequestCycle.request(RequestCycle.java:454)
> > at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:219)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> > ApplicationFilterChain.java :252)
> > at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> > ApplicationFilterChain.java:173)
> > at org.apache.catalina.core.StandardWrapperValve.invoke(
> > StandardWrapperValve.java:213)
> > at org.apache.catalina.core.StandardContextValve.invoke (
> > StandardContextValve.java:178)
> > at org.apache.catalina.core.StandardHostValve.

[Wicket-user] ERROR - Internal error cloning object

2007-07-30 Thread Dipu Seminlal
Hi Igor/Eelco and Others,

Sorry i am reposting this, can any one please tell me how to get around this
issue.

I am seeing loads of "Internal error cloning object" error in the log files.
I am running on DEPLOYMENT mode and also  i have set
get().getDebugSettings()
.setSerializeSessionAttributes(false);
( which is not really required when i am on Deployment mode ) in the
application class.

I have an Iframe on different site pointing to my application like this
http://sagittarius:8080/fab1gui/search?wicket:bookmarkablePage=:com.xmltravel.fab1.wicket.flights.HorizontalSearchNavPage";
allowtransparency="true" frameborder="0" height="210" scrolling="no"
width="540">

I tried to simulate this situation and noticed that when i do a submit on
the Iframe for the first time this error is thrown.

How can i get around this issue.

My client has configured a spider to do searches on the live site and i am
seeing loads and loads of Internal error cloning object exception.
And worst of all today there was an out of memory error, i am wondering if
the repeated occurrence of cloning excpetion has got anything to
do with the out of memory error.

Regards
Dipu


2007-07-30 12:25:45:437 ERROR wicket.markup.html.WebPage
[http-8080-Processor25] - Page [Page class =
com.xmltravel.fab1.wicket.flights.FlightSearchResultPage , id = 1] couldn't
be cloned to move to another pagemap
wicket.WicketRuntimeException: Internal error cloning object
at wicket.util.lang.Objects.cloneObject(Objects.java:466)
at wicket.markup.html.WebPage.onNewBrowserWindow (WebPage.java:344)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (
DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at wicket.RequestListenerInterface.invoke(RequestListenerInterface.java
:187)
at
wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents(
ListenerInterfaceRequestTarget.java:74)
at wicket.request.compound.DefaultEventProcessorStrategy.processEvents(
DefaultEventProcessorStrategy.java:65)
at
wicket.request.compound.AbstractCompoundRequestCycleProcessor.processEvents(
AbstractCompoundRequestCycleProcessor.java:57)
at wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java:896)
at wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:929)
at wicket.RequestCycle.step (RequestCycle.java:1010)
at wicket.RequestCycle.steps(RequestCycle.java:1084)
at wicket.RequestCycle.request(RequestCycle.java:454)
at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:219)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java :252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(
StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke (
StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(
StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(
ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke (
StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(
CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:869)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(
Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(
PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(
LeaderFollowerWorkerThread.java :80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.io.NotSerializableException:
org.apache.catalina.core.ApplicationContextFacade
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java
:1369)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341)
at java.io.ObjectOutputStream.writeOrdinaryObject(
ObjectOutputStream.java:1284)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
at java.io.ObjectOutputStream.defaultWriteFields (
ObjectOutputStream.java:1369)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java
:1341)
at java.io.ObjectOutputStream.writeOrdinaryObject(
ObjectOutputStream.java:1284)
at java.

Re: [Wicket-user] Removing Markup Component (From HTML) using Java

2007-07-26 Thread Dipu Seminlal
add  a WebMarkupContainer and set the visibilty of the container to false,

In your Form add the container like this
WebMarkupContainer  container = new WebMarkupContainer("container ")
add(container)

And in the HTML




I am not sure if this is what you want.

Regards
Dipu



On 7/26/07, Durai007 <[EMAIL PROTECTED]> wrote:
>
>
> Suppose, Consider in html, I have ordinary html textbox.for e.g  type="text" name="user">
> In this situation, How can I remove?
>
> Pls tell your suggestion. Thanks
>
> Regards,
> Durai
>
>
>
>
> igor.vaynberg wrote:
> >
> > simply
> >
> > gridform.setvisible(false);
> >
> > -igor
> >
> >
> > On 7/25/07, Durai007 <[EMAIL PROTECTED]> wrote:
> >>
> >>
> >> i have 2 forms, 1.grid-form 2. upload form. both forms have mentioned
> in
> >> html
> >>
> >> But initially i want to load upload-form only. So that initially how to
> >> remove grid-form.
> >>
> >> after submitting upload-form, now only i have to display grid-form.
> >>
> >> Tell me how to remove single markup component from the html using java.
> >> (i.e  in html - remove it from java)
> >>
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/Removing-Markup-Component-%28From-HTML%29-using-Java-tf4142901.html#a11784996
> >> Sent from the Wicket - User mailing list archive at Nabble.com.
> >>
> >>
> >>
> -
> >> This SF.net email is sponsored by: Splunk Inc.
> >> Still grepping through log files to find problems?  Stop.
> >> Now Search log events and configuration files using AJAX and a browser.
> >> Download your FREE copy of Splunk now >>  http://get.splunk.com/
> >> ___
> >> Wicket-user mailing list
> >> Wicket-user@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/wicket-user
> >>
> >
> -
> > This SF.net email is sponsored by: Splunk Inc.
> > Still grepping through log files to find problems?  Stop.
> > Now Search log events and configuration files using AJAX and a browser.
> > Download your FREE copy of Splunk now >>  http://get.splunk.com/
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Removing-Markup-Component-%28From-HTML%29-using-Java-tf4142901.html#a11811220
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >>  http://get.splunk.com/
> ___
> IMPORTANT NOTICE:
>
> This mailing list is shutting down. Please subscribe to the Apache Wicket
> user list. Send a message to: "users-subscribe at wicket.apache.org" and
> follow the instructions.
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
IMPORTANT NOTICE:

This mailing list is shutting down. Please subscribe to the Apache Wicket user 
list. Send a message to: "users-subscribe at wicket.apache.org" and follow the 
instructions.
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] .setVisble not working for webmarkupcontainer

2007-07-23 Thread Dipu Seminlal
Don't change the visibility of the container you  are trying to repaint.
Instead try changing the visibility of the components nested inside the
container.

Hope that makes sense.

Regards
Dipu



On 7/23/07, atul <[EMAIL PROTECTED]> wrote:
>
> Hi,
> 1.I have a WebMarkupContainer with some components nested. I do
> setVisible(false) to it when page loadslater on an ajax request I try to
> do .setVisible(true) and repaint it adding it to AjaxRequestTarget & IT DOES
> NOT SHOW UP
> Am I going wrong in something?
> __
> Sent from my www.pageflakes.com startpage
>
> -
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >>  http://get.splunk.com/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Regarding onchange DropDown

2007-07-13 Thread Dipu Seminlal

try adding AjaxFormComponentUpdatingBehavior to your drop down

some thing like this

AjaxFormComponentUpdatingBehavior updateBehavior = new
AjaxFormComponentUpdatingBehavior("onchange")
   {
   private static final long serialVersionUID = 1L;
   protected void onUpdate(AjaxRequestTarget target)
   {

   target.addComponent(container);
   }


   };
   yourDropDown.add(updateBehavior);

so during the onChange the model object will get updated and you can access
the value by calling the getter

don't know if this is the best way though

On 7/13/07, Edi <[EMAIL PROTECTED]> wrote:



That's fine.

How to get the value of selected item in dropdown box?

Regards,
edi


Dipu Seminlal wrote:
>
> can you try target.addjavascript(javascript) or target.appendjavascript
> (javascript)
>
> regards
> Dipu
>
> On 7/13/07, Edi <[EMAIL PROTECTED]> wrote:
>>
>>
>> When onchange the DropDown box, how can I call the javascript function?
>>
>> for eg;
>>
>> makes.add(new AjaxFormComponentUpdatingBehavior("onchange")
>> {
>> protected void onUpdate(AjaxRequestTarget
target)
>> {
>> target.addComponent(models);
>> //how to call javascript function here.
>> }
>> });
>>
>>
>> igor.vaynberg wrote:
>> >
>> > On 7/13/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
>> >>
>> >> On 7/13/07, Edi <[EMAIL PROTECTED]> wrote:
>> >> >
>> >> >
>> >> > Could you please explain in detail manner?
>> >>
>> >>
>> >>
>> >> whats there to explain? in form.onsubmit or onchange event copy
values
>> >> from your textarea/textfield to the appropriate hiddenfield element
>> via
>> >> javascript.
>> >>
>> >> then when your form submits you can read the value out of that
>> >> hiddenfield
>> >> on serverside.
>> >>
>> >
>> > im not even sure you need the hiddenfield stuff, you might be able to
>> do
>> > it
>> > directly on textfield/textarea wicket components. just add both of
>> them.
>> > afaik if the tag is hidden via javascript it will not submit its
value
>> -
>> > so
>> > it should work automagically as long as you display:none one of them.
>> >
>> > -igor
>> >
>> >
>> >
>> > -igor
>> >>
>> >>
>> >>
>> >> igor.vaynberg wrote:
>> >> > >
>> >> > > On 7/12/07, Edi <[EMAIL PROTECTED]> wrote:
>> >> > >>
>> >> > >>
>> >> > >> Hi!
>> >> > >>
>> >> > >> I have one drop down like
>> >> > >>
>> >> > >>
>> textboxtextarea
>> >> > >>
>> >> > >> in the above case, I have 2 items, 1.textbox 2.textarea.
>> >> > >>
>> >> > >> If I select textbox, text box should be displayed below the
combo
>> >> > box. If
>> >> > >> I
>> >> > >> select textarea, textarea should be displayed but textbox
should
>> be
>> >> > >> hided.
>> >> > >>
>> >> > >> If I did not select anything, both textbox and textarea should
be
>> >> > hided.
>> >> > >>
>> >> > >> I have done using javascript. But I don't know how it is in
>> Wicket?
>> >> > >
>> >> > >
>> >> > >
>> >> > > simplest way to do this would be to add two wicket HiddenFields
-
>> one
>> >> > for
>> >> > > value of textbox and one for textarea, and then link them to the
>> ones
>> >> > you
>> >> > > created in the javascript.
>> >> > >
>> >> > > -igor
>> >> > >
>> >> > > I am newbie. So please give me your suggestions.
>> >> > >
>> >> > >
>> >> > >
>> >> > > Thanking You.
>> >> > >>
>> >> > >> Regards,
>> >> > >> Edi
>> >> > >>
>> >> > >> --
>> >> > &g

Re: [Wicket-user] Regarding onchange DropDown

2007-07-13 Thread Dipu Seminlal

can you try target.addjavascript(javascript) or target.appendjavascript
(javascript)

regards
Dipu

On 7/13/07, Edi <[EMAIL PROTECTED]> wrote:



When onchange the DropDown box, how can I call the javascript function?

for eg;

makes.add(new AjaxFormComponentUpdatingBehavior("onchange")
{
protected void onUpdate(AjaxRequestTarget target)
{
target.addComponent(models);
//how to call javascript function here.
}
});


igor.vaynberg wrote:
>
> On 7/13/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
>>
>> On 7/13/07, Edi <[EMAIL PROTECTED]> wrote:
>> >
>> >
>> > Could you please explain in detail manner?
>>
>>
>>
>> whats there to explain? in form.onsubmit or onchange event copy values
>> from your textarea/textfield to the appropriate hiddenfield element via
>> javascript.
>>
>> then when your form submits you can read the value out of that
>> hiddenfield
>> on serverside.
>>
>
> im not even sure you need the hiddenfield stuff, you might be able to do
> it
> directly on textfield/textarea wicket components. just add both of them.
> afaik if the tag is hidden via javascript it will not submit its value -
> so
> it should work automagically as long as you display:none one of them.
>
> -igor
>
>
>
> -igor
>>
>>
>>
>> igor.vaynberg wrote:
>> > >
>> > > On 7/12/07, Edi <[EMAIL PROTECTED]> wrote:
>> > >>
>> > >>
>> > >> Hi!
>> > >>
>> > >> I have one drop down like
>> > >>
>> > >> textboxtextarea
>> > >>
>> > >> in the above case, I have 2 items, 1.textbox 2.textarea.
>> > >>
>> > >> If I select textbox, text box should be displayed below the combo
>> > box. If
>> > >> I
>> > >> select textarea, textarea should be displayed but textbox should
be
>> > >> hided.
>> > >>
>> > >> If I did not select anything, both textbox and textarea should be
>> > hided.
>> > >>
>> > >> I have done using javascript. But I don't know how it is in
Wicket?
>> > >
>> > >
>> > >
>> > > simplest way to do this would be to add two wicket HiddenFields -
one
>> > for
>> > > value of textbox and one for textarea, and then link them to the
ones
>> > you
>> > > created in the javascript.
>> > >
>> > > -igor
>> > >
>> > > I am newbie. So please give me your suggestions.
>> > >
>> > >
>> > >
>> > > Thanking You.
>> > >>
>> > >> Regards,
>> > >> Edi
>> > >>
>> > >> --
>> > >> View this message in context:
>> > >>
>>
http://www.nabble.com/Regarding-onchange-DropDown-tf4072549.html#a11574089
>> >
>> > >> Sent from the Wicket - User mailing list archive at Nabble.com.
>> > >>
>> > >>
>> > >>
>> >
>>
-
>> > >> This SF.net email is sponsored by DB2 Express
>> > >> Download DB2 Express C - the FREE version of DB2 express and take
>> > >> control of your XML. No limits. Just data. Click to get it now.
>> > >> http://sourceforge.net/powerbar/db2/
>> > >> ___
>> > >> Wicket-user mailing list
>> > >> Wicket-user@lists.sourceforge.net
>> > >> https://lists.sourceforge.net/lists/listinfo/wicket-user
>> > >>
>> > >
>> > >
>> >
>>
-
>> > > This SF.net email is sponsored by DB2 Express
>> > > Download DB2 Express C - the FREE version of DB2 express and take
>> > > control of your XML. No limits. Just data. Click to get it now.
>> > > http://sourceforge.net/powerbar/db2/
>> > > ___
>> > > Wicket-user mailing list
>> > > Wicket-user@lists.sourceforge.net
>> > > https://lists.sourceforge.net/lists/listinfo/wicket-user
>> > >
>> > >
>> >
>> > --
>> > View this message in

Re: [Wicket-user] Pass value of the selected item from DataView to the modal window

2007-07-13 Thread Dipu Seminlal

can you try adding a getter and setter for your Notification obj in
TableViewPage

and at

public void onClick(AjaxRequestTarget target)
{
Notification obj =
(Notification)getParent().getModelObject();
 call setter method here
templateModal.show(target);

}

and call the getter at your modal window, i don't if it will solve your
problem, this is a guess, try it !!


Regards
Dipu




On 7/13/07, angela <[EMAIL PROTECTED]> wrote:



hi all,

any clue on this? anyone can give me some pointers/ guidance/tutorial for
this? I've tried on the wicket-examples to show modal dialog with a page,
it's successfully get the result back to my page. However, i'm having
problem with getting value from dataview to modal window...
Appreciate for anyone help! thanks.

Regards,
Angela

Hi all,

I have a TableViewPage, which has a modal window and the Ajax Link.

The modal window is used to edit item from DataView.
How do i pass value of the selected item from DataView to the modal
window?

Anyone can help me?
Thanks for spending time to read my codes here. :)
I'm using wicket version 1.2.4

Below is my partial codes:

public class TableViewPage extends CommonPage{

public TableViewPage(){

final ModalWindow templateModal;
add(templateModal = new ModalWindow("templateModal"));

templateModal.setPageMapName("templateModal");
templateModal.setCookieName("templateModal");
templateModal.setResizable(false);
templateModal.setTitle("Edit Template");
templateModal.setOutputMarkupId(true);


templateModal.setPageCreator(new ModalWindow.PageCreator()
{
public Page createPage()
{
return new TemplateModalPage(TableViewPage.this,
templateModal);
}
});


dataView = new DataView("table", dataProvider)
{

private static final long serialVersionUID = 1L;

@Override
protected void populateItem(final Item item) {
item.add(new AjaxLink("showTemplateLink",
item.getModel())
{
public void
onClick(AjaxRequestTarget target)
{
Notification obj =
(Notification)getParent().getModelObject();
// here i would like to
pass the obj value to modal window, how do i
achieve this?
templateModal.show
(target);

}
});
}
}
dataView.setOutputMarkupId(true);
add(dataView);
}
}

this is my partial codes of TemplateModalPage:

public class TemplateModalPage extends WebPage{

public TemplateModalPage(TableViewPage tableViewPage, ModalWindow
templateModal){
add(new TemplateForm("templateForm", tableViewPage));
}

private class TemplateForm extends Form{
private AjaxSubmitButton submitButton;
private AjaxSubmitButton cancelButton;
private TextField templateTextField;

public TemplateForm(String id, final TableViewPage
tableViewPage) {
super(id);

CompoundPropertyModel model = new
CompoundPropertyModel(this);
setModel(model);

templateTextField = new TextField("template");
add(templateTextField);

   //here i suppose to get the templateId (from
DataView) before i update the latest changes to the table...

submitButton = new
AjaxSubmitButton("submitButton", this){
@Override
protected void onSubmit(AjaxRequestTarget
target, Form form) {

try {

TemplateManager.getInstance().updateTemplate(persistence, aTransient);

} catch (Exception e) {

e.printStackTrace();
error(e.getMessage());
}
ModalWindow.close(target);
}
}
add(submitButton);
}
}
}

Thanks.

--
View this message in context:
http://www.nabble.com/Pass-value-of-the-selected-item-from-DataView-to-the-modal-window-tf4072118.html#a11572811
Sent from the Wicket - User mailing list archive at Nabble.com.


---

Re: [Wicket-user] Displaying Modal Window to capture and display error message

2007-07-10 Thread Dipu Seminlal

great, it works now !!!

On 7/10/07, Frank Bille <[EMAIL PROTECTED]> wrote:


On 7/10/07, Dipu Seminlal <[EMAIL PROTECTED]> wrote:
>
> Is there a way to display a modal window when a submit button is clicked
>
>

I would use an AjaxButton on then in it's onError method open the modal
window.

Frank

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Displaying Modal Window to capture and display error message

2007-07-10 Thread Dipu Seminlal

Hi All,

Is there a way to display a modal window when a submit button is clicked

Use Case is

Button button = new Button("bbutton")
{
 protected void onSubmit()
 {
   if(isValidInput())
   {
// do process and traverse to next screen
   }
   else
   {
// show a modal dialog with messages
   }
 }
}


Thanks
Dipu
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Logging Runtime Exceptions in the Error Page

2007-06-06 Thread Dipu Seminlal

I did the following in the application class

protected IRequestCycleProcessor newRequestCycleProcessor()
   {
return new DefaultWebRequestCycleProcessor()
{
   @Override
   protected IExceptionResponseStrategy
newExceptionResponseStrategy()
   {
  return new ExceptionResponseStrategy();
   }
   };
   }

and implemented own IExceptionResponseStrategy



On 6/6/07, Dipu Seminlal <[EMAIL PROTECTED]> wrote:


Hi All,

Is there a way i can get the Runtime Exceptions in the error page. I need
to log the exceptions for auditing.

Regards
Dipu




-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Logging Runtime Exceptions in the Error Page

2007-06-06 Thread Dipu Seminlal

Hi All,

Is there a way i can get the Runtime Exceptions in the error page. I need to
log the exceptions for auditing.

Regards
Dipu
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Autocomplete - selecting (higlighting)firstoptionby default.

2007-05-30 Thread Dipu
I have created a JIRA issue

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

Regards
Dipu


- Original Message - 
From: "Eelco Hillenius" <[EMAIL PROTECTED]>
To: 
Sent: Tuesday, May 29, 2007 5:08 PM
Subject: Re: [Wicket-user] Autocomplete - selecting 
(higlighting)firstoptionby default.


> Thanks. But could you please attach it to a JIRA issue so that we can
> properly track it?
>
> Thanks,
>
> Eelco
>
> On 5/29/07, Dipu <[EMAIL PROTECTED]> wrote:
>>
>>
>> here is the patch, for preselecting the first item in the auto complete
>> list.
>>
>>
>> Index:
>> C:/wicket/wicket-svn/releases/wicket-1.2.6/wicket-extensions/src/main/java/wicket/extensions/ajax/markup/html/autocomplete/AbstractAutoCompleteBehavior.java
>> ===
>> ---
>> C:/wicket/wicket-svn/releases/wicket-1.2.6/wicket-extensions/src/main/java/wicket/extensions/ajax/markup/html/autocomplete/AbstractAutoCompleteBehavior.java
>> (revision 541579)
>> +++
>> C:/wicket/wicket-svn/releases/wicket-1.2.6/wicket-extensions/src/main/java/wicket/extensions/ajax/markup/html/autocomplete/AbstractAutoCompleteBehavior.java
>> (working copy)
>> @@ -34,6 +34,7 @@
>>   private static final ResourceReference AUTOCOMPLETE_JS = new
>> CompressedResourceReference(
>> AutoCompleteBehavior.class, "wicket-autocomplete.js");
>>
>> + protected boolean preselect = false;
>>   /**
>>*
>>*/
>> @@ -66,7 +67,7 @@
>>Response response = getComponent().getResponse();
>>final String id = getComponent().getMarkupId();
>>response.write(JavascriptUtils.SCRIPT_OPEN_TAG);
>> -  response.write("new Wicket.AutoComplete('" + id + "','" +
>> getCallbackUrl() + "');");
>> +  response.write("new Wicket.AutoComplete('" + id + "','" +
>> getCallbackUrl() +"',"+ preselect + ");");
>>response.write(JavascriptUtils.SCRIPT_CLOSE_TAG);
>>   }
>>
>> Index:
>> C:/wicket/wicket-svn/releases/wicket-1.2.6/wicket-extensions/src/main/java/wicket/extensions/ajax/markup/html/autocomplete/AutoCompleteBehavior.java
>> ===
>> ---
>> C:/wicket/wicket-svn/releases/wicket-1.2.6/wicket-extensions/src/main/java/wicket/extensions/ajax/markup/html/autocomplete/AutoCompleteBehavior.java
>> (revision 541579)
>> +++
>> C:/wicket/wicket-svn/releases/wicket-1.2.6/wicket-extensions/src/main/java/wicket/extensions/ajax/markup/html/autocomplete/AutoCompleteBehavior.java
>> (working copy)
>> @@ -49,6 +49,19 @@
>>*/
>>   public AutoCompleteBehavior(IAutoCompleteRenderer
>> renderer)
>>   {
>> +  this(renderer, false);
>> + }
>> +
>> +
>> + /**
>> +  * Constructor
>> +  *
>> +  * @param renderer
>> +  *renderer that will be used to generate output
>> +  * @param preselect
>> +  */
>> + public AutoCompleteBehavior(IAutoCompleteRenderer
>> renderer, boolean preselect)
>> + {
>>if (renderer == null)
>>{
>> throw new IllegalArgumentException("renderer cannot be
>> null");
>> @@ -54,6 +67,7 @@
>> throw new IllegalArgumentException("renderer cannot be
>> null");
>>}
>>this.renderer = renderer;
>> +  this.preselect = preselect;
>>   }
>>
>>
>> Index:
>> C:/wicket/wicket-svn/releases/wicket-1.2.6/wicket-extensions/src/main/java/wicket/extensions/ajax/markup/html/autocomplete/AutoCompleteTextField.java
>> ===
>> ---
>> C:/wicket/wicket-svn/releases/wicket-1.2.6/wicket-extensions/src/main/java/wicket/extensions/ajax/markup/html/autocomplete/AutoCompleteTextField.java
>> (revision 541579)
>> +++
>> C:/wicket/wicket-svn/releases/wicket-1.2.6/wicket-extensions/src/main/java/wicket/extensions/ajax/markup/html/autocomplete/AutoCompleteTextField.java
>> (working copy)
>> @@ -43,7 +43,7 @@
>>*/
>>   public AutoCompleteTextField(String id, Class type)
>>   {
>> -  this(id, (IModel)null, type);
>> +  this(id, (IModel)null, type,false);
>>   }
>>
>>   /**
>> @@ -50,10 +50,11 @@
>>* @param id
>>* @param model
>>* @param type
>> +  * @param preselect
>>*/
>> - public AutoCompleteTextField(String id, IModel model, Class type)
>> + public AutoCompleteTextField(String id, IM

Re: [Wicket-user] Autocomplete - selecting (higlighting)firstoption by default.

2007-05-29 Thread Dipu
 model
   * @param type
   * @param renderer
+  * @param preselect 
   */
- public AutoCompleteTextField(String id, IModel model, Class type, 
IAutoCompleteRenderer renderer)
+ public AutoCompleteTextField(String id, IModel model, Class type, 
IAutoCompleteRenderer renderer,boolean preselect)
  {
   super(id, model, type);
 
@@ -117,7 +140,7 @@
   // this disables Firefox autocomplete
   add(new SimpleAttributeModifier("autocomplete","off"));
   
-  add(new AutoCompleteBehavior(renderer)
+  add(new AutoCompleteBehavior(renderer,preselect)
   {
 
private static final long serialVersionUID = 1L;
Index: 
C:/wicket/wicket-svn/releases/wicket-1.2.6/wicket-extensions/src/main/java/wicket/extensions/ajax/markup/html/autocomplete/wicket-autocomplete.js
===
--- 
C:/wicket/wicket-svn/releases/wicket-1.2.6/wicket-extensions/src/main/java/wicket/extensions/ajax/markup/html/autocomplete/wicket-autocomplete.js
 (revision 541579)
+++ 
C:/wicket/wicket-svn/releases/wicket-1.2.6/wicket-extensions/src/main/java/wicket/extensions/ajax/markup/html/autocomplete/wicket-autocomplete.js
 (working copy)
@@ -7,7 +7,7 @@
 if (typeof(Wicket) == "undefined")
  Wicket = { };
 
-Wicket.AutoComplete=function(elementId,callbackUrl){
+Wicket.AutoComplete=function(elementId,callbackUrl,preselect){
 var KEY_BACKSPACE=8;
 var KEY_TAB=9;
 var KEY_ENTER=13;
@@ -167,8 +167,12 @@
 }
 
 function updateChoices(){
-selected=-1;
-
+if(preselect==true){
+ selected = 0;
+}
+else{
+ selected=-1;
+}
 var value = wicketGet(elementId).value;
 var request = new 
Wicket.Ajax.Request(callbackUrl+"&q="+processValue(value), doUpdateChoices, 
false, true, false, "wicket-autocomplete|d");
 request.get();



  - Original Message - 
  From: Ryan Gravener 
  To: wicket-user@lists.sourceforge.net 
  Sent: Tuesday, May 29, 2007 12:57 PM
  Subject: Re: [Wicket-user] Autocomplete - selecting (higlighting)firstoption 
by default.


  If you can, submit a patch.  I think most of the community would like that 
functionality.


  On 29/05/07, Dipu < [EMAIL PROTECTED]> wrote:
I agree, it will be nice to have the ability control this.
In my case i had to hard code it in the autocomplete js file and i had to 
rebuild the wicket extensions.

Regards
Dipu


  - Original Message - 
  From: Sean Sullivan 
  To: wicket-user@lists.sourceforge.net 
  Sent: Saturday, May 26, 2007 6:57 AM
  Subject: Re: [Wicket-user] Autocomplete - selecting (higlighting) 
firstoption by default.



  IMHO, it would be nice if Java programmers could control this behavior 
with a Java API.


   
  On 5/25/07, Dipu <[EMAIL PROTECTED]> wrote: 


At the moment with Wicket's auto complete list  we need to scroll down 
to select an option from the Autocomplete list. 
It would be nice to have the first item highlighted by default.

I tried changing selected to 0 where its declared and it didn't work 
for me.

On setting selected to 0 a doUpdateChoices(resp) worked,

function doUpdateChoices(resp){
var element = getAutocompleteMenu();
element.innerHTML=resp;
if(element.firstChild && element.firstChild.childNodes) {
selected = 0;

Can anyone please confirm if this is the right way to go.

Regards
Dipu





--


  -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/ 


--


  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user




-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now. 
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list 
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user





  -- 
  Ryan Gravener
  fbb55c59d619f3cd68ac4f70ebeca372 


--


  -

Re: [Wicket-user] Skin effect in wicket

2007-05-29 Thread Dipu
i think you can override  getVariation() to do  this.

Regards
Dipu

- Original Message - 
From: "Javed" <[EMAIL PROTECTED]>
To: 
Sent: Tuesday, May 29, 2007 1:10 PM
Subject: [Wicket-user] Skin effect in wicket


>
> I want to give skin effect to my web application. This means, can I have
> option to select different html (look and feel) at the runtime depending 
> on
> the selected skin usinging the java file (page)?
>
> if there is any provision in wicket, please let me know.
>
> Thanks in advance.
> -- 
> View this message in context: 
> http://www.nabble.com/Skin-effect-in-wicket-tf3833465.html#a10852794
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user 


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Autocomplete - selecting (higlighting) firstoption by default.

2007-05-29 Thread Dipu
I agree, it will be nice to have the ability control this.
In my case i had to hard code it in the autocomplete js file and i had to 
rebuild the wicket extensions.

Regards
Dipu

 
  - Original Message - 
  From: Sean Sullivan 
  To: wicket-user@lists.sourceforge.net 
  Sent: Saturday, May 26, 2007 6:57 AM
  Subject: Re: [Wicket-user] Autocomplete - selecting (higlighting) firstoption 
by default.



  IMHO, it would be nice if Java programmers could control this behavior with a 
Java API.


   
  On 5/25/07, Dipu <[EMAIL PROTECTED]> wrote: 


At the moment with Wicket's auto complete list  we need to scroll down to 
select an option from the Autocomplete list. 
It would be nice to have the first item highlighted by default.

I tried changing selected to 0 where its declared and it didn't work for me.

On setting selected to 0 a doUpdateChoices(resp) worked,

function doUpdateChoices(resp){
var element = getAutocompleteMenu();
element.innerHTML=resp;
if(element.firstChild && element.firstChild.childNodes) {
selected = 0;

Can anyone please confirm if this is the right way to go.

Regards
Dipu





--


  -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/


--


  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Autocomplete - selecting (higlighting) first option by default.

2007-05-25 Thread Dipu
Hi, 

At the moment with Wicket's auto complete list  we need to scroll down to 
select an option from the Autocomplete list. 
It would be nice to have the first item highlighted by default.

I tried changing selected to 0 where its declared and it didn't work for me.

On setting selected to 0 a doUpdateChoices(resp) worked,

function doUpdateChoices(resp){
var element = getAutocompleteMenu();
element.innerHTML=resp;
if(element.firstChild && element.firstChild.childNodes) {
selected = 0;

Can anyone please confirm if this is the right way to go.

Regards
Dipu


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Strange Behaviour with AjaxFormComponentUpdatingBehavior

2007-05-25 Thread Dipu
Hi Kent,

Many thanks for the reply.
I tried swithching to 1.2.6 but still i am getting the same error.
Are you sure thats fixed in 1.2.6

I am using tomcat 5.5.17

Regards
Dipu


- Original Message - 
From: "Kent Tong" <[EMAIL PROTECTED]>
To: 
Sent: Friday, May 25, 2007 9:01 AM
Subject: Re: [Wicket-user]Strange Behaviour with 
AjaxFormComponentUpdatingBehavior


> Dipu  multicom.co.uk> writes:
>> If i override the isVersioned method
>> of the page and return false every thing works fine, i really have no 
>> clue
>> about whats happening and whats causing the error. Has anyone seen  this
>> before ? Whats the best way to get around this ?
>>
>> I am using wicket 1.2.5
>
> Upgrade 1.2.6. See https://issues.apache.org/jira/browse/WICKET-349 for
> details.
>
>
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user 


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Strange Behaviour with AjaxFormComponentUpdatingBehavior

2007-05-24 Thread Dipu

Hi, 

I am getting a strange error when i use AjaxFormComponentUpdatingBehavior.

I have a ListView in a form and i populate the ListView with a panel ( each 
list items contain a panel )
I have attached a AjaxFormComponentUpdatingBehavior to a Drop Down in the same 
form to re render the list view based on the item selected in the drop down. 

All this works well and listview gets re-drawn perfectly based on the item 
selected in the drop down

Then i submit the page and goes to the next page and uses the browsers back 
button  to traverse back to the original page.  Then change the item selected 
in the drop down ( list view gets re drawn woth out any problem ) and submits 
the page again and goes to the next page. Now if i try to come back to the 
original page using the browsers back button i get an error (stack trace given 
below)

If i override the isVersioned method of the page and return false every thing 
works fine, i really have no clue about whats happening and whats causing the 
error.
Has anyone seen  this before ? Whats the best way to get around this ? 

I am using wicket 1.2.5

Root cause:
java.lang.IllegalStateException: Cannot remove [MarkupContainer [Component id = 
3, page = , path = 3.ListItem]] from null parent! at 
wicket.Component.remove(Component.java:1469) at 
wicket.version.undo.Add.undo(Add.java:81) at 
wicket.version.undo.ChangeList.undo(ChangeList.java:93) at 
wicket.version.undo.UndoPageVersionManager.undo(UndoPageVersionManager.java:217)
 at 
wicket.version.undo.UndoPageVersionManager.getVersion(UndoPageVersionManager.java:167)
 at wicket.Page.getVersion(Page.java:589) at 
wicket.PageMap.get(PageMap.java:461) at 
wicket.Session.getPage(Session.java:447) at 
wicket.request.compound.DefaultRequestTargetResolverStrategy.resolveRenderedPage(DefaultRequestTargetResolverStrategy.java:215)
 at 
wicket.request.compound.DefaultRequestTargetResolverStrategy.resolve(DefaultRequestTargetResolverStrategy.java:153)
 at 
wicket.request.compound.AbstractCompoundRequestCycleProcessor.resolve(AbstractCompoundRequestCycleProcessor.java:48)
 at wicket.RequestCycle.step(RequestCycle.java:992) at 
wicket.RequestCycle.steps(RequestCycle.java:1084) at 
wicket.RequestCycle.request(RequestCycle.java:454) at 
wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:219) at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
 at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
 at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
 at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
 at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)   
  at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)   
  at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
 at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) 
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)   
  at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
 at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
 at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
 at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
 at java.lang.Thread.run(Thread.java:595)RegardsDipu-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] IMPORTANT: your opinion on the constructor change in2.0

2007-03-07 Thread Dipu

We are still using 1.2.1 and 1.2.5 for our production and near production 
projects.


Thanks
Dipu


- Original Message - 
From: "Eelco Hillenius" <[EMAIL PROTECTED]>
To: "Wicket User List" 
Sent: Tuesday, March 06, 2007 10:12 PM
Subject: [Wicket-user] IMPORTANT: your opinion on the constructor change 
in2.0


> Hi,
>
> We (Wicket's developers) are having some discussion over 1.3 vs 2.0
> and how difficult it is as a nun-funded project to spend so much time
> synchronizing the branches.
>
> A major issue in the discussion is that not everyone is convinced
> anymore that the constructor change in 2.0 is for the better. There
> are pros and cons for sure, but we want to get your opinion on this.
>
> Please help us out giving your opinion. We want to know:
>
> 1) Who uses 2.0 for serious projects?
>
> 2) What do you think of the constructor change? Do you prefer 1.3's
> add style or 2.0's style of passing in the parent construction time.
>
> 3) If we would ever backtrack on the constructor change (*if*, don't
> panic for now) how much trouble would that give you?
>
> Please don't be shy giving your opinion. This is an important issue in
> the future development of Wicket.
>
> Regards,
>
> Eelco
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share 
> your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user 


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Ajax Link + IE7 problem

2007-03-01 Thread Dipu
Hi Igor, 

I was using the version 1.2.1, i updated it to 1.2.5.  Now the ajax link works 
even we have a table inside anchors.
I accept it's not good to use table inside anchors , but the good news is with 
the latest version it works !!!

Regards
Dipu


  - Original Message - 
  From: Igor Vaynberg 
  To: wicket-user@lists.sourceforge.net 
  Sent: Wednesday, February 28, 2007 5:32 PM
  Subject: Re: [Wicket-user] Ajax Link + IE7 problem


  the only reason it wouldnt work is that the table captures the onclick event 
and doesnt bubble it up to the link. but, in general, you shouldnt use table 
inside anchors as was said

  -igor



  On 2/28/07, Dipu <[EMAIL PROTECTED]> wrote:
Thanks very much , if thats the case then i can inform the page designers 
about that.

Regards
Dipu
  - Original Message - 
  From: Ivo van Dongen 
  To: wicket-user@lists.sourceforge.net 
  Sent: Wednesday, February 28, 2007 12:08 PM
  Subject: Re: [Wicket-user] Ajax Link + IE7 problem


  Hi,

  Using a table in a link is probably not standards compliant. I don't know 
if that is the problem here, but this kind of thing can cause a lot of problems 
with javascript.

  See http://htmlhelp.com/reference/html40/special/a.html for the element 
specs.

  Ivo


  On 2/28/07, Dipu < [EMAIL PROTECTED]> wrote: 
Hi All,


Ajax Link doesnt work on IE 7 when there is a table in between the 
anchor tags.

If we change the following line in the LinksPage.html from ajax expample

counter 1: 
  < td >increment  ( ajax-only link 
) 

it will stop working.

Does anyone has any idea why ???

Regards
Dipu







-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share 
your 
opinions on IT & business topics through brief surveys-and earn cash

http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user 





  -- 
  Ivo van Dongen
  Func. Internet Integration
  W http://www.func.nl
  T +31 20 423
  F +31 20 4223500 


--


  -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to share 
your
  opinions on IT & business topics through brief surveys-and earn cash
  http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV 


--


  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user




-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share 
your 
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user 






--


  -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to share your
  opinions on IT & business topics through brief surveys-and earn cash
  http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV


--


  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] IE 7 + Ajax + Datepicker issues

2007-03-01 Thread Dipu
Thanks very much Eelco. 
I updated to 1.2.5 and now it works as expected with out any hacks.


Regards
Dipu



- Original Message - 
From: "Eelco Hillenius" <[EMAIL PROTECTED]>
To: 
Sent: Wednesday, February 28, 2007 6:16 PM
Subject: Re: [Wicket-user] IE 7 + Ajax + Datepicker issues


>I think upgrading to the latest 1.2 would fix your problem. The
> current version is 1.2.5, see
> http://sourceforge.net/project/showfiles.php?group_id=119783&package_id=130482
> 
> Eelco
> 
> On 2/28/07, Dipu <[EMAIL PROTECTED]> wrote:
>> I am using 1.2.1 at the moment.
>>
>> Did we have an official release of the version 2.0. I wiasd thinking of
>> moving to 2.0 when its released.
>>
>> Regards
>> Dipu
>>
>>
>> - Original Message -
>> From: "Eelco Hillenius" <[EMAIL PROTECTED]>
>> To: 
>> Sent: Wednesday, February 28, 2007 5:27 PM
>> Subject: Re: [Wicket-user] IE 7 + Ajax + Datepicker issues
>>
>>
>> > What version are you using? And if the version is 1.3 or 2.0, you
>> > could consider using the much better datepicker that is in
>> > wicket-datetime.
>> >
>> > Anyway, this sounds like a problem we had in previous versions to;
>> > should be fixed in new versions.
>> >
>> > Eelco
>> >
>> >
>> > On 2/28/07, Dipu <[EMAIL PROTECTED]> wrote:
>> >>
>> >>
>> >> Hi All,
>> >>
>> >> I use Ajax links to switch between different panels on a page and some of
>> >> the panels has datepicker components on it.
>> >> On IE 7 the date picker will stop working ( calendar won't pop up ) after
>> >> switching between panels using ajax link.
>> >> I think the reason for this is  that when the dom is updated with the
>> >> html
>> >> for the panel the inline Calendar.setup script is not getting executed
>> >> with
>> >> IE7.
>> >> I tired calling the Calendar.setup script  on the decorateOnSuccessScript
>> >> of
>> >> the ajax link thats is used to switch panel and the date picker worked.
>> >> Can anyone say if this is the solution to go with or do we have any other
>> >> better ways of solving the problem.
>> >> If calling the Calendar.setup script in the above mentioned way is the
>> >> solution then it will be good if the getInitScript method on the
>> >> DatePaicker
>> >> is made public.
>> >>
>> >> Regards
>> >> Dipu
>> >>
>> >> -
>> >> Take Surveys. Earn Cash. Influence the Future of IT
>> >> Join SourceForge.net's Techsay panel and you'll get the chance to share
>> >> your
>> >> opinions on IT & business topics through brief surveys-and earn cash
>> >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>> >> ___
>> >> Wicket-user mailing list
>> >> Wicket-user@lists.sourceforge.net
>> >> https://lists.sourceforge.net/lists/listinfo/wicket-user
>> >>
>> >>
>> >
>> > -
>> > Take Surveys. Earn Cash. Influence the Future of IT
>> > Join SourceForge.net's Techsay panel and you'll get the chance to share
>> > your
>> > opinions on IT & business topics through brief surveys-and earn cash
>> > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>> > ___
>> > Wicket-user mailing list
>> > Wicket-user@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/wicket-user
>>
>>
>> -
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get the chance to share your
>> opinions on IT & business topics through brief surveys-and earn cash
>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>> ___
>> Wicket-user mailing list
>> Wicket-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>>
> 
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] IE 7 + Ajax + Datepicker issues

2007-02-28 Thread Dipu
I am using 1.2.1 at the moment.

Did we have an official release of the version 2.0. I wiasd thinking of 
moving to 2.0 when its released.

Regards
Dipu


- Original Message - 
From: "Eelco Hillenius" <[EMAIL PROTECTED]>
To: 
Sent: Wednesday, February 28, 2007 5:27 PM
Subject: Re: [Wicket-user] IE 7 + Ajax + Datepicker issues


> What version are you using? And if the version is 1.3 or 2.0, you
> could consider using the much better datepicker that is in
> wicket-datetime.
>
> Anyway, this sounds like a problem we had in previous versions to;
> should be fixed in new versions.
>
> Eelco
>
>
> On 2/28/07, Dipu <[EMAIL PROTECTED]> wrote:
>>
>>
>> Hi All,
>>
>> I use Ajax links to switch between different panels on a page and some of
>> the panels has datepicker components on it.
>> On IE 7 the date picker will stop working ( calendar won't pop up ) after
>> switching between panels using ajax link.
>> I think the reason for this is  that when the dom is updated with the 
>> html
>> for the panel the inline Calendar.setup script is not getting executed 
>> with
>> IE7.
>> I tired calling the Calendar.setup script  on the decorateOnSuccessScript 
>> of
>> the ajax link thats is used to switch panel and the date picker worked.
>> Can anyone say if this is the solution to go with or do we have any other
>> better ways of solving the problem.
>> If calling the Calendar.setup script in the above mentioned way is the
>> solution then it will be good if the getInitScript method on the 
>> DatePaicker
>> is made public.
>>
>> Regards
>> Dipu
>>
>> -
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get the chance to share 
>> your
>> opinions on IT & business topics through brief surveys-and earn cash
>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>> ___
>> Wicket-user mailing list
>> Wicket-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>>
>>
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share 
> your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user 


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Ajax Link + IE7 problem

2007-02-28 Thread Dipu
Thanks very much , if thats the case then i can inform the page designers about 
that.

Regards
Dipu
  - Original Message - 
  From: Ivo van Dongen 
  To: wicket-user@lists.sourceforge.net 
  Sent: Wednesday, February 28, 2007 12:08 PM
  Subject: Re: [Wicket-user] Ajax Link + IE7 problem


  Hi,

  Using a table in a link is probably not standards compliant. I don't know if 
that is the problem here, but this kind of thing can cause a lot of problems 
with javascript.

  See http://htmlhelp.com/reference/html40/special/a.html for the element specs.

  Ivo


  On 2/28/07, Dipu < [EMAIL PROTECTED]> wrote:
Hi All,


Ajax Link doesnt work on IE 7 when there is a table in between the anchor 
tags.

If we change the following line in the LinksPage.html from ajax expample

counter 1: 
  increment  ( ajax-only link ) 

it will stop working.

Does anyone has any idea why ???

Regards
Dipu






-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share 
your 
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user 





  -- 
  Ivo van Dongen
  Func. Internet Integration
  W http://www.func.nl
  T +31 20 423
  F +31 20 4223500 


--


  -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to share your
  opinions on IT & business topics through brief surveys-and earn cash
  http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV


--


  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] IE 7 + Ajax + Datepicker issues

2007-02-28 Thread Dipu
Hi All, 

I use Ajax links to switch between different panels on a page and some of the 
panels has datepicker components on it.
On IE 7 the date picker will stop working ( calendar won't pop up ) after 
switching between panels using ajax link.
I think the reason for this is  that when the dom is updated with the html for 
the panel the inline Calendar.setup script is not getting executed with IE7.
I tired calling the Calendar.setup script  on the decorateOnSuccessScript of 
the ajax link thats is used to switch panel and the date picker worked.
Can anyone say if this is the solution to go with or do we have any other 
better ways of solving the problem.
If calling the Calendar.setup script in the above mentioned way is the solution 
then it will be good if the getInitScript method on the DatePaicker is made 
public.

Regards
Dipu
 -
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Ajax Link + IE7 problem

2007-02-28 Thread Dipu
Hi All,


Ajax Link doesnt work on IE 7 when there is a table in between the anchor tags.

If we change the following line in the LinksPage.html from ajax expample

counter 1:   increment  ( ajax-only 
link )

it will stop working.

Does anyone has any idea why ???

Regards
Dipu




-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Redirecting a page after a given time interval

2007-01-25 Thread Dipu
try this 
throw new RestartResponseAtInterceptPageException(YourPage.class);

Regards
Dipu
- Original Message - 
From: "tbt" <[EMAIL PROTECTED]>
To: 
Sent: Thursday, January 25, 2007 11:11 AM
Subject: [Wicket-user] Redirecting a page after a given time interval


> 
> Hi!
> 
> I'd like to know how to redirect a page automatically using wicket after a
> given time interval. Currently i'm using the following java class to do this
> 
> Timer timer = new Timer();
> timer.schedule(new TimerTask()
> {
> public void run()
> {
>  setResponsePage(new LogOutConfirmationPage());
> }
> }
> , 1 * 60 * 1000);
> 
> This is supposed to redirect the page after 1 minute but Wicket is throwing
> the following runtime exception "There is no application attatched to the
> current thread"
> 
> 
> Is there any way to do this using the wicket framework?
> 
> 
> -- 
> View this message in context: 
> http://www.nabble.com/Redirecting-a-page-after-a-given-time-interval-tf3097478.html#a856
> Sent from the Wicket - User mailing list archive at Nabble.com.
> 
> 
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Expiring Pages

2007-01-09 Thread Dipu
you will have to configure the session time out time in your server/ 
container , in your case you will have to do it in the resin's conf.

Regards
Dipu

- Original Message - 
From: "suranjay" <[EMAIL PROTECTED]>
To: 
Sent: Tuesday, January 09, 2007 1:43 PM
Subject: [Wicket-user] Expiring Pages


>
> We have a web-app which deals with online hotel bookings, which uses 
> Wicket
> 1.2.4.
> We have a problem with the pages expiring, when refreshed or submitted, in
> after about 20 min of inactivity.
> This also happens when Back button is clicked from a page.
> We need to have the pages not-expire for about 3 hours if possible.
>
> Could u pls be so kind as to tell me how I can override the default 
> expiring
> times?
> I tried setting Expires & Cache-Control:max-age headers, but they seem to
> have no effect.
>
> Also, will changing the form the submit types of the forms on the pages to
> 'GET' help?
>
> Does Wicket have a default time-limit for page inactivity expiring? If so,
> how can I override it?
>
> We are using Resin Web Server.
>
> Thank you!
> -- 
> View this message in context: 
> http://www.nabble.com/Expiring-Pages-tf2946013.html#a8237913
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share 
> your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user 


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] onSelectionChanged returning null value for newSelection

2006-11-19 Thread Dipu
Hi All, 

I am trying to set wantOnSelectionChangedNotifications on a dropdown choice, 
when i do that it does the roundtrip but i am getting null value for the 
newSelection, 
any ideas why , i am using wicket 1.2.1

Pasting the code snippen below.


DropDownChoice promotionType = new 
DropDownChoice("promotionType",promotion_Types, new PromotionTypeRenderer())
{
 protected void onSelectionChanged(final Object newSelection)
 {
  System.out.println(newSelection);
}

protected boolean wantOnSelectionChangedNotifications()
{
return true;
}
};
add(promotionType);


HTML 


option-1
option-2



Regards
Dipu-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] servlet-mapping

2006-11-17 Thread Dipu
Hi Igor, Johan

Thanks very myuch for the clarification.

Regards
Dipu


  - Original Message - 
  From: Igor Vaynberg 
  To: wicket-user@lists.sourceforge.net 
  Sent: Thursday, November 16, 2006 6:22 PM
  Subject: Re: [Wicket-user] servlet-mapping


  to better explain

  usually static resources are handled by the application server. the server 
knows it is serving a file and thus sets the last modified date of the resource 
to the last modified date of a file.

  so lets say you have

  /myapp/images/foo.gif

  and you map your wicket servlet to /*

  what happens is that when a request comes in for /myapp/images/foo.gif it 
will match the wicket servlet - so now it is wicket servlet's job to serve this 
file to the browser. now we are nice enough to provide support for this - but 
obviously we cannot do as good a job as the application server which has a lot 
more context. 

  so we recommend mapping the servlet to something like /app/* so that foo.gif 
will be processed by the application server and only wicket-specific requests 
are processed by the servlet.

  in 2.0 what we did was instead of using a servlet use a filter 

  the advantage of a filter is that unlike a servlet it can choose not to 
process the request and let whatever is next in chain try. so when using a 
wicket filter and a request comes in for foo.gif the filter chooses not to 
process it because it knows it is not a wicket-related request. since the 
filter didnt process it it falls on to the application server to try, and then 
it works. 

  someone mind putting this on the wiki?

  -igor





  On 11/16/06, Johan Compagner <[EMAIL PROTECTED] > wrote:
when using wicket 1.x and the WicketServlet (maybe we backport the filter 
to 1.3 i don't know yet)
Don't have an servlet mapping of /*
Because then the wicket servlet must do everything also as you notice the 
static resources 
Those resources should be handled by the right (default?) servlet of your 
app server.
But with a servlet it is all or nothing. In 2.0 we fixed this then we also 
supply a filter
so that we can pass it through to the next filter/servlet when we (the 
filter) doesn't want this request. 

so servlet mapping of /* is strongly not recommended!!

johan




On 11/16/06, James Carnegie <[EMAIL PROTECTED] > wrote:
  Hi Dipu,

  I don't know the answer to your problem, but I am experiencing it too 
  and would be very interested in learning about any solutions you find.

  Customers need to be able to specify what URL's look like, so the Wicket
  framework should _not_ dictate this.

  Can someone explain why we cannot use the /* 
  and have static resources loaded properly (with correct headers etc)?

  Kind regards,

  /james

  Dipu wrote:
  > Hi Jean,
  >
  > Thanks for replying ,
  >
  > Context path is something like  /myapp 
  >
  > I don't understand why it doesnt add the last modified header to static
  > resources when the /*
  >
  > Regards
  > Dipu
  >
  >
  >
  > - Original Message -
  > From: "Jean-Baptiste Quenot" <[EMAIL PROTECTED]>
  > To: < wicket-user@lists.sourceforge.net >
  > Sent: Thursday, November 16, 2006 3:40 PM
  > Subject: Re: [Wicket-user] servlet-mapping
  >
  >
  >> What is the context path of your webapp within the servlet
  >> container?
  >>
  >> Have you seen this issue:
  >> http://issues.apache.org/jira/browse/WICKET-66 
  >>
  >> All the best,
  >> --
  >> Jean-Baptiste Quenot
  >> aka  John Banana Qwerty
  >> http://caraldi.com/jbq/
  >> 
  >> 
- 
  >> Take Surveys. Earn Cash. Influence the Future of IT
  >> Join SourceForge.net's Techsay panel and you'll get the chance to share
  >> your
  >> opinions on IT & business topics through brief surveys - and earn cash 
  >> 
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV 
  >> ___ 
  >> Wicket-user mailing list
  >> Wicket-user@lists.sourceforge.net
  >> https://lists.sourceforge.net/lists/listinfo/wicket-user 
  >
  >
  > 
-
  > Take Surveys. Earn Cash. Influence the Future of IT
  > Join SourceForge.net's Techsay panel and you'll get the chance to share 
your 
  > opinions on IT & business topics

Re: [Wicket-user] servlet-mapping

2006-11-16 Thread Dipu
Hi Jean,

Thanks for replying ,

Context path is something like  /myapp

I don't understand why it doesnt add the last modified header to static 
resources when the /*

Regards
Dipu



- Original Message - 
From: "Jean-Baptiste Quenot" <[EMAIL PROTECTED]>
To: 
Sent: Thursday, November 16, 2006 3:40 PM
Subject: Re: [Wicket-user] servlet-mapping


> What is the context path of your webapp within the servlet
> container?
>
> Have you seen this issue:
> http://issues.apache.org/jira/browse/WICKET-66
>
> All the best,
> -- 
> Jean-Baptiste Quenot
> aka  John Banana Qwerty
> http://caraldi.com/jbq/
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share 
> your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user 


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] servlet-mapping

2006-11-16 Thread Dipu
Hi All, 

I noticed that the last modified headers is missing and fire fox is loading the 
static resources twice.

my servlet marpping looks like this 


control



when i change this to somthing like 


control
/pattern/*


everything works as expected, won't wicket allow to have 
 in servlet mapping.

Regards
Dipu

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Nice Url

2006-10-20 Thread Dipu



Hi Gwyn ,
 
I added a constructor with page parameters and 
mounted it on application init, 
but it didnt help either
i tried both the following options 
mountBookmarkablePage("/flights/results", 
FlightSearchResultPage.class);
mount("/flights",PackageName.forClass(FlightSearch.class));
 
I am using the version 1.2.1, am i really missing 
something here or doing something very stupid here.
 
Regards
Dipu 
 
 
 
- Original Message - 
From: "Gwyn Evans" <[EMAIL PROTECTED]>
To: <wicket-user@lists.sourceforge.net>
Sent: Thursday, October 19, 2006 4:40 
PM
Subject: Re: [Wicket-user] Nice 
Url
> On 19/10/06, Dipu <[EMAIL PROTECTED]> 
wrote:> >> If i have a page with the following 
constructor>> public NonBookmarkablePage(OrderInfo orfderInfo, final 
PartyInfo partyInfo)>>>> How will i make the url look nice 
for the page ?> > How difficult would it be to make it 
bookmarkable, i.e. give it a> PageParameters constructor and use the 
Application.mount call on it?> >> can you please give me some 
tips on implementing the>> IRequestTargetURLCodingStrategy  and 
using it.> > Take a look at the sources, read the javadocs & 
see how the supplied> strategies are implementing it.> > 
/Gwyn> >> - Original Message ->> From: 
"Korbinian Bachl" <[EMAIL PROTECTED]>>> To: <wicket-user@lists.sourceforge.net>>> Sent: Thursday, October 19, 2006 2:25 PM>> 
Subject: Re: [Wicket-user] Nice Url>>>> > Hi,>> 
>>> > yes it is possible, look here for detailed:>> 
> http://www.javalobby.org/java/forums/t68753.html>> >>> > you can then provide parameters 
via the PageParameter param - if this>> doesnt>> > 
satisfy you (e.g: some special needs for URL) then you may also use a 
own>> > implementation of IRequestTargetURLCodingStrategy  - 
a>> good beginnning there>> > is examining the WOOGLE 
project and look at its URL Strategy>> > (/q/queryword/page) 
->> >>> > best Regards,>> >>> 
> Korbinian>> >>> >>> >>> 
> >> >>> > Von: 
[EMAIL PROTECTED]>> > 
[mailto:[EMAIL PROTECTED] Im>> Auftrag von 
Dipu>> > Gesendet: Donnerstag, 19. Oktober 2006 14:37>> 
> An: wicket-user@lists.sourceforge.net>> > Betreff: [Wicket-user] Nice Url>> 
>>> >>> > HI all,>> >>> > 
Is there anyway to make the non bookmarkable page urls look nicer.>> 
> I am using the wicket version 1.2.1>> >>> > I 
need to display the urls like>> >>> > 
/x>> > /x/searching>> > 
/x/searchresults>> > /x/payment>> > 
/x/confirmation>> >>> > Kind Regards>> 
> Dipu>> >>> >>> >>> 
>>> 
->> 
> Using Tomcat but need to do more? Need to support web services, 
security?>> > Get stuff done quickly with pre-integrated technology 
to make your job>> easier>> > Download IBM WebSphere 
Application Server v.1.0.1 based on Apache Geronimo>> >>> 
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642>> > 
___>> > Wicket-user 
mailing list>> > Wicket-user@lists.sourceforge.net>> > https://lists.sourceforge.net/lists/listinfo/wicket-user>> 
->> 
Using Tomcat but need to do more? Need to support web services, 
security?>> Get stuff done quickly with pre-integrated technology to 
make your job>> easier>> Download IBM WebSphere Application 
Server v.1.0.1 based on Apache Geronimo>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642>>>> 
___>> Wicket-user mailing 
list>> Wicket-user@lists.sourceforge.net>> https://lists.sourceforge.net/lists/listinfo/wicket-user>>>>>>> > > -- 
> Download Wicket 1.2.2 now! - http://wicketframework.org> 
> 
-> 
Using Tomcat but need to do more? Need to support web services, 
security?> Get stuff done quickly with pre-integrated technology to make 
your job easier> Download IBM WebSphere Application Server v.1.0.1 based 
on Apache Geronimo> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642> ___> 
Wicket-user mailing list> Wicket-user@lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/wicket-user
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Nice Url

2006-10-19 Thread Dipu



Hi Korbinian, 
 
Thanks very much for the reply, 
 
If i have a page with the following 
constructor 
public NonBookmarkablePage(OrderInfo orfderInfo, 
final PartyInfo partyInfo) 
 
How will i make the url look nice for the page 
?
 
can you please give me some tips on implementing 
the IRequestTargetURLCodingStrategy  and using it.
 
Regards
Dipu
 
 
 
- Original Message - 
From: "Korbinian Bachl" <[EMAIL PROTECTED]>
To: <wicket-user@lists.sourceforge.net>
Sent: Thursday, October 19, 2006 2:25 
PM
Subject: Re: [Wicket-user] Nice 
Url
> Hi,> > yes it is possible, look here for 
detailed:> http://www.javalobby.org/java/forums/t68753.html> > you can then provide parameters via the 
PageParameter param - if this doesnt> satisfy you (e.g: some special 
needs for URL) then you may also use a own> implementation of 
IRequestTargetURLCodingStrategy  - a good beginnning there> is 
examining the WOOGLE project and look at its URL Strategy> 
(/q/queryword/page) - > > best Regards,> > 
Korbinian> > > > 
____> > Von: [EMAIL PROTECTED]> [mailto:[EMAIL PROTECTED] Im Auftrag von 
Dipu> Gesendet: Donnerstag, 19. Oktober 2006 14:37> An: wicket-user@lists.sourceforge.net> Betreff: [Wicket-user] Nice Url> > > HI all, 
> > Is there anyway to make the non bookmarkable page urls look 
nicer.> I am using the wicket version 1.2.1> > I need to 
display the urls like> 
   
> /x> /x/searching> /x/searchresults> 
/x/payment> /x/confirmation> > Kind Regards> 
Dipu> > > > 
-> 
Using Tomcat but need to do more? Need to support web services, 
security?> Get stuff done quickly with pre-integrated technology to make 
your job easier> Download IBM WebSphere Application Server v.1.0.1 based 
on Apache Geronimo> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642> ___> 
Wicket-user mailing list> Wicket-user@lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/wicket-user
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Nice Url

2006-10-19 Thread Dipu



HI all, 
 
Is there anyway to make the non bookmarkable page 
urls look nicer.
I am using the wicket version 1.2.1
 
I need to display the urls like
   

/x/x/searching/x/searchresults/x/payment/x/confirmation
 
Kind Regards
Dipu
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Ajax refresh feedback

2006-10-18 Thread Dipu



fantastic , thats really cool !!!
 
Cheers 
Dipu 

  - Original Message - 
  From: 
  Igor 
  Vaynberg 
  To: wicket-user@lists.sourceforge.net 
  
  Sent: Tuesday, October 17, 2006 7:45 
  PM
  Subject: Re: [Wicket-user] Ajax refresh 
  feedback
  there is really nothing to itsomewhere in body 
  haveLOADING...and before your body 
  tag have

Re: [Wicket-user] Confirming Gmail Issues

2006-10-06 Thread Dipu



reply !!!

  - Original Message - 
  From: 
  Ayodeji 
  Aladejebi 
  To: wicket-user@lists.sourceforge.net 
  
  Sent: Friday, October 06, 2006 9:15 
  AM
  Subject: [Wicket-user] Confirming Gmail 
  Issues
  This is to test if Gmail is still bouncing my 
  mails...please can someone reply me if they got this?
  
  

  -Take 
  Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's 
  Techsay panel and you'll get the chance to share youropinions on IT & 
  business topics through brief surveys -- and earn 
  cashhttp://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
  
  

  ___Wicket-user mailing 
  listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] embedding a wicket page in a third party page

2006-10-05 Thread Dipu



Hi, 
 
I there any way to embed/include a wicket page 
in a third party jsp site ( with out using iframe ) and  do a 
form submit from there.
In other words is there any way to do a post 
from a third party site to a wicket form.
 
 
Kind regards
Dipu
 
 
 
 
 
 
  
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] CharSequence Error -- Help Needed

2006-09-06 Thread Dipu



HI Ananth, 
 
I am not sure , but can you check the JDK version 
you are using. I think you will need the JDK 1.5
 
Cheers 
Dipu

  - Original Message - 
  From: 
  Ananth Prakash 
  To: wicket-user@lists.sourceforge.net 
  
  Sent: Wednesday, September 06, 2006 10:20 
  AM
  Subject: [Wicket-user] CharSequence Error 
  -- Help Needed
  Hi,I using wicket to build a web-appln. I am using 
  WSAD5.2 as the IDE. I have added wicket1.2.2.jar in the lib directory of my 
  workspace.Whenever I try creating my own POJO Form by extending 
  the class Form, I get a error as follows:"This Compilation Unit 
  indirectly refers the missing type Java.lang.CharSequence(typically a required 
  file is referencing a type outside the classpath)".I looked into the 
  wicket jar I downloaded and I could not find the CharSequence class. For a 
  fact I donot think this class is required in the Jar file but I am stuck as 
  this error does not go.Can anyone pls help or 
  suggest?Regards,Ananth
  
  

  -Using 
  Tomcat but need to do more? Need to support web services, security?Get 
  stuff done quickly with pre-integrated technology to make your job 
  easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache 
  Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
  
  

  ___Wicket-user mailing 
  listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Maintaining CheckBox Statewhile traversingpageable listview

2006-09-04 Thread Dipu



Igor, many thanks for the reply, i will do a wiki 
page on this.
 
Dipu

  - Original Message - 
  From: 
  Igor 
  Vaynberg 
  To: wicket-user@lists.sourceforge.net 
  
  Sent: Friday, September 01, 2006 5:01 
  PM
  Subject: Re: [Wicket-user] Maintaining 
  CheckBox Statewhile traversingpageable listview
  
  
  



1. Is there any way to maintain the state 
of a checkbox in a listview.
 
For example if i have a pageable 
listview  containing a checkbox in every row.
If the user checks check boxes in the 
first listview page and traverse to the subsequent pages.
I want the check box to retain the state 
when the user comes back the the initial 
page.
  there are two options1. use ajaxified checkbox2. use 
  a paging navigator subclass that creates SubmitLinks instead of regular Links 
  - that way on every page change the form is submitted and checkbox values are 
  saved when you get it working mind making a wiki page? its a common 
  enough question i think.
  



2. With the pageable listview is there any way 
i can display something like 
    75 to 
100  of x 
  results
  you have to write your own label, see source of NavigatorLabel for 
  details-Igor 
  



Thanks 
Dipu-Using 
Tomcat but need to do more? Need to support web services, security?Get 
stuff done quickly with pre-integrated technology to make your job easier 
Download IBM WebSphere Application Server v.1.0.1 based on Apache 
Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___Wicket-user 
mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user 

  
  

  -Using 
  Tomcat but need to do more? Need to support web services, security?Get 
  stuff done quickly with pre-integrated technology to make your job 
  easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache 
  Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
  
  

  ___Wicket-user mailing 
  listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Maintaining CheckBox State

2006-09-01 Thread Dipu



That will rquire me to implement my own paging 
navigator with submit link's , isnt it.
I think as Karthik suggested using AjaxCheckBox will be easier option.
 
many thanks for the input and help
 
Dipu

  - Original Message - 
  From: 
  Johan 
  Compagner 
  To: wicket-user@lists.sourceforge.net 
  
  Sent: Friday, September 01, 2006 12:31 
  PM
  Subject: Re: [Wicket-user] Maintaining 
  CheckBox State
  use a submit link instead of normal 
  links.johan
  On 9/1/06, Dipu 
  <[EMAIL PROTECTED] 
  > wrote:
  


yes i agee and i do have model for each 
row item.
But how do i do the submit using the 
paging navigator.
 
Thanks 
    
Dipu  



- 
Original Message - 
From: 
Johan Compagner 
To: 
wicket-user@lists.sourceforge.net 
Sent: 
Friday, September 01, 2006 11:37 AM
Subject: 
Re: [Wicket-user] Maintaining CheckBox State
Then the traverse can't be just a link click. It should be a 
submit and you have to store the checkbox state then for that row in a 
model.you can display anything you want i guess only you have to 
place the labels yourself. that display such a 
thing.johan
    On 9/1/06, Dipu 
<[EMAIL PROTECTED]> wrote: 

  
  
  Hi All, 
   
  I have two questions regarding the 
  listview
   
  1. Is there any way to maintain 
  the state of a checkbox in a listview.
   
  For example if i have 
  a listview  containing a checkbox in every row.
  If the user checks check boxes in the 
  first listview page and traverse to the subsequent 
pages.
  I want the check box to retain the state 
  when the user comes back the the initial page.
   
  2. With the listview is there any way i can 
  display something like 
      75 to 
  100  of x results
   
  Thanks 
  Dipu
   
   
   -Using 
  Tomcat but need to do more? Need to support web services, security?Get 
  stuff done quickly with pre-integrated technology to make your job easier 
  Download IBM WebSphere Application Server v.1.0.1 based on Apache 
  Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 
  ___Wicket-user 
  mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user 
  





-Using 
Tomcat but need to do more? Need to support web services, security?Get 
stuff done quickly with pre-integrated technology to make your job 
easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache 
Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 




___Wicket-user 
mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user


-Using 
Tomcat but need to do more? Need to support web services, security?Get 
stuff done quickly with pre-integrated technology to make your job easier 
Download IBM WebSphere Application Server v.1.0.1 based on Apache 
Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___Wicket-user 
mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user 

  
  

  -Using 
  Tomcat but need to do more? Need to support web services, security?Get 
  stuff done quickly with pre-integrated technology to make your job 
  easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache 
  Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
  
  

  ___Wicket-user mailing 
  listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Maintaining CheckBox State

2006-09-01 Thread Dipu



yes i agee and i do have model for each row 
item.
But how do i do the submit using the paging 
navigator.
 
Thanks 
Dipu  

  - Original Message - 
  From: 
  Johan 
  Compagner 
  To: wicket-user@lists.sourceforge.net 
  
  Sent: Friday, September 01, 2006 11:37 
  AM
  Subject: Re: [Wicket-user] Maintaining 
  CheckBox State
  Then the traverse can't be just a link click. It should be a 
  submit and you have to store the checkbox state then for that row in a 
  model.you can display anything you want i guess only you have to place 
  the labels yourself. that display such a thing.johan
  On 9/1/06, Dipu 
  <[EMAIL PROTECTED]> 
  wrote: 
  


Hi All, 
 
I have two questions regarding the 
listview
 
1. Is there any way to maintain the state 
of a checkbox in a listview.
 
For example if i have 
a listview  containing a checkbox in every row.
If the user checks check boxes in the 
first listview page and traverse to the subsequent pages.
I want the check box to retain the state 
when the user comes back the the initial page.
 
2. With the listview is there any way i can 
display something like 
    75 to 
100  of x results
 
Thanks 
Dipu
 
 
 -Using 
Tomcat but need to do more? Need to support web services, security?Get 
stuff done quickly with pre-integrated technology to make your job easier 
Download IBM WebSphere Application Server v.1.0.1 based on Apache 
Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___Wicket-user 
mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user 

  
  

  -Using 
  Tomcat but need to do more? Need to support web services, security?Get 
  stuff done quickly with pre-integrated technology to make your job 
  easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache 
  Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
  
  

  ___Wicket-user mailing 
  listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Maintaining CheckBox Statewhile traversing pageable listview

2006-09-01 Thread Dipu




Hi All, 
 
Sorry for doing a repost, in fact i was mentioning about pageable 
listview 
 
I have two questions regarding the pageable  
listview
 
1. Is there any way to maintain the state of a 
checkbox in a listview.
 
For example if i have a pageable 
listview  containing a checkbox in every row.
If the user checks check boxes in the 
first listview page and traverse to the subsequent pages.
I want the check box to retain the state when 
the user comes back the the initial page.
 
2. With the pageable listview is there any way i 
can display something like 
    75 to 
100  of x results
 
Thanks 
Dipu
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Maintaining CheckBox State

2006-09-01 Thread Dipu



Hi All, 
 
I have two questions regarding the 
listview
 
1. Is there any way to maintain the state of a 
checkbox in a listview.
 
For example if i have a listview  
containing a checkbox in every row.
If the user checks check boxes in the 
first listview page and traverse to the subsequent pages.
I want the check box to retain the state when 
the user comes back the the initial page.
 
2. With the listview is there any way i can display 
something like 
    75 to 
100  of x results
 
Thanks 
Dipu
 
 
 
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] value not getting set to the model whenAjaxFormComponentUpdatingBehavior used.

2006-08-21 Thread Dipu




here we go ..





 




 
Status


All
Live
Not Live



Supplier


Supplier 1
Supplier 2



Rank


All
1-9




 







Geo Search Choice


location
position









location/position Panel




 


Search Choice


All
Name
Address






Search Text




Number of results Per Page


25
50






















 


  - Original Message - 
  From: 
  Frank 
  Bille 
  To: wicket-user@lists.sourceforge.net 
  
  Sent: Monday, August 21, 2006 9:37 
  AM
  Subject: Re: [Wicket-user] value not 
  getting set to the model whenAjaxFormComponentUpdatingBehavior used.
  Can you paste the entire markup? - Frank
  On 8/21/06, Dipu 
  <[EMAIL PROTECTED] 
  > wrote:
  


Hi Matej,
 
Thanks very much, it did help.
 
I took the form declaratin out of the table and 
it worked.
 
If i wrap the form declaration inside a cell, i 
get the follwoing parser error.
' (line 41, column 20) has a mismatched close tag 
at '' (line 41, column 102)
 
Regards

Dipu
 


- Original Message - 

From: "Matej Knopp" <[EMAIL PROTECTED] >
To: <wicket-user@lists.sourceforge.net >

Sent: Friday, August 18, 2006 6:28 
PM
Subject: Re: [Wicket-user] value not getting 
set to the model when AjaxFormComponentUpdatingBehavior 
used.


> It doesn't work in firefox because you placed the form directly 
to table.> This is not valid and firefox freaks out. You have to put 
it in table cell> (wrap the form in   and 
)> > -Matej> > Dipu 
wrote:>> Hi All,>>  >> I have the 
following hierarchy>>  >> 
Page>> 
Panel>> 
Form>>  >> And in side the form i have the form 
components , and i have attached  >> 
AjaxFormComponentUpdatingBehavior to one of the dropdowns to populate 
>> another.>> And all that works fine, but when i do the 
submit, the first time the >> ajax populated field's value doesn't 
get set to the model object.>> But it gets set the second time 
onwards.>>  >> Has anyone come accross this 
porblem.>> I am attaching the sample files.>>  
>> Kind Regards>> Dipu>>   
>>  >>  >>  >>  
>> >>  >>  
>>  >>  >> >> 
>> 
>> >> 
>> 
>> This example demonstrates a AjaxSelfUpdatingBehavior. This 
behavior can >> be attached to any component to make it update 
itself. The clock below >> is updated every five 
seconds.>> >> >> 
>> 
>> 
->> 
Using Tomcat but need to do more? Need to support web services, 
security?>> Get stuff done quickly with pre-integrated technology 
to make your job easier>> Download IBM WebSphere Application 
Server v.1.0.1 based on Apache Geronimo>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642>> >> >> 
>> 
>> ___>> 
Wicket-user mailing list>> Wicket-user@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/wicket-user> > > 
-> 
Using Tomcat but need to do more? Need to support web services, 
security?> Get stuff done quickly with pre-integrated technology to 
make your job easier> Download IBM WebSphere Application Server 
v.1.0.1 based on Apache Geronimo> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642> 
___> Wicket-user mailing 
list> Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user
-Using 
Tomcat but need to do more? Need to support web services, security?Get 
stuff done quickly with pre-integrated technology to make your job easier 
Download IBM WebSphere Application Server v.1.0.1 based on Apache 
Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___Wicket-user 
mailing listWi

Re: [Wicket-user] value not getting set to the model when AjaxFormComponentUpdatingBehavior used.

2006-08-21 Thread Dipu



Hi Matej,
 
Thanks very much, it did help.
 
I took the form declaratin out of the table and it 
worked.
 
If i wrap the form declaration inside a cell, i get 
the follwoing parser error.
' (line 41, column 20) has a mismatched close tag at 
'' (line 41, column 102)
 
Regards
Dipu
 
- Original Message - 
From: "Matej Knopp" <[EMAIL PROTECTED]>
To: <wicket-user@lists.sourceforge.net>
Sent: Friday, August 18, 2006 6:28 PM
Subject: Re: [Wicket-user] value not getting set to 
the model when AjaxFormComponentUpdatingBehavior used.
> It doesn't work in firefox because you placed the form directly to 
table.> This is not valid and firefox freaks out. You have to put it in 
table cell> (wrap the form in   and 
)> > -Matej> > Dipu 
wrote:>> Hi All,>>  >> I have the following 
hierarchy>>  >> 
Page>> 
Panel>> 
Form>>  >> And in side the form i have the form 
components , and i have attached  >> 
AjaxFormComponentUpdatingBehavior to one of the dropdowns to populate 
>> another.>> And all that works fine, but when i do the 
submit, the first time the >> ajax populated field's value doesn't get 
set to the model object.>> But it gets set the second time 
onwards.>>  >> Has anyone come accross this 
porblem.>> I am attaching the sample files.>>  
>> Kind Regards>> Dipu>>   
>>  >>  >>  >>  
>> >>  >>  
>>  >>  >> >> 
>> 
>> >> 
>> 
>> This example demonstrates a AjaxSelfUpdatingBehavior. This behavior 
can >> be attached to any component to make it update itself. The 
clock below >> is updated every five seconds.>> >> 
>> 
>> 
>> 
->> 
Using Tomcat but need to do more? Need to support web services, 
security?>> Get stuff done quickly with pre-integrated technology to 
make your job easier>> Download IBM WebSphere Application Server 
v.1.0.1 based on Apache Geronimo>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642>> >> >> 
>> 
>> ___>> 
Wicket-user mailing list>> Wicket-user@lists.sourceforge.net>> https://lists.sourceforge.net/lists/listinfo/wicket-user> > > 
-> 
Using Tomcat but need to do more? Need to support web services, 
security?> Get stuff done quickly with pre-integrated technology to make 
your job easier> Download IBM WebSphere Application Server v.1.0.1 based 
on Apache Geronimo> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642> ___> 
Wicket-user mailing list> Wicket-user@lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/wicket-user
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] value not getting set to the model whenAjaxFormComponentUpdatingBehavior used.

2006-08-18 Thread Dipu



I don't think so, because its not done in the 
examples.
And the samples files i sent was worked out from 
the example.
 
Thanks
Dipu 
 
- Original Message - 
From: "Gwyn Evans" <[EMAIL PROTECTED]>
To: <wicket-user@lists.sourceforge.net>
Sent: Friday, August 18, 2006 12:58 PM
Subject: Re: [Wicket-user] value not getting set to 
the model whenAjaxFormComponentUpdatingBehavior used.
> Not 100% sure but don't you need to explicitly update the 2nd 
dropdown> on the onUpdate - Compare with> http://www.wicket-wiki.org.uk/wiki/index.php/DropDownChoice_Examples#Using_Ajax> > /Gwyn> > On 18/08/06, Dipu 
<[EMAIL PROTECTED]> 
wrote:>>>>>> Hi All,>>>> I 
have the following hierarchy>>>> 
Page>> 
Panel>> 
Form>>>> And in side the form i have the form components , 
and i have attached>> AjaxFormComponentUpdatingBehavior to one of the 
dropdowns>> to populate another.>> And all that works fine, 
but when i do the submit, the first time the ajax>> populated field's 
value doesn't get set to the model object.>> But it gets set the 
second time onwards.>>>> Has anyone come accross this 
porblem.>> I am attaching the sample files.>>>> 
Kind Regards>> 
Dipu>>>>>>>>>>>>>>>>>>>>>> 
->> 
Using Tomcat but need to do more? Need to support web services, 
security?>> Get stuff done quickly with pre-integrated technology to 
make your job>> easier>> Download IBM WebSphere Application 
Server v.1.0.1 based on Apache Geronimo>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642>>>> 
___>> Wicket-user mailing 
list>> Wicket-user@lists.sourceforge.net>> https://lists.sourceforge.net/lists/listinfo/wicket-user>>>>>>>>> > 
> -- > Download Wicket 1.2.1 now! - http://wicketframework.org> 
> 
-> 
Using Tomcat but need to do more? Need to support web services, 
security?> Get stuff done quickly with pre-integrated technology to make 
your job easier> Download IBM WebSphere Application Server v.1.0.1 based 
on Apache Geronimo> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642> ___> 
Wicket-user mailing list> Wicket-user@lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/wicket-user
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] value not getting set to the model when AjaxFormComponentUpdatingBehavior used.

2006-08-18 Thread Dipu



Hi All,
 
I have the following hierarchy 
 
Page 
    Panel
        
Form
 
And in side the form i have the form 
components , and i have attached  
AjaxFormComponentUpdatingBehavior to one of the dropdowns to populate 
another.
And all that works fine, but when i do the 
submit, the first time the ajax populated field's value doesn't 
get set to the model object.
But it gets set the second time 
onwards.
 
Has anyone come accross this porblem.
I am attaching the sample files.
 
Kind Regards
Dipu
  
 
 
 
 

 
 
 
 







	
	
	
	
	
	
	
	
	




This example demonstrates a AjaxSelfUpdatingBehavior.
This behavior can be attached to any component to make it update itself.
The clock below is updated every five seconds.





ChoiceModel.java
Description: Binary data


ChoicePanel.java
Description: Binary data


HomePage.java
Description: Binary data


ChoiceForm.java
Description: Binary data
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] how to disable trigger button of DatePicker

2006-08-15 Thread Dipu



I ma not sure if this is the best solution, i would 
have an alternative image and swap it. 
 
hope the snippet below helps
 

   ( Date 
Picker )






 
 Radio
 
Regards
Dipu
- Original Message - 
From: "Nili Adoram" <[EMAIL PROTECTED]>
To: <wicket-user@lists.sourceforge.net>
Sent: Tuesday, August 15, 2006 12:27 
PM
Subject: [Wicket-user] how to disable trigger 
button of DatePicker
> Hi all,> I have a DatePicker within a form which I want to 
disable when I press a > certain radio,> but it seems impossible 
to disable this trigger button.> The DatePicker provides no getter to 
this button, and it is private and > final.> Since wicket 
specifically sets the id of this image I tried adding an > 
AttributeModifier with a name:> > 
endDatePicker.get("trigger").add(new AttributeModifier("name", true, new 
> Model("endDateTrigger")));> > > Next I called a 
_javascript_ that  looks for this element by name and sets > the 
disabled attribute to true.> > However, clicking this image 
continues to open the calendar.> How can I prevent the calendar from 
opening ?> > Thanks,> Nili> > 
-> 
Using Tomcat but need to do more? Need to support web services, 
security?> Get stuff done quickly with pre-integrated technology to make 
your job easier> Download IBM WebSphere Application Server v.1.0.1 based 
on Apache Geronimo> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642> ___> 
Wicket-user mailing list> Wicket-user@lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/wicket-user
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] problem with PopupCloseLink - wicket 1.2.1

2006-08-11 Thread Dipu



Hi Elco,
 
Problem was with the PopupSettings
 
This is how i had defined the the 
PopupSettings
 
PopupSettings popupsettings = new 
PopupSettings();
popupSettings.setHeight(500);
popupSettings.setWidth(500);
popupSettings.setWindowName("name");
 
Changed it to 
 
PopupSettings popupSettings = new PopupSettings(PageMap.forName("name"));
popupSettings.setHeight(500);
popupSettings.setWidth(500);
 
and now it works fine.
 
many thanks for the reply.
 
Regards
Dipu 
 
 
 
 
- Original Message - 
From: "Eelco Hillenius" <[EMAIL PROTECTED]>
To: <wicket-user@lists.sourceforge.net>
Sent: Thursday, August 10, 2006 7:52 
PM
Subject: Re: [Wicket-user] problem with 
PopupCloseLink - wicket 1.2.1
> Hi Dipu,> > I can't reproduce this with the current 
1.2 svn version.> > Does the linkomatic example have the same 
behavior for you? Can you> send in a test project that reproduces this 
problem? And/ or test> against the svn version and see if the problem is 
still there?> > Eelco> > > On 8/9/06, Dipu 
<[EMAIL PROTECTED]> 
wrote:>>>>>> Hi All,>>>> I 
have migrated my application from the earlier version of wicket to 
the>> version 1.2.1.>>>> I am having bit of a 
problem with the popup pages and pop up close links.>> If i open a 
popup page and close it by clicking on the PopupCloseLink.>> The next 
attempt to open  the pop up page loads the home page in my pop 
up>> page.>> At the same time if i uses the browsers close 
button it opens the correct>> pop up page in the>> 
subsequent attempts.>>>> Has any one come across this 
problem with the version 1.2.1.>>>> I wonder if the 
line>> // Remove the popup's page map from the session>> 
getPage().getPageMap().remove();>>>> in the onClick() method 
of PopupCloseLink has got some thing to do with>> 
this.>>>> Kind Regards>> 
Dipu>>>>>> 
->> 
Using Tomcat but need to do more? Need to support web services, 
security?>> Get stuff done quickly with pre-integrated technology to 
make your job>> easier>> Download IBM WebSphere Application 
Server v.1.0.1 based on Apache Geronimo>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642>>>> 
___>> Wicket-user mailing 
list>> Wicket-user@lists.sourceforge.net>> https://lists.sourceforge.net/lists/listinfo/wicket-user>>>>>>> > 
-> 
Using Tomcat but need to do more? Need to support web services, 
security?> Get stuff done quickly with pre-integrated technology to make 
your job easier> Download IBM WebSphere Application Server v.1.0.1 based 
on Apache Geronimo> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642> ___> 
Wicket-user mailing list> Wicket-user@lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/wicket-user
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] ListViews vs repeaters (was: Form + pull modelListView + FormValidators)

2006-08-11 Thread Dipu



Hi,
 
I never had any problem using the ListViews and i 
use it extensively in my project.
So i would say no no for any API breakages. 

 
If repeaters are better solutions i am for 
promoting that. 
 
thanks 
Dipu
 
 
- Original Message - 
From: "Eelco Hillenius" <[EMAIL PROTECTED]>
To: <wicket-user@lists.sourceforge.net>
Sent: Thursday, August 10, 2006 9:55 
PM
Subject: [Wicket-user] ListViews vs repeaters (was: 
Form + pull modelListView + FormValidators)
> Ok, regardless of this case then... I'd be interested to hear 
what> people think in general about ListViews vs repeaters 
(package> wicket.extensions.markup.html.repeater and kids)? Are repeaters 
a> better solution in general/ only for certain cases (database) or 
just> different?> > I'm asking this because if enough 
people think repeaters do provide a> better alternative, we should 
soft-deprecate ListView and start> promoting the repeaters more. Now 
would be a good time, specifically> because 2.0 is still open for changes 
and I would use them in favor of> ListViews in Wicket In Action.> 
> Speak up please, everyone :)> > Eelco> > 
> On 8/10/06, Igor Vaynberg <[EMAIL PROTECTED]> 
wrote:>> i dont think this is a problem with listview. i think joni 
misunderstood>> what setreuseitems() did and that even with pull 
models it makes sense. in>> this particular case dataview would suffer 
the exact same problems as the>> listview save one - you will not 
forget to override getlistitemmodel()>> because it is part of the 
idataprovider interface. but even with a dataview>> you would have to 
set an item reuse strategy which is equivalent to calling>> 
setreuseitems(true) on the listview. in dataview, same as the listview, 
the>> items would be recreated, etc - thats just the nature of 
repeaters in>> wicket.>>>> 
-Igor>>>>>>>> On 8/10/06, Eelco 
Hillenius <[EMAIL PROTECTED]> 
wrote:>> >>>  > I'm gradually getting to a 
conclusion that ListView sucks, and should be>> > replaced with 
something more robust.>>>> It does suck that about 25% of 
the problems people have with Wicket>> seems to come from the 
ListView.>>>> What do you think about the repeater packages? 
I'm still using>> ListViews myself mostly; they do the job for me. But 
Igor created them>> out of frustration with ListViews (and that was a 
long time ago). If>> more people think repeaters are a better solution 
than ListViews,>> maybe we should consider putting ListView more in 
the background (e.g.>> red rid of them in examples and more 
specifically Wicket In Action),>> and getting some repeaters over to 
the core project for Wicket 2.0.>>>> If there was ever a 
time to 'fix' this, it's now.>>>> Eelco> > 
-> 
Using Tomcat but need to do more? Need to support web services, 
security?> Get stuff done quickly with pre-integrated technology to make 
your job easier> Download IBM WebSphere Application Server v.1.0.1 based 
on Apache Geronimo> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642> ___> 
Wicket-user mailing list> Wicket-user@lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/wicket-user
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] problem with PopupCloseLink - wicket 1.2.1

2006-08-09 Thread Dipu



Hi All, 
 
I have migrated my application from the earlier 
version of wicket to the version 1.2.1.
 
I am having bit of a problem with the popup pages 
and pop up close links. 
If i open a popup page and close it by clicking on 
the PopupCloseLink. 
The next attempt to open  
the pop up page loads the home page in my pop up page.
At the same time if i uses the browsers close 
button it opens the correct pop up page in the
subsequent attempts. 
 
Has any one come across this problem with the 
version 1.2.1.
 
I wonder if the line 
// Remove the popup's page map from the 
session
getPage().getPageMap().remove();
 
in the onClick() method of 
PopupCloseLink has got some thing to do with this.
 
Kind Regards
Dipu
 
  
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] problems migrating the application to the latestwicket

2006-08-04 Thread Dipu
Hi Eelco,

Thanks very much for the reply, i assume the problem is some class path 
issue,
because the same set of files works the way it is supposed to work on 
another machine.

Regards
Dipu

- Original Message - 
From: "Eelco Hillenius" <[EMAIL PROTECTED]>
To: 
Sent: Thursday, August 03, 2006 5:23 PM
Subject: Re: [Wicket-user] problems migrating the application to the 
latestwicket


> Hi,
>
> I can't find anything wrong with your code by looking at it. Maybe you
> could submit a complete example (include the base classes and markup
> files) in e.g. a quickstart project so that we can take a look at it?
> QWicket is a great way to get a project in a few clicks:
> http://www.antwerkz.com/qwicket/app/project
>
>
> Eelco
>
>
> On 8/2/06, Dipu <[EMAIL PROTECTED]> wrote:
>>
>>
>> Hi All,
>>
>> I am trying to migrate my application to the latest version of wicket and 
>> i
>> am having troubles.
>>
>> The first thing that i identified is that the buttons on submit is not
>> getting called.
>> The findSubmittingButton() method in the Form object is returning null.
>>
>> I am attaching sample files on how i am doing it.
>> I don't know what am i doing wrong here.
>> Any help is greatly appreciated.
>>
>> thanks
>> dipu
>>
>>
>>
>>
>>
>> -
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get the chance to share 
>> your
>> opinions on IT & business topics through brief surveys -- and earn cash
>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>>
>> ___
>> Wicket-user mailing list
>> Wicket-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>>
>>
>>
>>
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share 
> your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user 


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] SSL Handoff in Wicket - Solved

2006-08-03 Thread Dipu



Hi Igor, 
 
Many thanks Igor, that solves our 
issue.
 
 
Regards
Dipu

  - Original Message - 
  From: 
  Igor 
  Vaynberg 
  To: wicket-user@lists.sourceforge.net 
  
  Sent: Wednesday, August 02, 2006 5:17 
  PM
  Subject: Re: [Wicket-user] SSL Handoff in 
  Wicket
  you can write your own request coding strategy that looks 
  something like thismystrategy.encode(requestcycle, target) 
  { private boolean gotossl=false; if (target instanceof 
  ListerInterfaceRequestTarget) {    
  listenertarget=(ListerInterfaceRqeuestTarget)target;    
      if (listenertarget.getpage() has @SSL 
  annotation&¬ in ssl mode) 
  { 
  gotossl=true;    }  }CharSequence 
  orig= super.encode(requestcycle, target);
  return 
  (gotossl)?orig+"&gotossl=true":orig;}hope this gets you 
  started-IgorOn 8/2/06, Dipu <[EMAIL PROTECTED]> 
  wrote:
  Hi 
Eelco,Thanks for your response, but if you read the rest of the 
email you will seethat the solutions proposed on themailing list and 
on the wiki are not appropriate.We are just about to go live and 
this is the last issue so we would appreciate some 
help.RegardsDipu- Original Message 
-From: "Eelco Hillenius" <[EMAIL PROTECTED]>To: 
< 
wicket-user@lists.sourceforge.net>Sent: Wednesday, August 02, 
2006 4:36 PMSubject: Re: [Wicket-user] SSL Handoff in 
Wicket>I haven't read you whole message, but did you search 
through the> mailing lists as well? I think there was a thread on 
this just last> week.>> http://woogle.billen.dk/search/q/SSL>> 
Eelco>>> On 8/2/06, Dipu <[EMAIL PROTECTED]> 
wrote:>>>>>> Hi 
All,>>>>>> We are trying setup a suitable 
switch to SSL method for our Wicket >> application. I have read 
the wiki page regarding SSL switching:>> http://www.wicket-wiki.org.uk/wiki/index.php/Switch_to_SSL_mode 
>>>> but this does not solve our problem. We have 
apache and mod_proxy in>> front of Tomcat. Our wicket application 
will be used on multiple>> domains, so we can't hard code the 
hostname into our application for SSL >>   switching 
because that will depend on which domain name was used for>> the 
request. Getting our application to sense the calling hostname 
is>> also not appropriate because some users (a from a third party 
network) >> will be accessing the application by IP via a NAT'ed 
connection, so the>> hostname sensed by the Servlet would be 
incorrect.>>>> Also, we want the application to work 
from our internal network on the >> default Tomcat port of 
8080.>>>> In short, we want Apache to handle SSL 
switching by redirecting (using>> mod_rewrite) to the SSL URL. 
Apache already knows the hostname(s) it is>> controlling, so no 
hard coding of hostnames in the application would>> required - far 
more versatile in our opinion.>>>> To get this to work 
properly however, an HTTP GET is required. Using the >> 
REDIRECT_TO_BUFFER RenderStrategy causes HTTP 302 redirects to a 
new>> friendly URL (via HTTP GET). This is perfect, except that 
apache can't>> tell the difference between pages that we wish to 
be secured, and those >> that we do not. So here's the 
question:>>>> Is it possible for us to modify the URL 
(perhaps by adding a GET>> parameter) generated for the HTTP 302 
as generated by using the>> REDIRECT_TO_BUFFER 
RenderStrategy?>>>> I hope this makes sense! 
:)>>>> Kind regards,>>>> 
Dipu.>>>> 
- 
>> Take Surveys. Earn Cash. Influence the Future of IT>> 
Join SourceForge.net's Techsay panel and you'll get the chance to 
share>> your>> opinions on IT & business topics 
through brief surveys -- and earn cash >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV>>>> 
___ >> Wicket-user 
mailing list>> Wicket-user@lists.sourceforge.net>> 
https://lists.sourceforge.net/lists/listinfo/wicket-user 
>>>>>>>> 
-> 
Take Surveys. Earn Cash. Influence the Future of IT> Join 
SourceForge.net's Techsay panel and you'll get the chance to share > 
your> opinions on IT & business topics through brief surveys -- 
and earn cash> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV 

Re: [Wicket-user] SSL Handoff in Wicket

2006-08-02 Thread Dipu
Hi Eelco,

Thanks for your response, but if you read the rest of the email you will see 
that the solutions proposed on the
mailing list and on the wiki are not appropriate.

We are just about to go live and this is the last issue so we would 
appreciate some help.

Regards
Dipu


- Original Message - 
From: "Eelco Hillenius" <[EMAIL PROTECTED]>
To: 
Sent: Wednesday, August 02, 2006 4:36 PM
Subject: Re: [Wicket-user] SSL Handoff in Wicket


>I haven't read you whole message, but did you search through the
> mailing lists as well? I think there was a thread on this just last
> week.
>
> http://woogle.billen.dk/search/q/SSL
>
> Eelco
>
>
> On 8/2/06, Dipu <[EMAIL PROTECTED]> wrote:
>>
>>
>> Hi All,
>>
>>
>> We are trying setup a suitable switch to SSL method for our Wicket
>> application. I have read the wiki page regarding SSL switching:
>> http://www.wicket-wiki.org.uk/wiki/index.php/Switch_to_SSL_mode
>>
>> but this does not solve our problem. We have apache and mod_proxy in
>> front of Tomcat. Our wicket application will be used on multiple
>> domains, so we can't hard code the hostname into our application for SSL
>>   switching because that will depend on which domain name was used for
>> the request. Getting our application to sense the calling hostname is
>> also not appropriate because some users (a from a third party network)
>> will be accessing the application by IP via a NAT'ed connection, so the
>> hostname sensed by the Servlet would be incorrect.
>>
>> Also, we want the application to work from our internal network on the
>> default Tomcat port of 8080.
>>
>> In short, we want Apache to handle SSL switching by redirecting (using
>> mod_rewrite) to the SSL URL. Apache already knows the hostname(s) it is
>> controlling, so no hard coding of hostnames in the application would
>> required - far more versatile in our opinion.
>>
>> To get this to work properly however, an HTTP GET is required. Using the
>> REDIRECT_TO_BUFFER RenderStrategy causes HTTP 302 redirects to a new
>> friendly URL (via HTTP GET). This is perfect, except that apache can't
>> tell the difference between pages that we wish to be secured, and those
>> that we do not. So here's the question:
>>
>> Is it possible for us to modify the URL (perhaps by adding a GET
>> parameter) generated for the HTTP 302 as generated by using the
>> REDIRECT_TO_BUFFER RenderStrategy?
>>
>> I hope this makes sense! :)
>>
>> Kind regards,
>>
>> Dipu.
>>
>> -
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get the chance to share 
>> your
>> opinions on IT & business topics through brief surveys -- and earn cash
>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>>
>> ___
>> Wicket-user mailing list
>> Wicket-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>>
>>
>>
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share 
> your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user 


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] SSL Handoff in Wicket

2006-08-02 Thread Dipu



Hi All,We are trying setup a suitable 
switch to SSL method for our Wicket application. I have read the wiki page 
regarding SSL switching:http://www.wicket-wiki.org.uk/wiki/index.php/Switch_to_SSL_modebut this does not solve our problem. We have apache and 
mod_proxy in front of Tomcat. Our wicket application will be used on 
multiple domains, so we can't hard code the hostname into our application 
for SSL   switching because that will depend on which domain name was 
used for the request. Getting our application to sense the calling hostname 
is also not appropriate because some users (a from a third party network) 
will be accessing the application by IP via a NAT'ed connection, so the 
hostname sensed by the Servlet would be incorrect.Also, we want the 
application to work from our internal network on the default Tomcat port of 
8080.In short, we want Apache to handle SSL switching by redirecting 
(using mod_rewrite) to the SSL URL. Apache already knows the hostname(s) it 
is controlling, so no hard coding of hostnames in the application would 
required - far more versatile in our opinion.To get this to work 
properly however, an HTTP GET is required. Using the REDIRECT_TO_BUFFER 
RenderStrategy causes HTTP 302 redirects to a new friendly URL (via HTTP 
GET). This is perfect, except that apache can't tell the difference between 
pages that we wish to be secured, and those that we do not. So here's the 
question:Is it possible for us to modify the URL (perhaps by adding a 
GET parameter) generated for the HTTP 302 as generated by using the 
REDIRECT_TO_BUFFER RenderStrategy?I hope this makes sense! 
:)Kind regards,Dipu.
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] problems migrating the application to the latest wicket

2006-08-02 Thread Dipu



Hi All,
 
I am trying to migrate my application to the latest 
version of wicket and i am having troubles.
 
The first thing that i identified is that the 
buttons on submit is not getting called. 
The findSubmittingButton() method in the Form 
object is returning null.
 
I am attaching sample files on how i am doing it. 

I don't know what am i doing wrong here. 

Any help is greatly appreciated.
 
thanks
dipu 
 
 
 
 
 


TestForm.java
Description: Binary data


TestModel.java
Description: Binary data


TestPage.java
Description: Binary data


TestPanel.java
Description: Binary data
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] SSL

2006-08-01 Thread Dipu



Hi Johan , many thanks for the help.
 
 
Regards
Dipu

  - Original Message - 
  From: 
  Johan 
  Compagner 
  To: wicket-user@lists.sourceforge.net 
  
  Sent: Monday, July 31, 2006 8:35 PM
  Subject: Re: [Wicket-user] SSL
  something like this:cycle.setRequestTarget(new 
  IRequestTarget()            
  {            
      public void detach(RequestCycle 
  requestCycle)            
      {        
          }    
              public Object 
  getLock(RequestCycle requestCycle)         
          {    
                  
  return null;            
      }        
          public void respond(RequestCycle 
  requestCycle)            
      {        
              // Redirect 
  there            
          cycle.getResponse().redirect("https://x/dsfsadf?x=y");    
              
  }            });
  On 7/31/06, Dipu 
  <[EMAIL PROTECTED]> 
  wrote:
  


Hi Johan, 
 
Can you please give me an example on how to do 
redirect using IRequestTarget
 
Thanks 

Dipu



- 
Original Message - 
From: 
Johan Compagner 
To: 
wicket-user@lists.sourceforge.net 
Sent: 
Thursday, July 06, 2006 9:48 AM
Subject: 
Re: [Wicket-user] SSL
Redirect to a full url or use an ExternalLink (pointing to 
your own site but then with ssl)Do that redirect with a 
IRequestTarget.I don't know how you do it now but doing a redirect should 
always be donethrough request targets. johan
On 7/6/06, Joe 
Toth <[EMAIL PROTECTED]> 
wrote: 
How 
  can I implement a way switch over to https?Depending on how the 
  user navigates I need to swich over to https froma form 
  submit.  Every time I try a different way to implement 
  thistransparently I receive "Caused by: 
  wicket.WicketRuntimeException:Already redirecting to '/app/Checkout'. 
  Cannot redirect more thanonce"At first I tried to annotate a 
  class with @RequiredSSL and created anew IResponseStrategy that would 
  test if the request was secure, if not, WebResponse.redirect to the 
  https version of the requested url.Second I tried to do the same 
  in the constructor of my Base Class forall my pages and throw an 
  AbortException, but I had the same problem. Any 
  ideas?Also, are there any plans to add a https feature in 2.0 core 
  or extensions?Thanks!Using Tomcat but need to do more? 
  Need to support web services, security?Get stuff done quickly with 
  pre-integrated technology to make your job easier Download IBM 
  WebSphere Application Server v.1.0.1 based on Apache Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 
  ___Wicket-user 
  mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user 
  





Using Tomcat but need to do more? Need to support web services, 
security?Get stuff done quickly with pre-integrated technology to make 
your job easierDownload IBM WebSphere Application Server v.1.0.1 based 
on Apache Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642



___Wicket-user 
mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user 



-Take 
Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's 
Techsay panel and you'll get the chance to share youropinions on IT 
& business topics through brief surveys -- and earn cashhttp://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___Wicket-user 
mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user 

  
  

  -Take 
  Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's 
  Techsay panel and you'll get the chance to share youropinions on IT & 
  business topics through brief surveys -- and earn 
  cashhttp://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
  
  

  ___Wicket-user mailing 
  listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=s

Re: [Wicket-user] SSL

2006-07-31 Thread Dipu



Hi Johan, 
 
Can you please give me an example on how to do 
redirect using IRequestTarget
 
Thanks 
Dipu

  - Original Message - 
  From: 
  Johan 
  Compagner 
  To: wicket-user@lists.sourceforge.net 
  
  Sent: Thursday, July 06, 2006 9:48 
  AM
  Subject: Re: [Wicket-user] SSL
  Redirect to a full url or use an ExternalLink (pointing to your 
  own site but then with ssl)Do that redirect with a IRequestTarget.I 
  don't know how you do it now but doing a redirect should always be 
  donethrough request targets. johan
  On 7/6/06, Joe Toth 
  <[EMAIL PROTECTED]> wrote:
  How 
can I implement a way switch over to https?Depending on how the user 
navigates I need to swich over to https froma form 
submit.  Every time I try a different way to implement 
thistransparently I receive "Caused by: 
wicket.WicketRuntimeException:Already redirecting to '/app/Checkout'. 
Cannot redirect more thanonce"At first I tried to annotate a 
class with @RequiredSSL and created anew IResponseStrategy that would 
test if the request was secure, if not, WebResponse.redirect to the 
https version of the requested url.Second I tried to do the same in 
the constructor of my Base Class forall my pages and throw an 
AbortException, but I had the same problem. Any ideas?Also, 
are there any plans to add a https feature in 2.0 core or 
extensions?Thanks!Using Tomcat but need to do more? Need to 
support web services, security?Get stuff done quickly with 
pre-integrated technology to make your job easier Download IBM WebSphere 
Application Server v.1.0.1 based on Apache Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 
___Wicket-user 
mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
  
  

  Using Tomcat but need to do more? Need to support web services, 
  security?Get stuff done quickly with pre-integrated technology to make 
  your job easierDownload IBM WebSphere Application Server v.1.0.1 based on 
  Apache 
  Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
  
  

  ___Wicket-user mailing 
  listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Wicket 1.2 released!

2006-05-24 Thread Dipu



Great , congrats to everyone involved.
 
 
Cheers 
Dipu


Re: [Wicket-user] Model values not getting set properly

2006-05-05 Thread Dipu



Hi Johan and Eelco,
 
If i copy over the SignIn.java from Wicket Examples 
to a package in project it stops wroking.
So in that file i have TextField, 
PasswordTextField and simple PropertyModel with a ValueMap as backing model 
object.
 
when i try to print 
properties.getString("username")properties.getString("password")
both returns null.
 
The moment i remove the wicket project reference 
and refer the wicket.jar ( the one which i build before updating the source 
tree ), everything works fine.
 
Thanks 
Dipu
 
 
 
 
- Original Message - 
From: "Eelco Hillenius" <[EMAIL PROTECTED]>
To: <wicket-user@lists.sourceforge.net>
Sent: Thursday, May 04, 2006 6:27 PM
Subject: Re: [Wicket-user] Model values not getting 
set properly
No clue, sorry. Could you be more specific about which models 
andwhich components your problem applies to? To my knowledge, we 
haven'tbeen doing any wild with models lately.EelcoOn 
5/4/06, Dipu <[EMAIL PROTECTED]> 
wrote:>> Hi,>> I updated the the wicket source tree 
from svn trunk and my application> stopped functioning.> For some 
reason the values are not getting set to the resepective model> 
object.>> When i change the dependency from the wicket project to 
the wicket.jar (> which i build before updating the source tree ) every 
thing is working> normal.>> strange thing is that when i 
run the wicket examples against the  wicket> source tree there is no 
issues but when i copy the> SignIn.java to my project and run it from 
there values are not getting set> as expected.>> I think it 
has got something to do with csome conflicting references in my> class 
path but i don't see anything unwanted htere in my class path.> Anyone 
any clue about this ?>> Thanks>> 
Dipu>>>>>---Using 
Tomcat but need to do more? Need to support web services, security?Get stuff 
done quickly with pre-integrated technology to make your job easierDownload 
IBM WebSphere Application Server v.1.0.1 based on Apache Geronimohttp://sel.as-us.falkag.net/sel?cmd=k&kid0709&bid&3057&dat1642___Wicket-user 
mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Model values not getting set properly

2006-05-04 Thread Dipu



Hi, 
 
I updated the the wicket source tree from svn trunk 
and my application stopped functioning.
For some reason the values are not getting set to 
the resepective model object.
 
When i change the dependency from the wicket 
project to the wicket.jar ( which i build before updating the source 
tree ) every thing is working normal.
 
strange thing is that when i run the wicket 
examples against the  wicket source tree there is no issues but when i copy 
the 
SignIn.java to my project and run it from 
there values are not getting set as expected.
 
I think it has got something to do with csome 
conflicting references in my class path but i don't see anything unwanted htere 
in my class path. 
Anyone any clue about this ? 
 
Thanks 
Dipu 
 
 
 
 
 


Re: [Wicket-user] Wicket Enters the SourceForge 100

2006-04-19 Thread Dipu



cool , good to know that wicket is catching up 
!!!
 
cheers 
Dipu

  - Original Message - 
  From: 
  Jonathan Locke 
  To: wicket-user@lists.sourceforge.net 
  ; wicket-develop@lists.sourceforge.net 
  
  Sent: Wednesday, April 19, 2006 6:03 
  AM
  Subject: [Wicket-user] Wicket Enters the 
  SourceForge 100
  Today (Tuesday), Wicket moved up to #98 on sourceforge's 
  project list, entering the top 100 projects for the first time.  That 
  makes us a very popular project, especially given how gigantic sourceforge is 
  these days!  Just thought you all might want to know this. 
  Best,    Jon


Re: [Wicket-user] Problem migrating the application to the new version of Wicket.

2006-04-13 Thread Dipu



yeah , thats right, its working for me as well once 
i updted my wicket source tree from the svn trunk.
Thank verymuch Juergen.
 
Cheers 
Dipu
 
 
- Original Message - 
From: "Juergen Donnerstag" <[EMAIL PROTECTED]>
To: <wicket-user@lists.sourceforge.net>
Sent: Thursday, April 13, 2006 4:12 PM
Subject: Re: [Wicket-user] Problem migrating the 
application to the new version of Wicket.
I tested it with current SVN TRUNK and I do not get an exception. 
Itworks for Home.html and index.html. May be it is already 
fixed.JuergenOn 4/13/06, Dipu <[EMAIL PROTECTED]> 
wrote:>> Hi Juergen,>> Sorry for the late reply. I 
am atttaching the files where you can see the> problem i 
experienced.>> If you configure the home page to be Home.class 
instead of Index.class every> hitng works normally.> As i 
mentioned in the hom.class i have added a panel with the js file> 
refernce.>> Thanks> 
Dipu>>>>>> - Original Message 
-> From: "Juergen Donnerstag" <[EMAIL PROTECTED]>> To: <wicket-user@lists.sourceforge.net>> Sent: Monday, April 03, 2006 5:57 PM> Subject: Re: 
[Wicket-user] Problem migrating the application to the new> version of 
Wicket.>>> You may send me the files (or the unit test) and 
I'll check it.>> Juergen>> On 4/3/06, Dipu 
<[EMAIL PROTECTED]> wrote:> 
>> > I have a scenario like this> >> > Base 
Page> >    |> >   V> > 
Intermidiate Page> >    |> >   
V> > My Page> >> > and i have defined markup for 
the pages respectively.> >> > I have got some _javascript_ 
references and the style sheet references in> the> > Base Page 
which is used accross the applicatiion.> > and in the mark up those 
references are defined with in the wicket:head> > tags.> 
>> > When i try to add some additional _javascript_ reference in 
MyPage which is> > specific to the  MyPage> > I get the 
wicket.markup.MarkupException: saying that the same wicket:id as> > 
another component already added at the same level.> >> 
>> > At the same time if create a seperate panel and add just the 
_javascript_> > reference inside the panel and add the panel in the 
MyPage it works> sweetly.> > I really wonder if am doing 
anything wrong or if it has got any thing to> do> > with the 
latest version of the wicket.> >> > It used to work for me 
when i was using the older version, this problem> > started showing up 
when i started using the latest code.> > I am using the code from the 
SVN trunk.> >> > Cheers> > Dipu> 
>> >> >> >> >> >> 
>> >> >> >> >> >> 
> - Original Message -> > From: "Juergen Donnerstag" 
<[EMAIL PROTECTED]>> > To: <wicket-user@lists.sourceforge.net>> > Sent: Friday, March 31, 2006 11:53 AM> > 
Subject: Re: [Wicket-user] Problem migrating the application to the new> 
> version of Wicket.> >> >> > >I stepped 
through the code and its clearly  trying to add the> > component 
with the id >"flightSearchResultValidation" for a seconf> > time 
and that is why its breaking.> > >But as far as i can see i am 
adding it only once in my java code.> > > add( new> 
>> 
_javascript_Reference("flightSearchResultValidation",searchResultValidations()));> 
>> > when you stepped through already and assuming you are using an 
IDE,> > than it is easy to walk up the stack and identify where it 
gets added> > (and where the second time). In eclipse go to the debug 
view and when> > stopped at the breakpoint the "Debug" view shows the 
stack trace. In> > that view just click on the previous method and 
eclipse will position> > the java editor appropriately.> 
>> > Juergen> >> >> > On 3/31/06, 
Dipu <[EMAIL PROTECTED]> wrote:> 
> >> > > Yes i am using markup inheritance, my base doesn't 
have the same header.> > >> > > header in my base mark 
up> > > > > > > > > 
href="">> > > > > > href="">> 
> > > > 
> > > > 
> > >> > > Header in the extender 
mark up> > > > > > > > 
>> > > > > 
>> > > I stepped through the code and its clearly  trying 
to add the component> > with> > > the id 
"flightSearchResultValidation" for a seconf time and that is why> > 
its> > > breaking.> > > But as far as i can see i am 
adding it only o

Re: [Wicket-user] Problem migrating the application to the new version of Wicket.

2006-04-03 Thread Dipu



I have a scenario 
like this 
 
Base Page
   | 
  V
Intermidiate Page 
   | 

  V

My Page
 
and i have defined markup for the pages respectively.
 
I have got some _javascript_ references and the style sheet references in the 
Base Page which is used accross the applicatiion.
and in the mark up those references are defined with in the wicket:head 
tags.
 
When i try to add some additional _javascript_ reference in 
MyPage which is specific to the  MyPage 
I get the wicket.markup.MarkupException: saying that the same wicket:id as 
another component already added at the same level.
 
 
At the same time if create a seperate panel and add just the _javascript_ 
reference inside the panel and add the panel in the MyPage it works 
sweetly.
I really wonder if am doing anything wrong or if it has got any thing to 
do with the latest version of the wicket.
 
It used to work for me when i was using the older version, this problem 
started showing up when i started using the latest code.
I am using the code from the SVN trunk.
 
Cheers
Dipu
 
 
 
 
 

  
 
 
 
 
 
- Original Message - 
From: "Juergen Donnerstag" <[EMAIL PROTECTED]>
To: <wicket-user@lists.sourceforge.net>
Sent: Friday, March 31, 2006 11:53 AM
Subject: Re: [Wicket-user] Problem migrating the 
application to the new version of Wicket.
>I stepped through the code and its clearly  trying to add 
thecomponent with the id >"flightSearchResultValidation" for a 
seconftime and that is why its breaking.>But as far as i can see i am 
adding it only once in my java code.> add( new 
_javascript_Reference("flightSearchResultValidation",searchResultValidations()));when 
you stepped through already and assuming you are using an IDE,than it is 
easy to walk up the stack and identify where it gets added(and where the 
second time). In eclipse go to the debug view and whenstopped at the 
breakpoint the "Debug" view shows the stack trace. Inthat view just click on 
the previous method and eclipse will positionthe java editor 
appropriately.JuergenOn 3/31/06, Dipu <[EMAIL PROTECTED]> 
wrote:>> Yes i am using markup inheritance, my base doesn't have 
the same header.>> header in my base mark up> 
> > href="">> > 
href="">> > > 
>> Header in the extender mark up> 
> > >> I stepped 
through the code and its clearly  trying to add the component with> 
the id "flightSearchResultValidation" for a seconf time and that is why 
its> breaking.> But as far as i can see i am adding it only once 
in my java code.>  add( new> 
_javascript_Reference("flightSearchResultValidation",searchResultValidations()));>> 
Has this got any thing to do with the version of the code i am using 
right> now or am i doing something in the wrong way.>> 
Thanks>> Dipu>>>>>> 
- Original Message -> From: "Juergen Donnerstag" <[EMAIL PROTECTED]>> To: <wicket-user@lists.sourceforge.net>>> Sent: Friday, March 31, 2006 11:07 AM> 
Subject: Re: [Wicket-user] Problem migrating the application to the new> 
version of Wicket.>>> You are using markup inheritance 
(wicket:extend). With markup> inheritance the markups are merged. Until 
recently the header regions> were merged into a single 
 only and that might cause your> problem. Does your 
base markup have the same header? I'd be> interesting to see if the 
latest (svn trunk/cvs head) version solves> that issue. The lastest 
version doesn't merge the > contents (body) only, it 
merges the  tags as well, and> hence keeping them 
separate.>> Juergen>> On 3/31/06, Dipu <[EMAIL PROTECTED]> wrote:> 
>> > Hi Juergen> >> > Thanks for the quick 
reply,> > Yes the message clearly says that i have multiple wicket 
id's with the> same> > name.> > But i don't have more 
than one id there in my mark up with the same name,> i> > did a 
search in the mark up and as well as in all the panels that are> 
added> > to the page.> >> > Thanks> > 
Dipu> >> >> >> >> >> 
> - Original Message -> > From: "Juergen Donnerstag" 
<[EMAIL PROTECTED]>> > To: <wicket-user@lists.sourceforge.net>> > Sent: Friday, March 31, 2006 10:20 AM> > 
Subject: Re: [Wicket-user] Problem migrating the application to the new> 
> version of Wicket.> >> > You probably have 
multiple> > wicket:id="flightSearchResultValidation" in> > 
the same markup file at the same level in the component hierarchy.> > 
That is no longer possible. We are now more strict, enforcing a 1:1> > 
between component hierarchy and markup. Simply rename one of the

Re: [Wicket-user] adding required validator to a a component in the list view

2006-04-03 Thread Dipu

thanks , i got it right.


- Original Message - 
From: "Maurice Marrink" <[EMAIL PROTECTED]>

To: 
Sent: Monday, April 03, 2006 2:48 PM
Subject: Re: [Wicket-user] adding required validator to a a component in the 
list view



Unless i am mistaken, wicket searches for several keys. You should be
able to use myPanel.firstName or simply firstName.

Maurice

On 4/3/06, Dipu <[EMAIL PROTECTED]> wrote:


Hi ,

Is there a way to add required validator to a component in the list view
If i add a required validator to a component in the list view how will i
specify the resource key in the properties file.


With  the current version wicket is complaining with the following 
message.

Caused by: java.util.MissingResourceException: Unable to
find resource: RequiredValidator for component:
myForm:myList:0:myPanel:firstName

Thanks
Dipu




---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] adding required validator to a a component in the list view

2006-04-03 Thread Dipu



Hi ,
 
Is there a way to add required validator to a 
component in the list view
If i add a required validator to a component in the 
list view how will i specify the resource key in the properties 
file.
 
 
With  the current version wicket is 
complaining with the following message. 
Caused by: java.util.MissingResourceException: Unable to find resource: RequiredValidator for 
component:  myForm:myList:0:myPanel:firstName
 
Thanks 
Dipu
 


Re: [Wicket-user] Problem migrating the application to the new version of Wicket.

2006-03-31 Thread Dipu

Thank you very much , i have just finished grabbing it from the SVN.

Cheers
Dipu

- Original Message - 
From: "Gwyn Evans" <[EMAIL PROTECTED]>

To: 
Sent: Friday, March 31, 2006 12:07 PM
Subject: Re: [Wicket-user] Problem migrating the application to the new 
version of Wicket.



Try 'svn co https://svn.sourceforge.net/svnroot/wicket/trunk/wicket wicket'

See http://sourceforge.net/svn/?group_id=119783 &
http://svn.sourceforge.net/viewcvs.cgi/wicket/trunk/ for more
info/other projects other than the core "wicket" one.

(Just noticed we've not yet updated the main project page, which still
refers to CVS.)

/Gwyn

On 31/03/06, Dipu <[EMAIL PROTECTED]> wrote:

Thanks Gwyn
can you please give me the access details of the SVN repository

Thanks
Dipu
- Original Message -
From: "Gwyn Evans" <[EMAIL PROTECTED]>
To: 
Sent: Friday, March 31, 2006 11:11 AM
Subject: Re: [Wicket-user] Problem migrating the application to the new
version of Wicket.


Dipu,
  Just to flag that the latest code is in SVN, not CVS anymore.
/Gwyn

On 31/03/06, Juergen Donnerstag <[EMAIL PROTECTED]> wrote:
> You are using markup inheritance (wicket:extend). With markup
> inheritance the markups are merged. Until recently the header regions
> were merged into a single  only and that might cause your
> problem. Does your base markup have the same header? I'd be
> interesting to see if the latest (svn trunk/cvs head) version solves
> that issue. The lastest version doesn't merge the 
> contents (body) only, it merges the  tags as well, and
> hence keeping them separate.
>
> Juergen
>
> On 3/31/06, Dipu <[EMAIL PROTECTED]> wrote:
> >
> > Hi Juergen
> >
> > Thanks for the quick reply,
> > Yes the message clearly says that i have multiple wicket id's with the
> > same
> > name.
> > But i don't have more than one id there in my mark up with the same
> > name, i
> > did a search in the mark up and as well as in all the panels that are
> > added
> > to the page.
> >
> > Thanks
> > Dipu
> >
> >
> >
> >
> >
> > - Original Message -
> > From: "Juergen Donnerstag" <[EMAIL PROTECTED]>
> > To: 
> > Sent: Friday, March 31, 2006 10:20 AM
> > Subject: Re: [Wicket-user] Problem migrating the application to the 
> > new

> > version of Wicket.
> >
> > You probably have multiple
> > wicket:id="flightSearchResultValidation" in
> > the same markup file at the same level in the component hierarchy.
> > That is no longer possible. We are now more strict, enforcing a 1:1
> > between component hierarchy and markup. Simply rename one of the
> > flightSearchResultValidation ids in markup and add new component to
> > your hierarchy with the new name (leaving the other one).
> >
> > IMO the exception message says it pretty precisely
> > The component [MarkupContainer [Component id =
> > flightSearchResultValidation, page =
> > com.xmltravel.fab1.wicket.flights.FlightSearchResultPage,
> > path =
> > 4:flightSearchResultValidation.JavaScriptReference,
> > isVisible = true,
> > isVersioned = true]] has the same wicket:id as another component
> > already added at the same level
> >
> > Juergen
> >
> > On 3/31/06, Dipu <[EMAIL PROTECTED]
> > > wrote:
> >
> > >
> > > Hi,
> > >
> > > I am trying to migrate my application to the current version of
> > > wicket.
> > > When i run the application i am getting a markup exception
> > >
> > > wicket.markup.MarkupException: The component [MarkupContainer
> > > [Component
> > id
> > > = flightSearchResultValidation, page =
> > > com.xmltravel.fab1.wicket.flights.FlightSearchResultPage,
> > > path =
> > 4:flightSearchResultValidation.JavaScriptReference,
> > > isVisible = true, isVersioned = true]] has the same wicket:id as
> > > another
> > > component already added at the same level.
> > >
> > > My code is still workig perfectly in the old version and i have not
> > changed
> > > any thing in my java code as well as in the mark up. As far as i can
> > > see i
> > > am adding the JavaScriptReference only once.
> > > Can anyone throw some light into this.
> > >
> > > Has it got to do with the version of the Wicket i grabbed from CVS.
> > >
> > > Thanks
> > > Dipu
> > >
> > > Below is the full stack trace if it helps
> > >
> > >
> > >
> &

Re: [Wicket-user] Problem migrating the application to the new version of Wicket.

2006-03-31 Thread Dipu

Thanks Gwyn
can you please give me the access details of the SVN repository

Thanks
Dipu
- Original Message - 
From: "Gwyn Evans" <[EMAIL PROTECTED]>

To: 
Sent: Friday, March 31, 2006 11:11 AM
Subject: Re: [Wicket-user] Problem migrating the application to the new 
version of Wicket.



Dipu,
 Just to flag that the latest code is in SVN, not CVS anymore.
/Gwyn

On 31/03/06, Juergen Donnerstag <[EMAIL PROTECTED]> wrote:

You are using markup inheritance (wicket:extend). With markup
inheritance the markups are merged. Until recently the header regions
were merged into a single  only and that might cause your
problem. Does your base markup have the same header? I'd be
interesting to see if the latest (svn trunk/cvs head) version solves
that issue. The lastest version doesn't merge the 
contents (body) only, it merges the  tags as well, and
hence keeping them separate.

Juergen

On 3/31/06, Dipu <[EMAIL PROTECTED]> wrote:
>
> Hi Juergen
>
> Thanks for the quick reply,
> Yes the message clearly says that i have multiple wicket id's with the 
> same

> name.
> But i don't have more than one id there in my mark up with the same 
> name, i
> did a search in the mark up and as well as in all the panels that are 
> added

> to the page.
>
> Thanks
> Dipu
>
>
>
>
>
> - Original Message -
> From: "Juergen Donnerstag" <[EMAIL PROTECTED]>
> To: 
> Sent: Friday, March 31, 2006 10:20 AM
> Subject: Re: [Wicket-user] Problem migrating the application to the new
> version of Wicket.
>
> You probably have multiple
> wicket:id="flightSearchResultValidation" in
> the same markup file at the same level in the component hierarchy.
> That is no longer possible. We are now more strict, enforcing a 1:1
> between component hierarchy and markup. Simply rename one of the
> flightSearchResultValidation ids in markup and add new component to
> your hierarchy with the new name (leaving the other one).
>
> IMO the exception message says it pretty precisely
> The component [MarkupContainer [Component id =
> flightSearchResultValidation, page =
> com.xmltravel.fab1.wicket.flights.FlightSearchResultPage,
> path =
> 4:flightSearchResultValidation.JavaScriptReference,
> isVisible = true,
> isVersioned = true]] has the same wicket:id as another component
> already added at the same level
>
> Juergen
>
> On 3/31/06, Dipu <[EMAIL PROTECTED]
> > wrote:
>
> >
> > Hi,
> >
> > I am trying to migrate my application to the current version of 
> > wicket.

> > When i run the application i am getting a markup exception
> >
> > wicket.markup.MarkupException: The component [MarkupContainer 
> > [Component

> id
> > = flightSearchResultValidation, page =
> > com.xmltravel.fab1.wicket.flights.FlightSearchResultPage,
> > path =
> 4:flightSearchResultValidation.JavaScriptReference,
> > isVisible = true, isVersioned = true]] has the same wicket:id as 
> > another

> > component already added at the same level.
> >
> > My code is still workig perfectly in the old version and i have not
> changed
> > any thing in my java code as well as in the mark up. As far as i can 
> > see i

> > am adding the JavaScriptReference only once.
> > Can anyone throw some light into this.
> >
> > Has it got to do with the version of the Wicket i grabbed from CVS.
> >
> > Thanks
> > Dipu
> >
> > Below is the full stack trace if it helps
> >
> >
> >
> > Root cause:
> >
> > wicket.markup.MarkupException: The component [MarkupContainer 
> > [Component

> id
> > = flightSearchResultValidation, page =
> > com.xmltravel.fab1.wicket.flights.FlightSearchResultPage,
> > path =
> 4:flightSearchResultValidation.JavaScriptReference,
> > isVisible = true, isVersioned = true]] has the same wicket:id as 
> > another

> > component already added at the same level
> >  at wicket.Page.componentRendered(Page.java:924)
> >  at wicket.Component.rendered(Component.java:1668)
> >  at wicket.Component.render(Component.java:1522)
> >  at
> >
> wicket.MarkupContainer.renderNext(MarkupContainer.java:1224)
> >  at
> >
> wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:893)
> >  at
> >
> wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:813)
> >  at
> >
> 
wicket.markup.html.internal.HtmlHeaderContainer.onComponentTagBody(HtmlHeaderContainer.java:111)
> >  at wicket.Component.renderComponent(Component.java:1605)
> >  at wicket.MarkupContainer.onRender(Mark

Re: [Wicket-user] Problem migrating the application to the new version of Wicket.

2006-03-31 Thread Dipu



Yes i am using markup inheritance, my base doesn't 
have the same header.
 
header in my base mark up





 
 
Header in the extender mark up
<wicket:head>
<script 
wicket:id="flightSearchResultValidation" >script>
wicket:head>
 
I stepped through the code and its clearly 
 trying to add the component with the id "flightSearchResultValidation" for 
a seconf time and that is why its breaking.
But as far as i can see i am adding it only 
once in my java code.
 add( new 
_javascript_Reference("flightSearchResultValidation",searchResultValidations()));
 
Has this got any thing to do with the version of 
the code i am using right now or am i doing something in the wrong 
way.
 
Thanks 
Dipu
 
 
 
 
- Original Message - 
From: "Juergen Donnerstag" <[EMAIL PROTECTED]>
To: <wicket-user@lists.sourceforge.net>
Sent: Friday, March 31, 2006 11:07 AM
Subject: Re: [Wicket-user] Problem migrating the 
application to the new version of Wicket.
You are using markup inheritance (wicket:extend). With 
markupinheritance the markups are merged. Until recently the header 
regionswere merged into a single  only and that might 
cause yourproblem. Does your base markup have the same header? I'd 
beinteresting to see if the latest (svn trunk/cvs head) version 
solvesthat issue. The lastest version doesn't merge the 
contents (body) only, it merges the  
tags as well, andhence keeping them separate.JuergenOn 
3/31/06, Dipu <[EMAIL PROTECTED]> 
wrote:>> Hi Juergen>> Thanks for the quick 
reply,> Yes the message clearly says that i have multiple wicket id's 
with the same> name.> But i don't have more than one id there in 
my mark up with the same name, i> did a search in the mark up and as well 
as in all the panels that are added> to the page.>> 
Thanks> Dipu>>>>>> - 
Original Message -> From: "Juergen Donnerstag" <[EMAIL PROTECTED]>> To: <wicket-user@lists.sourceforge.net>> Sent: Friday, March 31, 2006 10:20 AM> Subject: Re: 
[Wicket-user] Problem migrating the application to the new> version of 
Wicket.>> You probably have multiple> 
wicket:id="flightSearchResultValidation" in> the same markup file at the 
same level in the component hierarchy.> That is no longer possible. We 
are now more strict, enforcing a 1:1> between component hierarchy and 
markup. Simply rename one of the> flightSearchResultValidation ids in 
markup and add new component to> your hierarchy with the new name 
(leaving the other one).>> IMO the exception message says it 
pretty precisely> The component [MarkupContainer [Component id => 
flightSearchResultValidation, page => 
com.xmltravel.fab1.wicket.flights.FlightSearchResultPage,> path => 
4:flightSearchResultValidation._javascript_Reference,> isVisible = 
true,> isVersioned = true]] has the same wicket:id as another 
component> already added at the same level>> 
Juergen>> On 3/31/06, Dipu <[EMAIL PROTECTED]> > 
wrote:>> >> > Hi,> >> > I am 
trying to migrate my application to the current version of wicket.> > 
When i run the application i am getting a markup exception> >> 
> wicket.markup.MarkupException: The component [MarkupContainer 
[Component> id> > = flightSearchResultValidation, page 
=> > com.xmltravel.fab1.wicket.flights.FlightSearchResultPage,> 
> path => 4:flightSearchResultValidation._javascript_Reference,> 
> isVisible = true, isVersioned = true]] has the same wicket:id as 
another> > component already added at the same level.> 
>> > My code is still workig perfectly in the old version and i 
have not> changed> > any thing in my java code as well as in 
the mark up. As far as i can see i> > am adding the 
_javascript_Reference only once.> > Can anyone throw some light into 
this.> >> > Has it got to do with the version of the Wicket 
i grabbed from CVS.> >> > Thanks> > Dipu> 
>> > Below is the full stack trace if it helps> >> 
>> >> > Root cause:> >> > 
wicket.markup.MarkupException: The component [MarkupContainer [Component> 
id> > = flightSearchResultValidation, page => > 
com.xmltravel.fab1.wicket.flights.FlightSearchResultPage,> > path 
=> 4:flightSearchResultValidation._javascript_Reference,> > 
isVisible = true, isVersioned = true]] has the same wicket:id as another> 
> component already added at the same level> >  at 
wicket.Page.componentRendered(Page.java:924)> >  at 
wicket.Component.rendered(Component.java:1668)> >  at 
wicket.Component.render(Component.java:1522)> >  at> 
>> 
wicket.MarkupContainer.renderNext(Marku

Re: [Wicket-user] Problem migrating the application to the new version of Wicket.

2006-03-31 Thread Dipu



Hi Juergen 
 
Thanks for the quick reply, 
Yes the message clearly says that i have multiple 
wicket id's with the same name.
But i don't have more than one id there in my 
mark up with the same name, i did a search in the mark up and as well as in 
all the panels that are added to the page.
 
Thanks 
Dipu
 
 
 
 
- Original Message - 
From: "Juergen Donnerstag" <[EMAIL PROTECTED]>
To: <wicket-user@lists.sourceforge.net>
Sent: Friday, March 31, 2006 10:20 AM
Subject: Re: [Wicket-user] Problem migrating the 
application to the new version of Wicket.
You probably have multiple wicket:id="flightSearchResultValidation" 
inthe same markup file at the same level in the component hierarchy.That 
is no longer possible. We are now more strict, enforcing a 1:1between 
component hierarchy and markup. Simply rename one of 
theflightSearchResultValidation ids in markup and add new component 
toyour hierarchy with the new name (leaving the other one).IMO the 
exception message says it pretty preciselyThe component [MarkupContainer 
[Component id =flightSearchResultValidation, page 
=com.xmltravel.fab1.wicket.flights.FlightSearchResultPage, path 
=4:flightSearchResultValidation._javascript_Reference, isVisible = 
true,isVersioned = true]] has the same wicket:id as another 
componentalready added at the same levelJuergenOn 3/31/06, 
Dipu <[EMAIL PROTECTED]> 
wrote:>> Hi,>> I am trying to migrate my application 
to the current version of wicket.> When i run the application i am 
getting a markup exception>> wicket.markup.MarkupException: The 
component [MarkupContainer [Component id> = flightSearchResultValidation, 
page => com.xmltravel.fab1.wicket.flights.FlightSearchResultPage,> 
path = 4:flightSearchResultValidation._javascript_Reference,> isVisible = 
true, isVersioned = true]] has the same wicket:id as another> component 
already added at the same level.>> My code is still workig 
perfectly in the old version and i have not changed> any thing in my java 
code as well as in the mark up. As far as i can see i> am adding the 
_javascript_Reference only once.> Can anyone throw some light into 
this.>> Has it got to do with the version of the Wicket i grabbed 
from CVS.>> Thanks> Dipu>> Below is the full 
stack trace if it helps>>>> Root 
cause:>> wicket.markup.MarkupException: The component 
[MarkupContainer [Component id> = flightSearchResultValidation, page 
=> com.xmltravel.fab1.wicket.flights.FlightSearchResultPage,> path 
= 4:flightSearchResultValidation._javascript_Reference,> isVisible = true, 
isVersioned = true]] has the same wicket:id as another> component already 
added at the same level>  at 
wicket.Page.componentRendered(Page.java:924)>  at 
wicket.Component.rendered(Component.java:1668)>  at 
wicket.Component.render(Component.java:1522)>  at> 
wicket.MarkupContainer.renderNext(MarkupContainer.java:1224)>  
at> 
wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:893)>  
at> 
wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:813)>  
at> 
wicket.markup.html.internal.HtmlHeaderContainer.onComponentTagBody(HtmlHeaderContainer.java:111)>  
at wicket.Component.renderComponent(Component.java:1605)>  at 
wicket.MarkupContainer.onRender(MarkupContainer.java:823)>  at 
wicket.Component.render(Component.java:1519)>  at 
wicket.Component.render(Component.java:1488)>  at 
wicket.MarkupContainer.autoAdd(MarkupContainer.java:181)>  
at> 
wicket.markup.resolver.HtmlHeaderResolver.resolve(HtmlHeaderResolver.java:75)>  
at> 
wicket.MarkupContainer.renderNext(MarkupContainer.java:1251)>  
at> 
wicket.MarkupContainer.renderAll(MarkupContainer.java:840)>  at 
wicket.Page.onRender(Page.java:848)>  at 
wicket.Component.render(Component.java:1519)>  at 
wicket.Page.doRender(Page.java:390)>  at> 
wicket.protocol.http.WebRequestCycle.redirectTo(WebRequestCycle.java:148)>  
at> 
wicket.request.target.component.PageRequestTarget.respond(PageRequestTarget.java:60)>  
at> 
wicket.request.compound.DefaultResponseStrategy.respond(DefaultResponseStrategy.java:49)>  
at> 
wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond(AbstractCompoundRequestCycleProcessor.java:66)>  
at> 
wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java:824)>  
at> 
wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:851)>  
at wicket.RequestCycle.step(RequestCycle.java:931)>  at 
wicket.RequestCycle.steps(RequestCycle.java:1005)>  at 
wicket.RequestCycle.request(RequestCycle.java:451)>  at> 
wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:208)>  
at> 
wicket.protocol.http.WicketServlet.doPost(WicketServlet.java:246)>  
at> 
javax.servlet.http.H

[Wicket-user] Problem migrating the application to the new version of Wicket.

2006-03-31 Thread Dipu



Hi, 
 
I am trying to migrate my application to the 
current version of wicket.
When i run the application i am getting a markup 
exception 
 
wicket.markup.MarkupException: The component [MarkupContainer [Component 
id = flightSearchResultValidation, page = 
com.xmltravel.fab1.wicket.flights.FlightSearchResultPage, path = 
4:flightSearchResultValidation._javascript_Reference, isVisible = true, 
isVersioned = true]] has the same wicket:id as another component already added 
at the same level.
 
My code is still workig 
perfectly in the old version and i have not changed any thing in my java code as 
well as in the mark up. As far as i can see i am adding the _javascript_Reference 
only once.
Can anyone throw some 
light into this. 
 
Has it got to do with 
the version of the Wicket i grabbed from CVS.
 
Thanks 

Dipu
 
Below is the full 
stack trace if it helps 
 
Root cause:wicket.markup.MarkupException: The component [MarkupContainer [Component id = flightSearchResultValidation, page = com.xmltravel.fab1.wicket.flights.FlightSearchResultPage, path = 4:flightSearchResultValidation._javascript_Reference, isVisible = true, isVersioned = true]] has the same wicket:id as another component already added at the same level at wicket.Page.componentRendered(Page.java:924) at wicket.Component.rendered(Component.java:1668) at wicket.Component.render(Component.java:1522) at wicket.MarkupContainer.renderNext(MarkupContainer.java:1224) at wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:893) at wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:813) at wicket.markup.html.internal.HtmlHeaderContainer.onComponentTagBody(HtmlHeaderContainer.java:111) at wicket.Component.renderComponent(Component.java:1605) at wicket.MarkupContainer.onRender(MarkupContainer.java:823) at wicket.Component.render(Component.java:1519) at wicket.Component.render(Component.java:1488) at wicket.MarkupContainer.autoAdd(MarkupContainer.java:181) at wicket.markup.resolver.HtmlHeaderResolver.resolve(HtmlHeaderResolver.java:75) at wicket.MarkupContainer.renderNext(MarkupContainer.java:1251) at wicket.MarkupContainer.renderAll(MarkupContainer.java:840) at wicket.Page.onRender(Page.java:848) at wicket.Component.render(Component.java:1519) at wicket.Page.doRender(Page.java:390) at wicket.protocol.http.WebRequestCycle.redirectTo(WebRequestCycle.java:148) at wicket.request.target.component.PageRequestTarget.respond(PageRequestTarget.java:60) at wicket.request.compound.DefaultResponseStrategy.respond(DefaultResponseStrategy.java:49) at wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond(AbstractCompoundRequestCycleProcessor.java:66) at wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java:824) at wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:851) at wicket.RequestCycle.step(RequestCycle.java:931) at wicket.RequestCycle.steps(RequestCycle.java:1005) at wicket.RequestCycle.request(RequestCycle.java:451) at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:208) at wicket.protocol.http.WicketServlet.doPost(WicketServlet.java:246) at javax.servlet.http.HttpServlet.service(HttpServlet.java:616) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:427) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:473) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568) at org.mortbay.http.HttpContext.handle(HttpContext.java:1565) at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:635) at org.mortbay.http.HttpContext.handle(HttpContext.java:1517) at org.mortbay.http.HttpServer.service(HttpServer.java:954) at org.mortbay.http.HttpConnection.service(HttpConnection.java:816) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:983) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:833) at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357) at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
 
 


[Wicket-user] Latest Version of Contrib Dojo project not building.

2006-03-30 Thread Dipu



Hi All, 
 
I grabbed the latest version of the wicket and the 
Wicket and Wicket Contrib Dojo from the CVS, i am not able to build the Contrib 
Dojo project 
 
Its failing with the following 
messages
 
1. The method convert() is undefined for the type 
ImmidiateCheckBox
2. The method convert() is undefined for the type 
ImmidiateRadioChoice
3. The method convert() is undefined for the type 
ImmidiateTextField
4. Method renderComponent(MarkupStream) in the type 
Component is not applicable for the arguments() - In DojoAutoUpdateHandler - 
Line 93
 
Have i not grabbed the right version , can anyone 
please help me.
 
 
Thanks 
Dipu
 


Re: [Wicket-user] New to Wicket

2006-02-24 Thread Dipu



I am using the older version  of wicketm 
mine is wicket 1.1b4. 
I have not come accroos the BizCalendar object 
before, can please check if the jar file for the Wicket Extension is there in 
the lib folder.
 
Cheers 
Dipu

  - Original Message - 
  From: 
  Singh, Varun 
  To: wicket-user@lists.sourceforge.net 
  
  Sent: Friday, February 24, 2006 12:19 
  PM
  Subject: Re: [Wicket-user] New to 
  Wicket
  
  
  Hi,
  I've tried deploying the wicket-examples war file. 
  Tomcat expands the WAR file into proper directory structure but I couldn't 
  access it through my browser. The error given was - 
  
  HTTP Status 404 - 
  /BizCalendar/
   
  type Status 
  report
   
  message / BizCalendar 
  /
   
  description The requested resource 
  (/BizCalendar/) is not available.
  Apache 
  Tomcat/5.5.15
   
  I checked the logs and it seems Tomcat can’t get the 
  wicket libs. The error in the log file read – 
  Feb 24, 2006 5:31:11 PM 
  org.apache.catalina.core.ApplicationContext log
  INFO: Marking servlet 
  BizCalendarApplication as unavailable
  Feb 24, 2006 5:31:11 PM 
  org.apache.catalina.core.ApplicationContext log
  SEVERE: Error loading 
  WebappClassLoader
    delegate: 
  false
    
  repositories:
  --> Parent 
  Classloader:
  [EMAIL PROTECTED]
   wicket.protocol.http.WicketServlet
  java.lang.ClassNotFoundException: 
  wicket.protocol.http.WicketServlet
   
  I’ve copied the wicket-1.1.1.jar in 
  /shared/classes directory & added it to 
  classpath.
   
  Please to 
  help,
  Cheers.
  -    
  Varun
   
   
   
  Message: 3
  From: "Dipu" 
  <[EMAIL PROTECTED]>
  To: 
  
  Subject: Re: [Wicket-user] New to 
  Wicket.
  Date: Fri, 24 Feb 2006 10:51:59 
  -
  Reply-To: 
  wicket-user@lists.sourceforge.net
   
  This is a multi-part message in MIME 
  format.
   
  --=_NextPart_000_00D0_01C63930.565BD470
  Content-Type: text/plain;
    
  charset="iso-8859-1"
  Content-Transfer-Encoding: 
  quoted-printable
   
  Can you please check what is tomcat complaining about 
  from the log =
  files.=20
  I dont see any problem deploying the weicket 
  application in tomcat. As i =
  develop my application in jetty and deploy in tomcat 
  after building a =
  war.
   
  Cheers=20
  Dipu
   
   
    - Original Message 
  -=20
    From: Singh, 
  Varun=20
    To: 
  [EMAIL PROTECTED]
    Sent: Friday, February 24, 2006 10:43 
  AM
    Subject: [Wicket-user] New to 
  Wicket.
   
   
    Hi All,
   
    I'm new to Wicket and I'm put into developing a 
  web-application using =
  Wicket. I tried searching various examples, but 
  couldn't find any help =
  regarding deploying the application on Tomcat. I've 
  made a small .war =
  file in accordance to the examples given at the Wicket 
  website but I'm =
  not able to get it working with 
  Tomcat.=20
   
    =20
   
    Can someone please point me to the 
  point-by-point procedure of =
  deploying a Wicket Application on 
  Tomcat?
   
    =20
   
    Cheerio,
   
    - Varun Singh
   
  --__--__--
   
  Message: 4
  Date: Fri, 24 Feb 2006 11:56:28 
  +0100
  From: "Martijn Dashorst" 
  <[EMAIL PROTECTED]>
  To: 
  wicket-user@lists.sourceforge.net
  Subject: Re: [Wicket-user] New to 
  Wicket.
  Reply-To: 
  wicket-user@lists.sourceforge.net
   
  How do you create your war 
  file?
   
  What doesn't work when you deploy your war file in 
  tomcat?
   
  have you downloaded the wicket-examples, and deployed 
  the included war
  file into your tomcat 
  installation?
   
  Did that work?
   
  Have you downloaded the wicket-quickstart 
  distribution, created a war
  file (see the http://wicket.sf.net/wicket-quickstart 
  website for docs
  on working with the quickstart distribution), and 
  deployed that into
  your tomcat installation?
   
  Martijn
   
   
  On 2/24/06, Singh, Varun 
  <[EMAIL PROTECTED]> wrote:
  > 
  > 
  > 
  > Hi All,
  > 
  > I'm new to Wicket and I'm put into developing a 
  web-application using
  > Wicket. I tried searching various examples, but 
  couldn't find any help
  > regarding deploying the application on Tomcat. 
  I've made a small .war fil=
  e
  > in accordance to the examples given at the Wicket 
  website but I'm not abl=
  e
  > to get it working with 
  Tomcat.
  > 
  > 
  > 
  > Can someone please point me to the point-by-point 
  procedure of deploying =
  a
  > Wicket Application on 
  Tomcat?
  > 
  > 
  > 
  > Cheerio,
  > 
  > - Varun Singh
   
   
  --
  Living a wicket life...
   
  Martijn Dashorst - 
  http://www.jroller.com/page/dashorst
   
  Wicket 1.1.1 is out: 
  http://wicket.sourceforge.net/wicket-1.1
   
   
  --__--__--
   


Re: [Wicket-user] New to Wicket.

2006-02-24 Thread Dipu



Can you please check what is tomcat complaining 
about from the log files. 
I dont see any problem deploying the weicket 
application in tomcat. As i develop my application in jetty and deploy in tomcat 
after building a war.
 
Cheers 
Dipu
 
 

  - Original Message - 
  From: 
  Singh, Varun 
  To: wicket-user@lists.sourceforge.net 
  
  Sent: Friday, February 24, 2006 10:43 
  AM
  Subject: [Wicket-user] New to 
  Wicket.
  
  
  Hi 
  All,
  I’m new to Wicket and I’m put into 
  developing a web-application using Wicket. I tried searching various examples, 
  but couldn’t find any help regarding deploying the application on Tomcat. I’ve 
  made a small .war file in accordance to the examples given at the Wicket 
  website but I’m not able to get it working with Tomcat. 
  
   
  Can someone please point me to the 
  point-by-point procedure of deploying a Wicket Application on 
  Tomcat?
   
  Cheerio,
  - Varun 
  Singh


Re: [Wicket-user] VOTE

2006-02-17 Thread Dipu

Give me the constructor change and the Java 5 functionality in one
pass (Wicket 2.0)

Cheers
Dipu

- Original Message - 
From: "Eelco Hillenius" <[EMAIL PROTECTED]>

To: "Wicket User List" 
Sent: Friday, February 17, 2006 1:33 AM
Subject: [Wicket-user] VOTE


Hi all,

This is a non-binding (the developers ultimately decide) call votes
concerning whether we should fold the upcomming constructor changes
with our move to Java 5 or not. See for a discussion of those changes
other threads, please use this thread for voting only.

1. Give me the constructor change and the Java 5 functionality in one
pass (Wicket 2.0)
2. Do the constructor change in a seperate release (Wicket 1.3) and
put Java 5 in the next (Wicket 2.0)
3. I don't want either one and I want to stay on Wicket 1.2.

This last option has no real effect except that you explicitly say
that you prefer a long lasting support on 1.2 over new features.

Also, take into consideration that the less versions we have to
maintain seperately, the quicker we probably can implement them.

Your votes please?

Btw, it is still our plan to be up-to-date with Wicket In Action.

Eelco


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=k&kid3432&bid#0486&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] how to fect the markups and other resources fromcustom locations

2006-02-09 Thread Dipu



Hi ,
 
I was overriding the method 
public ResourceStreamLocator 
getResourceStreamLocator()
in my application class to pick up the markups , 
images , _javascript_s files, styles etc from the desired 
locations. 
Can any one please guide me with what needs to be 
done with the latest 1.2 snapshot for the markups and other resources to 
get picked from the desired locations.
 
Thanks 
Dipu



Re: [Wicket-user] Display and Hide Images

2006-02-09 Thread Dipu



I am using Image component to dynamically display 
the appropriate image in a list view and the image name may vary for each 
list item  
item.add(new 
Image("supplier",supplier+".gif"));
Is this the right way doing it.
 
Thanks 
DIpu
 

  - Original Message - 
  From: 
  Igor 
  Vaynberg 
  To: wicket-user@lists.sourceforge.net 
  
  Sent: Thursday, February 09, 2006 1:11 
  AM
  Subject: Re: [Wicket-user] Display and 
  Hide Images
  
  On 2/8/06, Tim 
  Johnson <[EMAIL PROTECTED]> 
  wrote:
  I'm 
trying to add an image to display on a page usingitem.add(new 
Image("approved","images/check.gif"));where item is a 
ListItem.  How can I link this to my app server root asopposed 
to the package where the HTML file exists?? 
  dont use Image, that is for resources. add a simple 
  webmarkupcontainer and an attribute modifier that will provide the proper src 
  attribute. 
  I 
also need to display the image only if a condition is met...if not I 
don'twant to display the image.
  you can override isVisible() to pull visibility or call 
  setVisible() to push visibility on any component. 
   -Igor


Re: [Wicket-user] wicket.WicketRuntimeException while redirecting to Login Page

2006-02-08 Thread Dipu



Hi Johan, 
 
Thank you very much for the reply. 
 
When i do a cvs update i ma getting the 
folowing message
 
can't create temporary directory 
/tmp/cvs-serv27580
No space left on device.
 
Regards
Dipu
 
 

  - Original Message - 
  From: 
  Johan 
  Compagner 
  To: wicket-user@lists.sourceforge.net 
  
  Sent: Tuesday, February 07, 2006 9:50 
  PM
  Subject: Re: [Wicket-user] 
  wicket.WicketRuntimeException while redirecting to Login Page
  please try to upgrade to the latest 1.1 or even better try 
  using the latest snapshots.what you could do is this in 
  1.1:redirectToInterceptPage(newPage(Login.class));setResponsePage(null); 
  
  On 2/7/06, Dipu 
  <[EMAIL PROTECTED]> 
  wrote:
  
Hi , 
 
I have got a base page which is 
extended   by most  of the other pages in my 
application.
 
I am trying to stick in a check in the base 
page to redirect the user to the login page if required
But its throwing a 
WicketRuntimeException
 
code snippet for redirecting to the 
login page is 
 
if(FabProperties.getProperty(FabInfo.AUTH_REQUIRED).equalsIgnoreCase(FabInfo.STR_TRUE) 
&& !session.isLoggedin())  
{    
//setResponsePage(newPage(Login.class));   
redirectToInterceptPage(newPage(Login.class));   
//getResponse().redirect("?bookmarkablePage=com.xmltravel.fab1.wicket.login.Login.Login");
}
 
 
Can anyone please tell me how to get around 
this issue. I am using wicket-1.1-b4
I don't want to set the application home to the 
Login page
 
 
Stack Trace 
 
16:04:50.406 ERROR! [SocketListener0-1] 
wicket.RequestCycle.internalOnRuntimeException(RequestCycle.java:785) >19> Unexpected runtime exception [page = 
[Page class = com.xmltravel.fab1.wicket.flights.FlightSearch, id = 
4]] 
wicket.WicketRuntimeException: Already redirecting to '/fab1/?path=5'. Cannot 
redirect more than once 
at 
wicket.protocol.http.BufferedWebResponse.redirect(BufferedWebResponse.java:88) 
at 
wicket.protocol.http.WebRequestCycle.redirectTo(WebRequestCycle.java:330) 
at 
wicket.RequestCycle.respond(RequestCycle.java:934) 
at 
wicket.RequestCycle.request(RequestCycle.java:411) 
at 
wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:208) 
at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:596) 
at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:689) 
at 
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:427) 
at 
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:473) 
at 
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568) 
at 
org.mortbay.http.HttpContext.handle(HttpContext.java:1565) 
at 
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:635) 
at 
org.mortbay.http.HttpContext.handle(HttpContext.java:1517) 
at 
org.mortbay.http.HttpServer.service(HttpServer.java:954) 
at 
org.mortbay.http.HttpConnection.service(HttpConnection.java:816) 
at 
org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:983) 
at 
org.mortbay.http.HttpConnection.handle(HttpConnection.java:833) 
at 
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244) 
at 
org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357) 
at 
org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534) 
 
Thanks 
Dipu
 
 


[Wicket-user] wicket.WicketRuntimeException while redirecting to Login Page

2006-02-07 Thread Dipu



Hi , 
 
I have got a base page which is 
extended   by most  of the other pages in my 
application.
 
I am trying to stick in a check in the base 
page to redirect the user to the login page if required
But its throwing a 
WicketRuntimeException
 
code snippet for redirecting to the login 
page is 
 
if(FabProperties.getProperty(FabInfo.AUTH_REQUIRED).equalsIgnoreCase(FabInfo.STR_TRUE) 
&& !session.isLoggedin())  
{    
//setResponsePage(newPage(Login.class));   
redirectToInterceptPage(newPage(Login.class));   
//getResponse().redirect("?bookmarkablePage=com.xmltravel.fab1.wicket.login.Login.Login");
}
 
 
Can anyone please tell me how to get around this 
issue. I am using wicket-1.1-b4
I don't want to set the application home to the 
Login page
 
 
Stack Trace 
 
16:04:50.406 ERROR! [SocketListener0-1] 
wicket.RequestCycle.internalOnRuntimeException(RequestCycle.java:785) >19> Unexpected runtime exception [page = [Page 
class = com.xmltravel.fab1.wicket.flights.FlightSearch, id = 
4]]
wicket.WicketRuntimeException: Already redirecting to '/fab1/?path=5'. Cannot 
redirect more than once
at 
wicket.protocol.http.BufferedWebResponse.redirect(BufferedWebResponse.java:88)
at 
wicket.protocol.http.WebRequestCycle.redirectTo(WebRequestCycle.java:330)
at wicket.RequestCycle.respond(RequestCycle.java:934)
at wicket.RequestCycle.request(RequestCycle.java:411)
at 
wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:208)
at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:596)
at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at 
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:427)
at 
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:473)
at 
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568)
at 
org.mortbay.http.HttpContext.handle(HttpContext.java:1565)
at 
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:635)
at 
org.mortbay.http.HttpContext.handle(HttpContext.java:1517)
at 
org.mortbay.http.HttpServer.service(HttpServer.java:954)
at 
org.mortbay.http.HttpConnection.service(HttpConnection.java:816)
at 
org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:983)
at 
org.mortbay.http.HttpConnection.handle(HttpConnection.java:833)
at 
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244)
at 
org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
at 
org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
 
Thanks 
Dipu
 
 


Re: [Wicket-user] Grouping Radio Type

2006-01-19 Thread Dipu



Igor , thank you very much, adding to the group did 
the trick.
 
Regards
Dipu
 
 

  - Original Message - 
  From: 
  Igor 
  Vaynberg 
  To: wicket-user@lists.sourceforge.net 
  
  Sent: Thursday, January 19, 2006 5:58 
  PM
  Subject: Re: [Wicket-user] Grouping Radio 
  Type
  you need to add the listview to the group because Radio 
  components need to be /inside/ the RadioGroup's hieararchy. right now they are 
  alongside it.-Igor
  On 1/19/06, Dipu 
  <[EMAIL PROTECTED]> 
  wrote:
  
Igor, thanks for the quick reply.
 
When i try usng the RadioGroup/Radio 
components, its complaining with a 
wicket.markup.MarkupException
 
my code looks like this 
 
RadioGroup outGroup = new 
RadioGroup("outGroup");  add(outGroup);  //OutBoundPanel 
outBoundPanel = new 
OutBoundPanel("outBoundPanel",holiday,pi);  //add(outBoundPanel);  final 
ListView departListView;  add(departListView = new 
ListView("departures",departureGroups)   {   private 
static final long serialVersionUID = 
-987128877678683548L;  public void 
populateItem(final ListItem 
listItem)   {   final 
SimplePackageHoliday holiday  = 
(SimplePackageHoliday)listItem.getModelObject();   OutBoundPanel 
outBoundPanel = new 
OutBoundPanel("outBoundPanel",holiday,pi);   listItem.add(outBoundPanel);  }  });
 
 
And HTML 
 
<span wicket:id="outGroup" > 
<span wicket:id= 
"departures"> 
<div class="fade1 
cc8_bg pad6_tp"> 
<span wicket:id= 
"outBoundPanel">span> 
div> 
span> 
span> 
 
am i 
doing some thing wrong here ? I am using the version 
wicket-1.1-b4
 
 
wicket.markup.MarkupException: Unable to find 
component with id 'departures' in [MarkupContainer [Component id = outGroup, 
page = com.xmltravel.fab1.wicket.flights.FlightSearchResultPage, path = 
14:flightSearchResForm:flights:0:itineraryPanel:outGroup.RadioGroup, 
isVisible = true, isVersioned = false]]. This means that you declared 
wicket:id=departures in your markup, but that you either did not add the 
component to your page at all, or that the hierarchy does not match. 

[markup = 
C:\work\webapps\flightcentre\skins\devsite\flights\ItineraryPanel.html, 
index = 11, current = '' (line 18, column 
2)]
at 
wicket.markup.MarkupStream.throwMarkupException(MarkupStream.java:277) 
at 
wicket.MarkupContainer.renderNext(MarkupContainer.java:1179) 
at 
wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:811) 
at 
wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:753) 
at 
wicket.Component.renderComponent(Component.java:1888) 
at 
wicket.markup.html.WebMarkupContainer.onRender(WebMarkupContainer.java:77) 
at 
wicket.Component.render(Component.java:1163) 
at 
wicket.MarkupContainer.renderNext(MarkupContainer.java:1136) 
at 
wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:811) 
at 
wicket.MarkupContainer.renderAssociatedMarkup(MarkupContainer.java:475) 
at 
wicket.markup.html.panel.Panel.onRender(Panel.java:95) 
at 
wicket.Component.render(Component.java:1163) 
at 
wicket.MarkupContainer.renderNext(MarkupContainer.java:1136) 
at 
wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:811) 
at 
wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:753) 
at 
wicket.Component.renderComponent(Component.java:1888) 
at 
wicket.markup.html.WebMarkupContainer.onRender(WebMarkupContainer.java:77) 
at 
wicket.Component.render(Component.java:1163) 
at 
wicket.markup.html.list.ListView.renderItem(ListView.java:569) 
at 
wicket.markup.html.list.ListView.onRender(ListView.java:535) 
at 
wicket.Component.render(Component.java:1163) 
at 
wicket.MarkupContainer.renderNext(MarkupContainer.java:1136) 
at 
wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:811) 
at 
wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:753) 


  - 
  Original Message - 
  From: 
  Igor Vaynberg 
  
  To: 
  wicket-user@lists.sourceforge.net 
  Sent: 
  Thursday, January 19, 2006 4:58 PM
  Subject: 
  Re: [Wicket-user] Grouping Radio Type
  see RadioGroup/Radio componentsyou can put the 
  RadioGroup outside the listview, and have Radio components inside the 
  panels.the Radio component always links to the closest RadioGroup 
  in its upstream hierarchy.-Igor
  On 1/19/06, Dipu <[EMAIL PROTECTED]> wrote: 
  
Hi 
 
I have a panel displayed in a listView , if 
th

Re: [Wicket-user] Grouping Radio Type

2006-01-19 Thread Dipu



Igor, thanks for the quick reply.
 
When i try usng the RadioGroup/Radio components, 
its complaining with a wicket.markup.MarkupException
 
my code looks like this 
 
RadioGroup outGroup = new 
RadioGroup("outGroup");  add(outGroup);  //OutBoundPanel 
outBoundPanel = new 
OutBoundPanel("outBoundPanel",holiday,pi);  //add(outBoundPanel);  final 
ListView departListView;  add(departListView = new 
ListView("departures",departureGroups)   {   private 
static final long serialVersionUID = 
-987128877678683548L;  public void 
populateItem(final ListItem 
listItem)   {   final 
SimplePackageHoliday holiday  = 
(SimplePackageHoliday)listItem.getModelObject();   OutBoundPanel 
outBoundPanel = new 
OutBoundPanel("outBoundPanel",holiday,pi);   listItem.add(outBoundPanel);  }  });
 
 
And HTML 
 
<span wicket:id="outGroup">
<span wicket:id="departures">
<div class="fade1 cc8_bg 
pad6_tp">
<span wicket:id="outBoundPanel">span> 
div>
span>
span>
 
am i doing 
some thing wrong here ? I am using the version 
wicket-1.1-b4
 
 
wicket.markup.MarkupException: Unable to find component with id 
'departures' in [MarkupContainer [Component id = outGroup, page = 
com.xmltravel.fab1.wicket.flights.FlightSearchResultPage, path = 
14:flightSearchResForm:flights:0:itineraryPanel:outGroup.RadioGroup, isVisible = 
true, isVersioned = false]]. This means that you declared wicket:id=departures 
in your markup, but that you either did not add the component to your page at 
all, or that the hierarchy does not match.
[markup = 
C:\work\webapps\flightcentre\skins\devsite\flights\ItineraryPanel.html, index = 
11, current = '' (line 18, column 
2)]
at 
wicket.markup.MarkupStream.throwMarkupException(MarkupStream.java:277)
at 
wicket.MarkupContainer.renderNext(MarkupContainer.java:1179)
at 
wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:811)
at 
wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:753)
at 
wicket.Component.renderComponent(Component.java:1888)
at 
wicket.markup.html.WebMarkupContainer.onRender(WebMarkupContainer.java:77)
at 
wicket.Component.render(Component.java:1163)
at 
wicket.MarkupContainer.renderNext(MarkupContainer.java:1136)
at 
wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:811)
at 
wicket.MarkupContainer.renderAssociatedMarkup(MarkupContainer.java:475)
at 
wicket.markup.html.panel.Panel.onRender(Panel.java:95)
at 
wicket.Component.render(Component.java:1163)
at 
wicket.MarkupContainer.renderNext(MarkupContainer.java:1136)
at 
wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:811)
at 
wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:753)
at 
wicket.Component.renderComponent(Component.java:1888)
at 
wicket.markup.html.WebMarkupContainer.onRender(WebMarkupContainer.java:77)
at 
wicket.Component.render(Component.java:1163)
at 
wicket.markup.html.list.ListView.renderItem(ListView.java:569)
at 
wicket.markup.html.list.ListView.onRender(ListView.java:535)
at 
wicket.Component.render(Component.java:1163)
at 
wicket.MarkupContainer.renderNext(MarkupContainer.java:1136)
at 
wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:811)
at 
wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:753)

  - Original Message - 
  From: 
  Igor 
  Vaynberg 
  To: wicket-user@lists.sourceforge.net 
  
  Sent: Thursday, January 19, 2006 4:58 
  PM
  Subject: Re: [Wicket-user] Grouping Radio 
  Type
  see RadioGroup/Radio componentsyou can put the RadioGroup 
  outside the listview, and have Radio components inside the panels.the 
  Radio component always links to the closest RadioGroup in its upstream 
  hierarchy.-Igor
  On 1/19/06, Dipu 
  <[EMAIL PROTECTED]> 
  wrote:
  
Hi 
 
I have a panel displayed in a listView , if 
there is a radio type in the panel, is there any way i can group it 
.
 
Additionally i require to display one instance 
of the panel out side the list view.
 
Is there any way i can group the radio types of 
all the rendered panels together so that it will behave as a radio 
group.
 
For example 
 
    MyPanelWithRadio    
    ListView
    
MyPanelWithRadio
    
MyPanelWithRadio
    
MyPanelWithRadio
        
        .
.
 
Is there any way to group the occurances 
of the radio types in all the rendered panels.
 
Any help is greatly appreciated. 
 
Thanks 
Dipu
 
 
 
 
 
 
 
 
 


[Wicket-user] Grouping Radio Type

2006-01-19 Thread Dipu



Hi 
 
I have a panel displayed in a listView , if there 
is a radio type in the panel, is there any way i can group it .
 
Additionally i require to display one instance of 
the panel out side the list view.
 
Is there any way i can group the radio types of all 
the rendered panels together so that it will behave as a radio 
group.
 
For example 
 
    MyPanelWithRadio    
    ListView
    
MyPanelWithRadio
    
MyPanelWithRadio
    
MyPanelWithRadio
        
        .
.
 
Is there any way to group the occurances of 
the radio types in all the rendered panels.
 
Any help is greatly appreciated. 
 
Thanks 
Dipu
 
 
 
 
 
 
 
 
 


Re: [Wicket-user] Firefox misbehavior and wicket problem

2005-12-28 Thread Dipu



Hi Igor,
 
Thanks for starting a wiki page for the best 
practices , this is going to tremendously help guys like me out 
here.
 
Cheers
Dipu 
 

  - Original Message - 
  From: 
  Igor 
  Vaynberg 
  To: wicket-user@lists.sourceforge.net 
  
  Sent: Sunday, December 25, 2005 7:52 
  PM
  Subject: Re: [Wicket-user] Firefox 
  misbehavior and wicket problem
  i started a wiki page to collect these types of gotchas and to 
  make a list of best practices.http://www.wicket-wiki.org.uk/wiki/index.php/Best_Practices_and_Gotchas 
  feel free to add to it.-Igor
  On 12/25/05, Iman 
  Rahmatizadeh <[EMAIL PROTECTED] 
  > wrote:
  I 
posted this problem last week where clicking on links in DataTable's 
generated an internal error in wicket and an error log indicating that the 
requested component was not found. Strangely, the case was only with Firefox 
and I had no problem with IE. After debugging and digging everywhere, I 
found the cause was an empty image style attribute in my page causing 
firefox to re-generate a request to the page after the page has been shown, 
which would in turn re-render the component tree and invalidate the previous 
components:     This kind of problem is tricky to detect and even if 
it isn't causing any errors it would generate an extra load on servers. 
I thought sharing this might help somebody some time. Any comments ? 
Iman


Re: [Wicket-user] To SSL And Back

2005-12-20 Thread Dipu



Hi Nick,
 
Did you find a solution for moving from HTTP to 
HTTPS and then back.
I need to do the same in one of the wicket projects 
i am working.
 
At the moment i am using acegi's ChannelProcessingFilter to do this. 
Don't know if this is the ideal solution, if there 
is any better (Wicket) way of doing it , 
i would like to go that way.
 
Thanks 
Dipu 
 

  - Original Message - 
  From: 
  Nick 
  Heudecker 
  To: wicket-user@lists.sourceforge.net 
  
  Sent: Tuesday, December 06, 2005 4:32 
  PM
  Subject: [Wicket-user] To SSL And 
  Back
  Is there a recommended way, within Wicket, to move a user from 
  HTTP to HTTPS for one or several pages, then move them back to HTTP?  
  This is handled within Struts by the SSLEXT package.  Thanks for 
  your time.


Re: [Wicket-user] adding ajax handlers to component with open and close tags

2005-12-05 Thread Dipu

I have filed one
http://sourceforge.net/tracker/index.php?func=detail&aid=1373395&group_id=119783&atid=684975

Thanks
Dipu


- Original Message - 
From: "Eelco Hillenius" <[EMAIL PROTECTED]>

To: 
Sent: Friday, December 02, 2005 6:23 PM
Subject: Re: [Wicket-user] adding ajax handlers to component with open and 
close tags



Sounds like a bug to me. Could you please file one?

Thanks,

Eelco


On 12/2/05, Dipu <[EMAIL PROTECTED]> wrote:


Hi,

When we add ajax handler to a component with open and close tag , for
example a drop down choice 
wicket will try to add the hanfder twice,  first during the rendering 
phase
of the opening tag and secondly during the rendering phase of the close 
tag.

And this results in
an exception.

The ajax handler should be added only when the tage type is XmlTag.OPEN 
or

XmlTag.OPEN_CLOSE and not when the tag type is XmlTag.CLOSE.

Right now i am doing this check to avoid the probelm when i add the ajax
handler to a drop dpwn , can any one out there please confirm if this is 
the

right approach.
or am i missing something important here.

Any suggestions and pointer in the right direction will be greatly
appreciated.

Thanks
Dipu




---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=ick
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] adding ajax handlers to component with open and close tags

2005-12-02 Thread Dipu



Hi, 
 
When we add ajax handler to a component with open 
and close tag , for example a drop down choice <select wicket:id="parentAgent" id="parentAgent">select> 
wicket will try to add the hanfder 
twice,  first during the rendering phase of the opening tag and 
secondly during the rendering phase of the close tag. And this results in 

an exception.
 
The ajax handler should be added only when the tage 
type is XmlTag.OPEN  or XmlTag.OPEN_CLOSE and not when the tag type is 
XmlTag.CLOSE.
 
Right now i am doing this check to avoid 
the probelm when i add the ajax handler to a drop dpwn , can any 
one out there please confirm if this is the right approach.
or am i missing something important 
here.
 
Any suggestions and pointer in the right 
direction will be greatly appreciated.
 
Thanks
Dipu 
 


[Wicket-user] onComponentTag method getting called twice

2005-11-28 Thread Dipu



Hi, 
 
When i add an ajax handler to a DropDownChoice 
the onComponentTag method 
in the ajax handler is geting called twice which is resulting in an 
exception.
The reason for  this is the method is 
getting called again when wicket renders the closing tag for the 
select.
We should be calling the 
handler.onComponentTag(tag) only once
I think changing the line 
if (ajaxHandlers != null) to if (ajaxHandlers != 
null && tag.isOpen()) 
in the renderComponentTag method of Component 
object will solve the problem.
 
 
Thanks 
Dipu
 
 


Re: [Wicket-user] DatePicker and opera

2005-11-23 Thread Dipu

Yes , original jscalendar works in Opera.

Dipu
- Original Message - 
From: "Eelco Hillenius" <[EMAIL PROTECTED]>

To: 
Sent: Wednesday, November 23, 2005 4:04 PM
Subject: Re: [Wicket-user] DatePicker and opera


Does the original jscalendar work in Opera? If it does, the problem is
with the component, otherwise it is jscalendar.

Eelco


On 11/23/05, Matej Knopp <[EMAIL PROTECTED]> wrote:

Hi,

DatePicker doesn't work in opera. It shows a window with this error 
message:

Calendar setup:
Nothing to setup (no fields found). Please check your code.

Has anyone a clue, what's going on? To me, it seems that somehow the
javascript can't touch input field, even if the javascript is executed
after the input field. But I can't figure out any solution...

-Matej


---
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user




---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=ick
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How to cover Select Box with the autocomplete DIV layer

2005-11-23 Thread Dipu

I have filed an issue
http://sourceforge.net/tracker/index.php?func=detail&aid=1364466&group_id=119783&atid=684975

Cheers
Dipu

- Original Message - 
From: "Ryan Sonnek" <[EMAIL PROTECTED]>

To: 
Sent: Tuesday, November 22, 2005 6:42 PM
Subject: Re: [Wicket-user] How to cover Select Box with the autocomplete DIV 
layer



I updated to rc4 a while back, and now that rc5 is out, we should do
another update.  can you file an issue to get some visibility on this?
I'll probably tackle the upgrade, unless someone else wants to hop in
and get it done.  It might take me a couple days before I can get this
in.

On 11/22/05, Dipu <[EMAIL PROTECTED]> wrote:



scriptaculous provides the inner-frame support for autocomplete out of the
box, we don't have to do it ourselves.
I just replaced the control.js file in the wicket-contrib-scriptaculous
project with the latest version and the problem vanished.
Can anyone with commit rights to the CVS replace all the scriptaculous js
files with the most recent version available.

Cheers
Dipu

- Original Message -
From: Martijn Dashorst
To: wicket-user@lists.sourceforge.net
Sent: Tuesday, November 22, 2005 12:50 PM
Subject: Re: [Wicket-user] How to cover Select Box with the autocomplete 
DIV

layer

Try using an inner-frame. I don't have the code available, but googling
should provide enough info. The two wicket-contrib-dojo guys (Ruud and
Marko) also had some problems regarding this, and have posted a similar
question two weeks ago.

Martijn



On 11/22/05, Dipu <[EMAIL PROTECTED]> wrote:
>
> Hi Ryan,
>
> I am using the ajax autocomplete text box you have developed for wicket.
But in my case the div layer spans over a select box,
> so on IE it goes behind the select box. I tried nesting it in another 
> div

with postion:relative as in scriptaculous autocomplete example,
> but it didn't work for me. Is there any way to get around this problem.
>
> Thanks
> Dipu



--
Living a wicket life...

Martijn Dashorst - http://www.jroller.com/page/dashorst

Wicket 1.1 is out: http://wicket.sourceforge.net/wicket-1.1



---
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_idv28&alloc_id845&op=ick
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



---
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_idv28&alloc_id845&op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] wicket.contrib.scriptaculous AjaxAutocompleteTextField

2005-11-22 Thread Dipu



 
In the getResponse() method of the 
AutocompleteEventHandler
 
formComponent.validate();if 
(formComponent.isValid()) {    
formComponent.updateModel();} String 
value = formComponent.getValue();
 
the above lines can be replaced by 
 
 String value =  
getRequest().getParameter(getInputName());
 
Since the  formComponent.updateModel() is 
called the model will get updated evertime. 
As a result if the user types some pattern 
select some thing and goes to a different page by clicking a link ( with 
out submitting ) and 
comes back to the page with the autocomplete text 
component the user will find the pattern he 
typed in the text box (since the underlying 
model got updated with the pattern) .  
 
 
Cheers 
Dipu
 
 

  - Original Message - 
  From: 
  Martijn Dashorst 
  To: wicket-user@lists.sourceforge.net 
  
  Sent: Tuesday, November 22, 2005 12:50 
  PM
  Subject: Re: [Wicket-user] How to cover 
  Select Box with the autocomplete DIV layer
  Try using an inner-frame. I don't have the code available, but 
  googling should provide enough info. The two wicket-contrib-dojo guys (Ruud 
  and Marko) also had some problems regarding this, and have posted a similar 
  question two weeks ago.Martijn
  On 11/22/05, Dipu 
  <[EMAIL PROTECTED]> 
  wrote:
  
Hi Ryan,
 
I am using the ajax autocomplete text box you 
have developed for wicket. But in my case the div layer spans over a 
select box, 
so on IE it goes behind the select box. I tried 
nesting it in another div with postion:relative as in scriptaculous 
autocomplete example,
but it didn't work for me. Is there any way to 
get around this problem.
 
Thanks 
Dipu -- Living a wicket life...Martijn Dashorst - http://www.jroller.com/page/dashorstWicket 
  1.1 is out: http://wicket.sourceforge.net/wicket-1.1 



Re: [Wicket-user] How to cover Select Box with the autocomplete DIV layer

2005-11-22 Thread Dipu




scriptaculous provides the inner-frame support for 
autocomplete out of the box, we don't have to do it ourselves. 

I just replaced the control.js file in the 
wicket-contrib-scriptaculous project with the latest version and the problem 
vanished.
Can anyone with commit rights to the CVS replace 
all the scriptaculous js files with the most recent version 
available.
 
Cheers 
Dipu  

  - Original Message - 
  From: 
  Martijn Dashorst 
  To: wicket-user@lists.sourceforge.net 
  
  Sent: Tuesday, November 22, 2005 12:50 
  PM
  Subject: Re: [Wicket-user] How to cover 
  Select Box with the autocomplete DIV layer
  Try using an inner-frame. I don't have the code available, but 
  googling should provide enough info. The two wicket-contrib-dojo guys (Ruud 
  and Marko) also had some problems regarding this, and have posted a similar 
  question two weeks ago.Martijn
  On 11/22/05, Dipu 
  <[EMAIL PROTECTED]> 
  wrote:
  
Hi Ryan,
 
I am using the ajax autocomplete text box you 
have developed for wicket. But in my case the div layer spans over a 
select box, 
so on IE it goes behind the select box. I tried 
nesting it in another div with postion:relative as in scriptaculous 
autocomplete example,
but it didn't work for me. Is there any way to 
get around this problem.
     
Thanks 
Dipu -- Living a wicket life...Martijn Dashorst - http://www.jroller.com/page/dashorstWicket 
  1.1 is out: http://wicket.sourceforge.net/wicket-1.1 



Re: [Wicket-user] How to cover Select Box with the autocomplete DIV layer

2005-11-22 Thread Dipu



I went through the scriptaculous 
js code and found that scriptaculous is generating an IFRAME, when the 
browser is IE, to sit behind the autocomplete component.
But for some reason it has no effect in 
my page.
 
Cheers
Dipu 
 
- Original Message - 
From: "Marco van de Haar" <[EMAIL PROTECTED]>
To: <wicket-user@lists.sourceforge.net>
Sent: Tuesday, November 22, 2005 1:18 
PM
Subject: Re: [Wicket-user] How to cover Select Box 
with the autocomplete DIV layer
> Dipu wrote:> >> Hi Ryan,>>  
>> I am using the ajax autocomplete text box you have developed for 
>> wicket. But in my case the div layer spans over a select 
box,>> so on IE it goes behind the select box. I tried nesting it in 
another >> div with postion:relative as in scriptaculous autocomplete 
example,>> but it didn't work for me. Is there any way to get around 
this problem.>>  >> Thanks>> Dipu > 
> IE has a problem where it ignores  a DOM node's z-index when it 
comes to > windowed controlers (select boxes, text fields etc.). A comon 
sollution > for this is to use an underlaying IFRAME. I am not familliar 
with the > scriptaculous components, but we did implement this in our 
Tooltip > component (to be found in contrib.dojo cvs).> > 
You will find a good explanation of the problem and the solution here: > 
http://dotnetjunkies.com/WebLog/jking/archive/2003/07/21/488.aspx > > The only sollution however, seems to be to 
adjust the autocomplete > component to generate and underlaying IFRAME, 
and since I'm not > developing the contrib-scriptaculous  library, I 
cant really help you there.> > Hope this helps,> > 
Marco> > > 
---> This SF.Net 
email is sponsored by the JBoss Inc.  Get Certified Today> Register 
for a JBoss Training Course.  Free Certification Exam> for All 
Training Attendees Through End of 2005. For more info visit:> http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click> ___> 
Wicket-user mailing list> Wicket-user@lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/wicket-user> 


[Wicket-user] How to cover Select Box with the autocomplete DIV layer

2005-11-22 Thread Dipu



Hi Ryan,
 
I am using the ajax autocomplete text box you have 
developed for wicket. But in my case the div layer spans over a select box, 

so on IE it goes behind the select box. I tried 
nesting it in another div with postion:relative as in scriptaculous autocomplete 
example,
but it didn't work for me. Is there any way to get 
around this problem.
 
Thanks 
Dipu 


Re: [Wicket-user] Wait Screen

2005-11-15 Thread Dipu
Thanks Phil, i went for a simple solution of toggling the screens using java 
script.


Dipu

- Original Message - 
From: "Phil Kulak" <[EMAIL PROTECTED]>

To: 
Sent: Monday, November 14, 2005 11:50 PM
Subject: Re: [Wicket-user] Wait Screen


Meta refresh works and is a nice backup, but with AJAX you don't have
to have the user looking at a flickering screen and you can put images
and fancy things on the page. Here's how I do it.



---
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Wait Screen

2005-11-15 Thread Dipu



I think, i will go the ajax way, i tested it by 
attaching simple _javascript_ at body onLoad and form onSubmit
and toggling between the main screen and the wait 
screen.
 
Now i am adding the body onLoad function statically 
like <body onload="jsFunc()">
Ideally i would like to do it  dynamically, 
but WebPage.appendToBodyOnLoad("jsFunc()") is not appending onload to 
the html body.
 
 
Thanks 
Dipu
 
- Original Message - 

  From: 
  Johan 
  Compagner 
  To: wicket-user@lists.sourceforge.net 
  
  Sent: Monday, November 14, 2005 11:18 
  PM
  Subject: Re: [Wicket-user] Wait 
  Screen
  if you could you can use ajax for this.But in a non ajax 
  way i just use one page that has a meta refresh tag that checks every x 
  seconds if the process is finished.No -> redirect to that wait page 
  with the meta refreshYes -> redirect to the result 
  page.johan
  On 11/14/05, Dipu 
  <[EMAIL PROTECTED]> 
  wrote:
  
Hi,
 
In my project, one of the paths through the 
flow involves a step that may take as long as a minute or two. 
I would like to show a wait screen during this 
time. When the back-ground process is complete, I would like the wait screen 
to forward to the next page.Any suggestions as to how best 
accomplish this with Wicket?
Any help, examples, or suggestions would be appreciated.
 
 
Thanks 
Dipu


[Wicket-user] Wait Screen

2005-11-14 Thread Dipu



Hi,
 
In my project, one of the paths through the flow 
involves a step that may take as long as a minute or two. 
I would like to show a wait screen during this 
time. When the back-ground process is complete, I would like the wait screen to 
forward to the next page.Any suggestions as to how best accomplish this 
with Wicket?
Any help, examples, or suggestions would be appreciated.
 
 
Thanks 
Dipu


Re: [Wicket-user] refreshing page content

2005-11-01 Thread Dipu



i think overriding isvisible()  is the best 
approach.
 
Dipu 

  - Original Message - 
  From: 
  Igor 
  Vaynberg 
  To: wicket-user@lists.sourceforge.net 
  
  Sent: Monday, October 31, 2005 7:28 
  PM
  Subject: Re: [Wicket-user] refreshing 
  page content
  
  IMHO this isnt the right place for this kind of stuff
  you can override isvisible() on the login panel and make it something 
  like this:
   
  LoginPanel {
     isVisible() { return isUserLoggedin(); }
  }
   
  that way you dont even need to toggle it anywhere, its fully automatic 
  and only shows up when it needs to.
   
  -Igor
   
  On 10/31/05, pepone 
  pepone <[EMAIL PROTECTED]> 
  wrote: 
  onBeginRequest 
ensure that login panel is reshow if session is notstill alive in next 
requestOn 10/31/05, Igor Vaynberg < [EMAIL PROTECTED]> 
wrote:> > Well, it's true, but the problem I was heaving wasn't 
related to> > coupling between panels or anything, but it was the 
fact that somehow, > > though I set the panels to invisible in the 
submit handler, the page> > seem to ignore this fact until I 
reopen it.>>> What do you mean by "reopen" it?> 
The following works for me, it toggles between panels when the button is 
> pressed:>>  public Index(final 
PageParameters parameters)> 
{> add(new 
TestPanel("a"));> 
add(new TestPanelB("b").setVisible(false));> 
> add(new 
Form("form") 
{>  protected 
void 
onSubmit()>  {>   
Component 
a=getPage().get("a");>   
a.setVisible(!a.isVisible());>>   
Component 
b=getPage().get("b");>b.setVisible(!b.isVisible());>  }> 
});>  }>> 
-Igor>>--- 
This SF.Net email is sponsored by the JBoss Inc.Get Certified Today 
* Register for a JBoss Training CourseFree Certification Exam for All 
Training Attendees Through End of 2005Visit http://www.jboss.com/services/certification 
for more 
information___Wicket-user 
mailing listWicket-user@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Including Javascript the "Wicket" way

2005-11-01 Thread Dipu



This is how i include _javascript_
 
add( new 
_javascript_Reference("validation",validations()) );
 
 
public final PackageResourceReference 
validations()
{ return new 
PackageResourceReference(Application.get(), MyPage.class, 
"myValidator.js");} 
 
and the mark up will be like given 
below
<wicket:head>
<script wicket:id="validation" >script>
wicket:head>
 
 
Regards
Dipu
 
- Original Message - 
From: "David Leangen" <[EMAIL PROTECTED]>
To: "Wicket List" <wicket-user@lists.sourceforge.net>
Sent: Tuesday, November 01, 2005 4:46 
AM
Subject: [Wicket-user] Including _javascript_ the 
"Wicket" way
> > Sorry for making so much noise!! I guess I should have 
taken more time> before moving over to Wicket from Tapestry. Until I get 
used to the> Wicket way, my productivity has gone way down. :-(> 
> Sorry for all the questions, but your help is much appreciated.> 
> > Anyway, I am now trying to include my _javascript_ files in the 
way> described here:> > http://www.wicket-wiki.org.uk/wiki/index.php/_javascript_> > But this page only really describes css in any 
detail. The approach does> not appear to be exactly the same for 
_javascript_. For those like me who> are doing this for the first time and 
haven't "got" it yet, it's not> quite enough to get me to the "ah ha!" 
point.> > So, what is the best way to do this? For 
instance:> > 

Re: [Wicket-user] refreshing page content

2005-10-31 Thread Dipu



cool , thats lot better, thanks you for the 
tip.
 
Dipu
 
- Original Message - 
From: "pepone pepone" <[EMAIL PROTECTED]>
To: <wicket-user@lists.sourceforge.net>
Sent: Monday, October 31, 2005 12:38 
PM
Subject: Re: [Wicket-user] refreshing page 
content
I think that my aproach is cleaner because you don't need to create 
adependecie between InfoPanel and LoginPanelin your Page or 
Componentadd(loginPanel=new 
LoginPanel("loginPanel"));add(infoPanel=new 
InfoPanel("InfoPanel"));overload this method to do the 
jobonBeginRequest(){   
if(getSession.isSignedIn())  {  
infoPanel.setVisible(true);  
loginPanel.setVisible(false);  }   else   
{  
infoPanel.setVisible(false);   
loginPanel.setVisible(true);   }}On 10/31/05, Dipu 
<[EMAIL PROTECTED]> 
wrote:>> Can't you send the reference of the respective panels to 
the form and switch> visibility>> so i will have the 
following panels like given below> WelcomePanel welcomePanel = new 
WelcomePanel("welcomePanel");> add(welcomePanel);> 
welcomePanel.setVisible(false);>> LoginPanel loginPanel = 
new> LoginPanel("loginPanel",properties);>> LoginForm 
loginForm =new> LoginForm("LoginForm",welcomePanel,loginPanel )> 
add(loginForm );>>> and do the following in the forms on 
submit>> public final void 
onSubmit()> 
{>  
if 
(authenticateUser("uname","password"))> 
{>  
this.loginPanel.setVisible(false);>  
this.welcomePanel.setVisible(true);> 
}> 
else> 
{> 
// do something 
here> 
}> }>> I am 
not sure if this is the best way>> Dipu>> - 
Original Message -> From: "Dorel Vaida" <[EMAIL PROTECTED]>> To: 
<wicket-user@lists.sourceforge.net>>> Sent: Monday, October 31, 2005 11:57 AM> 
Subject: Re: [Wicket-user] refreshing page content>>> > 
Dipu wrote:> >> >> you can do this by simply switching 
the visibility of the panels on> >> and off in the onSubmit of your 
form.> >> I tried it out and its working for me without any 
problems.> >> > Hmm, the thing is that in my case they are 
not on the same form, they> > are on different panels. So there is a 
panel containing my form, and> > below it, there is a panel containing 
the label. I can't put them in the> > same form because they really 
belong to different components (in my case).> >> 
>>> >> Dipu> >>> >>> 
>> - Original Message -> >> From: "Dorel Vaida" 
<[EMAIL PROTECTED]> 
>> <mailto:[EMAIL PROTECTED]>>> >> To: <wicket-user@lists.sourceforge.net> >> <mailto:wicket-user@lists.sourceforge.net>>> >> Sent: Monday, October 31, 2005 9:43 AM> 
>> Subject: [Wicket-user] refreshing page content> >>> 
>> > Hi guys,> >> >> >> > I have a 
small problem with refreshing the page content and I don't> >> 
know> >> > which is the best way to handle it.> >> 
>> >> > In short, I have a sign in panel to the left and 
after the user> >> signs in> >> > I'd like to set 
it to invisible and display a "Welcome" label in> >> 
another> >> > panel. The code is trivial, I just add to the page 
both the sign in> >> > panel and the panel containing the label 
and I set their visibility to> >> > true and false respectively 
based on session user is/is not null.> >> >> >> 
> What happens is that the signin panel/ welcome label remain the 
same> >> > after signing in, until I reenter the page by the way 
of clicking on> >> the> >> > menu link which 
displays the page, but I'd like the refresh to be> >> > 
performed right after submission. It's like the setVisible(true/false)> 
>> > for both panels is not called until the next page 
rendering.> >> >> >> > Now I know I am missing 
something related to how components are> >> rendered> 
>> > inside the page or something, but maybe someone can give me a 
hint.> >> >> >> > thanks> >> 
>> >> >> >> >> 
---> >> > 
This SF.Net email is sponsored by the JBoss Inc.> >> > Get 
Certified Today * Register for a JBoss Training Course> >> > 
Free Certification Exam for All Training Attendees Through End of 2005> 
>&

  1   2   >