Re: Strange error

2010-04-22 Thread Dipu
sorry,  ignore my previous message ,problem seems to be some thing else

On Thu, Apr 22, 2010 at 8:38 AM, Dipu  wrote:
> are you using the sysdeo tomcat plugin for eclipse.
> We had the same issue y'day and doing this fixed the issue
>  - compile the files in the DevLoader.zip and jar it in place it in
> tomcat/common lib folder.
>
> dipu
>
> On Wed, Apr 21, 2010 at 1:19 PM, Objelean Alex  
> wrote:
>> Hi!
>> My application uses wicket-1.4.7. I've noticed recently in logs the
>> following error:
>>
>> 2010-04-21 07:35:18,744 ERROR
>> [org.apache.wicket.request.target.resource.SharedResourceRequestTarget]
>> unable to lazily register shared resource
>> resources/org.apache.wicket.ajax.WicketAjaxReference/wicket-ajax.js
>> java.lang.ClassNotFoundException: resources
>>    at
>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
>>    at
>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
>>    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
>>    at java.lang.Class.forName0(Native Method)
>>    at java.lang.Class.forName(Class.java:247)
>>    at
>> org.apache.wicket.application.DefaultClassResolver.resolveClass(DefaultClassResolver.java:114)
>>    at
>> org.apache.wicket.request.target.resource.SharedResourceRequestTarget.respond(SharedResourceRequestTarget.java:151)
>>    at
>> org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:105)
>>    at
>> org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1258)
>>    at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329)
>>    at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1428)
>>    at org.apache.wicket.RequestCycle.request(RequestCycle.java:545)
>>    at
>> org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:479)
>>    at
>> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:312)
>>    at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>>    at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>    at
>> com.eloquentix.soundpure.web.http.SeoFilter.doFilter(SeoFilter.java:56)
>>    at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>>    at org.apache.catalina.core.ApplicationFilte
>>
>>
>>
>> It doesn't make any sense to me... but maybe somebody have a clue what could
>> be a reason.
>>
>> Thanks!
>> Alex
>>
>

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



Re: Strange error

2010-04-22 Thread Dipu
are you using the sysdeo tomcat plugin for eclipse.
We had the same issue y'day and doing this fixed the issue
 - compile the files in the DevLoader.zip and jar it in place it in
tomcat/common lib folder.

dipu

On Wed, Apr 21, 2010 at 1:19 PM, Objelean Alex  wrote:
> Hi!
> My application uses wicket-1.4.7. I've noticed recently in logs the
> following error:
>
> 2010-04-21 07:35:18,744 ERROR
> [org.apache.wicket.request.target.resource.SharedResourceRequestTarget]
> unable to lazily register shared resource
> resources/org.apache.wicket.ajax.WicketAjaxReference/wicket-ajax.js
> java.lang.ClassNotFoundException: resources
>    at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
>    at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
>    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
>    at java.lang.Class.forName0(Native Method)
>    at java.lang.Class.forName(Class.java:247)
>    at
> org.apache.wicket.application.DefaultClassResolver.resolveClass(DefaultClassResolver.java:114)
>    at
> org.apache.wicket.request.target.resource.SharedResourceRequestTarget.respond(SharedResourceRequestTarget.java:151)
>    at
> org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:105)
>    at
> org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1258)
>    at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329)
>    at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1428)
>    at org.apache.wicket.RequestCycle.request(RequestCycle.java:545)
>    at
> org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:479)
>    at
> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:312)
>    at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>    at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>    at
> com.eloquentix.soundpure.web.http.SeoFilter.doFilter(SeoFilter.java:56)
>    at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>    at org.apache.catalina.core.ApplicationFilte
>
>
>
> It doesn't make any sense to me... but maybe somebody have a clue what could
> be a reason.
>
> Thanks!
> Alex
>

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



Re: Multiple choice checkboxes

2009-09-22 Thread Dipu
take a look at checkGroup and check, looks like that is what you are after.

please don't do duplicate posts on the list, that would ony help in
annoying the, happy to help, regular repliers on this list

-dipu


On Tue, Sep 22, 2009 at 2:37 PM, Sadhna Ahuja  wrote:
> Is there a way to have multiple choice checkboxes? From what I read on
> the forums, I could only have a ListMultipleChoice.
>
>
>
> But I need to have multiple choice checkboxes. Any examples on how I
> could achieve that?
>
>
>
> Thanks.
>
>
>
>
>
>
>
>
>
>

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



Re: AjaxButton onSubmit and Submit Form order...

2009-09-07 Thread Dipu
have a look at AjaxLazyLoadPanel, looks like thats what you are looking for

-dipu





On Mon, Sep 7, 2009 at 4:10 PM, Arnaud Garcia wrote:
> Hi List,
>
> I want to add a custom anim gif while the page is rendering...
> To do this, I created an AjaxButton and a Form
> - In the AjaxButton submit method I setVisible my anim gif
> - In the form submit metho I call the setResponsePage
>
> If I remove the setResponsePage and I log something on the form submit
> method => it works
>
> If I had the setResponsePage on the form submit, the ajax step is
> bypassed...the priority is to render the new page...
>
> How can I first do the Ajax call back (to display the gif anim) THEN
> going to the next page ?
>
> Thanks for help !!
>
> Arnaud
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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



Re: Form and PageParameters

2009-09-07 Thread Dipu
you can call YourForm.this.getModelObject() in your forms onSubmit or
the buttons onSubmit method.
that would return the model object bound to your CompoundPropertyModel
and you model object would have all the updated values

-dipu





On Mon, Sep 7, 2009 at 11:58 AM, cmoulliard wrote:
>
> Thx for the reply.
>
> You are right, it is not a must to use PageParameters but as this is my
> first Wicket project, I have started to work with simple things.
>
> In the meantime, I have had a look to the formInput example where a
> CompoundPropertyModel is used. I have adapted the Form to work with it.
>
> My question is now :
>
> When I call the first time my page, the url is : http://localhost/request.
> Wicket receives this request and the constructor RequestPage(PageParameter
> pageParameter) is called. Next, after filling my form in the page and
> clicking on the onSubmit button, the request is submitted to the same page.
>
> How can I retrieve the values of the CompoundPropertyModel from my form in
> this case ? Do I have to do something particular in the
> setResponsePage(RequestPage.Class) to pass the compoundPropertyModel ? Do I
> need to create two different constructors : one for PageParameters and the
> other to handle CompoundPropertyModel ?
>
> Regards,
>
> Charles
>
>
> egolan74 wrote:
>>
>> Is it a must that you use PageParameters for RequestPage?
>> Do you need an access to it also from a URL (after mounting it in your
>> Application).
>>
>> I think that a nicer way is to add a constructor that accepts the values.
>> Even better, I would have created a POJO model.
>> Use a CompoundPropertyModel with the form, and pass this object to the
>> RequestPage.
>>
>> Eyal Golan
>> egola...@gmail.com
>>
>> Visit: http://jvdrums.sourceforge.net/
>> LinkedIn: http://www.linkedin.com/in/egolan74
>>
>> P  Save a tree. Please don't print this e-mail unless it's really
>> necessary
>>
>>
>> On Mon, Sep 7, 2009 at 11:38 AM, Charles Moulliard
>> wrote:
>>
>>> Hi,
>>>
>>> I have created a "RequestPage" html page containing a form (= search
>>> criteria) and a list (= Data View where the result set of data retrieved
>>> in
>>> a DB according to search criteria is displayed). When the user clicks on
>>> the
>>> "search criteria" button of this page, the request is redirected to the
>>> RequestPage where we extract the search criteria values and pass them to
>>> the
>>> service in charge to retrieve the data. In the java class accompagning
>>> this
>>> page, I have overrided the onSubmit method of the "submit button" to pass
>>> the value of the form fields
>>>
>>>    public RequestPage(final PageParameters parameters) {
>>> ...
>>>       Form form = new Form("searchCriteriaRequest");
>>>
>>>        // Add fields
>>>        fRequestId = new TextField("fRequestId", new Model(""));
>>>        fFileName = new TextField("fFileName", new Model(""));
>>>        form.add(fRequestId);
>>>        form.add(fFileName);
>>>
>>>        // Add buttons
>>>        button = new Button("button") {
>>>           �...@override
>>>            public void onSubmit() {
>>>                parameters.add("requestId", fRequestId.getValue());
>>>                parameters.add("fileName", fFileName.getValue());
>>>                setResponsePage(RequestPage.class, parameters);
>>>            }
>>>        };
>>>        form.add(button);
>>>        add(form);
>>>
>>> In the constructor of this RequestPage, I call a populate method with
>>> PageParameters
>>>
>>>        // Populate list with search criteria values
>>>        populateList(parameters.getKey("requestId"),
>>> parameters.getKey("fileName"));
>>>
>>> Questions :
>>> 1) Is it the good way to handle PageParameters and Form in Wicket ? If
>>> this
>>> is not the case, can someone point me to a good example ?
>>> 2) The fields filled in the previous post of my page are not removed when
>>> I
>>> repost a new request on my page. How can I reset these fields from the
>>> request of the new post ?
>>>
>>> Regards,
>>>
>>> Charles Moulliard
>>> Senior Enterprise Architect
>>> Apache Camel Committer
>>>
>>> *
>>> blog : http://cmoulliard.blogspot.com
>>>
>>
>>
>> -
>> Eyal Golan
>> egola...@gmail.com
>>
>> Visit: JVDrums
>> LinkedIn: LinkedIn
>>
>
>
> -
> Charles Moulliard
> SOA Architect
>
> My Blog :  http://cmoulliard.blogspot.com/ http://cmoulliard.blogspot.com/
> --
> View this message in context: 
> http://www.nabble.com/Form-and-PageParameters-tp25326933p25328647.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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



Re: Choose one

2009-08-27 Thread Dipu
add this in your .properties file

yourForm.yourDropDownId.nullValid = Choose One (or what ever you want
to appear)

regards


On Thu, Aug 27, 2009 at 1:45 PM, Gatos wrote:
> After I choose something in DropDownChoice then 'Choose one' item is removed
> from the list.
>
> If I will try to use "setNullValid(true)" then 'Choose one' string is
> replaced with '' (emptry string).
>
> How is it possible to display 'Choose one' if another item has been
> selected?
>

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



Re: How to get Dynamic value of TextField

2009-08-27 Thread Dipu
take a look at the user guide at
http://cwiki.apache.org/WICKET/newuserguide.html

take a look at the example  http://wicketstuff.org/wicket13/forminput/
click on the  "source code" link on the right of the page to see the source code


if possible buy the book "wicket in action"

regards


On Thu, Aug 27, 2009 at 5:33 AM, Gerald
Fernando wrote:
> I dont know how to attach model to form or textField.
> my requirement is that
>
> when i give input to text field and submit it gives some data then i want to
> populate the data into DataGrid or table view
>
> if possible give me some samples
>
> Thanks&Regards,
> Gerald A
>
> On Wed, Aug 26, 2009 at 7:20 PM, Dipu  wrote:
>
>> is the text field in a form ?
>> do you have a model attached to the form or the text field ?
>>
>>
>> when you submit the form or click the button the input value will be
>> updated to the model and you can read it from the model.
>>
>> hope that make sense.
>>
>> regards
>>
>>
>>
>>
>> On Wed, Aug 26, 2009 at 2:45 PM, Gerald
>> Fernando wrote:
>> > Hello Friends,
>> >
>> > i have a TextField and button.
>> > when i click a button i need to get value of textField and pass it to the
>> > another function.
>> > How it is possible
>> > --
>> > Thanks®ards,
>> > Gerald A
>> >
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>
>
> --
> Thanks®ards,
> Gerald A
>

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



Re: How to get Dynamic value of TextField

2009-08-26 Thread Dipu
is the text field in a form ?
do you have a model attached to the form or the text field ?


when you submit the form or click the button the input value will be
updated to the model and you can read it from the model.

hope that make sense.

regards




On Wed, Aug 26, 2009 at 2:45 PM, Gerald
Fernando wrote:
> Hello Friends,
>
> i have a TextField and button.
> when i click a button i need to get value of textField and pass it to the
> another function.
> How it is possible
> --
> Thanks®ards,
> Gerald A
>

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



Re: Page Expire

2009-06-23 Thread Dipu
show your code or quickstart  would be helpful

On Tue, Jun 23, 2009 at 11:09 AM, srinivas wrote:
> Hi,
>
> I am not asking about the session-timeout , i have given session-timeout as
> 30 mins in web.xml, But in wicket when i submit a form and
> after some time (10 mins) when i try to perform another operation i am
> getting the  *Page Expired*  error.
>
> Regards,
> Srinivasa Raju CH.
>
> vineet semwal wrote:
>>
>> You can specify session-timeout in web.xml .
>>
>> regards,
>> vineet semwal
>>
>> On Tue, Jun 23, 2009 at 3:31 PM, Dipu  wrote:
>>
>>
>>>
>>> isn't it container specific ?
>>>
>>> On Tue, Jun 23, 2009 at 10:57 AM, srinivas
>>> wrote:
>>>
>>>>
>>>> Hi,
>>>>
>>>> After how much time will we get the page expire in wicket . Please give
>>>>
>>>
>>> me
>>>
>>>>
>>>> the replay if any one know this .
>>>> Thanks in advance.
>>>>
>>>> Regards,
>>>> Srinivasa Raju CH.
>>>>
>>>>
>>>> Get your world in your inbox!
>>>>
>>>> Mail, widgets, documents, spreadsheets, organizer and much more with
>>>> your
>>>> Sifymail WIYI id!
>>>> Log on to http://www.sify.com
>>>>
>>>> ** DISCLAIMER **
>>>> Information contained and transmitted by this E-MAIL is proprietary to
>>>>
>>>
>>> Sify
>>>
>>>>
>>>> Limited and is intended for use only by the individual or entity to
>>>> which
>>>>
>>>
>>> it
>>>
>>>>
>>>> is addressed, and may contain information that is privileged,
>>>>
>>>
>>> confidential
>>>
>>>>
>>>> or exempt from disclosure under applicable law. If this is a forwarded
>>>> message, the content of this E-MAIL may not have been sent with the
>>>> authority of the Company. If you are not the intended recipient, an
>>>> agent
>>>>
>>>
>>> of
>>>
>>>>
>>>> the intended recipient or a  person responsible for delivering the
>>>> information to the named recipient,  you are notified that any use,
>>>> distribution, transmission, printing, copying or dissemination of this
>>>> information in any way or in any manner is strictly prohibited. If you
>>>>
>>>
>>> have
>>>
>>>>
>>>> received this communication in error, please delete this mail & notify
>>>> us
>>>> immediately at ad...@sifycorp.com
>>>>
>>>> -
>>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>>
>>>>
>>>>
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>
>>>
>>>
>>
>>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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



Re: Page Expire

2009-06-23 Thread Dipu
isn't it container specific ?

On Tue, Jun 23, 2009 at 10:57 AM, srinivas wrote:
> Hi,
>
> After how much time will we get the page expire in wicket . Please give me
> the replay if any one know this .
> Thanks in advance.
>
> Regards,
> Srinivasa Raju CH.
>
>
> Get your world in your inbox!
>
> Mail, widgets, documents, spreadsheets, organizer and much more with your
> Sifymail WIYI id!
> Log on to http://www.sify.com
>
> ** DISCLAIMER **
> Information contained and transmitted by this E-MAIL is proprietary to Sify
> Limited and is intended for use only by the individual or entity to which it
> is addressed, and may contain information that is privileged, confidential
> or exempt from disclosure under applicable law. If this is a forwarded
> message, the content of this E-MAIL may not have been sent with the
> authority of the Company. If you are not the intended recipient, an agent of
> the intended recipient or a  person responsible for delivering the
> information to the named recipient,  you are notified that any use,
> distribution, transmission, printing, copying or dissemination of this
> information in any way or in any manner is strictly prohibited. If you have
> received this communication in error, please delete this mail & notify us
> immediately at ad...@sifycorp.com
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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



Re: [VOTE] Release Wicket 1.4-rc5

2009-06-09 Thread Dipu
 [X ] Yes release 1.4-rc5
 [ ] No, don't release it

On Tue, Jun 9, 2009 at 4:08 PM, Jeremy Thomerson
 wrote:
> I've created a release for Wicket 1.4-rc5.  Until it is officially
> released, you can download from the following locations:
>
> SVN Tag: http://svn.apache.org/repos/asf/wicket/releases/wicket-1.4-rc5/
> M2 Repo: 
> http://people.apache.org/~jrthomerson/releases/apache-wicket-1.4-rc5/m2-repo/
> Dist folder: 
> http://people.apache.org/~jrthomerson/releases/apache-wicket-1.4-rc5/dist/
>
> Your vote please (lasts 72h):
>
> [ ] Yes release 1.4-rc5
> [ ] No, don't release it
>
> --
> Jeremy Thomerson
> http://www.wickettraining.com
>
>
>
> Announcement:
>
> The Apache Wicket team is proud to announce the availability of the
> fifth release candidate for the newest version of Wicket - 1.4.  A lot
> of bugs have been squashed and several improvements implemented.  If
> you are already using earlier versions of 1.4, it is recommended you
> update to Wicket 1.4-rc5 at your earliest convenience.
>
> Eager people click here to download the distribution, others can read further:
>
> http://www.apache.org/dyn/closer.cgi/wicket/1.4-rc5
>
> We thank you for your patience and support.
>
> - The Wicket Team
>
>
> Apache Wicket
>
> Apache Wicket is a component oriented Java web application framework.
> With proper mark-up/logic separation, a POJO data model, and a
> refreshing lack of XML, Apache Wicket makes developing web-apps simple
> and enjoyable again. Swap the boilerplate, complex debugging and
> brittle code for powerful, reusable components written with plain Java
> and HTML.
>
> You can find out more about Apache Wicket on our website:
>
> http://wicket.apache.org
>
>
> This release
>
> This release is the fifth release candidate for the Wicket 1.4
> product.  This release fixes several bugs and adds some minor
> improvements.  You can find out about the changes at the bottom of
> this announcement.
>
>
> Migrating from 1.3
>
> If you are coming from Wicket 1.3, you really want to read our
> migration guide found on the wiki:
>
> http://cwiki.apache.org/WICKET/migrate-14.html
>
>
> Downloading the release:
>
> You can download the release from the official Apache mirror system,
> and you can find it through the following link:
>
> http://www.apache.org/dyn/closer.cgi/wicket/1.4-rc5/
>
> For the Maven and Ivy fans out there: update your pom's to the
> following, and everything will be downloaded automatically:
>
> 
>  org.apache.wicket
>  wicket
>  1.4-rc5
> 
>
> Substitute the artifact ID with the projects of your liking to get the
> other projects.
>
> Please note that we don't prescribe a Logging implementation for
> SLF4J. You need to specify yourself which one you prefer. Read more
> about SLF4J here:
>
> http://slf4j.org
>
>
> Validating the release
>
> The release has been signed by Jeremy Thomerson, your release manager
> for today. The public key can be found in the KEYS file in the
> download area.  Download the KEYS file only from the Apache website.
>
> http://www.apache.org/dist/wicket/1.4-rc5/KEYS
>
> Instructions on how to validate the release can be found here:
>
> http://www.apache.org/dev/release-signing.html#check-integrity
>
>
> Reporting bugs
>
> In case you do encounter a bug, we would appreciate a report in our JIRA:
>
> http://issues.apache.org/jira/browse/WICKET
>
>
> The distribution
>
> In the distribution you will find a README. The README contains
> instructions on how to build from source yourself. You also find a
> CHANEGELOG-1.4 which contains a list of all things that have been
> fixed, added and/or removed since the 1.4 branch was created.
>
>
> Release Notes - Wicket - Version 1.4-RC5
>
> ** Bug
>    * [WICKET-1912] - StatelessForm problems with query string
>    * [WICKET-1922] - AbstractTree - setting root to null causes
> NullPointerException
>    * [WICKET-2033] - & instead of & in javascript
>    * [WICKET-2123] -
> org.apache.wicket.util.convert.converters.SqlTimestampConverter only
> renders the time part of the timestamp
>    * [WICKET-2133] - DatePicker inserts incorrect format date
>    * [WICKET-2188] - PropertyResolver$ArrayPropertyGetSet does not
> call setAccessible(true) on method
>    * [WICKET-2245] - PageParameters always non-empty
>    * [WICKET-2259] - The JavaDoc for IPageLink still holds a
> reference to PageLink which is deprecated
>    * [WICKET-2261] - wicketTester.executeAjaxEvent(combo,
> "onchange"); works with 1.4-rc1 but not anymore with 1.4-rc2
>    * [WICKET-2270] - GET/POST mismatch with stateless page/form.
>    * [WICKET-2272] - open/close div tags are rendered erroneously
>    * [WICKET-2273] - wicket-devutils is missing in
> wicket-assembly-all.xml and not mentioned in README
>    * [WICKET-2274] - WicketTester.executeAjaxEvent(AjaxButton,
> "onclick"); results in clicking of another submit button if its model
> value is not null.
>    * [WICKET-2276] - isComponent in BaseWicketTester contains
> possible nullpointer exception
>    *

Re: wicket and jquery

2009-05-29 Thread Dipu
take a look at this
https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/jquery-parent

-dipu

2009/5/29 Dorothée Giernoth :
> Hello everyone,
>
> i know this might sound a little weird and naive and maybe stupid ... I 
> dunno, I'll ask anyway (though I did research myself, but I would need some 
> sort of useful hint for a total wicket-jquery-newbie): how can I use wicket 
> and jquery together? Where can I find an example?
>
> And yes I did ask google, but seriously - no harm meant - it seems soo 
> NOT organized ... there are like a billion dead links ... maybe even more and 
> I am on the edge and desperate ... s please, bear with me!
>
> Thnx,
> dg
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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



Re: How to keep fields between pages

2009-05-22 Thread Dipu
can't you store the List in the session when you move to other page's
and get it from session when you get back.

-dipu

On Fri, May 22, 2009 at 12:46 PM, Lorenzo Bolzani  wrote:
> Hi, I'm trying to keep a page state between requests.
>
> I know this should be a very simple thing, but it's puzzling me.
>
> I have a field, a List, in my page where some data from the user is
> accumulated. This data is generated from a "monitoring" system.
>
> The user starts the monitoring and the events are added to the list.
> Then he need to be able to move to other pages, do some other stuff,
> than come back to this page and find the previous content (for example
> the last 100 events).
>
> I use a ListView to display the data.
>
> So I think the Page should be instantiated only once, but the populate
> item should be called on every page display. Even browser refresh
> should not create a new Page.
>
> Then the page should auto refresh with an ajaxSelfUpdate behaviour,
> html refresh or something like that.
>
> At this time I'm fighting with mounts, PageLinks and populateItems but
> I'm not finding the right combo.
>
> Is this approach correct? Should I use something else instead of a
> field to keep the data?
>
>
> Thanks, bye
>
> Lorenzo
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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



