Re: How Does Wicket Populate Form Components And Other Stuff

2011-04-03 Thread Alexander Morozov
Hi,

you could use something like http://bindgen.org/ to access to properties in
a bean without reflection (http://code.google.com/p/bindgen-wicket/).


-
--
http://www.linkedin.com/in/amorozov
--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-Does-Wicket-Populate-Form-Components-And-Other-Stuff-tp3423534p3424513.html
Sent from the Users forum mailing list archive at Nabble.com.

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



[Announce] wicketstuff-core 1.4.17 and wicketstuff-core 1.5-RC3 released

2011-04-03 Thread Michael O'Cleirigh

Hello,

Unfortunately for me just after releasing the 1.4.16.1 and 1.5-RC2.1 
wicketstuff-core releases last week the vote occurred for the next set 
of wicket stable versions.


Since they have been released I have just redone the release process for 
wicketstuff-core to create both a 1.4.17 and 1.5-RC3 release.


Development on the next 1.4.x release takes place on the core-1.4.x 
branch: https://github.com/wicketstuff/core/tree/core-1.4.x
Development on the next 1.5.x release takes place on the master branch: 
https://github.com/wicketstuff/core


Issues can be reported here: https://github.com/wicketstuff/core/issues

The Project Wiki is available here: 
https://github.com/wicketstuff/core/wiki


Both have been released through the oss.sonatype.org infrastructure and 
should sync to maven central within 1-2 hours (1.4.17 first and then 
1.5-RC3).


1.4.17 Details:

The release tag is here: 
https://github.com/wicketstuff/core/tree/wicketstuff-core-1.4.17


The main addition is the new wicket-eidogo project with is a web SGF 
editor for go/baduk/igo game.


The full changeset can be see using: git log 
wicketstuff-core-1.4.16.1..wicketstuff-core-1.4.17


1.5-RC3 Details:

The release tag is here: 
https://github.com/wicketstuff/core/tree/wicketstuff-core-1.5-RC3


Nick Wiedenbrueck (10 commits): changes related to the console project

akiraly (9 commits): code cleanup and wicket-html5 changes.

Inaiat Henrique (2 commits): [mootools-meiomask] related

Isammoc (2 commits):  wicket-eidogo related

The full change set can be see using: git log 
wicketstuff-core-1.4-RC2.1..wicketstuff-core-1.5-RC3


I will plan on doing the next release within one month from today.  Let 
me know if you commit something and/or need a point release sooner.


Regards,

Mike

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



Re: actually what i feel is it will be better when

2011-04-03 Thread Ben Tilford
Some things will be better but some things won't. Java and Javscript don't
have a whole lot in common.

On Sat, Apr 2, 2011 at 11:31 PM, hariharansrc wrote:

> we use gwt we can code in java instead of js and then we can use the
> generated js in wicket. This only i thought. Sorry if i am wrong. but for
> me
> it will better when we code in java than in javascript. since i don't want
> to learn a new lang
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/how-to-call-javascript-function-on-form-submission-tp3408147p3423059.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: How Does Wicket Populate Form Components And Other Stuff

2011-04-03 Thread Michael O'Cleirigh

Hi  Carlo,

Look at the wicket interface wicket.model.IModel

public interface IModel  extends IDetachable {

public T getObject();

public void setObject(T value);

}

Every component in wicket has a default model.  Think of the textfield 
case where the model contains the string being entered.  By layering or 
using a specific implementation you can have the value of the text field 
actually stored in a java bean.


Your "how is it loaded?" question is an implementation detail of the 
particular model being used.


For example extending AbstractReadonlyModel would let you pull out a 
specific field in a bean programatically.


Or you could use a CompountPropertyModel that does the same thing but 
using some type of reflection.


Or a LoadableDetachableModel to pull in data from the database or other 
non-serializable context that is reassociated on each request.


This page on the wicket wiki is a good entry point on this topic: 
https://cwiki.apache.org/WICKET/working-with-wicket-models.html


Regards,

Mike


hi,

through what mechanism does it do it?
i was wondering if wicket uses reflection or it generates code on the fly

thanks

On Mon, Apr 4, 2011 at 12:21 AM, James Carmanwrote:


That's not entirely correct.  Wicket uses the models to populate form
components
On Apr 3, 2011 9:11 AM, "Sven Meier"  wrote:

Yes, take a look at org.apache.wicket.util.lang.PropertyResolver

Sven

On 04/03/2011 03:01 PM, Carlo Camerino wrote:

Does wicket use reflection for this purpose?

On Sun, Apr 3, 2011 at 8:50 PM, Carlo Camerino
wrote:

HI,

I was just wondering, what mechanism does Wicket uses to get values

from

Java beans?

Is reflection used or does wicket use a library to do this?
I had a very slow experience when using Reflection, how does Wicket do

it?

Thanks
Carlo



-
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



Dynamic URL path

2011-04-03 Thread Bruno Borges
Hi everyone,

On Wicket 1.5, what is the best way to achieve this:

http://localhost/mountedPage/dynamicPath

And, within the page mounted at "mountedPage", retrieve the "dynamicPath"
value ?

Cheers,

Bruno Borges
www.brunoborges.com.br
+55 21 76727099

"The glory of great men should always be
measured by the means they have used to
acquire it."
 - Francois de La Rochefoucauld


Re: How Does Wicket Populate Form Components And Other Stuff

2011-04-03 Thread Carlo Camerino
hi,

through what mechanism does it do it?
i was wondering if wicket uses reflection or it generates code on the fly

thanks

On Mon, Apr 4, 2011 at 12:21 AM, James Carman wrote:

> That's not entirely correct.  Wicket uses the models to populate form
> components
> On Apr 3, 2011 9:11 AM, "Sven Meier"  wrote:
> > Yes, take a look at org.apache.wicket.util.lang.PropertyResolver
> >
> > Sven
> >
> > On 04/03/2011 03:01 PM, Carlo Camerino wrote:
> >> Does wicket use reflection for this purpose?
> >>
> >> On Sun, Apr 3, 2011 at 8:50 PM, Carlo Camerino >wrote:
> >>
> >>> HI,
> >>>
> >>> I was just wondering, what mechanism does Wicket uses to get values
> from
> >>> Java beans?
> >>>
> >>> Is reflection used or does wicket use a library to do this?
> >>> I had a very slow experience when using Reflection, how does Wicket do
> it?
> >>>
> >>> Thanks
> >>> Carlo
> >>>
> >
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
>


Re: IndexedParamUrlCodingStrategy pageparameter null

2011-04-03 Thread devush
Hi,
 Thanks, yes I have ignored that. It is now working. You have saved my weekend!
thanks
devush
PS: Sorry, by mistake I directly replied to Martin.

On 3 April 2011 17:54, Martin Grigorov  wrote:
> I guess you forgot to call super(pageParameters) in your page ctor
>
> On Sun, Apr 3, 2011 at 7:48 PM, devush  wrote:
>>
>> Hi,
>>
>> (Wicket 1.4.8 in the development mode)
>>
>> I am mounting my page like this:
>>
>> mount(new IndexedParamUrlCodingStrategy("/i/about", AboutPage.class));
>>
>> I am able to call  "/i/about" without any problems, but when I call
>> "/i/about/somevalue" I expect to have PageParameters not null.
>>
>> I am calling this in my web page, but p is always null.
>> PageParameters p = getPageParameters();
>>
>> Is not that the PageParameters should have 0=somevalue, which i should
>> be getting  by p.getString("0");
>>
>>
>> thanks,
>> devush
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>
>
>
> --
> Martin Grigorov
> jWeekend
> Training, Consulting, Development
> http://jWeekend.com
>

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



Re: Wicket For Mobile

2011-04-03 Thread Bruno Borges
I've written a custom ResourceNameIterator (to be used in a custom
ResourceStreamLocator), that based on a user agent, can load specific HTMLs.