Re: New site developed in wicket - WWW.FITCOMPLEX.SK

2009-04-21 Thread Dipu
Looks nice !, congrats

On Mon, Apr 20, 2009 at 5:22 PM, Stefan Simik  wrote:
> New site about health, nutrition, exercise and life
> style
>
> We are using stateless pages for public interface, and stateful ajaxified
> pages for admin interface.
> Stateless ajax in public is developed using jquery + wicket.
>
> The site is running on:
>
>   - *Wicket *1.4rc2
>   - *Web server*: Jetty 6.1.14  (with Apache front-end)
>   - *Db*: mysql (ehcache + hibernate)
>   - *OS*: Ubuntu 8.04 (Hardy Heron)
>
>
> *Wicket performance* is very good - the slowest element is mysql database.
> It's able to serve up to ~130 pages /sec on modern notebook (2Ghz Montevina,
> 5400 rpm, 3GB RAM).
> On server we haven't tested, but it should be much more.
>
> *Thanks to the community for patiently answering many questions and for all
> the support.*
>
> Štefan Šimík
> www.fitcomplex.sk
>

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



Re: Problem in Wicket Stuff - Jquery - DatePicker

2009-02-17 Thread Dipu
Cheers

Dipu



On Tue, Feb 17, 2009 at 12:30 PM, Martin Grigorov  wrote:
> Ok, I see. The JS library works with lower case formats.
> Fixed with r4575.
>
> Additionally I think you are using the old jquery. The one I fixed is at
> https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/jquery-parent/jquery/src/main/java/org/wicketstuff/jquery/datepicker
>
>
> El mar, 17-02-2009 a las 11:21 +, Dipu escribió:
>> if i supply the date pattern "dd/MM/"
>> the date picker will print wrong date like 10/MM/2009
>>
>>  i noticed sdf.toPattern().toLowerCase() and i thought some one missed
>> to call toLowerCase()  on
>> format_ = ((ITextFormatProvider) component).getTextFormat();
>>
>> i called toLowerCase()  and it solved the issue, i didn't dig deep into it.
>>
>> regards
>> dipu
>>
>> On Tue, Feb 17, 2009 at 10:57 AM, Martin Grigorov  
>> wrote:
>> > I could do it but why it should be lower cased ?
>> > What will happen with months (MM)? They will become minutes (mm). Is
>> > this correct ?
>> >
>> > I see there is sdf.toPattern().toLowerCase() below but this seems like a
>> > bug to me.
>> >
>> > Can you give more details because I'm not using this behavior.
>> >
>> > El lun, 16-02-2009 a las 10:00 +, Dipu escribió:
>> >> In Wicket Stuff - Jquery - DatePicker - DatePickerBehavior
>> >>
>> >> the following line in the onBind() method
>> >>
>> >>  if (component instanceof ITextFormatProvider) {
>> >>   format_ = ((ITextFormatProvider) component).getTextFormat();
>> >>
>> >> should be
>> >>
>> >>  if (component instanceof ITextFormatProvider) {
>> >>   format_ = ((ITextFormatProvider)
>> >> component).getTextFormat().toLowerCase();
>> >>
>> >>
>> >> i have created a patch, can some one apply the patch please.
>> >>
>> >>
>> >> regards
>> >> dipu
>> >> -
>> >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> >> For additional commands, e-mail: users-h...@wicket.apache.org
>> >
>> >
>> > -
>> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> > For additional commands, e-mail: users-h...@wicket.apache.org
>> >
>> >
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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



Re: Problem in Wicket Stuff - Jquery - DatePicker

2009-02-17 Thread Dipu
if i supply the date pattern "dd/MM/"
the date picker will print wrong date like 10/MM/2009

 i noticed sdf.toPattern().toLowerCase() and i thought some one missed
to call toLowerCase()  on
format_ = ((ITextFormatProvider) component).getTextFormat();

i called toLowerCase()  and it solved the issue, i didn't dig deep into it.

regards
dipu

On Tue, Feb 17, 2009 at 10:57 AM, Martin Grigorov  wrote:
> I could do it but why it should be lower cased ?
> What will happen with months (MM)? They will become minutes (mm). Is
> this correct ?
>
> I see there is sdf.toPattern().toLowerCase() below but this seems like a
> bug to me.
>
> Can you give more details because I'm not using this behavior.
>
> El lun, 16-02-2009 a las 10:00 +, Dipu escribió:
>> In Wicket Stuff - Jquery - DatePicker - DatePickerBehavior
>>
>> the following line in the onBind() method
>>
>>  if (component instanceof ITextFormatProvider) {
>>   format_ = ((ITextFormatProvider) component).getTextFormat();
>>
>> should be
>>
>>  if (component instanceof ITextFormatProvider) {
>>   format_ = ((ITextFormatProvider)
>> component).getTextFormat().toLowerCase();
>>
>>
>> i have created a patch, can some one apply the patch please.
>>
>>
>> regards
>> dipu
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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



Problem in Wicket Stuff - Jquery - DatePicker

2009-02-16 Thread Dipu
In Wicket Stuff - Jquery - DatePicker - DatePickerBehavior

the following line in the onBind() method

 if (component instanceof ITextFormatProvider) {
format_ = ((ITextFormatProvider) component).getTextFormat();

should be

 if (component instanceof ITextFormatProvider) {
format_ = ((ITextFormatProvider)
component).getTextFormat().toLowerCase();


i have created a patch, can some one apply the patch please.


regards
dipu
Index: src/main/java/org/wicketstuff/jquery/datepicker/DatePickerBehavior.java
===
--- src/main/java/org/wicketstuff/jquery/datepicker/DatePickerBehavior.java 
(revision 4574)
+++ src/main/java/org/wicketstuff/jquery/datepicker/DatePickerBehavior.java 
(working copy)
@@ -157,7 +157,7 @@
 component.setOutputMarkupId(true);
 
 if (component instanceof ITextFormatProvider) {
-   format_ = ((ITextFormatProvider) component).getTextFormat();
+   format_ = ((ITextFormatProvider) 
component).getTextFormat().toLowerCase();
 } else {
TextField tf = (TextField) component;
IConverter cnv = tf.getConverter(tf.getType());
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Re: autosave

2009-02-04 Thread Dipu
have a look at AbstractAjaxTimerBehavior

dipu

On Wed, Feb 4, 2009 at 2:13 PM, Juri Prokofjev  wrote:
> Hello,
>
> Is there any way to implement similar functionality like in gmail?
> When you have typed a big letter and computer was accidentally
> shutdowned then it's always possible to get that letter from the
> drafts. Has any one tried it with wicket?
>
>
> Thank you in advance,
> Juri Prokofiev
>
> --
> http://www.autoladu.ee  - kõik varuosad ühes kohas
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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



Re: mssql connection problem

2009-02-02 Thread Dipu
this is how my code looks

/**
 * Grab Update SQL Connection
 *
 * @return
 * @throws NamingException
 * @throws SQLException
 * @throws SQLException
 */
public Connection getConnection() throws NamingException, SQLException
{
Context env = (Context) new 
InitialContext().lookup("java:comp/env");
DataSource obj_datasrc = (DataSource) env.lookup("jdbc/");  

return obj_datasrc.getConnection();
}


and this is my context xml looks






hope this helps

cheers
dipu

On Mon, Feb 2, 2009 at 10:10 AM, Ashis  wrote:
>
> Hello all,
>   i have problem regarding mssql connection
>
> /*Code Snippet for MSSQL connection***/
> public static Connection getSqlConnection() throws SQLException {
>   try {
>   Context c = new InitialContext();
>   DataSource dataSource = (DataSource)
> c.lookup("java:/comp/env/jdbc/mssql");
>   return dataSource.getConnection();
>   } catch (NamingException err) {
>   throw new SQLException();
>   }
>   }
>
> I got a SQLEXCEPTION in getSqlConnection() function:
> "*javax.naming.NameNotFoundException: cannot create resource instance"
>
>
> /*Code Snippet of context path for MSSQL connection***/
>name="jdbc/mssql"
>   type="net.sourceforge.jtds.jdbcx.JtdsDataSource"
>   removeAbandoned="true"
>   removeAbandonedTimeout="60"
>   maxActive="4"
>   maxIdle="2"
>   username="sa"
>   password="root"
>   maxWait="5000"
>   driverClassName="net.sourceforge.jtds.jdbc.Driver"
>  url="jdbc:jdts:sqlserver://localhost:1433/flight" />
>
>
> How can i remove this sql exception?
> Looking forward to your suggestion.
> Thank you
>
> --
> View this message in context: 
> http://www.nabble.com/mssql-connection-problem-tp21787078p21787078.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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



Re: Ajaxified Notification

2009-01-30 Thread Dipu
yes Ernesto has a point there, if what you want is reverse ajax like
thing then you should look at dojo wicket stuff.

Cheers Ernesto.


Regards
Dipu


On Fri, Jan 30, 2009 at 10:22 AM, Ernesto Reinaldo Barreiro
 wrote:
> Hi,
>
> On Fri, Jan 30, 2009 at 11:04 AM, PSkarthic 
> wrote:
>
>>
>> Thank you for your reply.
>>  Ok i will try AbstractAjaxTimerBehavior but tell me can server notify the
>> client on particular situation.
>
>
> With AJAX timer behavior is the client that periodically makes a round trip
> to the server to ask for "something". What you want is a (comet/reverse
> AJAX) like thing. I have been using DWR (see 1 bellow) for such things but I
> think there is also support for dojo cometd (see 2) on dojo wicket stuff
> project.
>
> References
> 1-http://directwebremoting.org/
> 2-http://cometdproject.dojotoolkit.org/
>
>
> Best,
>
> Ernesto
>
>
>> That is many browser(many client logged in) may opened and accessing the
>> wicket application, at some when event occurs for particular client time
>> the
>> server has send the details to particular client browser can this be done.
>>
>>
>> Thanks in advance
>> Karthic
>> --
>> View this message in context:
>> http://www.nabble.com/Ajaxified-Notification-tp21742197p21744321.html
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>

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



Re: Ajaxified Notification

2009-01-30 Thread Dipu
On Fri, Jan 30, 2009 at 10:04 AM, PSkarthic  wrote:
>
> Thank you for your reply.
>  Ok i will try AbstractAjaxTimerBehavior but tell me can server notify the
> client on particular situation.
> That is many browser(many client logged in) may opened and accessing the
> wicket application, at some when event occurs for particular client time the
> server has send the details to particular client browser can this be done.

that's how things normally work isn't it ?

Button button = new Button("button")
{
public void onSubmit()
{
 call  webservice   
 setResponsePage( new ResutPage());
}
};

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



Re: Ajaxified Notification

2009-01-30 Thread Dipu
take a look at AjaxSelfUpdatingTimerBehavior and AbstractAjaxTimerBehavior

i think this is what you are looking for.

Regards
Dipu

On Fri, Jan 30, 2009 at 6:38 AM, PSkarthic  wrote:
>
> Hi
>  I am karthic i am using wicket in project and its going well.
>
>  I have scenerio like this
>Client will click a button
>and the click event will request something but the requested
> values will be from the other  server(webservices).
>   My Question is the value from other server may come anytime from
> 1 secs to 1 mins so the thread will listen for the values to arrive . How to
> notify this values to client side is it possible in wicket? The notification
> should be ajax like that is the client page should not be refreshed
>
> (Like automatic updation to clien when an event occur on server)
>
> Anybody have any idea
> please guide me
>
> Thanks
> Karthic
> --
> View this message in context: 
> http://www.nabble.com/Ajaxified-Notification-tp21742197p21742197.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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



Re: HTML markup not found ?

2009-01-28 Thread Dipu
could you please check if your IDE is copying the markup file to the
target folder.
check if HomePage.html is there in the folder where HomePage.class is.

regards
Dipu


On Wed, Jan 28, 2009 at 12:25 PM, Antoine Roux
 wrote:
> Hi,
> I am new to Wicket and I am currently exploring it.
> I made a first simple demo application and now I am evolving it a bit
> further. I am also trying to integrate it with Spring, using the annotation
> approach.
>
> For now, I have a simple form with two drop down lists. When the user clicks
> "Submit" it is redirected to the HomePage and the choices of the drop down
> list are passed as arguments to display a message related to them. Quite
> simple. It used to work.
>
> I began integration with Spring. For now, my Spring beans are loaded on
> Tomcat startup, but I do not use them on my web tier yet.
>
> Now, when I submit the form, Wicket complains about not finding the HTML
> page, with the following exception:
>
> 
>
> WicketMessage: Markup of type 'html' for component
> 'com.netvitesse.nvconnect.HomePage' not found. Enable debug messages for
> org.apache.wicket.util.resource to get a list of all filenames tried: [Page
> class = com.netvitesse.nvconnect.HomePage, id = 1, version = 0]
>
> Root cause:
>
> org.apache.wicket.markup.MarkupNotFoundException: Base markup of inherited
> markup not found. Component class: com.netvitesse.nvconnect.HomePage Enable
> debug messages for org.apache.wicket.util.resource.Resource to get a list of
> all filenames tried. at
> org.apache.wicket.markup.loader.InheritedMarkupMarkupLoader.checkForMarkupInheritance(InheritedMarkupMarkupLoader.java:102)
> at
> org.apache.wicket.markup.loader.InheritedMarkupMarkupLoader.loadMarkup(InheritedMarkupMarkupLoader.java:63)
> at
> org.apache.wicket.markup.loader.DefaultMarkupLoader.loadMarkup(DefaultMarkupLoader.java:55)
> at org.apache.wicket.markup.MarkupCache.loadMarkup(MarkupCache.java:458) at
> org.apache.wicket.markup.MarkupCache.loadMarkupAndWatchForChanges(MarkupCache.java:553)
> at org.apache.wicket.markup.MarkupCache.getMarkup(MarkupCache.java:319) at
> org.apache.wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java:215)
> at
> org.apache.wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:343)
> at org.apache.wicket.Page.onRender(Page.java:1463) at
> org.apache.wicket.Component.render(Component.java:2317) at
> org.apache.wicket.Page.renderPage(Page.java:904) at
> org.apache.wicket.protocol.http.WebRequestCycle.redirectTo(WebRequestCycle.java:163)
> at
> org.apache.wicket.request.target.component.PageRequestTarget.respond(PageRequestTarget.java:58)
> at
> org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:104)
> at
> org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1181)
> at org.apache.wicket.RequestCycle.step(RequestCycle.java:1252) at
> org.apache.wicket.RequestCycle.steps(RequestCycle.java:1353) at
> org.apache.wicket.RequestCycle.request(RequestCycle.java:493) at
> org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:355) at
> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:200)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
> at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
> at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
> at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
> at java.lang.Thread.run(Thread.java:595)
>
> Complete stack:
>
> org.apache.wicket.markup.MarkupNotFoundException: Markup of type 'html' for
> component 'com.netvitesse.nvconnect.HomePage' not found. Enable debug
> messages for org.apache.wicket.util.resource to get a list of all filenames
> tried: [Page class = com.netvitesse.nvconnect.HomePage, id = 1, version = 0]
> at
> org.apache.wicket.MarkupContainer.get

Re: getRequest().getPage() always null

2009-01-21 Thread Dipu
I think  setting this
get().getApplicationSettings().setPageExpiredErrorPage(StartPage.class)
in your application's init method  will solve your problem if i
understand it correctly.

regards
Dipu

On Wed, Jan 21, 2009 at 3:18 PM, Arthur Leigh Allen
 wrote:
> Hello wicket community,
>
>
> there is a second issue I don't know how to solve.
>
> Imagine the following situation:
> -User visits page
> -User logs in
> -User clones the browser window by pressing Strg+N (2 browser windows with 
> logged-in-panels are shown now)
> -User logs out in second page
> -User closes second page
> -User calls a use case function for logged-in-users in a panel in first page 
> (*)
>
> The aim is to navigate to the start page when the user tries the last action 
> (*).
>
> My idea is to override the onBeginRequest method of the WebRequestCycle in 
> the application class.
> Then check if the boolean member "wasLoggedIn" in my page is set to true and 
> the boolean member "isLoggedIn" in the session is set to false.
> When this constellation happens, I would call the 
> setResponsePage(StartPage.class) etc.
>
> The problem is: When I call getRequest().getPage() in the onBeginRequest 
> method, the result is always null.
> Do you know how to get the page the request was initiated from?
>
> Best regards
> Leigh
>
>
>
>

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



Re: problem with dropdownchoice

2009-01-20 Thread Dipu
take a look at Wicket Examples -> FormInput

Dipu

On Tue, Jan 20, 2009 at 1:53 PM, itayke  wrote:
>
> Hi,
>
> I have this problem with my dropdownchoice with results in
> WicketMessage: No get method defined for class: class
> screens.CustomerFilters$FormInput expression: devices
>
> were the java class has:
>
>public CustomerFilters(){
>super();
>FormInput formInput = new FormInput("Form");
>setModel(new CompoundPropertyModel(formInput));
>add(formInput);
>   ..
>
> }
>
>
> and the form class:
>
>public class FormInput extends Form{
>
>String deviceID;
>
>public FormInput(String id) {
>super(id);
>
>DropDownChoice ddc =
>new DropDownChoice("devices",
>getDevicesList(), //this will 
> return a list of Device POJOs
>new IChoiceRenderer() {
>public Object getDisplayValue(Object 
> object) {
>return 
> ((Device)object).getDeviceName();
>}
>public String getIdValue(Object 
> object, int index) {
>return 
> ((Device)object).getDeviceID();
>}
>});
>
>add(ddc);
>}
>
> I also have a simple "Device" POJO class with getters and setters.
> The HTML looks like that:
>
> ...
> 
> 
> 
>Select Device
>
>Some device
>
>
> 
> 
> 
> 
>
> ...
>
>
>
> Any ideas what i'm doing wrong?
>
> --
> View this message in context: 
> http://www.nabble.com/problem-with-dropdownchoice-tp21563513p21563513.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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



Re: DropDownChoice missing in IE6 when has AJAX

2009-01-19 Thread Dipu
attach a quickstart replicating the problem, this will help some one
to take a look.

regards
Dipu

On Mon, Jan 19, 2009 at 3:57 PM,   wrote:
> Hello All,
>
>Anyone has a clue on how can I solve that?
>
> tks
>
>
>
>
> 01/15/2009 08:34 PM
> alex.bo...@souzacruz.com.br
>
>
>
>
> Please respond to
> users@wicket.apache.org
>
>
> To
> users@wicket.apache.org
> cc
>
> Subject
> Re: DropDownChoice missing in IE6 when has AJAX
>
>
>
>
>
>
>
>
> Hi everybody,
>
> I'm new on wicket and ajax, and now I'm having problems mixing
> both. In my page I have some simple DropDownChoice and not related to them
> but to a button I have a Modal Window.
>
> The problem is, testing my page on IE6, when I scroll the page
> down the dropdown itens get sticked in the same position, giving the
> impression that the whole page rolls over it, but if I scroll the page
> back they are still missing, another curious fact is even if the missin
> component if a click on it, it works, showing my choices there, the
> component (border) keep missing. The same page with no AJAX function the
> problem do
> not occur.This problem does not occur on FireFox and I coudn't try it on
> IE7.
>
> Any suggestion?
>
> Thanks
>
>
>
> _
>
>
> _
> O conteúdo desta mensagem e dos documentos anexos é destinado exclusivamente 
> às pessoas indicadas no endereçamento eletrônico e contém informações 
> confidenciais e/ou legalmente protegidas. Esta mensagem não representa 
> necessariamente as políticas, práticas, intenções ou conclusões da Souza Cruz 
> S.A. É expressamente vedado a qualquer pessoa, sem prévia e expressa 
> autorização, ler, revelar, distribuir, divulgar, alterar, copiar, reproduzir 
> ou, sob qualquer forma, utilizar o todo ou parte desta mensagem ou dos 
> documentos a ela anexados. Caso tenha recebido esta mensagem por engano, 
> queira, por gentileza, avisar imediatamente seu remetente e eliminar 
> completamente do seu sistema.
>
> The contents of this message and of the attached documents are destined for 
> the exclusive use of those persons named in the electronic address and 
> contain confidential and / or legally protected information. This message 
> does not necessarily represent Souza Cruz´s policies, practices, intentions 
> or conclusions. It is strictly forbidden for any person without prior and 
> official authorization to read, reveal, distribute, disclose, alter, copy, 
> reproduce, or in any form or manner to use either the whole, or part of this 
> message, or the attached documents. Should you have received this message and 
> / or the attached documents in error, please notify the sender immediately, 
> and delete it / them from your system completely.

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



Re: POST too large

2009-01-14 Thread Dipu
sorry, pass

dipu

On Wed, Jan 14, 2009 at 10:17 AM, Piller Sébastien  wrote:
> Hi,
>
> thank you for your response. I'm well aware that increasing the post limit
> size may do the trick, but this looks like a hack. What to do when something
> else occurs, ie whatever IllegalStateException may be thrown at this part of
> code?
>
> I guess the best solution will be to change the response code when such a
> problem occurs.
>
> For the moment, I will increase the post limit to ~ 25MB, but I guess this
> issue should be solved in another way.
>
> Does anybody may indicate me who is the offender?
>
> Dipu a écrit :
>>
>> will this be of any help
>>
>>
>> http://stackoverflow.com/questions/123335/what-causes-java-lang-illegalstateexception-post-too-large-in-tomcat-modjk
>>
>> regards
>> dipu
>>
>> On Wed, Jan 14, 2009 at 10:04 AM, Piller Sébastien 
>> wrote:
>>
>>>
>>> Hi everybody,
>>>
>>> I'm not sure if wicket has anything to do to the following issue, but
>>> I'll
>>> try anyway.
>>>
>>> I'm POSTing some large data to a wicket page (yes, there is several MB of
>>> data in the post). When it is too big, I can see the following stacktrace
>>> in
>>> my logs:
>>>
>>> java.lang.IllegalStateException: Post too large
>>>  at
>>> org.apache.catalina.connector.Request.parseParameters(Request.java:2388)
>>>  at org.apache.catalina.connector.Request.getParameter(Request.java:1005)
>>>  at
>>>
>>> org.apache.catalina.connector.RequestFacade.getParameter(RequestFacade.java:353)
>>>  at
>>>
>>> org.apache.wicket.protocol.http.servlet.ServletWebRequest.getParameter(ServletWebRequest.java:105)
>>>  at
>>>
>>> org.apache.wicket.protocol.http.request.WebRequestCodingStrategy.decode(WebRequestCodingStrategy.java:198)
>>>  at org.apache.wicket.Request.getRequestParameters(Request.java:171)
>>>  at org.apache.wicket.RequestCycle.step(RequestCycle.java:1233)
>>>  at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1353)
>>>  at org.apache.wicket.RequestCycle.request(RequestCycle.java:493)
>>>  at
>>> org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:355)
>>>  at
>>>
>>> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:200)
>>>  at
>>>
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
>>>  at
>>>
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
>>>  at
>>>
>>> org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)
>>>  at
>>>
>>> org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75)
>>>  at
>>>
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
>>>  at
>>>
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
>>>  at
>>>
>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>>>  at
>>>
>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
>>>  at
>>>
>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
>>>  at
>>>
>>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
>>>  at
>>>
>>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
>>>  at
>>>
>>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
>>>  at
>>>
>>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
>>>  at
>>>
>>> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
>>>  at
>>>
>>> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
>>>  at
>>>
>>> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
>>>  at
>>>
>>> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
>>>  at java.lang.Thread.run(Thread.java:619)
>>>
>>>
>>> I don't k