The concept is pretty simple, and what it does is to try loading a resource
based on this names pattern:

Page..
Page.m. // generic mobile version
Page.

Where  can be 'android', 'iphone', 'ipad', 'blackberry' or whatever
you want it to be.

The only requirement is that the resource must have the same component
structure as the Java class (the Wicket way). But of course, one can check
few things to not render this or that component.



Bruno Borges
www.brunoborges.com.br
+55 21 76727099

"The glory of great men should always be
measured by the means they have used to
acquire it."
 - Francois de La Rochefoucauld



On Sun, Apr 3, 2011 at 11:52 AM, Martin Makundi <
martin.maku...@koodaripalvelut.com> wrote:

> http://www.thebuzzmedia.com/apache-wicket-powers-mobile-walmart-com/
>
> 2011/4/3 Ayodeji Aladejebi :
> > Hi,
> > I like to find out the compatibility of wicket on mobile phones?
> especially
> > the wicket javascript
> > Have there been any publication or any project discussing wicket
> > compatibility on Mobile Devices
> >
> > Thanks
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: IndexedParamUrlCodingStrategy pageparameter null

2011-04-03 Thread Martin Grigorov
I guess you forgot to call super(pageParameters) in your page ctor

On Sun, Apr 3, 2011 at 7:48 PM, devush  wrote:

> Hi,
>
> (Wicket 1.4.8 in the development mode)
>
> I am mounting my page like this:
>
> mount(new IndexedParamUrlCodingStrategy("/i/about", AboutPage.class));
>
> I am able to call  "/i/about" without any problems, but when I call
> "/i/about/somevalue" I expect to have PageParameters not null.
>
> I am calling this in my web page, but p is always null.
> PageParameters p = getPageParameters();
>
> Is not that the PageParameters should have 0=somevalue, which i should
> be getting  by p.getString("0");
>
>
> thanks,
> devush
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com 


IndexedParamUrlCodingStrategy pageparameter null

2011-04-03 Thread devush
Hi,

(Wicket 1.4.8 in the development mode)

I am mounting my page like this:

mount(new IndexedParamUrlCodingStrategy("/i/about", AboutPage.class));

I am able to call  "/i/about" without any problems, but when I call
"/i/about/somevalue" I expect to have PageParameters not null.

I am calling this in my web page, but p is always null.
PageParameters p = getPageParameters();

Is not that the PageParameters should have 0=somevalue, which i should
be getting  by p.getString("0");


thanks,
devush

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



Re: How Does Wicket Populate Form Components And Other Stuff

2011-04-03 Thread James Carman
That's not entirely correct.  Wicket uses the models to populate form
components
On Apr 3, 2011 9:11 AM, "Sven Meier"  wrote:
> Yes, take a look at org.apache.wicket.util.lang.PropertyResolver
>
> Sven
>
> On 04/03/2011 03:01 PM, Carlo Camerino wrote:
>> Does wicket use reflection for this purpose?
>>
>> On Sun, Apr 3, 2011 at 8:50 PM, Carlo Camerinowrote:
>>
>>> HI,
>>>
>>> I was just wondering, what mechanism does Wicket uses to get values from
>>> Java beans?
>>>
>>> Is reflection used or does wicket use a library to do this?
>>> I had a very slow experience when using Reflection, how does Wicket do
it?
>>>
>>> Thanks
>>> Carlo
>>>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>


Re: Wicket For Mobile

2011-04-03 Thread Martin Makundi
http://www.thebuzzmedia.com/apache-wicket-powers-mobile-walmart-com/

2011/4/3 Ayodeji Aladejebi :
> Hi,
> I like to find out the compatibility of wicket on mobile phones? especially
> the wicket javascript
> Have there been any publication or any project discussing wicket
> compatibility on Mobile Devices
>
> Thanks
>

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



Wicket For Mobile