Re: Help: Graphic link in PagingNavigator

2009-01-14 Thread Dipu
extend the PagingNavigator and provide your own markup with the
graphics you want.

regards
dipu

On Wed, Jan 14, 2009 at 11:04 AM, freak182  wrote:
>
> Hello,
>
> The clients wants the "<< <" and "> >>" should be graphic. Is there a way to
> do this?
>
> Thanks a lot.
> Cheers.
> --
> View this message in context: 
> http://www.nabble.com/Help%3A-Graphic-link-in-PagingNavigator-tp21453859p21453859.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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



Re: POST too large

2009-01-14 Thread Dipu
will this be of any help

http://stackoverflow.com/questions/123335/what-causes-java-lang-illegalstateexception-post-too-large-in-tomcat-modjk

regards
dipu

On Wed, Jan 14, 2009 at 10:04 AM, Piller Sébastien  wrote:
> Hi everybody,
>
> I'm not sure if wicket has anything to do to the following issue, but I'll
> try anyway.
>
> I'm POSTing some large data to a wicket page (yes, there is several MB of
> data in the post). When it is too big, I can see the following stacktrace in
> my logs:
>
> java.lang.IllegalStateException: Post too large
>   at
> org.apache.catalina.connector.Request.parseParameters(Request.java:2388)
>   at org.apache.catalina.connector.Request.getParameter(Request.java:1005)
>   at
> org.apache.catalina.connector.RequestFacade.getParameter(RequestFacade.java:353)
>   at
> org.apache.wicket.protocol.http.servlet.ServletWebRequest.getParameter(ServletWebRequest.java:105)
>   at
> org.apache.wicket.protocol.http.request.WebRequestCodingStrategy.decode(WebRequestCodingStrategy.java:198)
>   at org.apache.wicket.Request.getRequestParameters(Request.java:171)
>   at org.apache.wicket.RequestCycle.step(RequestCycle.java:1233)
>   at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1353)
>   at org.apache.wicket.RequestCycle.request(RequestCycle.java:493)
>   at
> org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:355)
>   at
> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:200)
>   at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
>   at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
>   at
> org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)
>   at
> org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75)
>   at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
>   at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
>   at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>   at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
>   at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
>   at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
>   at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
>   at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
>   at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
>   at
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
>   at
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
>   at
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
>   at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
>   at java.lang.Thread.run(Thread.java:619)
>
>
> I don't know exactly who catches this exception without forwarding, but my
> issue is that the page constructor doesn't get called at all (so I can't add
> some code to controll integrity) and the resonse code sent to the client is
> 200. I'm expecting that wicket or tomcat will send a response code like 500:
> Internal error or something else (anything but 200)
>
> Any hint?
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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



Re: User permissions

2009-01-14 Thread Dipu
I think wicket-auth-roles will help you sort this out

take a look at MetaDataRoleAuthorizationStrategy.authorize method

regards
dipu


On Wed, Jan 14, 2009 at 9:19 AM, itayh  wrote:
>
> Hi,
>
> I would like to create different users that will have different permissions.
> For example if I have a page with several buttons, some users will just see
> that page while others will be able to push the buttons.
> I read the Wicket-Security at Wicket Stuff site:
> http://wicketstuff.org/confluence/display/STUFFWIKI/Wicket-Security
> Its look that the security over there is on pages and not on components such
> buttons.
> Is it also for all components? Is there something more simple that do this?
> Until now we used the AutorizeInstantiation annotation so I wonder if it can
> support also the different permissions.
> --
> View this message in context: 
> http://www.nabble.com/User-permissions-tp21452441p21452441.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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



Re: Several Ajax features doesn't seem to work in Wicket 1.3.5 and Firefox 3.0.5

2009-01-13 Thread Dipu
it works from me on Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB;
rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5

Dipu

On Tue, Jan 13, 2009 at 11:09 AM, Gohan  wrote:
>
> If we take the Palette example in Firefox then nothing happens if I select a
> name and then press the right arrow. In Internet Explorer the name is moved
> from the "Available" to the "Selected" panel. Does this work for you?
> --
> View this message in context: 
> http://www.nabble.com/Several-Ajax-features-doesn%27t-seem-to-work-in-Wicket-1.3.5-and-Firefox-3.0.5-tp21433218p21433419.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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



Re: Wicketstuff/dojo Examples

2009-01-08 Thread Dipu
i think its in there
https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-dojo-1.1

regards
dipu


On Thu, Jan 8, 2009 at 2:58 PM, lizz  wrote:
>
> I dont find the source code at
> https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-dojo-examples
> anymore.
> Where can I find the source for the wicketstuff/dojo examples now?
>
>
> Stefan Lindner wrote:
>>
>> Where can I find the source for the wicketstuff/dojo examples? I do not
>> mean the code snipplets like the ones at
>> http://wicketstuff.org/confluence/display/STUFFWIKI/Simple+Dojo+D%27n%27
>> D+tutorial?
>>
>> The repositories that are mentiones all around the page contain only
>> source for the wicket-doje-integration etself. not for the examples. And
>> it would speed up the learning if I could start from a working demo
>> application (where to put the js-code in html etc.)
>>
>> I Have tried som veriants (

Re: URL Help

2009-01-06 Thread Dipu
from java doc

java.lang.CharSequence  urlFor(java.lang.Class pageClass,
PageParameters parameters)
  Returns a bookmarkable URL that references a given page
class using a given set of page parameters.
 java.lang.CharSequence urlFor(IBehavior behaviour,
RequestListenerInterface listener)
  Gets a URL for the listener interface on a behavior (e.g.
 java.lang.CharSequence urlFor(IPageMap pageMap, java.lang.Class
pageClass, PageParameters parameters)
  Returns a bookmarkable URL that references a given page
class using a given set of page parameters.
 java.lang.CharSequence urlFor(IRequestTarget requestTarget)
  Returns a URL that references the given request target.
 java.lang.CharSequence urlFor(RequestListenerInterface listener)
  Gets a URL for the listener interface (e.g.
 java.lang.CharSequence urlFor(ResourceReference resourceReference)
  Returns a URL that references a shared resource through the
provided resource reference.

 Cheers
Dipu



On Tue, Jan 6, 2009 at 11:33 AM, Nilesh More  wrote:
> Hi
> I used the method but it's giving the url of the component that I am
> clicking.
> Actually I wanted to get the content of the main page url
> Is there any different solution?
>
> Nilesh
>
> -----Original Message-
> From: Dipu [mailto:dipu@googlemail.com]
> Sent: Tuesday, January 06, 2009 2:36 PM
> To: users@wicket.apache.org
> Subject: Re: URL Help
>
> try getRequestCycle().getRequest().getURL()
>
>
> Regards
> Dipu
>
> On Tue, Jan 6, 2009 at 7:41 AM, Nilesh More  wrote:
>> Hi Friends,
>>
>> I want to check the content of the url in my java code.
>>
>> How can I do it?
>>
>>
>>
>> Thanks in advance
>>
>>
>>
>>
>>
>> Nilesh N. More
>>
>>
>>
>>
>> "Legal Disclaimer: This electronic message and all contents contain
> information from Cybage Software Private Limited which may be
> privileged, confidential, or otherwise protected from disclosure. The
> information is intended to be for the addressee(s) only. If you are not
> an addressee, any disclosure, copy, distribution, or use of the contents
> of this message is strictly prohibited. If you have received this
> electronic message in error please notify the sender by reply e-mail to
> and destroy the original message and all copies. Cybage has taken every
> reasonable precaution to minimize the risk of malicious content in the
> mail, but is not liable for any damage you may sustain as a result of
> any malicious content in this e-mail. You should carry out your own
> malicious content checks before opening the e-mail or attachment."
>> www.cybage.com
>>
>>
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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



Re: HOW TO REDIRECT

2009-01-06 Thread Dipu
it depends on your usecase, if you want to redirect conditionally
that's the way to do it ( as far as i know )

dipu

On Tue, Jan 6, 2009 at 9:58 AM, PSkarthic  wrote:
>
> Thanks very much for ur help, its working, but is that a properway to divert
> to success or failure page depending on conditions or is there any thing
> like sendRedirect...
>
>
> Thanks
> karthic
> --
> View this message in context: 
> http://www.nabble.com/HOW-TO-REDIRECT-tp21307007p21307624.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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



Re: HOW TO REDIRECT

2009-01-06 Thread Dipu
throw new RestartResponseException(new SuccessPage());

Cheers
Dipu

On Tue, Jan 6, 2009 at 9:37 AM, PSkarthic  wrote:
>
> Thanks for your reply
> redirectToInterceptPage is not working
> After login button is clicked the control is passed to verify page in that i
> have code like this
>
> if(user.equals("admin") || user.equals("karthic")){
>
>
>//setRedirect(true);
>
>//setResponsePage(new Test());
>   //onsuccessful login
>redirectToInterceptPage(new SuccessPage());
> }
>
>
> in that success page i include only a label(for testing purpose).
> How to solve it
>
>
> Thanks
> Karthic
>
>
>
> --
> View this message in context: 
> http://www.nabble.com/HOW-TO-REDIRECT-tp21307007p21307286.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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



Re: URL Help

2009-01-06 Thread Dipu
try getRequestCycle().getRequest().getURL()


Regards
Dipu

On Tue, Jan 6, 2009 at 7:41 AM, Nilesh More  wrote:
> Hi Friends,
>
> I want to check the content of the url in my java code.
>
> How can I do it?
>
>
>
> Thanks in advance
>
>
>
>
>
> Nilesh N. More
>
>
>
>
> "Legal Disclaimer: This electronic message and all contents contain 
> information from Cybage Software Private Limited which may be privileged, 
> confidential, or otherwise protected from disclosure. The information is 
> intended to be for the addressee(s) only. If you are not an addressee, any 
> disclosure, copy, distribution, or use of the contents of this message is 
> strictly prohibited. If you have received this electronic message in error 
> please notify the sender by reply e-mail to and destroy the original message 
> and all copies. Cybage has taken every reasonable precaution to minimize the 
> risk of malicious content in the mail, but is not liable for any damage you 
> may sustain as a result of any malicious content in this e-mail. You should 
> carry out your own malicious content checks before opening the e-mail or 
> attachment."
> www.cybage.com
>
>
>

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



Re: different validations based on different submit button click

2008-12-30 Thread Dipu
try form.findSubmittingButton()

or better you can override onSubmit() method of each button

regards
dipu

On Tue, Dec 30, 2008 at 3:53 PM, miro  wrote:
>
> I have a foprm with several buttons representing actions ,   based on
> different action i want different validations so is there way where i can
> retrieve  which submit button was  clicked ?
> --
> View this message in context: 
> http://www.nabble.com/different-validations-based-on-different-submit-button-click-tp21218879p21218879.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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



Re: Regarding DropdownChoice

2008-12-30 Thread Dipu
i think you have two options here

1. you can add an AjaxFormComponentUpdatingBehavior to the dropdown or

2. override wantOnSelectionChangedNotifications method of the dropdown choice

first one as the name says is ajax based and second one will do roundtrip

Dipu

On Tue, Dec 30, 2008 at 9:20 AM, Nilesh More  wrote:
> Hi,
>
> I am using a dropdown list to display some values.
>
> When I am selection any one from the list it should be saved in the
> preferences.
>
> I want to get the value that I have selected from the list in some
> variable on the same page.
>
> Can anybody please give me the solution?
>
>
>
>
>
> Thanks and Regards,
>
>
>
> Nilesh N. More
>
>
> "Legal Disclaimer: This electronic message and all contents contain 
> information from Cybage Software Private Limited which may be privileged, 
> confidential, or otherwise protected from disclosure. The information is 
> intended to be for the addressee(s) only. If you are not an addressee, any 
> disclosure, copy, distribution, or use of the contents of this message is 
> strictly prohibited. If you have received this electronic message in error 
> please notify the sender by reply e-mail to and destroy the original message 
> and all copies. Cybage has taken every reasonable precaution to minimize the 
> risk of malicious content in the mail, but is not liable for any damage you 
> may sustain as a result of any malicious content in this e-mail. You should 
> carry out your own malicious content checks before opening the e-mail or 
> attachment."
> www.cybage.com
>
>
>

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



Re: Twenty Six Wicket Tricks

2008-12-30 Thread Dipu
i will surely buy a copy

Dipu

On Tue, Dec 30, 2008 at 8:32 AM, Jonathan Locke
 wrote:
>
> Well, over the break here I've started something I swore I would never do
> again (well, two things, if you include the JavaOne talk I'm working on).
> I'm writing a (hopefully relatively short) book. It's called "Twenty-Six
> Wicket Tricks". Each trick in the book (lettered from A-Z) demonstrates
> something that people typically want to do and in the process builds a
> reusable and educational component. I've got 13 tricks coded up now and
> ideas for a handful more, but if there are any requests out there, please
> let me know. I'd also be interested in getting some idea how many people
> would be interested in this book (would provide some fuel for me to get it
> done). It does not cover any of the same ground as Wicket in Action (which
> you should buy if you have not already!), BTW. It's more of a companion to
> that book.
>
> Happy Holidays!
>
> Best,
>
>   Jonathan
>
>
> --
> View this message in context: 
> http://www.nabble.com/Twenty-Six-Wicket-Tricks-tp21214357p21214357.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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



Re: how Checkbox can be showed with "checked" when it value is matched?

2008-12-30 Thread Dipu
it works for me, if its not working for you show the list your code or
attach a quickstart.

Regards
Dipu



On Tue, Dec 30, 2008 at 1:08 AM, wch2001  wrote:
>
> Thank you a lot
>
> CheckBox("personItem.personReceiveEmailOnDeals", new
> PropertyModel(this,"personItem.personReceiveEmailOnDeals"));
>
> it can not work, can we use PropertyModel ?
>
> thanks
>
>
>
> Dipu-3 wrote:
>>
>> why is it not working ? I tried and its working
>>
>> public class TestPage extends WebPage
>> {
>>
>>   private PersonItem personItem = new PersonItem();
>>
>>
>>   public TestPage()
>>   {
>>
>>   Form form = new Form("inform");
>>   add(form);
>>
>>   CheckBox checkBoxPersonReceiveEmailOnDeals = new
>>   CheckBox("personItem.personReceiveEmailOnDeals", new
>> PropertyModel(this,"personItem.personReceiveEmailOnDeals"));
>>   form.add(checkBoxPersonReceiveEmailOnDeals);
>>
>>   }
>>
>>   private class PersonItem
>>   {
>>   private boolean personReceiveEmailOnDeals = true;
>>
>>   public boolean isPersonReceiveEmailOnDeals() {
>>   return personReceiveEmailOnDeals;
>>   }
>>
>>   public void setPersonReceiveEmailOnDeals(boolean
>> personReceiveEmailOnDeals) {
>>   this.personReceiveEmailOnDeals = 
>> personReceiveEmailOnDeals;
>>   }
>>   }
>> }
>>
>>
>> Regards
>> Dipu
>>
>> On Mon, Dec 29, 2008 at 9:46 AM, wch2001  wrote:
>>>
>>> Dear all,
>>>
>>> CheckBox checkBoxPersonReceiveEmailOnDeals = new
>>> CheckBox("personItem.personReceiveEmailOnDeals", new PropertyModel(this,
>>> "personItem.personReceiveEmailOnDeals")) ;
>>>
>>> Now personItem.personReceiveEmailOnDeals is true. but it also show it is
>>> not
>>> "checked", how can i do ?
>>>
>>> Thank you for your help
>>>
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/how-Checkbox-can-be-showed-with-%22checked%22-when-it-value-is-matched--tp21200883p21200883.html
>>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>>
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>
>>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>>
>
> --
> View this message in context: 
> http://www.nabble.com/how-Checkbox-can-be-showed-with-%22checked%22-when-it-value-is-matched--tp21200883p21211764.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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



Re: how Checkbox can be showed with "checked" when it value is matched?

2008-12-29 Thread Dipu
why is it not working ? I tried and its working

public class TestPage extends WebPage
{

private PersonItem personItem = new PersonItem();


public TestPage()
{

Form form = new Form("inform");
add(form);

CheckBox checkBoxPersonReceiveEmailOnDeals = new
CheckBox("personItem.personReceiveEmailOnDeals", new
PropertyModel(this,"personItem.personReceiveEmailOnDeals"));
form.add(checkBoxPersonReceiveEmailOnDeals);

}

private class PersonItem
{
private boolean personReceiveEmailOnDeals = true;

public boolean isPersonReceiveEmailOnDeals() {
return personReceiveEmailOnDeals;
}

public void setPersonReceiveEmailOnDeals(boolean 
personReceiveEmailOnDeals) {
this.personReceiveEmailOnDeals = 
personReceiveEmailOnDeals;
}   
}
}


Regards
Dipu

On Mon, Dec 29, 2008 at 9:46 AM, wch2001  wrote:
>
> Dear all,
>
> CheckBox checkBoxPersonReceiveEmailOnDeals = new
> CheckBox("personItem.personReceiveEmailOnDeals", new PropertyModel(this,
> "personItem.personReceiveEmailOnDeals")) ;
>
> Now personItem.personReceiveEmailOnDeals is true. but it also show it is not
> "checked", how can i do ?
>
> Thank you for your help
>
>
> --
> View this message in context: 
> http://www.nabble.com/how-Checkbox-can-be-showed-with-%22checked%22-when-it-value-is-matched--tp21200883p21200883.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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



Re: Wicket and Javascript framework integration

2008-12-24 Thread Dipu
check this

https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/jquery-parent

Dipu

On Wed, Dec 24, 2008 at 6:15 AM, T C  wrote:
> I understand all integrations may be different but has anyone posted a 
> "recipe" for how to create an integration jQuery, i.e., what is required for 
> creating a behavior?
>
> Thanks,
>
> /tc
>
>
>
>
> 
> From: Jeremy Thomerson 
> To: users@wicket.apache.org
> Cc: fredy.wij...@gmail.com
> Sent: Tuesday, December 23, 2008 6:20:18 PM
> Subject: Re: Wicket and Javascript framework integration
>
> Check out one of the many examples in Wicket Stuff, for instance, the YUI
> integration:
> https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/yui-parent/yui/
>
> You can also see what Nino has just been working on in the past couple of
> days with this:
> https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/artwork-parent/artwork/
>
> Basically, you'll just need to include the JS file (i.e. jQuery, etc) with a
> ResourceReference, and then create a behavior (for example, extend
> AbstractBehavior) that adds the appropriate JS code to the page to add
> jQuery (or other) components / behaviors to your Wicket components.
>
> --
> Jeremy Thomerson
> http://www.wickettraining.com
>
> On Tue, Dec 23, 2008 at 8:15 PM, tabiul mahmood  wrote:
>
>> Hi,
>> I would like to know more about how can I go about integrating wicket with
>> one of the popular javascript framework (Dojo or jQuery). We would like to
>> use the standard wicket component and flavour the component with the JS. I
>> want to avoid writing wicket component extension. I am aware that there is
>> Ajax based Wicket component but how can I go about adding my own feature
>> which might be lacking with the wicket Ajax component?
>>
>> If there is any sample that I can refer to that would be helpful
>>
>> Thanks
>>
>> --
>> Regards,
>>
>> Tabiul Mahmood
>>
>
>
>
>

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



Re: debugging

2008-12-23 Thread Dipu
use the Sysdeo Eclipse Tomcat Launcher plugin

http://www.eclipsetotale.com/tomcatPlugin.html

Cheers
Dipu

On Tue, Dec 23, 2008 at 10:34 AM, Björn Tietjens  wrote:
>
> Hi,
>
> I am developing a webapp with wicket on eclipse, deploying as war, using a 
> local tomcat for testing.
> What is the best/easiest way to debug my app with eclipse?
> How can I deploy/start the webapp from within eclipse or how can I  attach 
> eclipse to tomcat in order to debug my code?
>
> Thanx for your help.
> Cheers Björn
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>

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



Re: Tree and Frames

2008-11-28 Thread Dipu
http://svn.apache.org/repos/asf/wicket/trunk/wicket-examples
http://svn.apache.org/repos/asf/wicket/releases/wicket-1.4-rc1

Regards
Dipu

On Fri, Nov 28, 2008 at 3:21 PM, HansDePrez <[EMAIL PROTECTED]>wrote:

>
> I am just starting with Wickets. Is there anybody who is
> willing to share some example code on how to use the tree
> component in combination with frames.
> I have browsed the examples but can't find the WicketExampleApplication
> code.
>
> Kind regards,
>
> Hans.
> --
> View this message in context:
> http://www.nabble.com/Tree-and-Frames-tp20736293p20736293.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>


Re: Hand on session code

2008-11-27 Thread Dipu
this is what I do
/**
 * @see
org.apache.wicket.Application#newRequestCycle(org.apache.wicket.Request,
 *  org.apache.wicket.Response)
 */
public RequestCycle newRequestCycle(final Request request, final Response
response)
{
return new WebRequestCycle(this, (WebRequest)request, (WebResponse)response)
{

@Override
public Page onRuntimeException(Page page, RuntimeException e)
{
if(PageExpiredException.class.isAssignableFrom(e.getClass()))
{
return null;
}
return new ErrorPage(e,page);
}
 };
 }

Cheers
Dipu

On Thu, Nov 27, 2008 at 2:18 PM, Eyal Golan <[EMAIL PROTECTED]> wrote:

> Thanks,
>
> but looking at WebRequestCycleProcessor I didn't see onRuntimeException
> method.
> We use 1.3.4 version
>
> Looking at AbstractRequestCycleProcessor:respond, I see the call:
>if (responseClass != internalErrorPageClass &&
>settings.getUnexpectedExceptionDisplay() ==
> IExceptionSettings.SHOW_INTERNAL_ERROR_PAGE)
> {
>throw new RestartResponseException(internalErrorPageClass);
>}
>
> And I also see that RestartResponseException has a constructor with
> PageParameters.
>
> Is there a nice way to call the constructor with the parameters in respond
> ?
> Without overriding all this method?
>
> Thanks
>
> Eyal Golan
> [EMAIL PROTECTED]
>
> Visit: http://jvdrums.sourceforge.net/
> LinkedIn: http://www.linkedin.com/in/egolan74
>
> P  Save a tree. Please don't print this e-mail unless it's really necessary
>
>
> On Thu, Nov 27, 2008 at 3:31 PM, Michael Sparer <[EMAIL PROTECTED]
> >wrote:
>
> >
> > the first possibility that comes to my mind is overriding the following
> > method in your application:
> >
> >@Override
> >protected IRequestCycleProcessor newRequestCycleProcessor() {
> >return new WebRequestCycleProcessor() {
> >
> >@Override
> >protected Page onRuntimeException(final Page page,
> > final RuntimeException
> > e) {
> >// do the default handling on
> > pageexpiredexceptions
> >if (e instanceof PageExpiredException || e
> > instanceof
> > AuthorizationException) {
> >return null;
> >}
> >return new InternalServerError(page, e);
> //
> >  e.getCause for your NPE
> >}
> >
> >};
> > }
> >
> > egolan74 wrote:
> > >
> > > Hi,
> > > In deployment, we set our own internal error page:
> > > getApplicationSettings().setInternalErrorPage(InternalErrorPage.class);
> > > and
> > > getExceptionSettings().setUnexpectedExceptionDisplay(
> > > IExceptionSettings.SHOW_INTERNAL_ERROR_PAGE);
> > >
> > > Is there a quick way to get the type of the exception and show a
> > different
> > > message in our internal error page accordingly?
> > > For example: if we get NullPointerException, show a message: "You
> > > developer
> > > coded null !!! .
> > > And ArrayIndexOutOfBoundException will show: "oops.. the array is too
> > > small"
> > > .
> > >
> > > Thanks
> > >
> > > Eyal Golan
> > > [EMAIL PROTECTED]
> > >
> > > Visit: http://jvdrums.sourceforge.net/
> > > LinkedIn: http://www.linkedin.com/in/egolan74
> > >
> > > P  Save a tree. Please don't print this e-mail unless it's really
> > > necessary
> > >
> > >
> > > -
> > > Eyal Golan
> > > [EMAIL PROTECTED]
> > >
> > > Visit: JVDrums
> > > LinkedIn: LinkedIn
> > >
> >
> >
> > -
> > Michael Sparer
> > http://talk-on-tech.blogspot.com
> > --
> > View this message in context:
> > http://www.nabble.com/Hand-on-session-code-tp20719154p20719327.html
> > Sent from the Wicket - User mailing list archive at Nabble.com.
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>


Re: Label & Link item within a same table cell

2008-11-27 Thread Dipu
take a look at the LinkIconPanel.java to get an idea, either you can use it
or you can roll out a similar component that fits your requirement.

Cheers
Dipu

On Thu, Nov 27, 2008 at 12:50 PM, simonm <[EMAIL PROTECTED]> wrote:

>
> I am drawing a table using DataView and implement the populateItem method
> to
> add every table row item.
> One of my table cell should display a simple text OR a link OR both (e.g.
> the cell will have a text, and a link beneath – both in the same cell)
> My HTML snippet:
> ….
>  …
>   [Here should come Text &
> Link]
>  …
> 
> My question is how can I insert those two items into one cell? AFAIK, I can
> add only one wicket:id to a table column and therefore only one Component
> is
> attached to it (in the Java code). I have tried to split the cell to two
> rows (rowspan="2") such that the above part will have the text and the
> bottom part will have the link, but then I get into undesired UI problems
> (the border is shown though it is not desirable and the partition of the
> cell is always fixed – 50-50 for rowspan=2 etc...)
> Lots of WEB search yields no result (I read Wicket in Action at a whole!) -
> still can't figure out how to do that!
>
> Any idea how can I combine those two items into one table cell ?
> !Thanks!
>
> --
> View this message in context:
> http://www.nabble.com/Label---Link-item-within-a-same-table-cell-tp20718713p20718713.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: AutoCompleteTextField - gives a type mismatch error on IE - version wicket-1.4-rc1

2008-11-26 Thread Dipu
In the current trunk,  it's reverted back
to container.style.zIndex=(Number(index)!=Number.NaN?Number(index)+1:index);
 and
it works,
but its working because some thing else is broken

when the value of  index ='auto';
the expression  (Number(index)!=Number.NaN?Number(index)+1:index);  return
NaN,
this looks wrong to me it should be returning 'auto'

for example if you run the following line in javascript console in firebug
you will get NaN
var index ='auto';(Number(index)!=Number.NaN?Number(index)+1:index)
if you run Number(index) it return NaN

but Number(index)!=Number.NaN yields true (looks wrong to me)

just my 2 cents

Cheers
Dipu





On Wed, Nov 26, 2008 at 4:29 PM, Jeremy Thomerson <[EMAIL PROTECTED]
> wrote:

> This is fixed in trunk - I just ran into the same yesterday.  Upgraded from
> rc1 to snapshot and it's working.
>
> --
> Jeremy Thomerson
> http://www.wickettraining.com
>
>
>
> On Wed, Nov 26, 2008 at 9:32 AM, Dipu <[EMAIL PROTECTED]> wrote:
>
> > done <https://issues.apache.org/jira/browse/WICKET-1960>
> > https://issues.apache.org/jira/browse/WICKET-1960
> >
> > On Wed, Nov 26, 2008 at 2:44 PM, James Carman <
> [EMAIL PROTECTED]
> > >wrote:
> >
> > > The best way would be to file a JIRA (or search for an existing one
> that
> > > explains this issue) and attach your patch there.  We're not allowed to
> > > apply patches unless they're submitted through JIRA and they have the
> > > "Grant
> > > license to ASF for inclusion in ASF works" thing checked.
> > >
> > > On Wed, Nov 26, 2008 at 9:25 AM, Dipu <[EMAIL PROTECTED]> wrote:
> > >
> > > > wicket-autocomplete.js
> > > > function function showAutoComplete()
> > > > line 291
> > > > container.style.zIndex=(!isNaN(Number(index))?Number(index)+1:index);
> > > >
> > > > looks like IE doesn't like big i in zIndex, IE seem to be be happy
> with
> > > > zindex
> > > >
> > > > not sure if that's the correct way to resolve the issue,  i have
> > attached
> > > a
> > > > patch though.
> > > >
> > > >
> > > > Thanks
> > > > Dipu
> > > >
> > > >
> > > >
> > > > -
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > >
> >
>


Re: AutoCompleteTextField - gives a type mismatch error on IE - version wicket-1.4-rc1

2008-11-26 Thread Dipu
done <https://issues.apache.org/jira/browse/WICKET-1960>
https://issues.apache.org/jira/browse/WICKET-1960

On Wed, Nov 26, 2008 at 2:44 PM, James Carman <[EMAIL PROTECTED]>wrote:

> The best way would be to file a JIRA (or search for an existing one that
> explains this issue) and attach your patch there.  We're not allowed to
> apply patches unless they're submitted through JIRA and they have the
> "Grant
> license to ASF for inclusion in ASF works" thing checked.
>
> On Wed, Nov 26, 2008 at 9:25 AM, Dipu <[EMAIL PROTECTED]> wrote:
>
> > wicket-autocomplete.js
> > function function showAutoComplete()
> > line 291
> > container.style.zIndex=(!isNaN(Number(index))?Number(index)+1:index);
> >
> > looks like IE doesn't like big i in zIndex, IE seem to be be happy with
> > zindex
> >
> > not sure if that's the correct way to resolve the issue,  i have attached
> a
> > patch though.
> >
> >
> > Thanks
> > Dipu
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>


AutoCompleteTextField - gives a type mismatch error on IE - version wicket-1.4-rc1

2008-11-26 Thread Dipu
wicket-autocomplete.js
function function showAutoComplete()
line 291
container.style.zIndex=(!isNaN(Number(index))?Number(index)+1:index);

looks like IE doesn't like big i in zIndex, IE seem to be be happy with
zindex

not sure if that's the correct way to resolve the issue,  i have attached a
patch though.


Thanks
Dipu
Index: 
src/main/java/org/apache/wicket/extensions/ajax/markup/html/autocomplete/wicket-autocomplete.js
===
--- 
src/main/java/org/apache/wicket/extensions/ajax/markup/html/autocomplete/wicket-autocomplete.js
 (revision 720770)
+++ 
src/main/java/org/apache/wicket/extensions/ajax/markup/html/autocomplete/wicket-autocomplete.js
 (working copy)
@@ -288,7 +288,7 @@
 var input=wicketGet(elementId);
 var index=getOffsetParentZIndex(elementId);
 container.show();
-container.style.zIndex=(!isNaN(Number(index))?Number(index)+1:index);
+container.style.zindex=(!isNaN(Number(index))?Number(index)+1:index);
 container.style.left=position[0]+'px'
 container.style.top=(input.offsetHeight+position[1])+'px';
 if(cfg.adjustInputWidth)
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: [VOTE] Organizing Wicket Stuff / Regular Release Schedule?

2008-11-25 Thread Dipu
[X] - YES


On Mon, Nov 24, 2008 at 6:13 PM, Jeremy Thomerson <[EMAIL PROTECTED]
> wrote:

> Hello everyone,
>  I would like to get your opinion on an idea regarding the Wicket Stuff
> project(s).  As you are familiar with, Wicket Stuff is where anyone can
> create anything related to Wicket, small or large.  One problem that new
> users of Wicket (and us "old" users) come across is that there is a lot of
> stuff in there, and not all of it is well maintained, and there aren't
> specific releases of many of the projects.  So, you have to build it
> yourself and figure out which version matches which Wicket version, etc...
>
>  What I would like to know is if everyone thinks it would be good to have a
> subset of WS projects that are structured in a way that they are always in
> sync with the Wicket versions.  IOW, there would be two branches - 1.3.X
> and
> 1.4 (trunk), just like Wicket has.  There would be a parent module and all
> of the modules that wanted to participate would be structured under it.
> They would all release in sync with Wicket.  For instance, when Wicket
> releases 1.4-RC2, we would cut a release of this wicket-stuff-structured
> (bad name) and all of the projects under it at 1.4-RC2.  I haven't yet
> figured out how interim releases would work (new features are added to a WS
> project and it wants to cut a release between wicket releases) or if that
> matters.
>
>  This would not have to effect all WS projects - someone could continue to
> add projects to WS just like they do today.  This would simply create a
> sub-tree of projects that are in the structured / scheduled release area.
> For those that don't want to be part of that structure, they could continue
> operating as they do today.
>
> So, here's the vote:
>
> [ ] - NO!  We should leave Wicket Stuff like it is - a free-for-all with no
> structure
> [ ] - YES - I would like to see at least the most used Wicket Stuff
> projects
> structured so that they mirror Wicket, and a release is produced for each
> Wicket release.
> [ ] - Maybe - I have a better idea (perfect!)
>
> Also - please add the following:
> 1 - Would you be interested in helping to maintain such a thing. (If we had
> two or three of the owners of the larger projects on board, I don't think
> it
> would be too hard to keep the codebase of this in sync with Wicket core.)
> 2 - What projects do you own (and by your vote we'll see if you want those
> projects to be included in this restructuring).
>
> --
> Jeremy Thomerson
> http://www.wickettraining.com
>


Re: ListView broken?

2008-10-23 Thread Dipu
pass , sorry i have no clue

On Thu, Oct 23, 2008 at 10:37 AM, pieter claassen <[EMAIL PROTECTED]>wrote:

> Ok, I added;
>
> public class Debug {
>public static void debug(List list) {
>for (Object item : list) {
>System.out.println("++DEBUG++: " +
> item.getClass().toString());
>}
>}
>
>
> and called debug just before I returned my ArrayList of question:
>
>public ArrayList getQuestions() {
>Debug.debug(questions);
>return questions;
>}
>
> This is what I saw in my console. There are two objects in the list and
> they are both QuestionAndAnswer objects
>
>
> ++DEBUG++: class com.musmato.model.QuestionAndAnswer
> ++DEBUG++: class com.musmato.model.QuestionAndAnswer
>
> Regards,
> Pieter
>
>
> On Oct 23, 2008, at 11:18 AM, Dipu wrote:
>
>  can't you check what exactly is being returned by template.getQuestions()
>> and if its a list what are the items in it
>>
>>
>>
>>
>> On Thu, Oct 23, 2008 at 10:10 AM, pieter claassen <[EMAIL PROTECTED]
>> >wrote:
>>
>>  Hi Dipu,
>>>
>>> I tried that but when I do the following:
>>>
>>>  protected void populateItem(ListItem item) {
>>>  System.out.println("+++" +
>>> item.getModelObject().getClass().getName());
>>>  final QuestionAndAnswer qanda = (QuestionAndAnswer)
>>> item.getModelObject();
>>>
>>> I find that I now get the ClassCastException in the System.out.println
>>> line. It is clear as mud that the problem is that I am trying to force
>>> something into a list which is not a list?
>>>
>>> Regards,
>>> Pieter
>>>
>>>
>>>
>>> On Oct 23, 2008, at 10:59 AM, Dipu wrote:
>>>
>>> looks like template.getQuestions() is returning a list  with items in it
>>>
>>>> which is not of the type QuestionAndAnswer
>>>>
>>>> try iterating through the list and logging the class name of each item
>>>> in
>>>> it
>>>>
>>>> Dipu
>>>>
>>>>
>>>>
>>>> On Thu, Oct 23, 2008 at 9:46 AM, pieter claassen <[EMAIL PROTECTED]
>>>>
>>>>> wrote:
>>>>>
>>>>
>>>> I am getting a classcast exception in ListView that is stumping me.
>>>>
>>>>>
>>>>> This is the error message (top few lines)
>>>>>
>>>>> WicketMessage: Error attaching this container for rendering:
>>>>> [MarkupContainer [Component id = questioneditform]]
>>>>>
>>>>> Root cause:
>>>>>
>>>>> java.lang.ClassCastException: com.musmato.model.QuestionAndAnswer
>>>>> at
>>>>>
>>>>>
>>>>> org.apache.wicket.markup.html.list.ListItemModel.getObject(ListItemModel.java:55)
>>>>> at org.apache.wicket.Component.getModelObject(Component.java:1558)
>>>>> at
>>>>>
>>>>>
>>>>> com.musmato.wicket.pages.templates.TemplateEditPage$QuestionEditForm$1.populateItem(TemplateEditPage.java:93)
>>>>>
>>>>>
>>>>> This is the code that generates my ListItems:
>>>>>
>>>>>ListView questions = new ListView("questions",
>>>>> template
>>>>>.getQuestions()) {
>>>>>
>>>>>
>>>>>@Override
>>>>>protected void populateItem(ListItem item) {
>>>>>final QuestionAndAnswer qanda =
>>>>> (QuestionAndAnswer) item
>>>>>.getModelObject();
>>>>>setModel(new
>>>>> CompoundPropertyModel(qanda));
>>>>>
>>>>>
>>>>>
>>>>> I know for a fact that template.getQuestions() produces an ArrayList.
>>>>>
>>>>> The arraylist works when there is only 1 item in it but when I have
>>>>> more
>>>>> than 1 item, it fails with the ClassCastException. Is this a wicket
>>>>> problem
>>>>> or am I doing something wrong?
>>>>>
>>>>> Regards,
>>>>> Pieter
>>>>> pieter claassen
>>>>> [EMAIL PROTECTED]
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> -
>>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>>>
>>>>>
>>>>>
>>>>>  pieter claassen
>>> [EMAIL PROTECTED]
>>>
>>>
>>>
>>>
>>> -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>>
> pieter claassen
> [EMAIL PROTECTED]
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: ListView broken?

2008-10-23 Thread Dipu
can't you check what exactly is being returned by template.getQuestions()
 and if its a list what are the items in it




On Thu, Oct 23, 2008 at 10:10 AM, pieter claassen <[EMAIL PROTECTED]>wrote:

> Hi Dipu,
>
> I tried that but when I do the following:
>
>protected void populateItem(ListItem item) {
>System.out.println("+++" +
> item.getModelObject().getClass().getName());
>final QuestionAndAnswer qanda = (QuestionAndAnswer)
> item.getModelObject();
>
> I find that I now get the ClassCastException in the System.out.println
> line. It is clear as mud that the problem is that I am trying to force
> something into a list which is not a list?
>
> Regards,
> Pieter
>
>
>
> On Oct 23, 2008, at 10:59 AM, Dipu wrote:
>
>  looks like template.getQuestions() is returning a list  with items in it
>> which is not of the type QuestionAndAnswer
>>
>> try iterating through the list and logging the class name of each item in
>> it
>>
>> Dipu
>>
>>
>>
>> On Thu, Oct 23, 2008 at 9:46 AM, pieter claassen <[EMAIL PROTECTED]
>> >wrote:
>>
>>  I am getting a classcast exception in ListView that is stumping me.
>>>
>>> This is the error message (top few lines)
>>>
>>> WicketMessage: Error attaching this container for rendering:
>>> [MarkupContainer [Component id = questioneditform]]
>>>
>>> Root cause:
>>>
>>> java.lang.ClassCastException: com.musmato.model.QuestionAndAnswer
>>> at
>>>
>>> org.apache.wicket.markup.html.list.ListItemModel.getObject(ListItemModel.java:55)
>>> at org.apache.wicket.Component.getModelObject(Component.java:1558)
>>> at
>>>
>>> com.musmato.wicket.pages.templates.TemplateEditPage$QuestionEditForm$1.populateItem(TemplateEditPage.java:93)
>>>
>>>
>>> This is the code that generates my ListItems:
>>>
>>>  ListView questions = new ListView("questions",
>>> template
>>>  .getQuestions()) {
>>>
>>>
>>>  @Override
>>>  protected void populateItem(ListItem item) {
>>>  final QuestionAndAnswer qanda =
>>> (QuestionAndAnswer) item
>>>  .getModelObject();
>>>  setModel(new
>>> CompoundPropertyModel(qanda));
>>>
>>>
>>>
>>> I know for a fact that template.getQuestions() produces an ArrayList.
>>>
>>> The arraylist works when there is only 1 item in it but when I have more
>>> than 1 item, it fails with the ClassCastException. Is this a wicket
>>> problem
>>> or am I doing something wrong?
>>>
>>> Regards,
>>> Pieter
>>> pieter claassen
>>> [EMAIL PROTECTED]
>>>
>>>
>>>
>>>
>>> -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>>
> pieter claassen
> [EMAIL PROTECTED]
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: ListView broken?

2008-10-23 Thread Dipu
 looks like template.getQuestions() is returning a list  with items in it
which is not of the type QuestionAndAnswer

try iterating through the list and logging the class name of each item in it

Dipu



On Thu, Oct 23, 2008 at 9:46 AM, pieter claassen <[EMAIL PROTECTED]>wrote:

> I am getting a classcast exception in ListView that is stumping me.
>
> This is the error message (top few lines)
>
> WicketMessage: Error attaching this container for rendering:
> [MarkupContainer [Component id = questioneditform]]
>
> Root cause:
>
> java.lang.ClassCastException: com.musmato.model.QuestionAndAnswer
> at
> org.apache.wicket.markup.html.list.ListItemModel.getObject(ListItemModel.java:55)
> at org.apache.wicket.Component.getModelObject(Component.java:1558)
> at
> com.musmato.wicket.pages.templates.TemplateEditPage$QuestionEditForm$1.populateItem(TemplateEditPage.java:93)
>
>
> This is the code that generates my ListItems:
>
>ListView questions = new ListView("questions",
> template
>.getQuestions()) {
>
>
>@Override
>protected void populateItem(ListItem item) {
>final QuestionAndAnswer qanda =
> (QuestionAndAnswer) item
>.getModelObject();
>setModel(new
> CompoundPropertyModel(qanda));
>
>
>
> I know for a fact that template.getQuestions() produces an ArrayList.
>
> The arraylist works when there is only 1 item in it but when I have more
> than 1 item, it fails with the ClassCastException. Is this a wicket problem
> or am I doing something wrong?
>
> Regards,
> Pieter
> pieter claassen
> [EMAIL PROTECTED]
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: AutoCompleteTextField problem

2007-12-05 Thread Dipu Seminlal
can you please try enclosing the dropdown in a webmarkupcontainer and
repaint the container instead of repainting the whole form. That will work.

regards
dipu

On Dec 5, 2007 2:23 PM, Dipu Seminlal <[EMAIL PROTECTED]> wrote:

> agreed, onBlur doesn't seem to work, in my project had added onChange and
> OnBlur to be on the safer side,
> but now noticed that onBlur is not getting fired
>
>
>
>
> On Dec 5, 2007 12:20 PM, Holda, Dariusz < [EMAIL PROTECTED]> wrote:
>
> >
> > Onblur is not the thing I want but I've tried it and it doesn't work.
> >
> > -Original Message-
> > From: Dipu Seminlal [mailto:[EMAIL PROTECTED]
> > Sent: 05 December 2007 12:10
> > To: users@wicket.apache.org
> > Subject: Re: AutoCompleteTextField problem
> >
> > can you try changing the event from onchange to onblur
> >
> > On Dec 5, 2007 12:08 PM, dariusz.holda < [EMAIL PROTECTED]>
> > wrote:
> >
> > >
> > > Hi,
> > > I have AutoCompleteTextField with
> > > AjaxFormComponentUpdatingBehavior("onchange"). When the value is
> > chosen
> > > from
> > > the auto complete it populates the model object of a drop down. Both
> > of
> > > the
> > > components are in a form. The problem is it is working only the first
> > > time.
> > > Then IE reports Error on Page: Object required. I've tried to debug
> > the
> > > error in FireFox but when I'm using Firefox it works fine with no
> > error.
> > > If
> > > I use DropDownChoice instead of AutoCompleteTextField it works with no
> > > errors as well.
> > > I'm using wicket-1.2.6 and wicket-extensions-1.2.6. Has anybody seen
> > > something like this? Is it a bug in 1.2.6 AutoCompleteTextField for
> > IE?
> > > Unfortunately I almost all of the clients are using IE and it has to
> > work
> > > with this browser.
> > > Here is the code snippet:
> > > acTextField.add(new AjaxFormComponentUpdatingBehavior("onchange"){
> > >
> > >private static final long
> > serialVersionUID
> > > = 1L;
> > >
> > >@Override
> > >public void onUpdate(AjaxRequestTarget
> > > target){
> > >String name =
> > > acTextField.getModelObjectAsString();
> > >dropDown.setModelObject(name);
> > > target.addComponent(form);
> > >}
> > >});
> > >
> > > dropDown and acTextField are added to the form.
> > >
> > > --
> > > View this message in context:
> > >
> > http://www.nabble.com/AutoCompleteTextField-problem-tf4949236.html#a1417
> > 0390
> > > Sent from the Wicket - User mailing list archive at Nabble.com.
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> > - - - - - - - -
> >
> > This message is intended only for the personal and confidential use of
> > the designated recipient(s) named above.  If you are not the intended
> > recipient of this message you are hereby notified that any review,
> > dissemination, distribution or copying of this message is strictly
> > prohibited.  This communication is for information purposes only and should
> > not be regarded as an offer to sell or as a solicitation of an offer to buy
> > any financial product, an official confirmation of any transaction, or as an
> > official statement of Lehman Brothers.  Email transmission cannot be
> > guaranteed to be secure or error-free.  Therefore, we do not represent that
> > this information is complete or accurate and it should not be relied upon as
> > such.  All information is subject to change without notice.
> >
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>


Re: AutoCompleteTextField problem

2007-12-05 Thread Dipu Seminlal
agreed, onBlur doesn't seem to work, in my project had added onChange and
OnBlur to be on the safer side,
but now noticed that onBlur is not getting fired



On Dec 5, 2007 12:20 PM, Holda, Dariusz <[EMAIL PROTECTED]> wrote:

>
> Onblur is not the thing I want but I've tried it and it doesn't work.
>
> -----Original Message-
> From: Dipu Seminlal [mailto:[EMAIL PROTECTED]
> Sent: 05 December 2007 12:10
> To: users@wicket.apache.org
> Subject: Re: AutoCompleteTextField problem
>
> can you try changing the event from onchange to onblur
>
> On Dec 5, 2007 12:08 PM, dariusz.holda <[EMAIL PROTECTED]> wrote:
>
> >
> > Hi,
> > I have AutoCompleteTextField with
> > AjaxFormComponentUpdatingBehavior("onchange"). When the value is
> chosen
> > from
> > the auto complete it populates the model object of a drop down. Both
> of
> > the
> > components are in a form. The problem is it is working only the first
> > time.
> > Then IE reports Error on Page: Object required. I've tried to debug
> the
> > error in FireFox but when I'm using Firefox it works fine with no
> error.
> > If
> > I use DropDownChoice instead of AutoCompleteTextField it works with no
> > errors as well.
> > I'm using wicket-1.2.6 and wicket-extensions-1.2.6. Has anybody seen
> > something like this? Is it a bug in 1.2.6 AutoCompleteTextField for
> IE?
> > Unfortunately I almost all of the clients are using IE and it has to
> work
> > with this browser.
> > Here is the code snippet:
> > acTextField.add(new AjaxFormComponentUpdatingBehavior("onchange"){
> >
> >private static final long
> serialVersionUID
> > = 1L;
> >
> >@Override
> >public void onUpdate(AjaxRequestTarget
> > target){
> >String name =
> > acTextField.getModelObjectAsString();
> >dropDown.setModelObject(name);
> >target.addComponent(form);
> >}
> >});
> >
> > dropDown and acTextField are added to the form.
> >
> > --
> > View this message in context:
> >
> http://www.nabble.com/AutoCompleteTextField-problem-tf4949236.html#a1417
> 0390
> > Sent from the Wicket - User mailing list archive at Nabble.com.
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> - - - - - - -
>
> This message is intended only for the personal and confidential use of the
> designated recipient(s) named above.  If you are not the intended recipient
> of this message you are hereby notified that any review, dissemination,
> distribution or copying of this message is strictly prohibited.  This
> communication is for information purposes only and should not be regarded as
> an offer to sell or as a solicitation of an offer to buy any financial
> product, an official confirmation of any transaction, or as an official
> statement of Lehman Brothers.  Email transmission cannot be guaranteed to be
> secure or error-free.  Therefore, we do not represent that this information
> is complete or accurate and it should not be relied upon as such.  All
> information is subject to change without notice.
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: AutoCompleteTextField problem

2007-12-05 Thread Dipu Seminlal
can you try changing the event from onchange to onblur

On Dec 5, 2007 12:08 PM, dariusz.holda <[EMAIL PROTECTED]> wrote:

>
> Hi,
> I have AutoCompleteTextField with
> AjaxFormComponentUpdatingBehavior("onchange"). When the value is chosen
> from
> the auto complete it populates the model object of a drop down. Both of
> the
> components are in a form. The problem is it is working only the first
> time.
> Then IE reports Error on Page: Object required. I've tried to debug the
> error in FireFox but when I'm using Firefox it works fine with no error.
> If
> I use DropDownChoice instead of AutoCompleteTextField it works with no
> errors as well.
> I'm using wicket-1.2.6 and wicket-extensions-1.2.6. Has anybody seen
> something like this? Is it a bug in 1.2.6 AutoCompleteTextField for IE?
> Unfortunately I almost all of the clients are using IE and it has to work
> with this browser.
> Here is the code snippet:
> acTextField.add(new AjaxFormComponentUpdatingBehavior("onchange"){
>
>private static final long serialVersionUID
> = 1L;
>
>@Override
>public void onUpdate(AjaxRequestTarget
> target){
>String name =
> acTextField.getModelObjectAsString();
>dropDown.setModelObject(name);
>target.addComponent(form);
>}
>});
>
> dropDown and acTextField are added to the form.
>
> --
> View this message in context:
> http://www.nabble.com/AutoCompleteTextField-problem-tf4949236.html#a14170390
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Get Value entered in CheckBoxMultipleChoice and TextFields

2007-11-29 Thread Dipu Seminlal
take a look at the CheckBoxMultipleChoicePage in the wicket examples,
that will give you the idea, i have not used it myself though.

regards
-dipu

On Nov 29, 2007 12:49 PM, tsuresh <[EMAIL PROTECTED]> wrote:

>
> Hello every body,
>  I have got the problem again, I have a form to add new Role which has
> name, description and list of permissions. Role name and description are
> in
> text fields and permissions are as checkboxmultiplechoice, I am having
> difficult time in getting the values of the checked boxes. How do I get
> the
> list of checked values in onSubmit() method. I tried as in code shown
> below
> but it never returned any checked value
> . What should I do ? I studied the examples in wicket component ref and
> cwiki examples but could not succeed to solve it.
>
>  public void roleAdd() {
>List permList = new ArrayList();
>Role role = new Role();
>CompoundPropertyModel roleAddModel = new
> CompoundPropertyModel(role);
>final Form form = new RoleAddForm("roleForm",roleAddModel);
>
>add(form);
>final TextField roleComp = new TextField("name");
>final TextArea desComp = new TextArea("description");
>try{
>permList = p.list();
>}catch(SQLException e){
>String err = e.getMessage();
>}
>permComp = new CheckBoxMultipleChoice("permList",permList);
>permComp.setModel(new Model());
>form.add(roleComp);
>form.add(desComp);
>form.add(permComp);
>}
>
>class RoleAddForm extends Form{
>public RoleAddForm(String id, IModel model){
>super(id,model);
>}
>@Override
>public void onSubmit() {
>Role newRole = (Role)getModelObject();
>Role r = new Role(); // Role to a be added
>r.setName(newRole.getName());
>r.setDescription(newRole.getDescription());
>List perms;
>perms = (List) model.getObject(permComp);
>   
>   
> }
>
> thanks
>
>
> --
> View this message in context:
> http://www.nabble.com/Get-Value-entered-in--CheckBoxMultipleChoice--and-TextFields-tf4896987.html#a14025061
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Populate form according to selected item in dropdownchoice

2007-11-27 Thread Dipu Seminlal
have a look at the attached files, thats based on your code snippet,
you will get the idea.

regards
dipu

On Nov 27, 2007 7:17 AM, tsuresh <[EMAIL PROTECTED]> wrote:
>
> Hi Dipu,
>   Could you please tell me what to write in the method
> onSelecitionChanged(). It would be easier for me to understand if you
> provide the code example. I studied the link
> http://cwiki.apache.org/WICKET/dropdownchoice-examples.html but could not
> understand it.
> thanks
>
>
> Dipu Seminlal wrote:
> >
> > there are two ways to do it
> >
> > override the wantOnSelectionChangedNotifications of the user dropdown
> > to return true and override onSelectionChanged to do what you want,
> > but this will result in server round trips ( refer the java of
> > DropDownChoice )
> >
> > or use an AjaxFormComponentUpdatingBehavior on the onChange event of
> > the dropdown.
> >
> > regards
> > Dipu
> >
> > On Nov 26, 2007 7:14 AM, tsuresh <[EMAIL PROTECTED]> wrote:
> >>
> >> Hello wicketeers,
> >> I have a form to edit the attributes of User. User has the attributes
> >> username, mail and role.I have a dropdownchoice filled with list of
> >> users.
> >> When I select the user his mail should be displayed in textfield and his
> >> role should be displayed in dropdownchoice. And i should be able to edit
> >> his
> >> mail and role. I have already made the form to fill the first drop down
> >> choice.I have made function view(username) in User class which helps in
> >> viewing attributes of the user(user selected in dropdown), But I have no
> >> idea to populate the remaining form components.How to do this? My code
> >> for
> >> form is as below:
> >>
> >> public UserEdit(){
> >>
> >> User user= new user();
> >> CompoundPropertyModel userEditModel = new
> >> CompoundPropertyModel(user);
> >> Form form = new userEditForm("user",userEditModel);
> >> add(form);
> >> add(new FeedbackPanel("feedback").setOutputMarkupId(true));
> >> DropDownChoice ddc = null;
> >> try{
> >> ddc = new DropDownChoice("username",user.list());
> >> }catch(SQLException e){
> >> String err = e.getMessage();
> >> }
> >>
> >> TextField mailComp = new TextField("mail");
> >> DropDownChoice roleDdc =null;
> >> try{
> >> roleDdc = new DropDownChoice("role.name",r.list());
> >> }catch(SQLException e){
> >> String err = e.getMessage();
> >> }
> >> form.add(ddc);
> >> form.add(mailComp);
> >> form.add(roleDdc);
> >> }
> >>
> >> class UserEditForm extends Form {
> >> public UserEditForm(String id,IModel model) {
> >> super(id,model);
> >> }
> >> --
> >> View this message in context:
> >> http://www.nabble.com/Populate-form-according-to-selected-item-in-dropdownchoice-tf4873352.html#a13944776
> >> Sent from the Wicket - User mailing list archive at Nabble.com.
> >>
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
> --
> View this message in context: 
> http://www.nabble.com/Populate-form-according-to-selected-item-in-dropdownchoice-tf4873352.html#a13965803
>
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
/* TestPage.java
 * com.xmltravel.fab1.wicket.testcontrol
 * fab1gui1.3 
 * 
 * Created on 27 Nov 2007 by FULL NAME HERE (dipu should fix this)
 * 
 * Copyright: 
 * Multicom Products Ltd. 2007
 * Bristol, England.
 * 
 */
package com.xmltravel.fab1.wicket.testcontrol;

import java.util.ArrayList;
import java.util.List;

import org.apache.wicket.ajax.AjaxRequestTarget;
import org.apache.wicket.ajax.form.AjaxFormComponentUpdatingBehavior;
import org.apache.wicket.markup.ht

Re: Populate form according to selected item in dropdownchoice

2007-11-26 Thread Dipu Seminlal
there are two ways to do it

override the wantOnSelectionChangedNotifications of the user dropdown
to return true and override onSelectionChanged to do what you want,
but this will result in server round trips ( refer the java of
DropDownChoice )

or use an AjaxFormComponentUpdatingBehavior on the onChange event of
the dropdown.

regards
Dipu

On Nov 26, 2007 7:14 AM, tsuresh <[EMAIL PROTECTED]> wrote:
>
> Hello wicketeers,
> I have a form to edit the attributes of User. User has the attributes
> username, mail and role.I have a dropdownchoice filled with list of users.
> When I select the user his mail should be displayed in textfield and his
> role should be displayed in dropdownchoice. And i should be able to edit his
> mail and role. I have already made the form to fill the first drop down
> choice.I have made function view(username) in User class which helps in
> viewing attributes of the user(user selected in dropdown), But I have no
> idea to populate the remaining form components.How to do this? My code for
> form is as below:
>
> public UserEdit(){
>
> User user= new user();
> CompoundPropertyModel userEditModel = new
> CompoundPropertyModel(user);
> Form form = new userEditForm("user",userEditModel);
> add(form);
> add(new FeedbackPanel("feedback").setOutputMarkupId(true));
> DropDownChoice ddc = null;
> try{
> ddc = new DropDownChoice("username",user.list());
> }catch(SQLException e){
> String err = e.getMessage();
> }
>
> TextField mailComp = new TextField("mail");
> DropDownChoice roleDdc =null;
> try{
> roleDdc = new DropDownChoice("role.name",r.list());
> }catch(SQLException e){
> String err = e.getMessage();
> }
> form.add(ddc);
> form.add(mailComp);
> form.add(roleDdc);
> }
>
> class UserEditForm extends Form {
> public UserEditForm(String id,IModel model) {
> super(id,model);
> }
> --
> View this message in context: 
> http://www.nabble.com/Populate-form-according-to-selected-item-in-dropdownchoice-tf4873352.html#a13944776
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: Getting started

2007-11-22 Thread Dipu Seminlal
Is it not possible to pass those objects itself to the page in the constructor.
Thats how i do it, may be i don't understand your problem correctly,
hopefully someone else here will be able to help you.

regards
dipu



On Nov 22, 2007 4:01 PM, Gervais <[EMAIL PROTECTED]> wrote:
> Ho, yes i imagine it like that.
>
> But in my case, and i suppose many other, i get information from many
> object/beans that contains values stored in database.
>
> In fact i surrely use two java.util.List (Annoucements and Notes) and
> other objects for paragraph and links but i don't now what kinds of
> objects. Must i create one class per non static item to be displayed ?
>
> Dipu Seminlal a écrit :
>
> > Is the content of your  page (paragraph, links, list etc ) static in
> > nature, then you can just write it directly in html,
> >
> > If it is not static in nature where do you get it from and in what form
> >
> > If you have an object that is initialised with the data to populate in
> > you StartupPage, you can have a constructor like the following
> >
> > public StartupPage(YourStartupContentObject foo)
> > {
> >add(new Label("message1", foo.getMessage1()));
> >   add(new Label("message2", foo.getMessage2()));
> >
> >   add(new MultilineLabel("message2", foo.getparagraph()));
> > }
> >
> > Or
> >
> > public StartupPage()
> > {
> >YourStartupContentObject foo = fetchTheContent();
> >add(new Label("message1", foo.getMessage1()));
> >   add(new Label("message2", foo.getMessage2()));
> >
> >   add(new MultilineLabel("message2", foo.getparagraph()));
> > }
> >
> > Hope you get the Idea
> >
> > regards
> > dipu
> >
> > On Nov 22, 2007 3:23 PM, Gervais <[EMAIL PROTECTED]> wrote:
> >
> >> Ok thanks.
> >>
> >> But y have another question. (i try to translate it corretcly).
> >>
> >> For beginning i have created an application named "Startup" with one
> >> page named "StartupPage".
> >> Below is my "StartupPage" code :
> >>
> >> # Code start
> >> --
> >> public class StartupPage extends WebPage {
> >>
> >> private TestBean bean;
> >>
> >> public StartupPage() {
> >>
> >> bean=new TestBean();
> >> bean.setWelcome("Welcome text bla bla bla");
> >>
> >> add(new Label("test", new PropertyMdel(bean, "welcome") ));
> >>
> >> }
> >> }
> >> # Code end
> >> --
> >>
> >> It works great but my page "StartupPage.html" must contains more than
> >> one welcome message.
> >> - Must i have one attribute (in my bean) per item to display ?
> >> - If i must have one attribute in my bean per item to display, it become
> >> a Model. If it become a model it must implements or extends a model.
> >> What model ?
> >> --> How can i correctly create a page that contains "only" paragraph,
> >> links and list ?
> >>
> >>
> >>
> >>
> >> Dipu Seminlal a écrit :
> >>
> >>
> >>> We don't do imports, we extends ! checkout markup inheritance
> >>>
> >>> http://cwiki.apache.org/WICKET/markup-inheritance.html
> >>>
> >>> regards
> >>> dipu
> >>>
> >>> On Nov 22, 2007 2:48 PM, Gervais <[EMAIL PROTECTED]> wrote:
> >>>
> >>>
> >>>> Hy all,
> >>>>
> >>>> I'm new in the famous wicket world ! I need to start learning Wicket but
> >>>> i can't found docs that explain more than just doing a HelloWrold or a
> >>>> GuestBook.
> >>>> In fact i need to use Wicket with Spring but for that i first need to
> >>>> understand and play with wicket. So i have many questions.
> >>>>
> >>>> 1° Is there a way for stupid frenchies that don't speak english like me
> >>>> to talk about Wicket ? (If not sorry for my poor english)
> >>>>
> >>>>
> >>>> 2° How can i import other page. Like a <%@ include
> >>>>

Re: Getting started

2007-11-22 Thread Dipu Seminlal
Is the content of your  page (paragraph, links, list etc ) static in
nature, then you can just write it directly in html,

If it is not static in nature where do you get it from and in what form

If you have an object that is initialised with the data to populate in
you StartupPage, you can have a constructor like the following

public StartupPage(YourStartupContentObject foo)
{
   add(new Label("message1", foo.getMessage1()));
  add(new Label("message2", foo.getMessage2()));

  add(new MultilineLabel("message2", foo.getparagraph()));
}

Or

public StartupPage()
{
   YourStartupContentObject foo = fetchTheContent();
   add(new Label("message1", foo.getMessage1()));
  add(new Label("message2", foo.getMessage2()));

  add(new MultilineLabel("message2", foo.getparagraph()));
}

Hope you get the Idea

regards
dipu

On Nov 22, 2007 3:23 PM, Gervais <[EMAIL PROTECTED]> wrote:
> Ok thanks.
>
> But y have another question. (i try to translate it corretcly).
>
> For beginning i have created an application named "Startup" with one
> page named "StartupPage".
> Below is my "StartupPage" code :
>
> # Code start
> --
> public class StartupPage extends WebPage {
>
> private TestBean bean;
>
> public StartupPage() {
>
> bean=new TestBean();
> bean.setWelcome("Welcome text bla bla bla");
>
> add(new Label("test", new PropertyMdel(bean, "welcome") ));
>
> }
> }
> # Code end
> --
>
> It works great but my page "StartupPage.html" must contains more than
> one welcome message.
> - Must i have one attribute (in my bean) per item to display ?
> - If i must have one attribute in my bean per item to display, it become
> a Model. If it become a model it must implements or extends a model.
> What model ?
> --> How can i correctly create a page that contains "only" paragraph,
> links and list ?
>
>
>
>
> Dipu Seminlal a écrit :
>
> > We don't do imports, we extends ! checkout markup inheritance
> >
> > http://cwiki.apache.org/WICKET/markup-inheritance.html
> >
> > regards
> > dipu
> >
> > On Nov 22, 2007 2:48 PM, Gervais <[EMAIL PROTECTED]> wrote:
> >
> >> Hy all,
> >>
> >> I'm new in the famous wicket world ! I need to start learning Wicket but
> >> i can't found docs that explain more than just doing a HelloWrold or a
> >> GuestBook.
> >> In fact i need to use Wicket with Spring but for that i first need to
> >> understand and play with wicket. So i have many questions.
> >>
> >> 1° Is there a way for stupid frenchies that don't speak english like me
> >> to talk about Wicket ? (If not sorry for my poor english)
> >>
> >>
> >> 2° How can i import other page. Like a <%@ include
> >> file="includes/menubar.inc.jsp" %> or  >> page="includes/menubar.inc.jsp" flush="true" /> tag ?
> >>
> >> 3° In a big form ( with more than 20 fields ) that represnet more than
> >> one Pojo Bean how must i work ?
> >>
> >>
> >> Thanks
> >>
> >>
> >>
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> > __ NOD32 2678 (20071122) Information __
> >
> > This message was checked by NOD32 antivirus system.
> > http://www.eset.com
> >
> >
> >
> >
>

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



Re: Getting started

2007-11-22 Thread Dipu Seminlal
We don't do imports, we extends ! checkout markup inheritance

http://cwiki.apache.org/WICKET/markup-inheritance.html

regards
dipu

On Nov 22, 2007 2:48 PM, Gervais <[EMAIL PROTECTED]> wrote:
> Hy all,
>
> I'm new in the famous wicket world ! I need to start learning Wicket but
> i can't found docs that explain more than just doing a HelloWrold or a
> GuestBook.
> In fact i need to use Wicket with Spring but for that i first need to
> understand and play with wicket. So i have many questions.
>
> 1° Is there a way for stupid frenchies that don't speak english like me
> to talk about Wicket ? (If not sorry for my poor english)
>
>
> 2° How can i import other page. Like a <%@ include
> file="includes/menubar.inc.jsp" %> or  page="includes/menubar.inc.jsp" flush="true" /> tag ?
>
> 3° In a big form ( with more than 20 fields ) that represnet more than
> one Pojo Bean how must i work ?
>
>
> Thanks
>
>

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



Re: Wicket Stuff JQuery + Wicket Ajax

2007-11-22 Thread Dipu Seminlal
Hi all,
Please ignore this mail, i found the reason why it was not working.
just calling
target.appendJavascript(dnd.getJSFunctionName4Start() + "();"); will
do the trick.

I had an idea its about calling nd.getJSFunctionName4Start(), but i
tried it in a wrong way, instead of appending i tried using
AjaxCalldecorator.

Thanks
Dipu







On Nov 21, 2007 4:37 PM, Dipu Seminlal <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> I am trying to use the Wicket Stuff JQuery - Drag and Drop feature,
>
> I constructed  simple list as in the example and everything works fine,
>
> Now i add a new item to the list, i add the new item on the click of
> an AjaxLink and redraw the list.
>
> But after that rendering the new list on the AjaxLink click, the
> Jquery drag drop feature fails to work,
> It works again if i do a page refresh.
>
> what should i be doing to make sure that the drab drop feature will
> continue to work even after redrawing the list with new items
>
>
> Regards
> Dipu
>

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



Wicket Stuff JQuery + Wicket Ajax

2007-11-21 Thread Dipu Seminlal
Hi All,

I am trying to use the Wicket Stuff JQuery - Drag and Drop feature,

I constructed  simple list as in the example and everything works fine,

Now i add a new item to the list, i add the new item on the click of
an AjaxLink and redraw the list.

But after that rendering the new list on the AjaxLink click, the
Jquery drag drop feature fails to work,
It works again if i do a page refresh.

what should i be doing to make sure that the drab drop feature will
continue to work even after redrawing the list with new items


Regards
Dipu

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



Re: how to call a javascript function?

2007-11-15 Thread Dipu Seminlal
override the onComponentTag of the form object, hope this helps

protected void onComponentTag(final ComponentTag tag)
{
   super.onComponentTag(tag);   
tag.put("onSubmit", " return yourValidateFunction();
}

cheers
-dipu

On Nov 15, 2007 3:23 PM, raybristol <[EMAIL PROTECTED]> wrote:
>
> Hi, I have a form in a page, after user fill some data in and press 'Save' I
> want to call/or not to call a javascript function, in my code I was try to
> do like:
>
> Form form = new Form("form", new CompoundPropertyModel(this)){
> protected void onSubmit(){
> activity.setReference(reference);
>
> (new ActivityManager()).storeActivity(activity);
> //setResponsePage(new ActivityTypesMenu());
> }};
>
> TextField activityDateTF = new TextField("activityDate", new
> PropertyModel(this,"reference"));
> activityDateTF.setRequired(true);
> form.add(activityDateTF);
> Button saveBtn = new Button("save");
> saveBtn.add(
> new SimpleAttributeModifier(
> "onclick", "something();"));
>
>
> form.add(saveBtn);
>
> add(form);
>
> However I don't think I am doing it right, one thing that javascript
> function not be called so I am asking help again here...
>
> Many thanks again.
> --
> View this message in context: 
> http://www.nabble.com/how-to-call-a-javascript-function--tf4813502.html#a13771231
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: How can I switch page direction (LTR-RTL)?

2007-11-15 Thread Dipu Seminlal
Its a class that allows a tag attribute of a wicket component to be
modified on the fly with the value supplied.

We can do something like this, hope this makes sense
WebMarkupContainer myImage = new WebMarkupContainer("image");
String url 
=image.getThumbnailURL()==null?image.getURL():image.getThumbnailURL();

if(url == null || url.equals(""))
{
myImage.setVisible(false);
}
else
{
AttributeModifier am = new AttributeModifier("src", new Model(url));
    myImage.add(am);
}

cheers
-dipu


On Nov 15, 2007 7:29 AM, nlif <[EMAIL PROTECTED]> wrote:
>
> Thanks. What is the "attribute modifier"?
>
> Naaman
>
>
>
>
> alshamsi wrote:
> >
> > In your html page you can use the set the dir attribute of the html tag
> > to the direction you want
> >
> > http://www.w3.org/1999/xhtml";  dir="ltr">
> >
> > I believe you can do so automatically using the new attribute modifier.
> >
> > Regards
> > Alshamsi
> >
> >
> > nlif wrote:
> >> Hi all,
> >>
> >> I would like to be able to set the page direction: right-to-left or
> >> left-to-right.
> >> This can be done via the browser's view -> switch page direction
> >> menu-option,
> >> but I need to be able to set this dynamically (i.e. by the application),
> >> based on the locale.
> >> Is this supported in Wicket?
> >>
> >>
> >> Thanks,
> >> Naaman
> >>
> >>
> >>
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
> --
> View this message in context: 
> http://www.nabble.com/How-can-I-switch-page-direction-%28LTR-RTL%29--tf4805391.html#a13762990
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
>
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: Problem deploying the app as portlet in Jetspeed

2007-11-14 Thread Dipu Seminlal
sorry, my bad, found the reason why , i had a conflicting jar in the
class path. Initialization failure has gone now.
I am not there yet , i will ping with other problems. many thanks for
the patience.

cheers
dipu



On Nov 14, 2007 3:00 PM, Dipu Seminlal <[EMAIL PROTECTED]> wrote:
> sorry , i found where jetspeed.log is.
> Its throwing a ClassCastException
>
>
> javax.portlet.PortletException: Initialization failure
> at 
> org.apache.wicket.protocol.http.portlet.WicketPortlet.init(WicketPortlet.java:136)
> at 
> org.apache.jetspeed.factory.JetspeedPortletInstance.init(JetspeedPortletInstance.java:85)
> at 
> org.apache.jetspeed.factory.JetspeedPortletFactory.getPortletInstance(JetspeedPortletFactory.java:230)
> at 
> org.apache.jetspeed.container.invoker.ServletPortletInvoker.invoke(ServletPortletInvoker.java:208)
> at 
> org.apache.jetspeed.container.invoker.ServletPortletInvoker.render(ServletPortletInvoker.java:128)
> at 
> org.apache.pluto.PortletContainerImpl.renderPortlet(PortletContainerImpl.java:119)
> at 
> org.apache.jetspeed.container.JetspeedPortletContainerWrapper.renderPortlet(JetspeedPortletContainerWrapper.java:121)
> at 
> org.apache.jetspeed.aggregator.impl.RenderingJobImpl.execute(RenderingJobImpl.java:242)
> at 
> org.apache.jetspeed.aggregator.impl.PortletRendererImpl.renderNow(PortletRendererImpl.java:226)
> at 
> org.apache.jetspeed.aggregator.impl.PageAggregatorImpl.aggregateAndRender(PageAggregatorImpl.java:147)
> at 
> org.apache.jetspeed.aggregator.impl.PageAggregatorImpl.aggregateAndRender(PageAggregatorImpl.java:143)
> at 
> org.apache.jetspeed.aggregator.impl.PageAggregatorImpl.build(PageAggregatorImpl.java:78)
> at 
> org.apache.jetspeed.aggregator.AggregatorValve.invoke(AggregatorValve.java:46)
> at 
> org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:167)
> at 
> org.apache.jetspeed.aggregator.HeaderAggregatorValve.invoke(HeaderAggregatorValve.java:53)
> at 
> org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:167)
> at 
> org.apache.jetspeed.decoration.DecorationValve.invoke(DecorationValve.java:130)
> at 
> org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:167)
> at 
> org.apache.jetspeed.resource.ResourceValveImpl.invoke(ResourceValveImpl.java:130)
> at 
> org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:167)
> at 
> org.apache.jetspeed.pipeline.valve.impl.ActionValveImpl.invoke(ActionValveImpl.java:184)
> at 
> org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:167)
> at 
> org.apache.jetspeed.container.ContainerValve.invoke(ContainerValve.java:104)
> at 
> org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:167)
> at 
> org.apache.jetspeed.profiler.impl.ProfilerValveImpl.invoke(ProfilerValveImpl.java:248)
> at 
> org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:167)
> at 
> org.apache.jetspeed.security.impl.LoginValidationValveImpl.invoke(LoginValidationValveImpl.java:159)
> at 
> org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:167)
> at 
> org.apache.jetspeed.security.impl.PasswordCredentialValveImpl.invoke(PasswordCredentialValveImpl.java:150)
> at 
> org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:167)
> at 
> org.apache.jetspeed.localization.impl.LocalizationValveImpl.invoke(LocalizationValveImpl.java:170)
> at 
> org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:167)
> at 
> org.apache.jetspeed.security.impl.AbstractSecurityValve$1.run(AbstractSecurityValve.java:138)
> at java.security.AccessController.doPrivileged(Native Method)
> at javax.security.auth.Subject.doAsPrivileged(Subject.java:454)
> at 
> org.apache.jetspeed.security.JSSubject.doAsPrivileged(JSSubject.java:179)
> at 
> org.apache.jetspeed.security.impl.AbstractSecurityValve.invoke(AbstractSecurityValve.java:132)
> at 
> org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:167)
> at 
> org.apache.jetspeed.container.url.impl.PortalURLValveImpl.invoke(PortalURLValveImpl.java:66)
> at 
> org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(Jetspe

Re: Problem deploying the app as portlet in Jetspeed

2007-11-14 Thread Dipu Seminlal
(PasswordCredentialValveImpl.java:150)
at 
org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:167)
at 
org.apache.jetspeed.localization.impl.LocalizationValveImpl.invoke(LocalizationValveImpl.java:170)
at 
org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:167)
at 
org.apache.jetspeed.security.impl.AbstractSecurityValve$1.run(AbstractSecurityValve.java:138)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:454)
at 
org.apache.jetspeed.security.JSSubject.doAsPrivileged(JSSubject.java:179)
at 
org.apache.jetspeed.security.impl.AbstractSecurityValve.invoke(AbstractSecurityValve.java:132)
at 
org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:167)
at 
org.apache.jetspeed.container.url.impl.PortalURLValveImpl.invoke(PortalURLValveImpl.java:66)
at 
org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:167)
at 
org.apache.jetspeed.capabilities.impl.CapabilityValveImpl.invoke(CapabilityValveImpl.java:126)
at 
org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:167)
at 
org.apache.jetspeed.pipeline.JetspeedPipeline.invoke(JetspeedPipeline.java:146)
at 
org.apache.jetspeed.engine.JetspeedEngine.service(JetspeedEngine.java:227)
at 
org.apache.jetspeed.engine.JetspeedServlet.doGet(JetspeedServlet.java:242)
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.jetspeed.engine.servlet.XXSUrlAttackFilter.doFilter(XXSUrlAttackFilter.java:52)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
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.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
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)

On Nov 14, 2007 2:33 PM, Ate Douma <[EMAIL PROTECTED]> wrote:
> Hi Dipu,
>
> I do need the possible errors from jetspeed.log and maybe catalina.out to 
> help.
> Without that, I really don't know what's going wrong and what has an 
> initialization failure here.
>
> Ate
>
>
>
> Dipu Seminlal wrote:
> > Hi all,
> >
> > I tried to deploy my application as portlet in jetspeed and it's
> > complaining about "Initialization failure"
> > I can't find anything useful in the logs
> > I am using Jetspeed 2.1.2 and my app is build against the wicket trunk.
> >
> > I have given the following in my portlet.xml
> >
> > 
> >   ServletContextProvider
> >   org.apache.jetspeed.portlet.ServletContextProviderImpl
> > 
> > 
> >   PortletResourceURLFactory
> >   
> > org.apache.jetspeed.portlet.PortletResourceURLFactoryImpl
> > 
> >
> > and the following in web.xml
> >
> > 
> >   JetspeedContainer
> >   Jetspeed Container
> >   MVC Servlet for Jetspeed Portlet 
> > Applications
> >   
> > org.apache.jetspeed.container.JetspeedContainerServlet
> >   
> > contextName
> > FAB
> >   
> >   100
> > 
> > 
> >   Jets

Re: Problem deploying the app as portlet in Jetspeed

2007-11-14 Thread Dipu Seminlal
Hi Ate,

Thanks for the response,  this was exactly my problem as well, there
is nothing useful in the logs.

I can't find jetspeed.log in the logs folder, catalina.out doesn't
have anything in it and there is no stack trace in my projects log
either.

Do i need anything special to get things logged to  jetspeed.log and
catalina.out.

regards
dipu




On Nov 14, 2007 2:33 PM, Ate Douma <[EMAIL PROTECTED]> wrote:
> Hi Dipu,
>
> I do need the possible errors from jetspeed.log and maybe catalina.out to 
> help.
> Without that, I really don't know what's going wrong and what has an 
> initialization failure here.
>
> Ate
>
>
>
> Dipu Seminlal wrote:
> > Hi all,
> >
> > I tried to deploy my application as portlet in jetspeed and it's
> > complaining about "Initialization failure"
> > I can't find anything useful in the logs
> > I am using Jetspeed 2.1.2 and my app is build against the wicket trunk.
> >
> > I have given the following in my portlet.xml
> >
> > 
> >   ServletContextProvider
> >   org.apache.jetspeed.portlet.ServletContextProviderImpl
> > 
> > 
> >   PortletResourceURLFactory
> >   
> > org.apache.jetspeed.portlet.PortletResourceURLFactoryImpl
> > 
> >
> > and the following in web.xml
> >
> > 
> >   JetspeedContainer
> >   Jetspeed Container
> >   MVC Servlet for Jetspeed Portlet 
> > Applications
> >   
> > org.apache.jetspeed.container.JetspeedContainerServlet
> >   
> > contextName
> > FAB
> >   
> >   100
> > 
> > 
> >   JetspeedContainer
> >   /container/*
> >   
> >
> > has anyone seen this before ?
> >
> > Regards
> > Dipu
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: working with JSP problem, thanks!

2007-11-14 Thread Dipu Seminlal
i think you should be doing this


AdminPagesApplication

org.apache.wicket.protocol.http.WicketServlet
   
applicationClassName

apto.umbrella.wicketInterface.AdminPagesApplication



servlet>
AdminPagesApplication2

org.apache.wicket.protocol.http.WicketServlet
   
applicationClassName

apto.umbrella.wicketInterface.AdminPagesApplication2




 
   AdminPagesApplication
   /Admin/*
 

 
AdminPagesApplication2
/Admin2/*
 

-dipu

On Nov 14, 2007 12:23 PM, raybristol <[EMAIL PROTECTED]> wrote:
>
> Hi, my wicket pages need to be worked with some other jsp pages, and for some
> reason I need two startup place so in xml conf files I got:
>
>   
> AdminPagesApplication
>
> org.apache.wicket.protocol.http.WicketServlet
> 
>   applicationClassName
>
> apto.umbrella.wicketInterface.AdminPagesApplication
> 
>   
>
>
>   
> AdminPagesApplication
> /Admin/*
>   
>
>
> so I was try to put more something like:
>
>   
> AdminPagesApplication
>
> org.apache.wicket.protocol.http.WicketServlet
> 
>   applicationClassName
>
> apto.umbrella.wicketInterface.AdminPagesApplication
>
> apto.umbrella.wicketInterface.AdminPagesApplication2
> 
>   
>
>
>   
> AdminPagesApplication
> /Admin/*
> AdminPagesApplication2
> /Admin2/*
>   
>
> But then it won't work, I think it probably something really simple to
> change, sorry to bother again for those newbie questions!
>
> Many thanks,
> Ray
> --
> View this message in context: 
> http://www.nabble.com/working-with-JSP-problem%2C-thanks%21-tf4804711.html#a13745657
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: required field in a form, help :)

2007-11-14 Thread Dipu Seminlal
setDefaultFormProcessing(false) on your cancel buttom

Regards
Dipu

On Nov 14, 2007 11:05 AM, raybristol <[EMAIL PROTECTED]> wrote:
>
> Hi, I have some inputs in a form, some are required field, they work fine
> when I press 'submit' button, however, I also include a cancel button, in
> which onclick event my code is like:
>
>  add(new Button("cancel"){
> public void onClick() {
> setResponsePage(new ActivityTypeList());
> }
> });
>
>
> But I think it's probably button 'cancel' has attribute type='submit' in
> html page, but I can't put reset, so I don't know what to do to avoid the
> validation when user press 'cancel' ?
>
> Many thanks,
> Ray
> --
> View this message in context: 
> http://www.nabble.com/required-field-in-a-form%2C-help-%3A%29-tf4804178.html#a13744215
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Problem deploying the app as portlet in Jetspeed

2007-11-13 Thread Dipu Seminlal
Hi all,

I tried to deploy my application as portlet in jetspeed and it's
complaining about "Initialization failure"
I can't find anything useful in the logs
I am using Jetspeed 2.1.2 and my app is build against the wicket trunk.

I have given the following in my portlet.xml


ServletContextProvider
org.apache.jetspeed.portlet.ServletContextProviderImpl


PortletResourceURLFactory
org.apache.jetspeed.portlet.PortletResourceURLFactoryImpl


and the following in web.xml


JetspeedContainer
Jetspeed Container
MVC Servlet for Jetspeed Portlet 
Applications

org.apache.jetspeed.container.JetspeedContainerServlet

  contextName
  FAB

100
  
  
JetspeedContainer
/container/*
  

has anyone seen this before ?

Regards
Dipu

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



Re: IExceptionResponseStrategy gone from 1.3

2007-11-01 Thread Dipu Seminlal
Hi Igor,

Many thanks for the reply, so will that be correct if i do the following in
my application class

/**
 * @see org.apache.wicket.Application#newRequestCycle(
org.apache.wicket.Request,
 *  org.apache.wicket.Response)
 */
public RequestCycle newRequestCycle(final Request request, final
Response response)
{
return new WebRequestCycle(this, (WebRequest)request,
(WebResponse)response)
{

@Override
public Page onRuntimeException(Page page, RuntimeException e)
{
// TODO Auto-generated method stub
return new ErrorPage(e,page);
}

};
}

or do you mean something else ??

Kind Regards
Dipu

On 11/1/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
>
> override requestcycle.onruntimeexception()
>
> -igor
>
>
> On 11/1/07, Dipu Seminlal <[EMAIL PROTECTED]> wrote:
> > Hi all,
> >
> > I had a simple implementation of  IExceptionResponseStrategy which
> helped me
> > to  do this
> >
> > protected IRequestCycleProcessor newRequestCycleProcessor()
> > {
> > return new DefaultWebRequestCycleProcessor()
> > {
> > protected IExceptionResponseStrategy
> > newExceptionResponseStrategy()
> > {
> > return new MyExceptionStrategy();
> > }
> > };
> > }
> >
> > and throw new RestartResponseException(new MyErrorPage(e,page)); from
> > MyExceptionStrategy and log the exception in the error page.
> >
> > Now i am in the process of migrating my existing application which run
> on
> > 1.2.6 to 1.3 and i see IExceptionResponseStrategy has gone missing.
> >
> > I would like to pass on the exception to my error page and log it as i
> was
> > doing before.
> >
> > What is the best way to do it ?
> >
> > I can see that i can override public void respond(RuntimeException e,
> > RequestCycle requestCycle) and do it, is the right direction to take ?
> >
> >
> > Regards
> > Dipu
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Synchronizing AutoCompleteTextField with a checkbox

2007-11-01 Thread Dipu Seminlal
hmmm, thats even better :)

On 11/1/07, WicketKeeper <[EMAIL PROTECTED]> wrote:
>
>
> I'm a dumdum.
> The answer is to use AjaxCheckBox (duhh)
> Cheers
> WK
>
>
> WicketKeeper wrote:
> >
> > Hi
> >
> > I have an autocomplete field object with the getChoices method
> overridden,
> > which works just fine. Next to it I have a checkbox, which when checked
> > alters the logic in getChoices so that the string is interpreted as a
> > regular expression.
> >
> > This DOES work:
> >
> > tsf = new TableSelectionField("TableNameAutoCompleteTextField");
> > subjcb = new CheckBox("SubjectsRegexpCheckBox")
> > {
> >   protected boolean wantOnSelectionChangedNotifications()
> >   {
> >   return true;
> >   }
> > };
> >
> > both components are added to form, so they implicitly get the
> > CompoundPropertyModel.
> >
> > Right, that's wonderful - except now when I click the checkbox the
> entire
> > page refreshes. When there's lots of stuff on the page this can be a
> heavy
> > operation. So I took this bit out:
> >
> > subjcb = new CheckBox("SubjectsRegexpCheckBox")
> > {
> >   protected boolean wantOnSelectionChangedNotifications()
> >   {
> >   return true;
> >   }
> > };
> >
> > And now the autocomplete field does not work - well, not completely. If
> I
> > click submit on the form (which gets that state of the checkbox and
> field)
> > I get the expected results, even if the autocomplete field doesn't
> > populate correctly.
> >
> > Is there any way I can get round this without forcing a refresh when i
> > click on the checkbox?
> >
> > Cheers
> > WK
> >
>
> --
> View this message in context:
> http://www.nabble.com/Synchronizing-AutoCompleteTextField-with-a-checkbox-tf4730399.html#a13526222
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Synchronizing AutoCompleteTextField with a checkbox

2007-11-01 Thread Dipu Seminlal
try adding AjaxFormComponentUpdatingBehaviour to the the check box instead
of
setting wantOnSelectionChangedNotifications.

as far as i know wantOnSelectionChangedNotifications will refresh the page.

AjaxFormComponentUpdatingBehaviour will do an ajax call and won't refresh
the entire page.

Regards
Dipu


On 11/1/07, WicketKeeper <[EMAIL PROTECTED]> wrote:
>
>
> Hi
>
> I have an autocomplete field object with the getChoices method overridden,
> which works just fine. Next to it I have a checkbox, which when checked
> alters the logic in getChoices so that the string is interpreted as a
> regular expression.
>
> This DOES work:
>
> tsf = new TableSelectionField("TableNameAutoCompleteTextField");
> subjcb = new CheckBox("SubjectsRegexpCheckBox")
> {
> protected boolean wantOnSelectionChangedNotifications()
> {
> return true;
> }
> };
>
> both components are added to form, so they implicitly get the
> CompoundPropertyModel.
>
> Right, that's wonderful - except now when I click the checkbox the entire
> page refreshes. When there's lots of stuff on the page this can be a heavy
> operation. So I took this bit out:
>
> subjcb = new CheckBox("SubjectsRegexpCheckBox")
> {
> protected boolean wantOnSelectionChangedNotifications()
> {
> return true;
> }
> };
>
> And now the autocomplete field does not work - well, not completely. If I
> click submit on the form (which gets that state of the checkbox and field)
> I
> get the expected results, even if the autocomplete field doesn't populate
> correctly.
>
> Is there any way I can get round this without forcing a refresh when i
> click
> on the checkbox?
>
> Cheers
> WK
> --
> View this message in context:
> http://www.nabble.com/Synchronizing-AutoCompleteTextField-with-a-checkbox-tf4730399.html#a13526176
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


IExceptionResponseStrategy gone from 1.3

2007-11-01 Thread Dipu Seminlal
Hi all,

I had a simple implementation of  IExceptionResponseStrategy which helped me
to  do this

protected IRequestCycleProcessor newRequestCycleProcessor()
{
return new DefaultWebRequestCycleProcessor()
{
protected IExceptionResponseStrategy
newExceptionResponseStrategy()
{
return new MyExceptionStrategy();
}
};
}

and throw new RestartResponseException(new MyErrorPage(e,page)); from
MyExceptionStrategy and log the exception in the error page.

Now i am in the process of migrating my existing application which run on
1.2.6 to 1.3 and i see IExceptionResponseStrategy has gone missing.

I would like to pass on the exception to my error page and log it as i was
doing before.

What is the best way to do it ?

I can see that i can override public void respond(RuntimeException e,
RequestCycle requestCycle) and do it, is the right direction to take ?


Regards
Dipu


Re: Two forms on the same page

2007-11-01 Thread Dipu Seminlal
yes its  possible to have two forms in the same page.

if you could provide some more details, you are likely to get
more helpful response :)