2011-04-03 Thread Ayodeji Aladejebi
Hi,
I like to find out the compatibility of wicket on mobile phones? especially
the wicket javascript
Have there been any publication or any project discussing wicket
compatibility on Mobile Devices

Thanks


Re: fter 1 minute the Pagemap null is still locked by: Thread[[ACTIVE]

2011-04-03 Thread Jeremy Thomerson
You should use some asynchronous querying.  In other words, you search is
submitted to a background process and the Wicket request completes to some
intermediary "please wait while we do your search" page (like all the big
airline middlemen do)  It polls the background service to see if it's
complete, and when it is, continues on.

You don't want page requests that literally take minutes.

-- 
Jeremy Thomerson
http://wickettraining.com
*Need a CMS for Wicket?  Use Brix! http://brixcms.org*



On Sun, Apr 3, 2011 at 9:47 AM, fachhoch  wrote:

> we have a complex search  screen , right now the query behind the search
>  is
> not tuned , sometimes for different combinations search takes very long
> time
> and I get
>
> [raw]
> Caused by: org.apache.wicket.WicketRuntimeException: After 1 minute the
> Pagemap null is still locked by: Thread[[ACTIVE] ExecuteThread: '3' for
> queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads], giving up
> trying to get the page for path: 2
> [raw/]
>
> once I get this error then   all links becomes non functional ,ie I click
> on
> the link nothing happens all my links are ajax links .only way to get rid
> of
> this error is kill the session ie kill the browser and open new browser  .
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/fter-1-minute-the-Pagemap-null-is-still-locked-by-Thread-ACTIVE-tp3423610p3423610.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: How to display time for page generation ?

2011-04-03 Thread Isammoc OFF
Thanks to you two,

2011/4/3 Martin Grigorov :
> Or org.apache.wicket.markup.html.ServerTimeFilter

I think it is what I was looking for.
But I think I will create my own IResponseFilter, in a similar way,
but to modify something else that "".

> On Sun, Apr 3, 2011 at 5:34 AM, Pedro Santos  wrote:
>
>> Hi, the RequestLogger API can help you.
>>
>> http://wicket.apache.org/apidocs/1.4/org/apache/wicket/protocol/http/RequestLogger.html

I don't get how to manage with this.

Thanks again, Martin and Pedro
-- 
Isammoc

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



fter 1 minute the Pagemap null is still locked by: Thread[[ACTIVE]

2011-04-03 Thread fachhoch
we have a complex search  screen , right now the query behind the search  is
not tuned , sometimes for different combinations search takes very long time
and I get 

[raw]
Caused by: org.apache.wicket.WicketRuntimeException: After 1 minute the
Pagemap null is still locked by: Thread[[ACTIVE] ExecuteThread: '3' for
queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads], giving up
trying to get the page for path: 2
[raw/]  

once I get this error then   all links becomes non functional ,ie I click on
the link nothing happens all my links are ajax links .only way to get rid of
this error is kill the session ie kill the browser and open new browser  .
 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/fter-1-minute-the-Pagemap-null-is-still-locked-by-Thread-ACTIVE-tp3423610p3423610.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: How Does Wicket Populate Form Components And Other Stuff

2011-04-03 Thread Sven Meier

Yes, take a look at org.apache.wicket.util.lang.PropertyResolver

Sven

On 04/03/2011 03:01 PM, Carlo Camerino wrote:

Does wicket use reflection for this purpose?

On Sun, Apr 3, 2011 at 8:50 PM, Carlo Camerinowrote:


HI,

I was just wondering, what mechanism does Wicket uses to get values from
Java beans?

Is reflection used or does wicket use a library to do this?
I had a very slow experience when using Reflection, how does Wicket do it?

Thanks
Carlo




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



Re: How Does Wicket Populate Form Components And Other Stuff

2011-04-03 Thread Carlo Camerino
Does wicket use reflection for this purpose?

On Sun, Apr 3, 2011 at 8:50 PM, Carlo Camerino wrote:

> HI,
>
> I was just wondering, what mechanism does Wicket uses to get values from
> Java beans?
>
> Is reflection used or does wicket use a library to do this?
> I had a very slow experience when using Reflection, how does Wicket do it?
>
> Thanks
> Carlo
>


How Does Wicket Populate Form Components And Other Stuff

2011-04-03 Thread Carlo Camerino
HI,

I was just wondering, what mechanism does Wicket uses to get values from
Java beans?

Is reflection used or does wicket use a library to do this?
I had a very slow experience when using Reflection, how does Wicket do it?

Thanks
Carlo


Re: Strange behaviour in WicketTester when Ajax-clicking on a deselected checkbox

2011-04-03 Thread David Hendrix

On 01.04.2011 00:25, Pedro Santos wrote:

Hi David, looks like a bug, please create a ticket + upload the quickstart.
As a side note, wicket tester do not encode the form state between requests.
If you submit a form a second time, the request parameters for fields you
didn't set will be empty, and will look like the user had cleared the form.



Thanks Pedro,

upon further investigation, I found out, that I was wrong...
I was under the delusion, that with an AjaxCheckBox executing the 
onClick would be sufficient and thus didn't call FormTester.setValue(), 
which resulted in the Model being false after my test in any case (which 
looked OK for deselecting checkboxes).


Thanks for your reply anyway, I really appreciate the help one can get 
on this list.


David Hendrix

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



[announce] Wicket 1.5-RC3 is released

2011-04-03 Thread Martin Grigorov
The Wicket Team is proud to introduce the third Release Candidate in
Wicket 1.5 series. It includes bug fixes and improvements reported against
1.5-rc2. See the changelog for full list.

More detailed migration notes are available on our [Migrate to 1.5
Wiki Page](https://cwiki.apache.org/WICKET/migration-to-wicket-15.html)

Release Artifacts:
* Subversion tag:
http://svn.apache.org/repos/asf/wicket/releases/wicket-1.5-RC3
* Changelog:
https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12310561&version=12316220
* To use in Maven:

   org.apache.wicket
   wicket-core
   1.5-RC3

* Download the full distribution:
http://www.apache.org/dyn/closer.cgi/wicket/1.5-RC3 (including source)

The Wicket Team!


[announce] Wicket .1.4.17 is released

2011-04-03 Thread Martin Grigorov
The Wicket Team is proud to release the seventeenth release of the Wicket
1.4.x series.
This is primarily a minor bugfix release.

Release Artifacts:
* Subversion tag:
http://svn.apache.org/repos/asf/wicket/releases/wicket-1.4.17
* Changelog:
https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12310561&version=12316219
* To use in Maven:

   org.apache.wicket
   wicket
   1.4.17

* Download the full distribution:
http://www.apache.org/dyn/closer.cgi/wicket/1.4.17 (including source)

The Wicket Team!


Re: How to display time for page generation ?

2011-04-03 Thread Martin Grigorov
Or org.apache.wicket.markup.html.ServerTimeFilter

On Sun, Apr 3, 2011 at 5:34 AM, Pedro Santos  wrote:

> Hi, the RequestLogger API can help you.
>
> http://wicket.apache.org/apidocs/1.4/org/apache/wicket/protocol/http/RequestLogger.html
>
> On Sat, Apr 2, 2011 at 5:21 PM, Isammoc OFF  wrote:
>
> > Hi all,
> >
> > I would like to display a footer with the time spent to generate the
> page.
> >
> > How can I do something like "generated in 0.123s" ?
> >
> > Timestamp difference between start and end of the Page constructor is
> > obviously not the solution.
> > And I didn't find anything in Nabble... (815 answer for "time page
> > generation")
> >
> > If the discussion already happened, please send me a link.
> >
> > Thanks,
> >
> > --
> > Isammoc
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
>
>
> --
> Pedro Henrique Oliveira dos Santos
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com