Cheers
Dipu





On 11/1/07, Cristi Manole <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> Simple question :) :
>
> Is it possible to have two forms on the same page, without having them
> imbricated?
>
> 
> ...
> 
> 
> ...
> 
>
>
> I'm asking because I get errors saying i did not add markup for form2 when
> it is indeed in html code...  (and added to the page)
>
>
> Tks a lot
>


Re: PagingNavigator with custom images

2007-10-26 Thread Dipu Seminlal
What i did was had a dummy extension of the Paging Navigator and Provided
Markup
for the extension and used it where ever needed.

So that you can modify the markup as you want it.

Regards
Dipu


On 10/26/07, Swaroop Belur <[EMAIL PROTECTED]> wrote:
>
> It looks like you will have to copy that markup(PagingNavigator.html) and
> replace the default ones
> by ur images.Right now they are directly embedded in markup as < (<)
> for
> eg.
>
> -swaroop
>
> On 10/26/07, BatiB80 <[EMAIL PROTECTED]> wrote:
> >
> >
> > Hi,
> >
> > is it possible to use the PagingNavigator with own images to jump to the
> > first/previous/next/last record. The defaultimplementation use '<<' or
> '<'
> > or '>' or '>>' which looks not very nice.
> >
> > Many thanks for you help,
> > Sebastian
> > --
> > View this message in context:
> >
> http://www.nabble.com/PagingNavigator-with-custom-images-tf4695835.html#a13422772
> > Sent from the Wicket - User mailing list archive at Nabble.com.
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>


Re: Confirmation message after form submit

2007-10-25 Thread Dipu Seminlal
yes  a modal window,
i am not sure about how would you pop up a javascript confirm()  after doing
a server side validation.

there might be a way, but i don't know how

Dipu

On 10/25/07, Federico Fanton <[EMAIL PROTECTED]> wrote:
>
> On Thu, 25 Oct 2007 10:40:20 +0100
> "Dipu Seminlal" <[EMAIL PROTECTED]> wrote:
>
> > I think you can make use of a modal window to do this
>
> You mean, a modal window instead of the javascript confirm() ?
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Confirmation message after form submit

2007-10-25 Thread Dipu Seminlal
I think you can make use of a modal window to do this

Regards
Dipu

On 10/25/07, Federico Fanton <[EMAIL PROTECTED]> wrote:
>
> Hi everyone!
> I have a form with a submit button, and I need to implement a sequence
> like this:
> - user presses the button
> - form submit
> - server-side validation of submitted data
> - popup with confirmation message (like javascript confirm() )
> - if user presses "yes", call Java method X
> - if user presses "no", call Java method Y
>
> Is this possible?
> Many thanks for your time!
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: getRealPath resolving differently on trunk

2007-10-24 Thread Dipu Seminlal
Please ignore this question, that was bad me at work ( very very stupid
question )

On 10/24/07, Dipu Seminlal <[EMAIL PROTECTED]> wrote:
>
> Hi all,
>
> I am trying to migrate my application to the latest version of wicket,
>
> I have something like this,  which works as expected  in wicket 1.2.6
> WebMarkupContainer logo = new WebMarkupContainer("ogo");
> AttributeModifier am = new AttributeModifier("src", new Model(
> ServletContext.getRealPath("staticresources/images/logos/xx.gif")));
> logo .add(am);
> add(logo );
>
> and the getRealPath resolves to
> http://localhost:8080/myproj/staticresources/images/logos/xx..gif
>
> But when i use the wicket trunk, real path returns the following and the
> images are not getting displayed properly
> c:\work\webapps\myproj\staticresources\images\logos\xx.gif
>
>
> Does anyone have any ides why this is happening ?
>
>
> Regards
> Dipu
>
>
>


getRealPath resolving differently on trunk

2007-10-24 Thread Dipu Seminlal
Hi all,

I am trying to migrate my application to the latest version of wicket,

I have something like this,  which works as expected  in wicket 1.2.6
WebMarkupContainer logo = new WebMarkupContainer("ogo");
AttributeModifier am = new AttributeModifier("src", new Model(
ServletContext.getRealPath("staticresources/images/logos/xx.gif")));
logo .add(am);
add(logo );

and the getRealPath resolves to
http://localhost:8080/myproj/staticresources/images/logos/xx..gif

But when i use the wicket trunk, real path returns the following and the
images are not getting displayed properly
c:\work\webapps\myproj\staticresources\images\logos\xx.gif


Does anyone have any ides why this is happening ?


Regards
Dipu


Re: dummy question, how to set wicket in Deloyment mode?

2007-10-23 Thread Dipu Seminlal
you can specify it in your web.xml

On 10/23/07, raybristol <[EMAIL PROTECTED]> wrote:
>
>
> dummy question, how to set wicket in Deloyment mode? There is a
> Application#getConfigurationType() but I expect something like
> Application#setConfigurationType() which does not exist so I thing I must
> miss something here...
>
> Many thanks
> --
> View this message in context:
> http://www.nabble.com/dummy-question%2C-how-to-set-wicket-in-Deloyment-mode--tf4677449.html#a13364304
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: out of memory - wicket 1.2.6

2007-10-09 Thread Dipu Seminlal
we restart every time we redeploy.

Dipu

On 10/8/07, Jeremy Levy <[EMAIL PROTECTED]> wrote:
>
> Are you redeploying often with out restarting?
>
> Jeremy
>
> On 10/8/07, Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]>
> wrote:
> >
> > At my former job, we had a memory leak not in our own application but a
> > dependancy though.. Thats where jmeter and jprobe came into scope. It
> > took me 12 hours of screen starin/running different scenarios to find
> > out what it was, very boring but nice to see it wasnt my code.
> >
> > regards Nino
> >
> > Dipu Seminlal wrote:
> > > i would say very less ,i wouldn't rule it out though.
> > >
> > > On 10/8/07, Nino Saturnino Martinez Vazquez Wael <
> > [EMAIL PROTECTED]>
> > > wrote:
> > >
> > >> What are the chances of you having a memory leak in your code?
> > >>
> > >> regards Nino
> > >>
> > >> Dipu Seminlal wrote:
> > >>
> > >>> yes it's in production mode
> > >>>
> > >>> Regards
> > >>> Dipu
> > >>>
> > >>> On 10/8/07, Nino Saturnino Martinez Vazquez Wael <
> > >>>
> > >> [EMAIL PROTECTED]>
> > >>
> > >>> wrote:
> > >>>
> > >>>
> > >>>> Hmm this is always tricky.. I supose that you deployed wicket in
> > >>>> production mode?
> > >>>>
> > >>>> If not the only way forward are using a memory profiler, and a
> > >>>> performance tester (because memory errors might not be obvious
> until
> > >>>> youve gotten a lot of clicks).
> > >>>>
> > >>>> I'd suggest JProbe and JMeter...
> > >>>>
> > >>>> http://www.quest.com/jprobe/memory-home.aspx
> > >>>> http://jakarta.apache.org/jmeter/
> > >>>>
> > >>>> regards Nino
> > >>>>
> > >>>> Dipu Seminlal wrote:
> > >>>>
> > >>>>
> > >>>>> Hi,
> > >>>>>
> > >>>>> One of our servers running wicket application  went down throwing
> > out
> > >>>>>
> > >> of
> > >>
> > >>>>> memory error.
> > >>>>> This is the first time it has ever happened, can any one throw
> some
> > >>>>>
> > >>>>>
> > >>>> light on
> > >>>>
> > >>>>
> > >>>>> the reason for the issue.
> > >>>>>
> > >>>>>
> > >>>>> 2007-10-08 11:36:02:425 ERROR wicket.RequestCycle
>   [TP-Processor63]
> > -
> > >>>>>
> > >>>>>
> > >>>> Method
> > >>>>
> > >>>>
> > >>>>> onFormSubmitted of interface
> > >>>>> wicket.markup.html.form.IFormSubmitListenertargeted at component
> > >>>>> [MarkupContainer [Component id = searchForm, page =
> > >>>>> com.xmltravel.fab1.wicket.flights.HorizontalSearchNavPage, path =
> > >>>>> 0:searchLandingPanel:
> > searchForm.HorizontalSearchNavPagePanel$InputForm
> > >>>>>
> > >> ,
> > >>
> > >>>>> isVisible = true, isVersioned = true]] threw an exception
> > >>>>> wicket.WicketRuntimeException: Method onFormSubmitted of interface
> > >>>>> wicket.markup.html.form.IFormSubmitListener targeted at component
> > >>>>> [MarkupContainer [Component id = searchForm, page =
> > >>>>> com.xmltravel.fab1.wicket.flights.HorizontalSearchNavPage, path =
> > >>>>> 0:searchLandingPanel:
> > searchForm.HorizontalSearchNavPagePanel$InputForm
> > >>>>>
> > >> ,
> > >>
> > >>>>> isVisible = true, isVersioned = true]] threw an exception
> > >>>>> at wicket.RequestListenerInterface.invoke(
> > >>>>>
> > >>>>>
> > >>>> RequestListenerInterface.java
> > >>>>
> > >>>>
> > >>>>> :198)
> > >>>>> at
> > >>>>>
> > >>>>>
&

Re: out of memory - wicket 1.2.6

2007-10-08 Thread Dipu Seminlal
i would say very less ,i wouldn't rule it out though.

On 10/8/07, Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]>
wrote:
>
> What are the chances of you having a memory leak in your code?
>
> regards Nino
>
> Dipu Seminlal wrote:
> > yes it's in production mode
> >
> > Regards
> > Dipu
> >
> > On 10/8/07, Nino Saturnino Martinez Vazquez Wael <
> [EMAIL PROTECTED]>
> > wrote:
> >
> >> Hmm this is always tricky.. I supose that you deployed wicket in
> >> production mode?
> >>
> >> If not the only way forward are using a memory profiler, and a
> >> performance tester (because memory errors might not be obvious until
> >> youve gotten a lot of clicks).
> >>
> >> I'd suggest JProbe and JMeter...
> >>
> >> http://www.quest.com/jprobe/memory-home.aspx
> >> http://jakarta.apache.org/jmeter/
> >>
> >> regards Nino
> >>
> >> Dipu Seminlal wrote:
> >>
> >>> Hi,
> >>>
> >>> One of our servers running wicket application  went down throwing out
> of
> >>> memory error.
> >>> This is the first time it has ever happened, can any one throw some
> >>>
> >> light on
> >>
> >>> the reason for the issue.
> >>>
> >>>
> >>> 2007-10-08 11:36:02:425 ERROR wicket.RequestCycle  [TP-Processor63] -
> >>>
> >> Method
> >>
> >>> onFormSubmitted of interface
> >>> wicket.markup.html.form.IFormSubmitListenertargeted at component
> >>> [MarkupContainer [Component id = searchForm, page =
> >>> com.xmltravel.fab1.wicket.flights.HorizontalSearchNavPage, path =
> >>> 0:searchLandingPanel:searchForm.HorizontalSearchNavPagePanel$InputForm
> ,
> >>> isVisible = true, isVersioned = true]] threw an exception
> >>> wicket.WicketRuntimeException: Method onFormSubmitted of interface
> >>> wicket.markup.html.form.IFormSubmitListener targeted at component
> >>> [MarkupContainer [Component id = searchForm, page =
> >>> com.xmltravel.fab1.wicket.flights.HorizontalSearchNavPage, path =
> >>> 0:searchLandingPanel:searchForm.HorizontalSearchNavPagePanel$InputForm
> ,
> >>> isVisible = true, isVersioned = true]] threw an exception
> >>> at wicket.RequestListenerInterface.invoke(
> >>>
> >> RequestListenerInterface.java
> >>
> >>> :198)
> >>> 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 wicket.protocol.http.WicketServlet.doPost(WicketServlet.java
> :262)
> >>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
> >>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> >>> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> >>> ApplicationFilterChain.java:269)
> >>> at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> >>> ApplicationFilterChain.java:188)
> >>> at org.apache.catalina.core.StandardWrapperValve.invoke(
> >>> StandardWrapperValve.java:210)
> >>> at org.apache.catalina.core.StandardContextValve.invoke(
> >>> StandardContextValve.java:174)
> >>> at org.apache.catalina.core.StandardHostValve.invoke(
> >>> StandardHostValve.java:127)
> >>&

Re: out of memory - wicket 1.2.6

2007-10-08 Thread Dipu Seminlal
yes it's in production mode

Regards
Dipu

On 10/8/07, Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]>
wrote:
>
> Hmm this is always tricky.. I supose that you deployed wicket in
> production mode?
>
> If not the only way forward are using a memory profiler, and a
> performance tester (because memory errors might not be obvious until
> youve gotten a lot of clicks).
>
> I'd suggest JProbe and JMeter...
>
> http://www.quest.com/jprobe/memory-home.aspx
> http://jakarta.apache.org/jmeter/
>
> regards Nino
>
> Dipu Seminlal wrote:
> > Hi,
> >
> > One of our servers running wicket application  went down throwing out of
> > memory error.
> > This is the first time it has ever happened, can any one throw some
> light on
> > the reason for the issue.
> >
> >
> > 2007-10-08 11:36:02:425 ERROR wicket.RequestCycle  [TP-Processor63] -
> Method
> > onFormSubmitted of interface
> > wicket.markup.html.form.IFormSubmitListenertargeted at component
> > [MarkupContainer [Component id = searchForm, page =
> > com.xmltravel.fab1.wicket.flights.HorizontalSearchNavPage, path =
> > 0:searchLandingPanel:searchForm.HorizontalSearchNavPagePanel$InputForm,
> > isVisible = true, isVersioned = true]] threw an exception
> > wicket.WicketRuntimeException: Method onFormSubmitted of interface
> > wicket.markup.html.form.IFormSubmitListener targeted at component
> > [MarkupContainer [Component id = searchForm, page =
> > com.xmltravel.fab1.wicket.flights.HorizontalSearchNavPage, path =
> > 0:searchLandingPanel:searchForm.HorizontalSearchNavPagePanel$InputForm,
> > isVisible = true, isVersioned = true]] threw an exception
> > at wicket.RequestListenerInterface.invoke(
> RequestListenerInterface.java
> > :198)
> > 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 wicket.protocol.http.WicketServlet.doPost(WicketServlet.java:262)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> > ApplicationFilterChain.java:269)
> > at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> > ApplicationFilterChain.java:188)
> > at org.apache.catalina.core.StandardWrapperValve.invoke(
> > StandardWrapperValve.java:210)
> > at org.apache.catalina.core.StandardContextValve.invoke(
> > StandardContextValve.java:174)
> > at org.apache.catalina.core.StandardHostValve.invoke(
> > StandardHostValve.java:127)
> > at org.apache.catalina.valves.ErrorReportValve.invoke(
> > ErrorReportValve.java:117)
> > at org.apache.catalina.core.StandardEngineValve.invoke(
> > StandardEngineValve.java:108)
> > at org.apache.catalina.connector.CoyoteAdapter.service(
> > CoyoteAdapter.java:151)
> > at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java
> :200)
> > at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java
> :283)
> > at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:773)
> > at org.apache.jk.common.ChannelSocket.processConnection(
> > ChannelSocket.java:703)
> > at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(
> > ChannelSocket.java:895)
> > at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
> > ThreadPool.java:685)
> > at java.lang.Thread.run(Thread.java:595)
> > Caused by: java.lang.reflect.InvocationTargetException
> > at sun.reflect.GeneratedMethodAccessor65.invoke(Unknown Source)
> > at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> > DelegatingMethodAccessorImpl.java:25)
> > at java.lang.reflect.Method.invoke(Method.java:585)
> > at wicket.RequestListenerInterface.invoke(
> RequestListenerInterface.java
> > :187)
> > ... 27 more
> > Caused by: java.lang.OutOfMemoryError: Java heap space
> >
> >
> > Regards
> > Dipu
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


out of memory - wicket 1.2.6

2007-10-08 Thread Dipu Seminlal
Hi,

One of our servers running wicket application  went down throwing out of
memory error.
This is the first time it has ever happened, can any one throw some light on
the reason for the issue.


2007-10-08 11:36:02:425 ERROR wicket.RequestCycle  [TP-Processor63] - Method
onFormSubmitted of interface
wicket.markup.html.form.IFormSubmitListenertargeted at component
[MarkupContainer [Component id = searchForm, page =
com.xmltravel.fab1.wicket.flights.HorizontalSearchNavPage, path =
0:searchLandingPanel:searchForm.HorizontalSearchNavPagePanel$InputForm,
isVisible = true, isVersioned = true]] threw an exception
wicket.WicketRuntimeException: Method onFormSubmitted of interface
wicket.markup.html.form.IFormSubmitListener targeted at component
[MarkupContainer [Component id = searchForm, page =
com.xmltravel.fab1.wicket.flights.HorizontalSearchNavPage, path =
0:searchLandingPanel:searchForm.HorizontalSearchNavPagePanel$InputForm,
isVisible = true, isVersioned = true]] threw an exception
at wicket.RequestListenerInterface.invoke(RequestListenerInterface.java
:198)
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 wicket.protocol.http.WicketServlet.doPost(WicketServlet.java:262)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(
StandardWrapperValve.java:210)
at org.apache.catalina.core.StandardContextValve.invoke(
StandardContextValve.java:174)
at org.apache.catalina.core.StandardHostValve.invoke(
StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(
ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke(
StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(
CoyoteAdapter.java:151)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:200)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:773)
at org.apache.jk.common.ChannelSocket.processConnection(
ChannelSocket.java:703)
at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(
ChannelSocket.java:895)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
ThreadPool.java:685)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor65.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at wicket.RequestListenerInterface.invoke(RequestListenerInterface.java
:187)
... 27 more
Caused by: java.lang.OutOfMemoryError: Java heap space


Regards
Dipu


Re: New Wicket Portlets Demo available

2007-09-25 Thread Dipu Seminlal
Thats good news, thanks very much.

Cheers
Dipu

On 9/25/07, Ate Douma <[EMAIL PROTECTED]> wrote:
>
> I'm even more happy to announce that Wicket Portlet Support has now been
> merged into the trunk and already will be part of the upcoming 
> 1.3.0-beta4release!
>
> In the next few days or hopefully latest end of next week, I'll add some
> documentation to the Wicket Wiki describing the portlet features,
> limitations, how to
> write portlet compliant Wicket applications and how to run them in a
> portal.
>
> For those already familiar with portlets and portals, check out the
> WICKET-647 and WICKET-658 issues which have some head start info.
>
> Regards,
>
> Ate Douma
>
> Ate Douma wrote:
> > I'm really happy to announce that a new and quite feature complete
> > Wicket Portlets Demo is now available for download at:
> >
> >
> >
> http://people.apache.org/~ate/wicket/jetspeed-2.1.3-dev-wicket-demo-installer.jar
> >
> >
> > I've worked hard the last few weeks to improve the Wicket portlet
> > support branch and it can now run all Wicket Examples natively as
> portlet!
> > See also IRA issue WICKET-658 at
> > http://issues.apache.org/jira/browse/WICKET-658#action_12528082 where I
> > have provided more information how to install and use this demo.
> >
> > Although there probably are still some minor issues here and there, the
> > demo will show that portlet development using Wicket is now very much
> > feasible.
> >
> > I'd like to invite anyone interested to try out the demo and see it in
> > action for yourself, and of course please report any encountered
> > issue/problems to the dev list.
> >
> > I've developed the portlet support based on the 1.3.0-beta3 release
> > (with few minor bugfixes ported back from the trunk), so although the
> > trunk development has progressed at it usual aggressive speed, updating
> > the portlet-support to the latest Wicket trunk shouldn't be too much
> > work (that is: right now!).
> >
> > As we would like to start using Wicket for a rewrite of the Jetspeed-2
> > administration portlets *now*, it would be great if the portlet support
> > can be incorporated into the trunk as soon as possible. Delaying this
> > until after the 1.3.0 release would mean being out-of-sync with the main
> > wicket trunk development all the time and a lot of work each time we
> > want/need to bring it back in sync.
> >
> > Initially, back in May this year, my idea was waiting with merging the
> > portlet support in the trunk to after the 1.3.0 release.
> > But as 1.3.0 still isn't released yet and still in beta phase, it would
> > be much better to merge now otherwise the portlet-support will be
> > constantly out-of-sync with the main wicket trunk development, causing a
> > lot of effort each time we want (or need) to bring it back in sync.
> >
> > For Jetspeed-2, we would very much like to start using Wicket for a
> > rewrite of the Jetspeed-2 administration portlet *now*. Having towait
> > until after the 1.3.0 release, or be dependent on unofficial builds from
> > the portlet-support branch would be less ideal to say the least.
> > Other parties, like my own company, already have started using the
> > Wicket portlet-support branch, so having to delay the merge to trunk
> > really wouldn't be fun.
> >
> > AFAICS though, the impact of merging the portlet-support to trunk won't
> > be big.
> > I had to make a few (internal) changes in the wicket core, but I don't
> > think those will have functional side-effects.
> >
> > To make it easier for the other committers to decide if we can merge the
> > portlet-support to trunk now, I will create a new JIRA issue for it.
> > For the changes needed to the current Wicket trunk I'll create separate
> > patches with explanations why and attach those to that issue.
> > (note: most of these changes I already described in detail under
> > subtasks of the WICKET-647 issue).
> > We can then discuss these changes individually and if need be see if
> > alternative solutions are possible.
> > After those changes are reviewed and accepted, the portlet support then
> > can be merged to the trunk.
> >
> > WDYT?
> >
> > Regards,
> >
> > Ate
> >
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Portlet Support

2007-09-24 Thread Dipu Seminlal
Hi Ate,

Today i got some time to look at the wicket portlet demo (
jetspeed-2.1.3-dev-wicket-demo-installer.jar ), it looks very promising,
thanks very much for the great work.

I would like to see the portlet support integrated to the current trunk as
soon as possible.

Many thanks to the wicket team for the great work.

Cheers
Dipu



On 8/30/07, Ate Douma <[EMAIL PROTECTED]> wrote:
>
> Martijn Dashorst wrote:
> > I think it is in a branch in our apache repo:
> >
> >
> http://svn.apache.org/repos/asf/wicket/branches/wicket-1.3-portlet-support/
> Yes, and there is a corresponding JIRA issue with several subtasks which I
> use for tracking the current state (and some minimal documentation):
>
>   https://issues.apache.org/jira/browse/WICKET-647
>
> If you are interested in testing that out, I've provided a downloadable
> Jetspeed-2 installer which the wicket-examples application deployed as
> portlet
> application here:
>
>http://people.apache.org/~ate/wicket/
>
> Note though the above branch was created on July 14 from the trunk at that
> time (r547242), and the portlet-support (as currently checked in) isn't
> perfect or
> without some serious bugs yet.
>
> But, I've started working on a updated version of the portlet-support this
> week which is based on the latest 1.3.0-beta3 release and it is
> progressing rather well.
> I hope to commit this update tomorrow or else early next week the latest.
> For that, I plan to create a new branch,
> wicket-1.3.0-beta3-portlet-support, as merging back in all the trunk
> changes since the branch (reliably) turned out to
> be far too much work.
>
> So, I started from "scratch" again, applying my original changes by hand,
> bit by bit (man, being on a branch of a project which moves as quickly as
> Wicket is
> painful...).
> Which turned out to be not a bad idea after all: I cleaned up and improved
> several changes along the lines as well as refactored several new classes
> and methods
> names to better reflect their purpose. Luckily, as the new portlet-support
> (in contrast to the one from 1.2.x) is now using transparent "bridging"
> wicket to the
> portlet environment, those internal changes didn't have any effect on the
> usage.
>
> Anyway, you will all soon see that the portlet-support has progressed
> nicely, to the point I think it covers many to most standard use-cases
> (albeit there still
> are and always will be a few area's where portlet support is difficult or
> even formally impossible to provide).
>
> The nicest part I think is that it turned out to require very little
> changes to the wicket core, and AFAIK all of those are transparent, meaning
> these changes
> have zero effect for existing plain servlet based applications!
>
> In my opinion, it should be ready for trunk integration soon now (after
> proper review of course), we just need to find and agree upon the right time
> frame.
>
> Right now I'm working on getting popup/modal windows also working
> properly, and once that's finished I'll check the stuff in under the new
> branch.
>
> One last important fact I need to mention is that I've build some of the
> portlet-support features upon the anticipated new Portlet 2.0 API
> (JSR-286, of which
> I'm also an EG member). As JSR-286 isn't released yet (but very soon
> now...), and no (formal) implementations exists or are even allowed, I have
> defined some
> supporting interfaces,  specifically for header contributions and Portlet
> ResourceURLs.
> To be able to actually run wicket with the new portlet-support within a
> portal, you'll need portal specific implementations for these interfaces.
> As soon as JSR-286 is available as well as supporting portals, those
> interfaces can be retrofitted back upon JSR-286 APIs and you won't need such
> proprietary
> implementations anymore.
>
> For my own testing, and because I'm also a Jetspeed committer, I've
> already provided Jetspeed-2 specific support implementations.
> Since the latest Jetspeed-2.1.2 release, these are provided out-of-the-box
> with the portal itself.
> For more information about this, see:
> http://issues.apache.org/jira/browse/PB-65
>
> So, for now, you might be required to test and experiment using
> Jetspeed-2, although I think I already saw someone report it running on
> Liferay as well.
>
> Regards,
>
> Ate
>
> >
> > Martijn
> >
> > On 8/30/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> >> it has moved to wicket-stuff because none of the core committers have
> time
> >> to keep it up to date. i believe Ate was reworking it in

Re: ANN: beturtle.com launched

2007-09-24 Thread Dipu Seminlal
Very Nice, Congratulations !!

Dipu

On 9/21/07, Joe Toth <[EMAIL PROTECTED]> wrote:
>
> Hi Everyone,
>
> We just launched http://beTurtle.com/ - A 'green' social networking
> site. If your interested in healthy living, sustainable practices, have
> 'green' questions or just want to make some new friends, stop on by. Let
> us know what you think, we would really appreciate it.
>
> It runs on Spring2, Hibernate3, Wicket 1.3 plus many other open source
> projects.  Without Wicket and the other frameworks I wouldn't have been
> able to develop the entire site so quickly. Thank you so much everyone
> for the great framework and answering any questions I had.
>
> Joe Toth
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Page expiration

2007-09-20 Thread Dipu Seminlal
Hi,

Can you please check if you have any img tags in your html with empty src
attributes ?

Regards
Dipu

On 9/20/07, Holda, Dariusz <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
> I've came across a strange behaviour. I'm running Wicket app on Jetty
> server and most of the times it's working fine but from time to time I'm
> getting "Page expired" message even if user is actively using the app.
> Unfortunately it's not happening on the same events. Sometimes it's
> after pressing 'Save' after choosing a date in DatePicker, sometimes
> it's happening after clicking on a different tab after editing a
> textfield.
> Anyone has an idea what may be the cause of this problem?
> I'm using wicket-1.2.6 and each of the editable fields has an Ajax
> behaviour.
>
> Thx,
> Dariusz
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> - - - - - - -
>
> This message is intended only for the personal and confidential use of the
> designated recipient(s) named above.  If you are not the intended recipient
> of this message you are hereby notified that any review, dissemination,
> distribution or copying of this message is strictly prohibited.  This
> communication is for information purposes only and should not be regarded as
> an offer to sell or as a solicitation of an offer to buy any financial
> product, an official confirmation of any transaction, or as an official
> statement of Lehman Brothers.  Email transmission cannot be guaranteed to be
> secure or error-free.  Therefore, we do not represent that this information
> is complete or accurate and it should not be relied upon as such.  All
> information is subject to change without notice.
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: New Wicket Portlets Demo available

2007-09-20 Thread Dipu Seminlal
Thanks Gwyn


Regards
Dipu

On 9/20/07, Gwyn Evans <[EMAIL PROTECTED]> wrote:
>
> Probably fairly soon - we've been looking at the changes and
> discussing it on the dev list, to try & get an idea if it'll cause a
> significant delay with regards to the aim of getting a 1.3 release out
> ASAP.  Currently, however, I think the view is that it'll be likely to
> be in and we'll do a beta4, then see how it looks.
>
> I think I saw some comment about some rebuilding work of Ate's house -
> I don't know any more than that, but if he's quiet for a bit, that
> might explain it!
>
> In the meantime, you could get the baseline code from SVN
> (http://svn.apache.org/repos/asf/wicket/tags/wicket-1.3.0-beta3),
> apply the patch from the jira issue
>
> https://issues.apache.org/jira/secure/attachment/12366048/wicket-1.3.0-beta3-portlet-support.patch
> and build your own copy if you want to have a look prior to that.
> (Build with tests disabled "mvn -Dmaven.test.skip=true install" as the
> patch missed changing a particular test expectation)
>
> /Gwyn
>
> On Thursday, September 20, 2007, 10:20:23 AM, Dipu <
> [EMAIL PROTECTED]> wrote:
>
> > Hi Ate,
>
> > I'm interested in the portlet support which you have implemented in
> wicket.
>
> > Any idea when it might be merged into the trunk?
>
> > Regards
> > Dipu
>
>
> > On 9/17/07, Ate Douma <[EMAIL PROTECTED]> wrote:
> >>
> >> I'm really happy to announce that a new and quite feature complete
> Wicket
> >> Portlets Demo is now available for download at:
> >>
> >>
> >>
> http://people.apache.org/~ate/wicket/jetspeed-2.1.3-dev-wicket-demo-installer.jar
> >>
> >> I've worked hard the last few weeks to improve the Wicket portlet
> support
> >> branch and it can now run all Wicket Examples natively as portlet!
> >> See also IRA issue WICKET-658 at
> >> http://issues.apache.org/jira/browse/WICKET-658#action_12528082 where I
> >> have provided more information how to install and use
> >> this demo.
> >>
> >> Although there probably are still some minor issues here and there, the
> >> demo will show that portlet development using Wicket is now very much
> >> feasible.
> >>
> >> I'd like to invite anyone interested to try out the demo and see it in
> >> action for yourself, and of course please report any encountered
> >> issue/problems to the
> >> dev list.
> >>
> >> I've developed the portlet support based on the 1.3.0-beta3 release
> (with
> >> few minor bugfixes ported back from the trunk), so although the trunk
> >> development has
> >> progressed at it usual aggressive speed, updating the portlet-support
> to
> >> the latest Wicket trunk shouldn't be too much work (that is: right
> now!).
> >>
> >> As we would like to start using Wicket for a rewrite of the Jetspeed-2
> >> administration portlets *now*, it would be great if the portlet support
> can
> >> be
> >> incorporated into the trunk as soon as possible. Delaying this until
> after
> >> the 1.3.0 release would mean being out-of-sync with the main wicket
> trunk
> >> development
> >> all the time and a lot of work each time we want/need to bring it back
> in
> >> sync.
> >>
> >> Initially, back in May this year, my idea was waiting with merging the
> >> portlet support in the trunk to after the 1.3.0 release.
> >> But as 1.3.0 still isn't released yet and still in beta phase, it would
> be
> >> much better to merge now otherwise the portlet-support will be
> constantly
> >> out-of-sync
> >> with the main wicket trunk development, causing a lot of effort each
> time
> >> we want (or need) to bring it back in sync.
> >>
> >> For Jetspeed-2, we would very much like to start using Wicket for a
> >> rewrite of the Jetspeed-2 administration portlet *now*. Having towait
> until
> >> after the 1.3.0
> >> release, or be dependent on unofficial builds from the portlet-support
> >> branch would be less ideal to say the least.
> >> Other parties, like my own company, already have started using the
> Wicket
> >> portlet-support branch, so having to delay the merge to trunk really
> >> wouldn't be fun.
> >>
> >> AFAICS though, the impact of merging the portlet-support to trunk won't
> be
> >> big.
> >> 

Re: New Wicket Portlets Demo available

2007-09-20 Thread Dipu Seminlal
Hi Ate,

I'm interested in the portlet support which you have implemented in wicket.

Any idea when it might be merged into the trunk?

Regards
Dipu


On 9/17/07, Ate Douma <[EMAIL PROTECTED]> wrote:
>
> I'm really happy to announce that a new and quite feature complete Wicket
> Portlets Demo is now available for download at:
>
>
> http://people.apache.org/~ate/wicket/jetspeed-2.1.3-dev-wicket-demo-installer.jar
>
> I've worked hard the last few weeks to improve the Wicket portlet support
> branch and it can now run all Wicket Examples natively as portlet!
> See also IRA issue WICKET-658 at
> http://issues.apache.org/jira/browse/WICKET-658#action_12528082 where I
> have provided more information how to install and use
> this demo.
>
> Although there probably are still some minor issues here and there, the
> demo will show that portlet development using Wicket is now very much
> feasible.
>
> I'd like to invite anyone interested to try out the demo and see it in
> action for yourself, and of course please report any encountered
> issue/problems to the
> dev list.
>
> I've developed the portlet support based on the 1.3.0-beta3 release (with
> few minor bugfixes ported back from the trunk), so although the trunk
> development has
> progressed at it usual aggressive speed, updating the portlet-support to
> the latest Wicket trunk shouldn't be too much work (that is: right now!).
>
> As we would like to start using Wicket for a rewrite of the Jetspeed-2
> administration portlets *now*, it would be great if the portlet support can
> be
> incorporated into the trunk as soon as possible. Delaying this until after
> the 1.3.0 release would mean being out-of-sync with the main wicket trunk
> development
> all the time and a lot of work each time we want/need to bring it back in
> sync.
>
> Initially, back in May this year, my idea was waiting with merging the
> portlet support in the trunk to after the 1.3.0 release.
> But as 1.3.0 still isn't released yet and still in beta phase, it would be
> much better to merge now otherwise the portlet-support will be constantly
> out-of-sync
> with the main wicket trunk development, causing a lot of effort each time
> we want (or need) to bring it back in sync.
>
> For Jetspeed-2, we would very much like to start using Wicket for a
> rewrite of the Jetspeed-2 administration portlet *now*. Having towait until
> after the 1.3.0
> release, or be dependent on unofficial builds from the portlet-support
> branch would be less ideal to say the least.
> Other parties, like my own company, already have started using the Wicket
> portlet-support branch, so having to delay the merge to trunk really
> wouldn't be fun.
>
> AFAICS though, the impact of merging the portlet-support to trunk won't be
> big.
> I had to make a few (internal) changes in the wicket core, but I don't
> think those will have functional side-effects.
>
> To make it easier for the other committers to decide if we can merge the
> portlet-support to trunk now, I will create a new JIRA issue for it.
> For the changes needed to the current Wicket trunk I'll create separate
> patches with explanations why and attach those to that issue.
> (note: most of these changes I already described in detail under subtasks
> of the WICKET-647 issue).
> We can then discuss these changes individually and if need be see if
> alternative solutions are possible.
> After those changes are reviewed and accepted, the portlet support then
> can be merged to the trunk.
>
> WDYT?
>
> Regards,
>
> Ate
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: applicationwide datePattern

2007-09-07 Thread Dipu Seminlal
Hi Korbinian,

my mistake, sorry.


Regards
Dipu

On 9/6/07, Korbinian Bachl <[EMAIL PROTECTED]> wrote:
>
> Hi Dipu,
>
> well, the problem is that i have here the Locale("de","DE") which has
> default pattern "dd.MM.yy" while I need "dd.MM." - so how can this
> be changed? (so MEDIUM instead of SHORT is used)
>
> Regards
> Korbinian
>
>
> Dipu Seminlal schrieb:
> > try using session.setLocale()
> > thats how i do it.
> >
> > Regards
> > Dipu
> >
> > On 9/6/07, Korbinian Bachl <[EMAIL PROTECTED]> wrote:
> >>
> >> Hi,
> >>
> >> can anyone tell me how to change the default date pattern wicket should
> >> use in the whole app?
> >>
> >> I mean i can do:
> >>
> >> add(new DatePicker() {
> >>  protected String getDatePattern() {
> >>  return "dd.MM.";
> >>  }
> >>
> >> on each component manually, but that doesnt seem to be the right way.
> >>
> >> Regards,
> >>
> >> Korbinian
> >>
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: applicationwide datePattern

2007-09-06 Thread Dipu Seminlal
try using session.setLocale()
thats how i do it.

Regards
Dipu

On 9/6/07, Korbinian Bachl <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
>
> can anyone tell me how to change the default date pattern wicket should
> use in the whole app?
>
> I mean i can do:
>
> add(new DatePicker() {
>  protected String getDatePattern() {
>  return "dd.MM.";
>  }
>
> on each component manually, but that doesnt seem to be the right way.
>
> Regards,
>
> Korbinian
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Portlet Support

2007-08-31 Thread Dipu Seminlal
Hi All,

many thanks for pointing me to the right direction.

Regards
Dipu

On 8/30/07, Matej Knopp <[EMAIL PROTECTED]> wrote:
>
> Hi Ate,
>
> thanks for the examples. The progress is tremendous. Awesome.
>
> -Matej
>
> On 8/30/07, Ate Douma <[EMAIL PROTECTED]> wrote:
> >
> > Martijn Dashorst wrote:
> > > I think it is in a branch in our apache repo:
> > >
> > >
> >
> http://svn.apache.org/repos/asf/wicket/branches/wicket-1.3-portlet-support/
> > Yes, and there is a corresponding JIRA issue with several subtasks which
> I
> > use for tracking the current state (and some minimal documentation):
> >
> >   https://issues.apache.org/jira/browse/WICKET-647
> >
> > If you are interested in testing that out, I've provided a downloadable
> > Jetspeed-2 installer which the wicket-examples application deployed as
> > portlet
> > application here:
> >
> >http://people.apache.org/~ate/wicket/
> >
> > Note though the above branch was created on July 14 from the trunk at
> that
> > time (r547242), and the portlet-support (as currently checked in) isn't
> > perfect or
> > without some serious bugs yet.
> >
> > But, I've started working on a updated version of the portlet-support
> this
> > week which is based on the latest 1.3.0-beta3 release and it is
> > progressing rather well.
> > I hope to commit this update tomorrow or else early next week the
> latest.
> > For that, I plan to create a new branch,
> > wicket-1.3.0-beta3-portlet-support, as merging back in all the trunk
> > changes since the branch (reliably) turned out to
> > be far too much work.
> >
> > So, I started from "scratch" again, applying my original changes by
> hand,
> > bit by bit (man, being on a branch of a project which moves as quickly
> as
> > Wicket is
> > painful...).
> > Which turned out to be not a bad idea after all: I cleaned up and
> improved
> > several changes along the lines as well as refactored several new
> classes
> > and methods
> > names to better reflect their purpose. Luckily, as the new
> portlet-support
> > (in contrast to the one from 1.2.x) is now using transparent "bridging"
> > wicket to the
> > portlet environment, those internal changes didn't have any effect on
> the
> > usage.
> >
> > Anyway, you will all soon see that the portlet-support has progressed
> > nicely, to the point I think it covers many to most standard use-cases
> > (albeit there still
> > are and always will be a few area's where portlet support is difficult
> or
> > even formally impossible to provide).
> >
> > The nicest part I think is that it turned out to require very little
> > changes to the wicket core, and AFAIK all of those are transparent,
> meaning
> > these changes
> > have zero effect for existing plain servlet based applications!
> >
> > In my opinion, it should be ready for trunk integration soon now (after
> > proper review of course), we just need to find and agree upon the right
> time
> > frame.
> >
> > Right now I'm working on getting popup/modal windows also working
> > properly, and once that's finished I'll check the stuff in under the new
> > branch.
> >
> > One last important fact I need to mention is that I've build some of the
> > portlet-support features upon the anticipated new Portlet 2.0 API
> > (JSR-286, of which
> > I'm also an EG member). As JSR-286 isn't released yet (but very soon
> > now...), and no (formal) implementations exists or are even allowed, I
> have
> > defined some
> > supporting interfaces,  specifically for header contributions and
> Portlet
> > ResourceURLs.
> > To be able to actually run wicket with the new portlet-support within a
> > portal, you'll need portal specific implementations for these
> interfaces.
> > As soon as JSR-286 is available as well as supporting portals, those
> > interfaces can be retrofitted back upon JSR-286 APIs and you won't need
> such
> > proprietary
> > implementations anymore.
> >
> > For my own testing, and because I'm also a Jetspeed committer, I've
> > already provided Jetspeed-2 specific support implementations.
> > Since the latest Jetspeed-2.1.2 release, these are provided
> out-of-the-box
> > with the portal itself.
> > For more information about this, see:
> > http://issues.apache.org/jira/browse/PB-65
> >
> > So, for now, you might be required to t

Portlet Support

2007-08-30 Thread Dipu Seminlal
Hi All,

I checked out the wicket trunk and found that the Portlet package has
disappeared from where it was.
Has it been moved to somewhere else or did the Portlet support got removed
totally ?
What is the future plans for the Portlet support in wicket.

Thanks
Dipu


Re: How to get the html combo value in wicket?

2007-08-16 Thread Dipu Seminlal
the selected value will get attached to the model, please take a look at
FormInputExample in Wicket Examples.

-dipu

On 8/16/07, Edi <[EMAIL PROTECTED]> wrote:
>
>
> My Question is how to get the html combo value using wicket methods?
>
>
>
>
> igor.vaynberg wrote:
> >
> > the final value is put into the model
> >
> > -igor
> >
> >
> > On 8/15/07, Edi <[EMAIL PROTECTED]> wrote:
> >>
> >>
> >> any reply..
> >>
> >>
> >>
> >> Edi wrote:
> >> >
> >> >
> >> > Hi,
> >> >
> >> > I have ordinary html combo,
> >> >
> >> > 
> >> > One
> >> > Two
> >> > 
> >> >
> >> > How can I get the html combo value using wicket.
> >> >
> >> > if ordinary html text box  means I
> can
> >> > get getRequest().getParameter("txtbox");
> >> >
> >> > But In combo?
> >> > Please let me know.
> >> >
> >> > Thanking You
> >> >
> >> >
> >> >
> >>
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/How-to-get-the-html-combo-value-in-wicket--tf4274630.html#a12175034
> >> Sent from the Wicket - User mailing list archive at Nabble.com.
> >>
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/How-to-get-the-html-combo-value-in-wicket--tf4274630.html#a12177702
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Reacting to DateField change

2007-08-09 Thread Dipu Seminlal
i checked and i agree with Igor :)

On 8/9/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
>
> On 8/9/07, Dipu Seminlal <[EMAIL PROTECTED]> wrote:
> >
> > yes i am almost certain, we need to have the event in the markup.
> > if you add an onchange behaviour then you must add onchange in the
> markup.
>
>
> no, you do not
>
> -igor
>
>
>
> On 8/9/07, Federico Fanton <[EMAIL PROTECTED]> wrote:
> > >
> > > On Thu, 9 Aug 2007 14:10:58 +0100
> > > "Dipu Seminlal" <[EMAIL PROTECTED]> wrote:
> > >
> > > > Did you add onchange in the markup as well, you need to add it in
> the
> > > markup
> > > > as well
> > > >  name="yourDate"
> > > > onchange="blah"  />
> > >
> > > I'm sorry, do you mean that Wicket replaces the "blah" on the fly? I
> > > thought that behaviors don't need modification to the markup.. Or
> maybe
> > it's
> > > needed just for DateFields?
> > > I'll try with your suggestion though, many thanks :)
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
>


Re: Reacting to DateField change

2007-08-09 Thread Dipu Seminlal
i just tried with the date picker on 1.2.6 and it works, don't know if
anything has changed drastically in 1.3

see the code below

DatePickerSettings datePickerSettings = new DatePickerSettings();
datePickerSettings.setIfFormat("%d/%m/%Y");
datePickerSettings.setStyle(datePickerSettings.newStyleAqua());





 TextField dateField = new TextField("dateField");
 add(dateField);
 add(new DatePicker ("datePicker",dateField));

 final TextField updatedField = new TextField("updatedField");
 updatedField.setOutputMarkupId(true);
 add(updatedField);

 AjaxFormComponentUpdatingBehavior behavior = new
AjaxFormComponentUpdatingBehavior("onchange")
 {

private static final long serialVersionUID = 1L;

protected void onUpdate(AjaxRequestTarget target)
{
testModel.setUpdatedField(testModel.getDateField());
target.addComponent(updatedField);

}

 };
 dateField.add(behavior);






On 8/9/07, Federico Fanton <[EMAIL PROTECTED]> wrote:
>
> On Thu, 9 Aug 2007 15:34:03 +0100
> "Dipu Seminlal" <[EMAIL PROTECTED]> wrote:
>
> > oh yes you need to set the outputMakupId to true, here you go
> >
> > TextField dateField = new TextField("dateField");
>
> D'oh! I'm sorry, I fear I didn't explain myself properly :( The
> "DateField" I'm using is the date picker widget used by Wicket 1.3.. It's
> a FormComponentPanel made of a textfield and an icon which - when clicked -
> pops up a calendar.. So, I attached my behavior to the textfield and it
> works when I change the textfield directly, but I don't know how to
> intercept when _the calendar_ changes the textfield..
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


  1   2   >