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


Image Tag Wicket Processing

2011-02-03 Thread Ayodeji Aladejebi
Pleas how can I stop wicket from processing my images and inserting onclick
=window.location.href

thanks


Re: Image Tag Wicket Processing

2011-02-03 Thread Ayodeji Aladejebi
If you have this in your markup:

img src=images/tree10.png
style=padding-right:4px;vertical-align:text-top; /

by the time it renders in wicket by default,it becomes

 img src=images/tree10.png
style=padding-right:4px;vertical-align:text-top;
onclick=window.location.href='images/tree10.png';return false;/

As simple as that

Any tips



On Thu, Feb 3, 2011 at 7:38 PM, James Carman ja...@carmanconsulting.comwrote:

 Can you create a quickstart that exhibits that behavior?  I have never
 seen this.

 On Thu, Feb 3, 2011 at 1:34 PM, Ayodeji Aladejebi aladej...@gmail.com
 wrote:
  Pleas how can I stop wicket from processing my images and inserting
 onclick
  =window.location.href
 
  thanks
 

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




-- 
Aladejebi Ayodeji A.,
DabarObjects Solutions
Phone: +234 9 875 1763
Mobile: +234 803 589 1780
Email: d...@dabarobjects.com
Web: www.dabarobjects.com


Re: Image Tag Wicket Processing

2011-02-03 Thread Ayodeji Aladejebi
In the application settings: I used

getMarkupSettings().setAutomaticLinking(true);

thats all

On Fri, Feb 4, 2011 at 2:27 AM, Ayodeji Aladejebi aladej...@gmail.comwrote:

 If you have this in your markup:

 img src=images/tree10.png
 style=padding-right:4px;vertical-align:text-top; /

 by the time it renders in wicket by default,it becomes

  img src=images/tree10.png
 style=padding-right:4px;vertical-align:text-top;
 onclick=window.location.href='images/tree10.png';return false;/

 As simple as that

 Any tips



 On Thu, Feb 3, 2011 at 7:38 PM, James Carman 
 ja...@carmanconsulting.comwrote:

 Can you create a quickstart that exhibits that behavior?  I have never
 seen this.

 On Thu, Feb 3, 2011 at 1:34 PM, Ayodeji Aladejebi aladej...@gmail.com
 wrote:
  Pleas how can I stop wicket from processing my images and inserting
 onclick
  =window.location.href
 
  thanks
 

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







Re: Image Tag Wicket Processing

2011-02-03 Thread Ayodeji Aladejebi
If I set Application Settings to

getMarkupSettings().setAutomaticLinking(false);

my user interface is scattered as it no longer recognizes my CSS file, then
wicket changes my css tags from

link href=style/jobex-style.css rel=stylesheet type=text/css /

To:

link href=../style/jobex-style.css rel=stylesheet type=text/css/

and my CSS files stop resolving

I will appreciate any help with this

On Fri, Feb 4, 2011 at 2:29 AM, Ayodeji Aladejebi aladej...@gmail.comwrote:

 In the application settings: I used

 getMarkupSettings().setAutomaticLinking(true);

 thats all


 On Fri, Feb 4, 2011 at 2:27 AM, Ayodeji Aladejebi aladej...@gmail.comwrote:

 If you have this in your markup:

 img src=images/tree10.png
 style=padding-right:4px;vertical-align:text-top; /

 by the time it renders in wicket by default,it becomes

  img src=images/tree10.png
 style=padding-right:4px;vertical-align:text-top;
 onclick=window.location.href='images/tree10.png';return false;/

 As simple as that

 Any tips



 On Thu, Feb 3, 2011 at 7:38 PM, James Carman 
 ja...@carmanconsulting.comwrote:

 Can you create a quickstart that exhibits that behavior?  I have never
 seen this.

 On Thu, Feb 3, 2011 at 1:34 PM, Ayodeji Aladejebi aladej...@gmail.com
 wrote:
  Pleas how can I stop wicket from processing my images and inserting
 onclick
  =window.location.href
 
  thanks
 

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








Web: www.dabarobjects.com


Re: [announce] wicketstuff-core 1.4.10 released

2011-01-20 Thread Ayodeji Aladejebi
PLease where do I download stable releases on Wicket Stuff compatible with
Wicket 1.4.x?

thanks

On Fri, Aug 13, 2010 at 4:33 AM, Michael O'Cleirigh 
michael.ocleir...@rivulet.ca wrote:

 Hello,

 Since wicket 1.4.10 was released this week it follows that a
 wicketstuff-core release is due as well.

 The branch for 1.4.10.1-SNAPSHOT is located here:
 https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/branches/wicketstuff-core-1.4.10

 And the release tag:
 https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/tags/wicketstuff-core-1.4.10

 The artifacts have been promoted and are available via maven central like
 this:

 dependency
 groupIdorg.wicketstuff/groupId
 artifactIdjasperreports/artifactId
 version1.4.10/version
 /dependency

 Java 5 compatible projects:

 [INFO] Java 5 Modules - Parent ... SUCCESS
 [18.006s]
 [INFO] Wicket-Scala Parent ... SUCCESS
 [3.541s]
 [INFO] Wicket-Scala .. SUCCESS
 [12.034s]
 [INFO] Wicket-Scala Samples .. SUCCESS
 [8.617s]
 [INFO] Wicket-Scala Archetype  SUCCESS
 [4.006s]
 [INFO] Wicket Annotations  SUCCESS
 [11.665s]
 [INFO] JSLibraries ... SUCCESS
 [18.933s]
 [INFO] CalendarViews - Parent  SUCCESS
 [2.356s]
 [INFO] CalendarViews . SUCCESS
 [13.149s]
 [INFO] CalendarViews - Examples .. SUCCESS
 [13.064s]
 [INFO] Client and Server Validation .. SUCCESS
 [8.854s]
 [INFO] Datatable Autocomplete - Parent ... SUCCESS
 [1.834s]
 [INFO] Datatable Autocomplete Common . SUCCESS
 [11.969s]
 [INFO] Datatable Autocomplete  SUCCESS
 [22.470s]
 [INFO] Datatable Autocomplete Examples ... SUCCESS
 [11.275s]
 [INFO] DataTable Autocomplete Test ... SUCCESS
 [9.553s]
 [INFO] GMap2 - Parent  SUCCESS
 [1.629s]
 [INFO] GMap2 . SUCCESS
 [13.844s]
 [INFO] GMap2 - Examples .. SUCCESS
 [23.301s]
 [INFO] Google Charts - Parent  SUCCESS
 [1.321s]
 [INFO] Google Charts . SUCCESS
 [10.642s]
 [INFO] Google Charts - Examples .. SUCCESS
 [9.498s]
 [INFO] InMethod Grid Parent .. SUCCESS
 [2.787s]
 [INFO] InMethod Grid . SUCCESS
 [21.048s]
 [INFO] InMethod Grid Examples  SUCCESS
 [19.089s]
 [INFO] Input Events - Parent . SUCCESS
 [2.222s]
 [INFO] Input Events .. SUCCESS
 [11.158s]
 [INFO] Input Events - Examples ... SUCCESS
 [10.052s]
 [INFO] Misc .. SUCCESS
 [9.961s]
 [INFO] JQuery Integration - Parent ... SUCCESS
 [1.782s]
 [INFO] JQuery Integration  SUCCESS
 [27.317s]
 [INFO] JQuery Integration - Examples . SUCCESS
 [23.535s]
 [INFO] JSR303 - Parent ... SUCCESS
 [1.489s]
 [INFO] JSR303  SUCCESS
 [8.803s]
 [INFO] JSR303 - Examples . SUCCESS
 [13.364s]
 [INFO] Minis - Parent  SUCCESS
 [1.277s]
 [INFO] Minis . SUCCESS
 [14.971s]
 [INFO] Minis - Examples .. SUCCESS
 [11.559s]
 [INFO] ObjectAutoComplete - Parent ... SUCCESS
 [1.526s]
 [INFO] ObjectAutoComplete  SUCCESS
 [9.847s]
 [INFO] ObjectAutoComplete - Examples . SUCCESS
 [15.946s]
 [INFO] Openlayers Integration - Parent ... SUCCESS
 [1.292s]
 [INFO] Openlayers  SUCCESS
 [15.991s]
 [INFO] Openlayers - Proxy  SUCCESS
 [7.649s]
 [INFO] Openlayers - Examples . SUCCESS
 [17.784s]
 [INFO] Wicket Phonebook Example .. SUCCESS
 [22.908s]
 [INFO] Prototype Integration . SUCCESS
 [6.988s]
 [INFO] Scriptaculous Integration - Parent  SUCCESS
 [1.758s]
 [INFO] Scriptaculous Integration . SUCCESS
 [17.392s]
 [INFO] Scriptaculous Integration - Examples .. SUCCESS
 [11.109s]
 [INFO] Simile Timeline - Parent .. SUCCESS
 

Re: Removing jsessionid from URl

2010-09-23 Thread Ayodeji Aladejebi
is it because a user disables cookies in the browser?

On Wed, Sep 22, 2010 at 7:35 AM, Wilhelmsen Tor Iver toriv...@arrive.nowrote:

  I have been tryin to figure out what to do to remove jsessionid from
  the URL

 The web container will add that to the first response URL when a session is
 created in case cookies are not supported. What is corny is that this is not
 further maintained (in a non-cookie situation) without the developer
 explicitly calling ServletResponse.encodeURL() for all URLs - the container
 should maintain the responsibility for you.

 - Tor Iver

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




-- 
Aladejebi Ayodeji A.,
DabarObjects Solutions
Phone: +234 9 875 1763
Mobile: +234 803 589 1780
Email: d...@dabarobjects.com
Web: www.dabarobjects.com


Removing jsessionid from URl

2010-09-21 Thread Ayodeji Aladejebi
Hi,

I have been tryin to figure out what to do to remove jsessionid from the URL

I have mount(new QueryStringUrlCodingStrategy(/home, AppHomePage.class));

All my links are BookmarkablePageLinks.

am using wicket 1.4.8 on Apache Tomcat/6.0.29


javadoc suggestion: @Since Wicket 1.4

2010-08-26 Thread Ayodeji Aladejebi
javadoc suggestion: @since Wicket 1.5
Just to help identify which components are not available in a version


-- 
Aladejebi Ayodeji A.,


AjaxSelfUpdatingTimerBehavior refreshing Entire Page

2010-06-07 Thread Ayodeji Aladejebi
Hi,
I placed AjaxSelfUpdatingTimerBehavior on a component of an Application and
rather than refresh the component only, its refreshing the entire page.
its acting like i clicked on browser refresh button
 Pls what did I do wrong

projectPostCont.add(new AjaxSelfUpdatingTimerBehavior(Duration.seconds(5)));


Repeaters Without A Wrapper

2010-05-21 Thread Ayodeji Aladejebi
Hi,
pls what type of repeater can I use for markups like these

h2Heading 1/h2
divBody 1/

h2Heading 2/h2
divBody 2/

h2Heading 3/h2
divBody 3/

 ListView normally generates these

div
h2Heading 1/h2
divBody 1/
/div

div
h2Heading 2/h2
divBody 2/
/div

div
h2Heading 3/h2
divBody 3/
/div


Re: Repeaters Without A Wrapper

2010-05-21 Thread Ayodeji Aladejebi
wicket:container, wicket:container pls any clearer references? kinda stuck

On Sat, May 22, 2010 at 4:11 AM, Matthew R Hanlon mrhan...@gmail.comwrote:

 If you don't need ajax updating you can use wicket:container to attach
 the listview.  It won't acutally get rendered.


 On May 21, 2010, at 10:07 PM, Ayodeji Aladejebi wrote:

  Hi,
  pls what type of repeater can I use for markups like these
 
  h2Heading 1/h2
  divBody 1/
 
  h2Heading 2/h2
  divBody 2/
 
  h2Heading 3/h2
  divBody 3/
 
  ListView normally generates these
 
  div
  h2Heading 1/h2
  divBody 1/
  /div
 
  div
  h2Heading 2/h2
  divBody 2/
  /div
 
  div
  h2Heading 3/h2
  divBody 3/
  /div


 ---

 Matthew R Hanlon






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




Re: Repeaters Without A Wrapper

2010-05-21 Thread Ayodeji Aladejebi
I was thinking i could override onComponenttag somehow to get this done



On Sat, May 22, 2010 at 4:30 AM, Jeremy Thomerson jer...@wickettraining.com
 wrote:

 First search result: http://www.lmgtfy.com/?q=wicket%3Acontainer

 --
 Jeremy Thomerson
 http://www.wickettraining.com



 On Fri, May 21, 2010 at 10:18 PM, Ayodeji Aladejebi aladej...@gmail.com
 wrote:

  wicket:container, wicket:container pls any clearer references? kinda
 stuck
 
  On Sat, May 22, 2010 at 4:11 AM, Matthew R Hanlon mrhan...@gmail.com
  wrote:
 
   If you don't need ajax updating you can use wicket:container to
 attach
   the listview.  It won't acutally get rendered.
  
  
   On May 21, 2010, at 10:07 PM, Ayodeji Aladejebi wrote:
  
Hi,
pls what type of repeater can I use for markups like these
   
h2Heading 1/h2
divBody 1/
   
h2Heading 2/h2
divBody 2/
   
h2Heading 3/h2
divBody 3/
   
ListView normally generates these
   
div
h2Heading 1/h2
divBody 1/
/div
   
div
h2Heading 2/h2
divBody 2/
/div
   
div
h2Heading 3/h2
divBody 3/
/div
  
  
   ---
  
   Matthew R Hanlon
  
  
  
  
  
  
   -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
  
 



Re: Repeaters Without A Wrapper

2010-05-21 Thread Ayodeji Aladejebi
@Jeremy :)

On Sat, May 22, 2010 at 4:32 AM, Ayodeji Aladejebi aladej...@gmail.comwrote:

 I was thinking i could override onComponenttag somehow to get this done



 On Sat, May 22, 2010 at 4:30 AM, Jeremy Thomerson 
 jer...@wickettraining.com wrote:

 First search result: http://www.lmgtfy.com/?q=wicket%3Acontainer

 --
 Jeremy Thomerson
 http://www.wickettraining.com



 On Fri, May 21, 2010 at 10:18 PM, Ayodeji Aladejebi aladej...@gmail.com
 wrote:

  wicket:container, wicket:container pls any clearer references? kinda
 stuck
 
  On Sat, May 22, 2010 at 4:11 AM, Matthew R Hanlon mrhan...@gmail.com
  wrote:
 
   If you don't need ajax updating you can use wicket:container to
 attach
   the listview.  It won't acutally get rendered.
  
  
   On May 21, 2010, at 10:07 PM, Ayodeji Aladejebi wrote:
  
Hi,
pls what type of repeater can I use for markups like these
   
h2Heading 1/h2
divBody 1/
   
h2Heading 2/h2
divBody 2/
   
h2Heading 3/h2
divBody 3/
   
ListView normally generates these
   
div
h2Heading 1/h2
divBody 1/
/div
   
div
h2Heading 2/h2
divBody 2/
/div
   
div
h2Heading 3/h2
divBody 3/
/div
  
  
   ---
  
   Matthew R Hanlon
  
  
  
  
  
  
   -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
  
 







Re: Repeaters Without A Wrapper

2010-05-21 Thread Ayodeji Aladejebi
Thanks Mattew.!

On Sat, May 22, 2010 at 4:34 AM, Ayodeji Aladejebi aladej...@gmail.comwrote:

 @Jeremy :)


 On Sat, May 22, 2010 at 4:32 AM, Ayodeji Aladejebi aladej...@gmail.comwrote:

 I was thinking i could override onComponenttag somehow to get this done



 On Sat, May 22, 2010 at 4:30 AM, Jeremy Thomerson 
 jer...@wickettraining.com wrote:

 First search result: http://www.lmgtfy.com/?q=wicket%3Acontainer

 --
 Jeremy Thomerson
 http://www.wickettraining.com



 On Fri, May 21, 2010 at 10:18 PM, Ayodeji Aladejebi aladej...@gmail.com
 wrote:

  wicket:container, wicket:container pls any clearer references? kinda
 stuck
 
  On Sat, May 22, 2010 at 4:11 AM, Matthew R Hanlon mrhan...@gmail.com
  wrote:
 
   If you don't need ajax updating you can use wicket:container to
 attach
   the listview.  It won't acutally get rendered.
  
  
   On May 21, 2010, at 10:07 PM, Ayodeji Aladejebi wrote:
  
Hi,
pls what type of repeater can I use for markups like these
   
h2Heading 1/h2
divBody 1/
   
h2Heading 2/h2
divBody 2/
   
h2Heading 3/h2
divBody 3/
   
ListView normally generates these
   
div
h2Heading 1/h2
divBody 1/
/div
   
div
h2Heading 2/h2
divBody 2/
/div
   
div
h2Heading 3/h2
divBody 3/
/div
  
  
   ---
  
   Matthew R Hanlon
  
  
  
  
  
  
   -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
  
 










Another Wicket Site

2010-05-18 Thread Ayodeji Aladejebi
Hi all,
just to announce another wicket project I am working on. we
just launched the beta version

http://www.nelexnigeria.com



-- 
Aladejebi Ayodeji A.,
DabarObjects Solutions
Phone: +234 9 875 1763
Mobile: +234 803 589 1780
Email: d...@dabarobjects.com
Web: www.dabarobjects.com


Re: SEVERE:Pagemap null is still locked by: Thread

2010-05-18 Thread Ayodeji Aladejebi
I notice this:

After 3 minutes the Pagemap null is still locked by:
Thread[http-8084-2,5,main], giving up trying to get the page for path:
2:topAdverts:advertListCont

What happened was that I called  ((WebRequestCycle)
WebRequestCycle.get()).getWebRequest().getQueryString() within
onBeginRequest of RequestCycle. This is what normally leads to this problem



On Fri, May 7, 2010 at 9:57 PM, Ayodeji Aladejebi aladej...@gmail.comwrote:

 version 1.4.6 on windows vista running on tomcat 6.0.26


 On Wed, May 5, 2010 at 5:43 PM, Johan Compagner jcompag...@gmail.comwrote:

 hmm

 looking at the stack of the of that thread that has the lock on the page
 map
 then it seems to me that that shouldnt happen, because that thread is
 doing
 nothing anymore if the stack dump of that thread is really the right one.

 Because that just seems to be in a waiting state in a tomcat pool

 So then it is more that there is some exception in front of that maybe
 that
 somehow didnt release the pagemap
 What version of wicket do you use?


 On Tue, May 4, 2010 at 23:40, Ayodeji Aladejebi aladej...@gmail.com
 wrote:

  SEVERE: org.apache.wicket.WicketRuntimeException: After 1 minute the
  Pagemap
  null is still locked by: Thread[http-8084-7,5,main], giving up trying to
  get
  the page for path: 2
 Begin of stack trace of Thread[http-8084-7,5,main]
 java.lang.Object.wait(Native Method)
 java.lang.Object.wait(Object.java:485)
 
 
  org.apache.tomcat.util.net.AprEndpoint$Worker.await(AprEndpoint.java:1511)
 
 
  org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1536)
 java.lang.Thread.run(Thread.java:619)
 End of stack trace of Thread[http-8084-7,5,main]
  org.apache.wicket.protocol.http.request.InvalidUrlException:
  org.apache.wicket.WicketRuntimeException: After 1 minute the Pagemap
 null
  is
  still locked by: Thread[http-8084-7,5,main], giving up trying to get the
  page for path: 2
 Begin of stack trace of Thread[http-8084-7,5,main]
 java.lang.Object.wait(Native Method)
 java.lang.Object.wait(Object.java:485)
 
 
  org.apache.tomcat.util.net.AprEndpoint$Worker.await(AprEndpoint.java:1511)
 
 
  org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1536)
 java.lang.Thread.run(Thread.java:619)
 End of stack trace of Thread[http-8084-7,5,main]
 
  -- Any tips
 
  I
 







Wicket:Form support?

2010-05-17 Thread Ayodeji Aladejebi
Sorry, I was only more conversant with older releases of wicket.
Is there any
wicket:form without users having to make it an inner class of a Panel. A
form with its own top level markups


Empty List Default Message

2010-05-17 Thread Ayodeji Aladejebi
I think wicket should have a ListView detault Empty Model message so that
one can set what will be displayed if the List Model is empty


Shared Components

2010-05-13 Thread Ayodeji Aladejebi
Hi,

Please any concept of shared components in Wicket. If I have a component
that the content (model) will always be the same across all sessions and
users, is there a wicket api approach for ensuring we only have one of such
components throughout the application scope

-- 
Aladejebi Ayodeji A.,


Re: Shared Components

2010-05-13 Thread Ayodeji Aladejebi
For example, I have a Label that displays data using a ReadOnlyModel. That
data will NEVER be written to by any user. they only read from it EVER. ONLY
ONE user can write to it (admin maybe)

Thats what I mean.

On Thu, May 13, 2010 at 5:28 PM, Frank Silbermann 
frank.silberm...@fedex.com wrote:

 I don't understand the question.  I may be viewing the same web page as
 you, but that doesn't mean we should share the same computer display
 monitor.  If there are two copies of the display (yours and mine), then
 there should be two copies of the display's components.

 What's wrong with just building the model for each user's component
 around the same application-scoped Java POJO?  (Of course, you might
 have to synchronize concurrent access to it, but that's just standard
 Java.)

 On Thu, May 13, 2010 at 12:38 PM, Ayodeji Aladejebi
 aladej...@gmail.comwrote:
 
  Please any concept of shared components in Wicket. If I have a
 component
  that the content (model) will always be the same across all sessions
 and
  users, is there a wicket api approach for ensuring we only have one of
 such
  components throughout the application scope



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




Re: SEVERE:Pagemap null is still locked by: Thread

2010-05-07 Thread Ayodeji Aladejebi
version 1.4.6 on windows vista running on tomcat 6.0.26

On Wed, May 5, 2010 at 5:43 PM, Johan Compagner jcompag...@gmail.comwrote:

 hmm

 looking at the stack of the of that thread that has the lock on the page
 map
 then it seems to me that that shouldnt happen, because that thread is doing
 nothing anymore if the stack dump of that thread is really the right one.

 Because that just seems to be in a waiting state in a tomcat pool

 So then it is more that there is some exception in front of that maybe that
 somehow didnt release the pagemap
 What version of wicket do you use?


 On Tue, May 4, 2010 at 23:40, Ayodeji Aladejebi aladej...@gmail.com
 wrote:

  SEVERE: org.apache.wicket.WicketRuntimeException: After 1 minute the
  Pagemap
  null is still locked by: Thread[http-8084-7,5,main], giving up trying to
  get
  the page for path: 2
 Begin of stack trace of Thread[http-8084-7,5,main]
 java.lang.Object.wait(Native Method)
 java.lang.Object.wait(Object.java:485)
 
 
  org.apache.tomcat.util.net.AprEndpoint$Worker.await(AprEndpoint.java:1511)
 
   org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1536)
 java.lang.Thread.run(Thread.java:619)
 End of stack trace of Thread[http-8084-7,5,main]
  org.apache.wicket.protocol.http.request.InvalidUrlException:
  org.apache.wicket.WicketRuntimeException: After 1 minute the Pagemap null
  is
  still locked by: Thread[http-8084-7,5,main], giving up trying to get the
  page for path: 2
 Begin of stack trace of Thread[http-8084-7,5,main]
 java.lang.Object.wait(Native Method)
 java.lang.Object.wait(Object.java:485)
 
 
  org.apache.tomcat.util.net.AprEndpoint$Worker.await(AprEndpoint.java:1511)
 
   org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1536)
 java.lang.Thread.run(Thread.java:619)
 End of stack trace of Thread[http-8084-7,5,main]
 
  -- Any tips
 
  I
 



SEVERE:Pagemap null is still locked by: Thread

2010-05-04 Thread Ayodeji Aladejebi
SEVERE: org.apache.wicket.WicketRuntimeException: After 1 minute the Pagemap
null is still locked by: Thread[http-8084-7,5,main], giving up trying to get
the page for path: 2
Begin of stack trace of Thread[http-8084-7,5,main]
java.lang.Object.wait(Native Method)
java.lang.Object.wait(Object.java:485)

 org.apache.tomcat.util.net.AprEndpoint$Worker.await(AprEndpoint.java:1511)

 org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1536)
java.lang.Thread.run(Thread.java:619)
End of stack trace of Thread[http-8084-7,5,main]
org.apache.wicket.protocol.http.request.InvalidUrlException:
org.apache.wicket.WicketRuntimeException: After 1 minute the Pagemap null is
still locked by: Thread[http-8084-7,5,main], giving up trying to get the
page for path: 2
Begin of stack trace of Thread[http-8084-7,5,main]
java.lang.Object.wait(Native Method)
java.lang.Object.wait(Object.java:485)

 org.apache.tomcat.util.net.AprEndpoint$Worker.await(AprEndpoint.java:1511)

 org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1536)
java.lang.Thread.run(Thread.java:619)
End of stack trace of Thread[http-8084-7,5,main]

-- Any tips

I


Re: SEVERE:Pagemap null is still locked by: Thread

2010-05-04 Thread Ayodeji Aladejebi
or more like a thread must not block for that long?

On Tue, May 4, 2010 at 11:01 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote:

 dont execute code that takes 1+ minutes to finish inside a web thread

 -igor

 On Tue, May 4, 2010 at 2:40 PM, Ayodeji Aladejebi aladej...@gmail.com
 wrote:
  SEVERE: org.apache.wicket.WicketRuntimeException: After 1 minute the
 Pagemap
  null is still locked by: Thread[http-8084-7,5,main], giving up trying to
 get
  the page for path: 2
 Begin of stack trace of Thread[http-8084-7,5,main]
 java.lang.Object.wait(Native Method)
 java.lang.Object.wait(Object.java:485)
 
 
  org.apache.tomcat.util.net.AprEndpoint$Worker.await(AprEndpoint.java:1511)
 
   org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1536)
 java.lang.Thread.run(Thread.java:619)
 End of stack trace of Thread[http-8084-7,5,main]
  org.apache.wicket.protocol.http.request.InvalidUrlException:
  org.apache.wicket.WicketRuntimeException: After 1 minute the Pagemap null
 is
  still locked by: Thread[http-8084-7,5,main], giving up trying to get the
  page for path: 2
 Begin of stack trace of Thread[http-8084-7,5,main]
 java.lang.Object.wait(Native Method)
 java.lang.Object.wait(Object.java:485)
 
 
  org.apache.tomcat.util.net.AprEndpoint$Worker.await(AprEndpoint.java:1511)
 
   org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1536)
 java.lang.Thread.run(Thread.java:619)
 End of stack trace of Thread[http-8084-7,5,main]
 
  -- Any tips
 
  I
 

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




--


Knowing Ajax Within RequestCycle

2010-05-03 Thread Ayodeji Aladejebi
Hi,

I have 2 questions:

1. is there a way to know from RequestCycle if a call is Ajax?
2. is there a way to know which Link reference initiated a call from
RequestCyclle?

thanks

--


Re: Knowing Ajax Within RequestCycle

2010-05-03 Thread Ayodeji Aladejebi
On 1. Thanks

On 2. yeah which link was clicked or in another way, the component path
which the ongoing request will refers to

What am trying to do: I allocate resources to each call from each request
however some resources are not needed to be allocated during some ajax
calls. i need to filter such requests by knowing who called them?

On Mon, May 3, 2010 at 12:43 PM, Ernesto Reinaldo Barreiro 
reier...@gmail.com wrote:

 Hi,

 
  1. is there a way to know from RequestCycle if a call is Ajax?

  AjaxRequestTarget.get() != null

 or

 ((WebRequestCycle)WebRequestCycle.get()).getWebRequest().isAjax();



  2. is there a way to know which Link reference initiated a call from
  RequestCyclle?


 Do you mean which Link was clicked? Isn't this encoded as a component
 path on the URL?

 Ernesto

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




-- 
Aladejebi Ayodeji A.,
DabarObjects Solutions
Phone: +234 9 875 1763
Mobile: +234 803 589 1780
Email: d...@dabarobjects.com
Web: www.dabarobjects.com


Re: Knowing Ajax Within RequestCycle

2010-05-03 Thread Ayodeji Aladejebi
Yeah thanks that worked !

On Mon, May 3, 2010 at 1:47 PM, Ernesto Reinaldo Barreiro 
reier...@gmail.com wrote:

 On 2. Can you just retrieve the URL and use that to decide?

 Best,

 Ernesto

 On Mon, May 3, 2010 at 2:40 PM, Ayodeji Aladejebi aladej...@gmail.com
 wrote:
  On 1. Thanks
 
  On 2. yeah which link was clicked or in another way, the component path
  which the ongoing request will refers to
 
  What am trying to do: I allocate resources to each call from each request
  however some resources are not needed to be allocated during some ajax
  calls. i need to filter such requests by knowing who called them?
 
  On Mon, May 3, 2010 at 12:43 PM, Ernesto Reinaldo Barreiro 
  reier...@gmail.com wrote:
 
  Hi,
 
  
   1. is there a way to know from RequestCycle if a call is Ajax?
 
   AjaxRequestTarget.get() != null
 
  or
 
  ((WebRequestCycle)WebRequestCycle.get()).getWebRequest().isAjax();
 
 
 
   2. is there a way to know which Link reference initiated a call from
   RequestCyclle?
 
 
  Do you mean which Link was clicked? Isn't this encoded as a component
  path on the URL?
 
  Ernesto
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 
  --
  Aladejebi Ayodeji A.,
  DabarObjects Solutions
  Phone: +234 9 875 1763
  Mobile: +234 803 589 1780
  Email: d...@dabarobjects.com
  Web: www.dabarobjects.com
 

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




-- 
Aladejebi Ayodeji A.,
DabarObjects Solutions
Phone: +234 9 875 1763
Mobile: +234 803 589 1780
Email: d...@dabarobjects.com
Web: www.dabarobjects.com


Re: Knowing Ajax Within RequestCycle

2010-05-03 Thread Ayodeji Aladejebi
Please is there a way to get an ajax Behavior call string such as
*
wicket:interface=:1:homeScreen:helpForm:helpContainer:clientName:label::IBehaviorListener:0:
* before rendering occurs?
That is the Query String from a Label with an AjaxEditableBehavior

On Mon, May 3, 2010 at 2:03 PM, Ayodeji Aladejebi aladej...@gmail.comwrote:

 Yeah thanks that worked !


 On Mon, May 3, 2010 at 1:47 PM, Ernesto Reinaldo Barreiro 
 reier...@gmail.com wrote:

 On 2. Can you just retrieve the URL and use that to decide?

 Best,

 Ernesto

 On Mon, May 3, 2010 at 2:40 PM, Ayodeji Aladejebi aladej...@gmail.com
 wrote:
  On 1. Thanks
 
  On 2. yeah which link was clicked or in another way, the component path
  which the ongoing request will refers to
 
  What am trying to do: I allocate resources to each call from each
 request
  however some resources are not needed to be allocated during some ajax
  calls. i need to filter such requests by knowing who called them?
 
  On Mon, May 3, 2010 at 12:43 PM, Ernesto Reinaldo Barreiro 
  reier...@gmail.com wrote:
 
  Hi,
 
  
   1. is there a way to know from RequestCycle if a call is Ajax?
 
   AjaxRequestTarget.get() != null
 
  or
 
  ((WebRequestCycle)WebRequestCycle.get()).getWebRequest().isAjax();
 
 
 
   2. is there a way to know which Link reference initiated a call from
   RequestCyclle?
 
 
  Do you mean which Link was clicked? Isn't this encoded as a component
  path on the URL?
 
  Ernesto
 
  -
  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




 --
 Aladejebi Ayodeji A.,
 DabarObjects Solutions
 Phone: +234 9 875 1763
 Mobile: +234 803 589 1780
 Email: d...@dabarobjects.com
 Web: www.dabarobjects.com




-- 
Aladejebi Ayodeji A.,
DabarObjects Solutions
Phone: +234 9 875 1763
Mobile: +234 803 589 1780
Email: d...@dabarobjects.com
Web: www.dabarobjects.com


Detecting Page Inactivity From Wicket

2010-04-30 Thread Ayodeji Aladejebi
How can one know when the user has left the browser screen and has not been
active for a while from client side

Is there also a way to attach an event to browser page focus

any tips


Re: AW: Fading Content Updates Into a Ajax Refreshing ListView

2010-04-14 Thread Ayodeji Aladejebi
Thanks igor

On Tue, Apr 13, 2010 at 3:08 PM, DaHe danielavalero...@gmail.com wrote:


 That was very very hepfull !!! Thanks!

 =)

 igor.vaynberg wrote:
 
  see here
 
 
 http://wicketinaction.com/2008/10/repainting-only-newly-created-repeater-items-via-ajax/
 
  this will get you most of the way there, then just add some js effects
 
  -igor
 
  On Mon, Apr 12, 2010 at 3:44 PM, DaHe danielavalero...@gmail.com
 wrote:
 
  Hello!!
 
  I tried this suggestion on  my app.
 
  I have a DataView made with AjaxPaginNavigator, onClick I call a
  JavaScript,
  this toggle a HighLight the row. When I pass to next page, my JS does
 not
  work.
 
  I wrote this code:
 
  AjaxPagingNavigator pager = new AjaxPagingNavigator(navigator,
  dataView) {
   @Override
  protected void onAjaxEvent(AjaxRequestTarget target) {
  target.addComponent(dataContainer);
   target.appendJavascript(dataContainer.getMarkupId() +
  /js/jquery-1.3.2.min.js);
   target.appendJavascript(dataContainer.getMarkupId() +
  /js/ToggleHighLigh.js);
  }
  };
 
  But it does not work.
 
  Do am I understanding wrong your suggestion?
 
 
  Stefan Lindner wrote:
 
  Yes, this can be done with javascript. First of all you must decide
  which
  javascript library you want to use (scriptaculous/jQuery/etc.)
  Then you need to load it in your head section (use some
  HeaderContributor class for this).
  Now when you repaint yout list items with
 
target.addComponent(item);
 
  you may alo append some custom javascript code like this
 
target.prependJavascript(item.getMarkupId() +
  ...fadeout/hide/etc.);
target.addComponent(item);
target.appendJavascript(item.getMarkupId() +
  ...fadein/show/etc.);
 
  Perhaps you need to set the items visibility to (style=display:none)
  and
  then in the appendHJavascript delete the display:none.
 
  Stefan
 
  -Ursprüngliche Nachricht-
  Von: Ayodeji Aladejebi [mailto:aladej...@gmail.com]
  Gesendet: Mittwoch, 31. März 2010 00:32
  An: users@wicket.apache.org
  Betreff: Fading Content Updates Into a Ajax Refreshing ListView
 
  I am trying to auto refresh a list but also allow the new list updates
  to
  fade in one-by-one similar to these: http://foursquare.com/
 
  I guess its a javascript affair but can I get some assistance as to the
  approach to use in wicket
 
  thanks
 
  -
  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://old.nabble.com/Fading-Content-Updates-Into-a-Ajax-Refreshing-ListView-tp28089381p28219197.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://old.nabble.com/Fading-Content-Updates-Into-a-Ajax-Refreshing-ListView-tp28089381p28230764.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




-- 
Aladejebi Ayodeji A.,
DabarObjects Solutions
Phone: +234 9 481 7 156
Mobile: +234 803 589 1780
Email: d...@dabarobjects.com
Web: www.dabarobjects.com


Re: Mootools Clashes With wicket-event.js

2010-03-10 Thread Ayodeji Aladejebi
Hi,
Although i have worked around the problem by switching to jQuery. I wanted
to do a simple accordion. so i switched to my old legacy mootools accordion
code.

i added *mootools-release-1.12.js* to the javascript link on my page

and later tried to execute moo tool accordion code:

window.addEvent('domready', function(){
var accordion = new Accordion('h3.toggle', 'div.toggle', {
opacity: false,
onActive: function(toggler, element){
toggler.setStyle('color', '#ff3300');
},
onBackground: function(toggler, element){
toggler.setStyle('color', '#33');
}
}, $('contentPanel'));
accordion.display(0);
});

I noticed that the accordion effect did not work, but each time i isolate
the markup, it worked fine. I know wicket adds some javascript to every page
header so i notice this particular line *wicket-event.js* was causing the
conflict.

I use *wicket 1.4.6*. I noticed the accordion code worked in older wicket
releases like wicket 1.2 because i noticed the *
resources/org.apache.wicket.markup.html.WicketEventReference/wicket-event.js
* line was not being generated into the header for older wickets

so any way around?
thanks

On Wed, Mar 10, 2010 at 9:10 PM, Martijn Dashorst 
martijn.dasho...@gmail.com wrote:

 On Tue, Mar 9, 2010 at 2:14 AM, Ayodeji Aladejebi aladej...@gmail.com
 wrote:
  My mootools.js scripts wont work because of
 
 resources/org.apache.wicket.markup.html.WicketEventReference/wicket-event.js
  What do i do

 Give more information on what doesn't work, why it doesn't work, which
 version of Wicket, which version of mootools, what you have tried,
 etc. Have you created a quickstart with just the mootools thing and
 wicket that exhibits this problem?

 Martijn

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




--


Mootools Clashes With wicket-event.js

2010-03-08 Thread Ayodeji Aladejebi
My mootools.js scripts wont work because of
resources/org.apache.wicket.markup.html.WicketEventReference/wicket-event.js
What do i do

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



Cant Read Variable From PageParameters (Wicket 1.4.6)

2010-03-01 Thread Ayodeji Aladejebi
Wicket Version 1.4.6

Link: http://localhost:8084/site2/?param1=c

Code: paramValue= params.getString(param1, );

Output: paramValue returns empty String

I am using the default mount Settings.

am I missing something


-

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



Re: Cant Read Variable From PageParameters (Wicket 1.4.6)

2010-03-01 Thread Ayodeji Aladejebi
The Link changes to http://localhost:8084/site2/?param1=c
still the same problem

On Mon, Mar 1, 2010 at 5:40 PM, Riyad Kalla rka...@gmail.com wrote:
 What happens when you use:
 http://localhost:8084/site2?param1=c

 ?

 On Mon, Mar 1, 2010 at 9:33 AM, Ayodeji Aladejebi aladej...@gmail.comwrote:

 Wicket Version 1.4.6

 Link: http://localhost:8084/site2/?param1=c

 Code: paramValue= params.getString(param1, );

 Output: paramValue returns empty String

 I am using the default mount Settings.

 am I missing something


 -

 -
 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: Cant Read Variable From PageParameters (Wicket 1.4.6)

2010-03-01 Thread Ayodeji Aladejebi
My Bad :)

private HomePage(PageParameters params);

instead of public HomePage(PageParameters params);

i just dont know how i typed private instead of public. So it was the
default empty constructor that was getting called instead

Thanks


On Mon, Mar 1, 2010 at 7:19 PM, Riyad Kalla rka...@gmail.com wrote:
 Can you paste the code for the page that isn't working? You have a
 constructor for that page that takes a PageParameters arg that you named
 'params' right?



 On Mon, Mar 1, 2010 at 11:15 AM, Ayodeji Aladejebi aladej...@gmail.comwrote:

 The Link changes to http://localhost:8084/site2/?param1=c
 still the same problem

 On Mon, Mar 1, 2010 at 5:40 PM, Riyad Kalla rka...@gmail.com wrote:
  What happens when you use:
  http://localhost:8084/site2?param1=c
 
  ?
 
  On Mon, Mar 1, 2010 at 9:33 AM, Ayodeji Aladejebi aladej...@gmail.com
 wrote:
 
  Wicket Version 1.4.6
 
  Link: http://localhost:8084/site2/?param1=c
 
  Code: paramValue= params.getString(param1, );
 
  Output: paramValue returns empty String
 
  I am using the default mount Settings.
 
  am I missing something
 
 
  -
 
  -
  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



Form Components labelbr inserts

2010-02-24 Thread Ayodeji Aladejebi
I notice wicket is re-writing my HTML codes from

Name input wicket:id=name type=text / to input wicket:id=name
type=text /label for=nameName/labelbr /

and I dont want that transform to take place. how do I disable that


Re: Form Components labelbr inserts

2010-02-24 Thread Ayodeji Aladejebi
it does it for radioChoices only i think


On Thu, Feb 25, 2010 at 12:22 AM, Ayodeji Aladejebi aladej...@gmail.com wrote:
 Igor,
 this is my code:
 tr
                                        td
                                            div class=smallmenus
 style=color:#000; padding:3px;text-align:right; 
                        Your Gender:
                                            /div
                                        /td
                                        td div class=smallmenus
 style=padding:4px; vertical-align:middle; wicket:id=gender
                                                input
 name=radiobutton type=radio /

                                  Male |
                                                input
 name=radiobutton type=radio /
                                                                  Female
                                            /div
                                        /td
                                    /tr


 This is what wicket outputs

 tr
                                        td
                                            div class=smallmenus
 style=color:#000; padding:3px;text-align:right; 
                        Your Gender:
                                            /div
                                        /td
                                        td div class=smallmenus
 style=padding:4px; vertical-align:middle; wicket:id=genderinput
 name=gender type=radio value=0 id=gender9-0/label
 for=gender9-0Male/labelbr /
 input name=gender type=radio value=1 id=gender9-1/label
 for=gender9-1Female/labelbr /
 /div
                                        /td
                                    /tr

 Just plain default wicket 1.4 code


 On Thu, Feb 25, 2010 at 12:17 AM, Igor Vaynberg igor.vaynb...@gmail.com 
 wrote:

 so wicket adds this chunk label for=nameName/labelbr /? i
 doubt wicket is doing that...maybe you have something in your code
 that does it.

 -igor

 On Wed, Feb 24, 2010 at 3:07 PM, Ayodeji Aladejebi aladej...@gmail.com 
 wrote:
  I notice wicket is re-writing my HTML codes from
 
  Name input wicket:id=name type=text / to input wicket:id=name
  type=text /label for=nameName/labelbr /
 
  and I dont want that transform to take place. how do I disable that
 

 -
 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 Components labelbr inserts

2010-02-24 Thread Ayodeji Aladejebi
Igor,
this is my code:
tr
td
div class=smallmenus
style=color:#000; padding:3px;text-align:right; 
Your Gender:
/div
/td
td div class=smallmenus
style=padding:4px; vertical-align:middle; wicket:id=gender
input
name=radiobutton type=radio /

  Male |
input
name=radiobutton type=radio /
  Female
/div
/td
/tr


This is what wicket outputs

tr
td
div class=smallmenus
style=color:#000; padding:3px;text-align:right; 
Your Gender:
/div
/td
td div class=smallmenus
style=padding:4px; vertical-align:middle; wicket:id=genderinput
name=gender type=radio value=0 id=gender9-0/label
for=gender9-0Male/labelbr /
input name=gender type=radio value=1 id=gender9-1/label
for=gender9-1Female/labelbr /
/div
/td
/tr

Just plain default wicket 1.4 code


On Thu, Feb 25, 2010 at 12:17 AM, Igor Vaynberg igor.vaynb...@gmail.com wrote:

 so wicket adds this chunk label for=nameName/labelbr /? i
 doubt wicket is doing that...maybe you have something in your code
 that does it.

 -igor

 On Wed, Feb 24, 2010 at 3:07 PM, Ayodeji Aladejebi aladej...@gmail.com 
 wrote:
  I notice wicket is re-writing my HTML codes from
 
  Name input wicket:id=name type=text / to input wicket:id=name
  type=text /label for=nameName/labelbr /
 
  and I dont want that transform to take place. how do I disable that
 

 -
 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 Components labelbr inserts

2010-02-24 Thread Ayodeji Aladejebi
RadioChoice.setSuffix(); solved it

On Thu, Feb 25, 2010 at 12:29 AM, Ayodeji Aladejebi aladej...@gmail.com wrote:
 it does it for radioChoices only i think


 On Thu, Feb 25, 2010 at 12:22 AM, Ayodeji Aladejebi aladej...@gmail.com 
 wrote:
 Igor,
 this is my code:
 tr
                                        td
                                            div class=smallmenus
 style=color:#000; padding:3px;text-align:right; 
                        Your Gender:
                                            /div
                                        /td
                                        td div class=smallmenus
 style=padding:4px; vertical-align:middle; wicket:id=gender
                                                input
 name=radiobutton type=radio /

                                  Male |
                                                input
 name=radiobutton type=radio /
                                                                  Female
                                            /div
                                        /td
                                    /tr


 This is what wicket outputs

 tr
                                        td
                                            div class=smallmenus
 style=color:#000; padding:3px;text-align:right; 
                        Your Gender:
                                            /div
                                        /td
                                        td div class=smallmenus
 style=padding:4px; vertical-align:middle; wicket:id=genderinput
 name=gender type=radio value=0 id=gender9-0/label
 for=gender9-0Male/labelbr /
 input name=gender type=radio value=1 id=gender9-1/label
 for=gender9-1Female/labelbr /
 /div
                                        /td
                                    /tr

 Just plain default wicket 1.4 code


 On Thu, Feb 25, 2010 at 12:17 AM, Igor Vaynberg igor.vaynb...@gmail.com 
 wrote:

 so wicket adds this chunk label for=nameName/labelbr /? i
 doubt wicket is doing that...maybe you have something in your code
 that does it.

 -igor

 On Wed, Feb 24, 2010 at 3:07 PM, Ayodeji Aladejebi aladej...@gmail.com 
 wrote:
  I notice wicket is re-writing my HTML codes from
 
  Name input wicket:id=name type=text / to input wicket:id=name
  type=text /label for=nameName/labelbr /
 
  and I dont want that transform to take place. how do I disable that
 

 -
 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



Modal Window and Forms

2009-06-01 Thread Ayodeji Aladejebi
Hi,Please does anyone has an example on how a modal window should be used to
collect information using a Form component because in my use, clicking on an
AjaxSubmitLink does not
invoke the Links.onSubmit.

Any examples on using Forms with ModalWindow?


Re: Modal Window and Forms

2009-06-01 Thread Ayodeji Aladejebi
no need solved!..simply moved the AjaxSubmitLink outside the form container
and used ModalWindow,closeCurrent

On Tue, Jun 2, 2009 at 4:38 AM, Ayodeji Aladejebi aladej...@gmail.comwrote:

 Hi,Please does anyone has an example on how a modal window should be used
 to collect information using a Form component because in my use, clicking on
 an AjaxSubmitLink does not
 invoke the Links.onSubmit.

 Any examples on using Forms with ModalWindow?






-


Re: Modal Window and Forms

2009-06-01 Thread Ayodeji Aladejebi
Also 2 Forms were mistakenly nested which resulted into the onSubmit of the
outer form getting called as well.
form wicket:id=mainForm
!-- this was the problem --
div wicket:id=modalDialog
/div

/form

therefore ModalWindow.add(new InputForm) was causing 2 nested forms which
affected the expected onSubmit behavior



On Tue, Jun 2, 2009 at 5:34 AM, Ayodeji Aladejebi aladej...@gmail.comwrote:

 no need solved!..simply moved the AjaxSubmitLink outside the form container
 and used ModalWindow,closeCurrent


 On Tue, Jun 2, 2009 at 4:38 AM, Ayodeji Aladejebi aladej...@gmail.comwrote:

 Hi,Please does anyone has an example on how a modal window should be used
 to collect information using a Form component because in my use, clicking on
 an AjaxSubmitLink does not
 invoke the Links.onSubmit.

 Any examples on using Forms with ModalWindow?






 -




-


ReUse Your Swing table models in Wicket

2009-01-09 Thread Ayodeji Aladejebi
Hi,
If you have existing legacy Swing tables model code  that you want to test
on the web without re-writing all the TableModel logic, try this wicket
component.

WebTable myTable = new WebTable(tableTest, new SimpleTableModel());

add(myTable);

class SimpleTableModel extends javax.swing.table.AbstractTableModel


div wicket:id=tableTest/div

javadoc at http://www.dabarobjects.com/wicketx-tables/javadoc/
binaries at http://www.dabarobjects.com/wicketx-tables/wicketx-tables.jar



or is there any published wicket component in existence like this?

i wont mind contributing to wicket-stuff


wicketx-tables.jar
Description: application/java-archive
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Re: Wicket Ajax Table Demo

2008-12-24 Thread Ayodeji Aladejebi
no they doits ajax all the way...its not the whole screen refreshing,
just the table section. the screen flicker was the fault of the screen
capture software

On Wed, Dec 24, 2008 at 9:17 AM, Nino Martinez nino.martinez.w...@gmail.com
 wrote:

 The dropdowns are not updating via ajax as I could see they refresh the
 whole screen?


 Ayodeji Aladejebi wrote:

 please can you explain what you mean? its actually still in making...

 On Tue, Dec 23, 2008 at 11:20 PM, Nino Martinez 
 nino.martinez.w...@gmail.com wrote:



 Yeah, but why not go all the way, and make the dropdowns ajax too..?

 Ayodeji Aladejebi wrote:



 Better quality video

 http://uk.youtube.com/watch?v=QujRhlCRb9w





 -
 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 Ajax Table Demo

2008-12-24 Thread Ayodeji Aladejebi
Merry Xmas to you too

On Wed, Dec 24, 2008 at 11:41 AM, Nino Martinez 
nino.martinez.w...@gmail.com wrote:

 Ahh Cool then :) Merry x-mas


 Ayodeji Aladejebi wrote:

 no they doits ajax all the way...its not the whole screen refreshing,
 just the table section. the screen flicker was the fault of the screen
 capture software

 On Wed, Dec 24, 2008 at 9:17 AM, Nino Martinez 
 nino.martinez.w...@gmail.com


 wrote:





 The dropdowns are not updating via ajax as I could see they refresh the
 whole screen?


 Ayodeji Aladejebi wrote:



 please can you explain what you mean? its actually still in making...

 On Tue, Dec 23, 2008 at 11:20 PM, Nino Martinez 
 nino.martinez.w...@gmail.com wrote:





 Yeah, but why not go all the way, and make the dropdowns ajax too..?

 Ayodeji Aladejebi wrote:





 Better quality video

 http://uk.youtube.com/watch?v=QujRhlCRb9w







 -
 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





Get A Free Blog:
http://blogs.cowblock.net/


Wicket and Dynamic Tables Demo

2008-12-23 Thread Ayodeji Aladejebi
http://uk.youtube.com/watch?v=6JrcFXBffLY


Re: Wicket and Dynamic Tables Demo

2008-12-23 Thread Ayodeji Aladejebi
thanks..i hated the video myself.

On Tue, Dec 23, 2008 at 5:57 PM, Martijn Dashorst 
martijn.dasho...@gmail.com wrote:

 This one made me sea sick. Can't you use a screen cast tool instead?
 See http://www.codinghorror.com/blog/archives/000721.html for a list
 of tools for windows.

 Martijn

 2008/12/23 Ayodeji Aladejebi aladej...@gmail.com:
  http://uk.youtube.com/watch?v=6JrcFXBffLY
 



 --
 Become a Wicket expert, learn from the best: http://wicketinaction.com
 Apache Wicket 1.3.4 is released
 Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

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




Wicket Ajax Table Demo

2008-12-23 Thread Ayodeji Aladejebi
Better quality video

http://uk.youtube.com/watch?v=QujRhlCRb9w

-- 
Aladejebi Ayodeji A.,
DabarObjects Solutions


Re: Wicket Ajax Table Demo

2008-12-23 Thread Ayodeji Aladejebi
please can you explain what you mean? its actually still in making...

On Tue, Dec 23, 2008 at 11:20 PM, Nino Martinez 
nino.martinez.w...@gmail.com wrote:

 Yeah, but why not go all the way, and make the dropdowns ajax too..?

 Ayodeji Aladejebi wrote:

 Better quality video

 http://uk.youtube.com/watch?v=QujRhlCRb9w





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




-- 
Aladejebi Ayodeji A.,
DabarObjects Solutions


Re: Wicket error in GlassFish

2008-12-17 Thread Ayodeji Aladejebi
What IDE are you using?
Have you tried to Clean Build. Undeploy and redeploy, also there could be
some library conflicts especially with respect to logging

2008/12/17 Daniel lia...@gmail.com

 Changed follow your advice, but the error is the same. It may not the
 code's
 problem but some special configuration of the Web Container.
 Error Page from browser:

 *type* Exception report

 *message*

 *description*The server encountered an internal error () that prevented it
 from fulfilling this request.

 *exception*

 javax.servlet.ServletException: PWC1391: Servlet.init() for servlet
 HelloWorldApplication threw exception

 *root cause*

 org.apache.wicket.WicketRuntimeException: Unable to create application
 of class com.example.helloworld.HelloWorldApplication

 *root cause*

 java.lang.ClassNotFoundException:
 com.example.helloworld.HelloWorldApplication

 *note* *The full stack traces of the exception and its root causes are
 available in the GlassFish/v3 logs.*

 2008/12/16 Ajayi Yinka iamstyaj...@googlemail.com

  From the error log, it seems glass fish could not load the webApplication
  class.
 
  Make sure your webApplication class is in the correct class path
  (com.example.helloworld.HelloWorldApplication)
 
  And the webApplcation class is in the correct format.
 
  or
 
  and may change your web.xml file to be in this format:
 
  filter
 filter-nameHelloWorldApplication/filter-name
 
  filter-classorg.apache.wicket.protocol.http.WicketFilter/filter-class
  init-param
 param-nameapplicationClassName/param-name
 
  param-valuecom.example.helloworld.HelloWorldApplication/param-value
 /init-param
  init-param
 param-namedebug/param-name
 param-value2/param-value
 /init-param
 /filter
  2008/12/16 Daniel lia...@gmail.com
 
   Hi,
   I'm an newbie in Wicket. When I create my first hello world wicket
  program,
   strange error encounted.
  
   The hello world program is just to show 'Hello World' through Label.
  
   The web.xml is as below,
  
servlet
 servlet-nameHelloWorldApplication/servlet-name
  
  
  
 
 servlet-classorg.apache.wicket.protocol.http.WicketServlet/servlet-class
 init-param
 param-nameapplicationClassName/param-name
  
 param-valuecom.example.helloworld.HelloWorldApplication/param-value
 /init-param
/servlet
servlet-mapping
 servlet-nameHelloWorldApplication/servlet-name
 url-pattern/helloWorld/*/url-pattern
/servlet-mapping
  
   In Tomcat env, when I call the URL :
   http://localhost:8080/WicketExamples/helloWorld/.
   http://localhost:8080/WicketExamples/helloWorld/Everything
   goes well.
   When I use the URL: http://localhost:8080/WicketExamples/, show 404
  error.
  
   But the same program runs in GlassFish env. when I call the same URL,
  error
   comes as below
  
   2008-12-16 17:32:00 org.apache.catalina.core.ApplicationContext log
   严重: WebModule[/WicketExamples]StandardWrapper.Throwable
   org.apache.wicket.WicketRuntimeException: Unable to create application
 of
   class com.example.helloworld.HelloWorldApplication
   at
  
  
 
 org.apache.wicket.protocol.http.ContextParamWebApplicationFactory.createApplication(ContextParamWebApplicationFactory.java:82)
   at
  
  
 
 org.apache.wicket.protocol.http.ContextParamWebApplicationFactory.createApplication(ContextParamWebApplicationFactory.java:49)
   at
  org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:666)
   at
  
 
 org.apache.wicket.protocol.http.WicketServlet.init(WicketServlet.java:209)
   at javax.servlet.GenericServlet.init(GenericServlet.java:270)
   at
  
  
 
 org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1198)
   at
  
 
 org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:863)
   at
  
  
 
 org.apache.catalina.core.StandardWrapperValve.preInvoke(StandardWrapperValve.java:369)
   at
  
  
 
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:139)
   at
  
  
 
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:186)
   at
  
  
 
 org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
   at
  
  
 
 org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
   at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:96)
   at
  
  
 
 com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
   at
  
  
 
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:187)
   at
  
  
 
 org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
   at
  
  
 
 org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
   at
  
 
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651)
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030)
   at
  
  
 
 

Re: How to donate to Wicket Project

2008-12-16 Thread Ayodeji Aladejebi
LOL johan :)
Wicket is a priceless framework so there is no amount large enough yet to
equal the greatness of the framework. Whatever is being contributed is just
a token of appreciation. Our startup company has survived because of the
beauty of thisplatform but as it has been mentioned earlier by someone, we
should rather contribute thru purchase of books, publicity and bug
submission

the best is yet to come

thank you

On Tue, Dec 16, 2008 at 8:42 AM, Johan Compagner jcompag...@gmail.comwrote:

 really?

 if somebody wants by bankaccount to put some large sum of money on it that
 also would be more then welcome ;)

 johan

 On Mon, Dec 15, 2008 at 19:19, Eelco Hillenius eelco.hillen...@gmail.com
 wrote:

  As for the Wicket team, nothing is more welcome than being part of the
  community and contributing patches and on the mailing list etc.
 
  Cheers,
 
  Eelco
 
  On Sat, Dec 13, 2008 at 3:47 PM, Ayodeji Aladejebi aladej...@gmail.com
  wrote:
   Thank you..I think the book is the way to go. I will probably buy it
 for
  all
   all the java developers in my office
   Maybe i should order like 10 copies
  
   Hmm..sounds good
  
   thanks
  
   On Sat, Dec 13, 2008 at 2:16 PM, James Carman
   jcar...@carmanconsulting.comwrote:
  
   Of course, the ASF would always love donations:
  
   http://www.apache.org/foundation/contributing.html
  
   Also, you can buy from the Wicket store and part of the proceeds will
   help the ASF (I believe that's how it's set up):
  
   http://www.cafepress.com/apachewicket
  
   The coffee mug is very nice and I also have the golf shirt!  Wish I
   had a chance to play golf.
  
   On Sat, Dec 13, 2008 at 8:23 AM, Bruno Borges bruno.bor...@gmail.com
 
   wrote:
I don't think the project would accept money that way. If you really
   wanna
do that, just buy the book Wicket in Action and Eelco and Martijn
 will
  be
more than happy. =D
   
But, the best way to really contribute to the project is
- submitting bugs
- fixing them
- helping writing documentation
- spreading the word (blogging)
   
=) Good luck with that! And thanks for showing us your willing to
contribute.
   
Best regards,
Bruno Borges
blog.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 Sat, Dec 13, 2008 at 8:14 AM, Ayodeji Aladejebi 
  aladej...@gmail.com
   wrote:
   
Hi,
I am really grateful for the Wicket Project and really feel like
  buying
beer
for the wicket team but when i checked sponsorship under the Wicket
   Site,
   
it saw too much information except paying methods
   
I don't use PayPal as I am not transferring money from US or
 europe,
  i
rather require an international Wire transfer account.
   
Thank you for the Wicket Project
   
   
--
Aladejebi Ayodeji A.,
DabarObjects Solutions
Phone: +234 9 481 7 156
Mobile: +234 803 589 1780
Email: d...@dabarobjects.com
Web: www.dabarobjects.com
Blog: blog.dabarobjects.com
   
Participate, Collaborate, Innovate
Join Community:
http://www.cowblock.net/
   
Get A Free Blog:
http://blogs.cowblock.net/
   
   
  
   -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
  
  
  
   --
   Aladejebi Ayodeji A.,
   DabarObjects Solutions
   Phone: +234 9 481 7 156
   Mobile: +234 803 589 1780
   Email: d...@dabarobjects.com
   Web: www.dabarobjects.com
   Blog: blog.dabarobjects.com
  
   Participate, Collaborate, Innovate
   Join Community:
   http://www.cowblock.net/
  
   Get A Free Blog:
   http://blogs.cowblock.net/
  
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 




-- 
Aladejebi Ayodeji A.,
DabarObjects Solutions
Phone: +234 9 481 7 156
Mobile: +234 803 589 1780
Email: d...@dabarobjects.com
Web: www.dabarobjects.com
Blog: blog.dabarobjects.com


How to donate to Wicket Project

2008-12-13 Thread Ayodeji Aladejebi
Hi,
I am really grateful for the Wicket Project and really feel like buying beer
for the wicket team but when i checked sponsorship under the Wicket Site,

it saw too much information except paying methods

I don't use PayPal as I am not transferring money from US or europe, i
rather require an international Wire transfer account.

Thank you for the Wicket Project


-- 
Aladejebi Ayodeji A.,
DabarObjects Solutions
Phone: +234 9 481 7 156
Mobile: +234 803 589 1780
Email: d...@dabarobjects.com
Web: www.dabarobjects.com
Blog: blog.dabarobjects.com

Participate, Collaborate, Innovate
Join Community:
http://www.cowblock.net/

Get A Free Blog:
http://blogs.cowblock.net/


Re: How to donate to Wicket Project

2008-12-13 Thread Ayodeji Aladejebi
Thank you..I think the book is the way to go. I will probably buy it for all
all the java developers in my office
Maybe i should order like 10 copies

Hmm..sounds good

thanks

On Sat, Dec 13, 2008 at 2:16 PM, James Carman
jcar...@carmanconsulting.comwrote:

 Of course, the ASF would always love donations:

 http://www.apache.org/foundation/contributing.html

 Also, you can buy from the Wicket store and part of the proceeds will
 help the ASF (I believe that's how it's set up):

 http://www.cafepress.com/apachewicket

 The coffee mug is very nice and I also have the golf shirt!  Wish I
 had a chance to play golf.

 On Sat, Dec 13, 2008 at 8:23 AM, Bruno Borges bruno.bor...@gmail.com
 wrote:
  I don't think the project would accept money that way. If you really
 wanna
  do that, just buy the book Wicket in Action and Eelco and Martijn will be
  more than happy. =D
 
  But, the best way to really contribute to the project is
  - submitting bugs
  - fixing them
  - helping writing documentation
  - spreading the word (blogging)
 
  =) Good luck with that! And thanks for showing us your willing to
  contribute.
 
  Best regards,
  Bruno Borges
  blog.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 Sat, Dec 13, 2008 at 8:14 AM, Ayodeji Aladejebi aladej...@gmail.com
 wrote:
 
  Hi,
  I am really grateful for the Wicket Project and really feel like buying
  beer
  for the wicket team but when i checked sponsorship under the Wicket
 Site,
 
  it saw too much information except paying methods
 
  I don't use PayPal as I am not transferring money from US or europe, i
  rather require an international Wire transfer account.
 
  Thank you for the Wicket Project
 
 
  --
  Aladejebi Ayodeji A.,
  DabarObjects Solutions
  Phone: +234 9 481 7 156
  Mobile: +234 803 589 1780
  Email: d...@dabarobjects.com
  Web: www.dabarobjects.com
  Blog: blog.dabarobjects.com
 
  Participate, Collaborate, Innovate
  Join Community:
  http://www.cowblock.net/
 
  Get A Free Blog:
  http://blogs.cowblock.net/
 
 

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




-- 
Aladejebi Ayodeji A.,
DabarObjects Solutions
Phone: +234 9 481 7 156
Mobile: +234 803 589 1780
Email: d...@dabarobjects.com
Web: www.dabarobjects.com
Blog: blog.dabarobjects.com

Participate, Collaborate, Innovate
Join Community:
http://www.cowblock.net/

Get A Free Blog:
http://blogs.cowblock.net/


Unable to instantiate Web session class Error:::Wicket1.3.5 Help

2008-12-02 Thread Ayodeji Aladejebi
App Server: Glassfish V2
Wicket Version:: Wicket 1.3.5
JVM: Java 6u10
IDE: Netbeans6.5

This error does not occur when using Wicket 1.3.1.

Any tips? thanks

Unable to instantiate web session class com.dabarobjects.fme.FMEWebSession

StandardWrapperValve[jsp]: PWC1406: Servlet.service() for servlet jsp threw
exception
org.apache.wicket.WicketRuntimeException: Unable to instantiate web session
class com.dabarobjects.fme.FMEWebSession
at
org.apache.wicket.authentication.AuthenticatedWebApplication.newSession(AuthenticatedWebApplication.java:119)
at org.apache.wicket.Session.findOrCreate(Session.java:228)
at org.apache.wicket.Session.findOrCreate(Session.java:211)
at org.apache.wicket.Session.get(Session.java:250)
at
org.apache.wicket.Application$1.onInstantiation(Application.java:276)
at
org.apache.wicket.Application.notifyComponentInstantiationListeners(Application.java:974)
at org.apache.wicket.Component.init(Component.java:873)
at
org.apache.wicket.MarkupContainer.init(MarkupContainer.java:105)
at org.apache.wicket.Page.init(Page.java:235)
at org.apache.wicket.markup.html.WebPage.init(WebPage.java:184)
at
org.apache.wicket.markup.html.pages.ExceptionErrorPage.init(ExceptionErrorPage.java:55)
at
org.apache.wicket.request.AbstractRequestCycleProcessor.respond(Abst
-- 


Aladejebi Ayodeji A.,
DabarObjects Solutions
Phone: +234 9 481 7 156
Mobile: +234 803 589 1780
Email: [EMAIL PROTECTED]
Web: www.dabarobjects.com
Blog: blog.dabarobjects.com

Participate, Collaborate, Innovate
Join Community:
http://www.cowblock.net/

Get A Free Blog:
http://blogs.cowblock.net/


Re: Wicket JavaDoc - plz publish

2008-11-24 Thread Ayodeji Aladejebi
If you have netbeans plugin for maven, you can generate the latest Javadoc
yourself from netbeans. Just right-click in netbeans and select generate
Javadoc and dats all

On Mon, Nov 24, 2008 at 7:40 AM, Martijn Dashorst 
[EMAIL PROTECTED] wrote:

 Like I said in my blog post I won't be publishing anything until maven
 site plugin works without problems. You don't have any idea how much
 time I've already sunk into that fcker.

 Martijn

 On 11/24/08, Ned Collyer [EMAIL PROTECTED] wrote:
 
  Can something be set up to publish either the snapshot or rc1 javadocs to
 a
  public URL.
 
  Does the wicket version need to be final to be published to
  http://wicket.apache.org/docs/
 
  I currently use -DdownloadSources - but its just not so great for
 navigating
  - especially if you want to cut/paste URL's to other devs.
  --
  View this message in context:
 
 http://www.nabble.com/Wicket-JavaDoc---plz-publish-tp20652802p20652802.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]
 
 


 --
 Become a Wicket expert, learn from the best: http://wicketinaction.com
 Apache Wicket 1.3.4 is released
 Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

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




-- 
Aladejebi Ayodeji A.,
DabarObjects Solutions
Phone: +234 9 481 7 156
Mobile: +234 803 589 1780
Email: [EMAIL PROTECTED]
Web: www.dabarobjects.com
Blog: blog.dabarobjects.com

Participate, Collaborate, Innovate
Join Community:
http://www.cowblock.net/

Get A Free Blog:
http://blogs.cowblock.net/


Re: Help, why the loginpage has the whole package name?

2008-11-24 Thread Ayodeji Aladejebi
do a little more research on the wicket wiki site, there are plenty examples
on this

On Mon, Nov 24, 2008 at 8:04 AM, wch2001 [EMAIL PROTECTED] wrote:



 sorry, Martjin,

 Can u tell me more clear?

 change the mountBookmarkablePage?


 thanks


 Martijn Dashorst wrote:
 
  Mount your page with one of the URL coding strategies. 1000 examples
  on the list or wiki.
 
  Martijn
 
  On 11/24/08, wch2001 [EMAIL PROTECTED] wrote:
 
  Dear all,
 
  why My application run with the whole package  name?
 
  like
 
 https://apps.rednano.sg/peopleupdate/?wicket:bookmarkablePage=%3Asg.sphsearch.people.selfupdate.wicket.page.LoginPage
 
  the below is my web application:
 
 
 
  package sg.sphsearch.people.selfupdate.wicket.application;
 
  import java.net.MalformedURLException;
  import javax.servlet.http.HttpServletRequest;
  import org.acegisecurity.AuthenticationManager;
  import org.apache.wicket.Request;
  import org.apache.wicket.RequestCycle;
  import org.apache.wicket.Response;
  import org.apache.wicket.Session;
  import org.apache.wicket.WicketRuntimeException;
  import
 
 org.apache.wicket.extensions.ajax.markup.html.form.upload.UploadWebRequest;
  import org.apache.wicket.protocol.http.WebRequest;
  import org.apache.wicket.security.hive.HiveMind;
  import org.apache.wicket.security.hive.authentication.LoginContext;
  import org.apache.wicket.security.hive.config.PolicyFileHiveFactory;
  import org.apache.wicket.security.swarm.SwarmWebApplication;
  import org.apache.wicket.spring.injection.annot.SpringComponentInjector;
  import org.apache.wicket.util.file.Folder;
  import org.slf4j.Logger;
  import org.slf4j.LoggerFactory;
  import sg.sphsearch.people.selfupdate.wicket.config.NameConstants;
  import sg.sphsearch.people.selfupdate.wicket.page.AccessDeniedPage;
  import sg.sphsearch.people.selfupdate.wicket.page.ErrorPage;
  import sg.sphsearch.people.selfupdate.wicket.page.ExpiredPage;
  import sg.sphsearch.people.selfupdate.wicket.page.IndexPage;
  import sg.sphsearch.people.selfupdate.wicket.page.LoginPage;
  import
  sg.sphsearch.people.selfupdate.wicket.page.RegistrationConfirmPage;
  import sg.sphsearch.people.selfupdate.wicket.page.RegistrationPage;
  import sg.sphsearch.people.selfupdate.wicket.security.AcegiApplication;
  import sg.sphsearch.people.selfupdate.wicket.security.AcegiLoginContext;
  import
  sg.sphsearch.people.selfupdate.wicket.security.SelfupdateRequestCycle;
  import
  sg.sphsearch.people.selfupdate.wicket.session.PeopleSelfUpdateSession;
 
  /**
   *
   * @author jmulyadi
   *
   */
  public class PeopleSelfUpdateApplication extends SwarmWebApplication
  implements AcegiApplication
  {
 
  static final Logger logger =
  LoggerFactory.getLogger(PeopleSelfUpdateApplication.class);
  private static final String TEMP_CONFIG_ID = 4;
  private AuthenticationManager authenticationManager;
  private Folder uploadTempFolder = null;
 
  @Override
  protected void init()
  {
  super.init();
 
  addComponentInstantiationListener(new
  SpringComponentInjector(this));
 
  // Application Settings
  getApplicationSettings().setInternalErrorPage(ErrorPage.class);
 
  getApplicationSettings().setPageExpiredErrorPage(ExpiredPage.class);
 
  getApplicationSettings().setAccessDeniedPage(AccessDeniedPage.class);
 
  // Markup Settings
  getMarkupSettings().setCompressWhitespace(true);
  getMarkupSettings().setStripComments(true);
  getMarkupSettings().setStripWicketTags(true);
 
  // Request Cycle Settings
  getRequestCycleSettings().setResponseRequestEncoding(UTF-8);
  getSessionSettings().setMaxPageMaps(100);
 
  // Obtain location for upload
  uploadTempFolder = new
 
 Folder(NameConstants.IMAGESERVERCONFIGS.getImageServerConfigs().get(TEMP_CONFIG_ID).getServerPath());
  // Ensure folder exists
  uploadTempFolder.mkdirs();
 
  mountBookmarkablePage(/register, RegistrationPage.class);
  mountBookmarkablePage(/confirmregistration,
  RegistrationConfirmPage.class);
  }
 
  @Override
  @SuppressWarnings(value = unchecked)
  public Class getHomePage()
  {
  return IndexPage.class;
  }
 
  @Override
  @SuppressWarnings(value = unchecked)
  public Class getLoginPage()
  {
  return LoginPage.class;
  }
 
  @Override
  protected void setUpHive()
  {
  PolicyFileHiveFactory factory = new
  PolicyFileHiveFactory(getActionFactory());
 
  try
  {
 
 
 factory.addPolicyFile(getServletContext().getResource(/WEB-INF/policy/selfupdate.hive));
  factory.setAlias(principal,
  sg.sphsearch.auth.domain.Principal);
  factory.setAlias(base,
  sg.sphsearch.people.selfupdate.wicket);
 
  //this application currently uses 1 policy file but you can add
  as
  many as you like
  //factory.addPolicyFile(...);
  }
  

Perfomance Benefits Question

2008-07-30 Thread Ayodeji Aladejebi
Hi All,

Please I was wondering generally,

Are there any Performance Benefits in

1. Breaking a Wicket Page Down into many tiny components in seperate
Java-HTML files thus simplyfing code and component reuse

AGAINST

2. Coding all the UI components in one long, long:) WebPage Code which
obviously always leads to spagetti convoluted code.

I am asumming (2) will be faster because wicket will not be loading too many
.HTML files in order to assemble one page even though optimizing code will
become very difficult. Too many anonymous inner classes.

Please does anyone have a take on this. Has anyone done a benchmark on this
case.

Thanks

-- 
Aladejebi Ayodeji A.,
DabarObjects Solutions


Re: Resources relative to application context

2008-07-16 Thread Ayodeji Aladejebi
So you mean every static image in my HTML will have to be converted to code

Basically we are having problems using any of the encoding strategies
because all of our background images and inline CSS images disappear

can this URL rewriting for resources be made to work with inline images

On Mon, Mar 31, 2008 at 5:32 PM, Zheng, Xiahong [EMAIL PROTECTED]
wrote:

 Yes, on tomcat 6.0.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
 Of Al Maw
 Sent: Monday, March 31, 2008 10:12 AM
 To: users@wicket.apache.org
 Subject: Re: Resources relative to application context

 Actually, this should Just Work (tm). Are you running on Tomcat?

 Regards,

 Alastair

 On Mon, Mar 31, 2008 at 4:34 AM, [EMAIL PROTECTED] wrote:

  You got it
 
  -igor
 
 
  On 3/30/08, Zheng, Xiahong [EMAIL PROTECTED] wrote:
   Thanks Igor. But my resource in this case is style sheet not image.
 Does
   that mean I need to write a similar component to accomplish that?
  
   -Original Message-
   From: Igor Vaynberg [mailto:[EMAIL PROTECTED]
   Sent: Sunday, March 30, 2008 3:48 PM
   To: users@wicket.apache.org
   Subject: Re: Resources relative to application context
  
   see source of ContextImage for details
  
   -igor
  
  
   On Sun, Mar 30, 2008 at 11:50 AM, Zheng, Xiahong
 [EMAIL PROTECTED]
   wrote:
How does wicket find such resource, e.g. as follows?
   
link href=style/my.css type=text/css rel=stylesheet /
   
I found this only works if I mount my pages with
   
mount(/pages, PackageName.forClass(Home.class));
   
Otherwise, I need to specify absolute URL. This is fine. However,
 the
subsequent problem I ran into is wicket failed to load resources
   after a
form submit which is probably caused by the resulting URL not
 being
mounted. So my question is,
   
How do I mount the resulting URL after a form submit or other
 event?
   Is
HybridUrlCodingStrategy designed for this purpose?
   
   
Thanks,
Xiaohong
   
   
 -
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]
  
  
 
  -
  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: calendar control for wicket ??

2008-07-06 Thread Ayodeji Aladejebi
which DateTextField are you using?
The one in Wicket Extensions or the one in Wicket-datetime API using JODA
time API underneath?
ensure you are using the one in wicket-datetime API then Study the date
converter class of the wicket-datetime API. it seems to work well for me


On Sun, Jul 6, 2008 at 5:01 AM, Rakesh Sinha [EMAIL PROTECTED]
wrote:

 Thanks Ayodeji.

 import org.apache.wicket.extensions.yui.calendar.DateField;

 This does the trick.

 But a clarification though -  I am using the default version as
 specified in the javadoc.

 java: dateField = new DateField(birthday);

 html: div wicket:id=birthday/div

 I need a couple of modifications to the same. Just curious how I get
 about doing the same.

 1) The textfield (DateTextField) seems to parse the dates in mm/dd/yy
 format . I need to change the same to dd/mm/yy as the audience for
 which the application is targeted is going to be using that particular
 format.

 2) When  I enter the date as 14/14/1980, say  (incorrect date to
 begin with) - for some reason it gets rounded, and appears as
 2/14/81  (a very similar behavior is exhibited by the Calendar class
 in java.util too). Instead I would like to reminded that the input is
 actually an error and it is incorrect altogether.
  This might be more involved I believe.




 On 7/5/08, Ayodeji Aladejebi [EMAIL PROTECTED] wrote:
  are you talking about a DatePicker?
 
   On Sun, Jul 6, 2008 at 4:11 AM, Rakesh Sinha [EMAIL PROTECTED]
   wrote:
 
 
Hi -
  Just curious if there is a Calendar control / class associated with
Wicket. Thanks.
   
 
   -
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: calendar control for wicket ??

2008-07-06 Thread Ayodeji Aladejebi
meanwhile, you can also do this easily in wicket:

import  org.apache.wicket.extensions.yui.calendar.DatePicker; Textfield
dateField = new TextField(birthday, Date.class);
dateField.add(new DatePicker());

your binding bean

private Date birthday;
getter, setter

users can navigate with a DatePicker and everything just binds

thats also an approach

On Sun, Jul 6, 2008 at 9:28 AM, Ayodeji Aladejebi [EMAIL PROTECTED]
wrote:

 which DateTextField are you using?
 The one in Wicket Extensions or the one in Wicket-datetime API using JODA
 time API underneath?
 ensure you are using the one in wicket-datetime API then Study the date
 converter class of the wicket-datetime API. it seems to work well for me



 On Sun, Jul 6, 2008 at 5:01 AM, Rakesh Sinha [EMAIL PROTECTED]
 wrote:

 Thanks Ayodeji.

 import org.apache.wicket.extensions.yui.calendar.DateField;

 This does the trick.

 But a clarification though -  I am using the default version as
 specified in the javadoc.

 java: dateField = new DateField(birthday);

 html: div wicket:id=birthday/div

 I need a couple of modifications to the same. Just curious how I get
 about doing the same.

 1) The textfield (DateTextField) seems to parse the dates in mm/dd/yy
 format . I need to change the same to dd/mm/yy as the audience for
 which the application is targeted is going to be using that particular
 format.

 2) When  I enter the date as 14/14/1980, say  (incorrect date to
 begin with) - for some reason it gets rounded, and appears as
 2/14/81  (a very similar behavior is exhibited by the Calendar class
 in java.util too). Instead I would like to reminded that the input is
 actually an error and it is incorrect altogether.
  This might be more involved I believe.




 On 7/5/08, Ayodeji Aladejebi [EMAIL PROTECTED] wrote:
  are you talking about a DatePicker?
 
   On Sun, Jul 6, 2008 at 4:11 AM, Rakesh Sinha [EMAIL PROTECTED]
   wrote:
 
 
Hi -
  Just curious if there is a Calendar control / class associated with
Wicket. Thanks.
   
 
   -
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]







-- 
Aladejebi Ayodeji A.,
DabarObjects Solutions
www.dabarobjects.com


Re: No effect of code until restarting netbeans.

2008-07-05 Thread Ayodeji Aladejebi
which version of netbeans are you using. I use NB6.1 and with a standard
netbeans web project all you have to do is recompile your web project and
right-click on project and then Run. It will deploy your changes alright.
Only that after a while, tomcat will give you perm-gen error which will
force you to terminate the tomcat instance using Task Manager manually
before netbeans can continue managing tomcat



On Tue, Jul 1, 2008 at 5:42 PM, Jeremy Levy [EMAIL PROTECTED] wrote:

 Use Undeploy and Deploy on your EAR or WAR...


 On Tue, Jul 1, 2008 at 3:58 AM, Sushant [EMAIL PROTECTED] wrote:

 
  I am a newuser using wicket. I have been facing this problem since a
 week.
 
  I'm in serious trouble. Whenever i make any changes in my code in
 netbeans
  the changes i have made doesn't works until i restart netbeans. After
  restarting my netbeans the changes that i have made in my code works.
  For e.g. If i have set as setResponsePage(Home.class) and later i change
 it
  to setResponsePage(Index.class) and save it. Now if i run my project than
  it
  still shows Home page until i restart netbeans. After i restart netbeans
  the
  problem is solved.
 
  I'm using netbeans 6.1
  Please help me with this problem.
  --
  View this message in context:
 
 http://www.nabble.com/No-effect-of-code-until-restarting-netbeans.-tp18211238p18211238.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: calendar control for wicket ??

2008-07-05 Thread Ayodeji Aladejebi
are you talking about a DatePicker?

On Sun, Jul 6, 2008 at 4:11 AM, Rakesh Sinha [EMAIL PROTECTED]
wrote:

 Hi -
   Just curious if there is a Calendar control / class associated with
 Wicket. Thanks.

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




Converters and Validators

2008-06-30 Thread Ayodeji Aladejebi
Hi,
I want to know if this is the right thing to do if a value required
conversion

Textfield dateField = new TextField(date, Date.class);

dateField.add(new DateBeforeAnotherDateValidator());

class DateBeforeAnotherDateValidator{
 protected void onValidate(IValidatable validatable) {
Date choosenDate = (Date) validatable.getValue(); //will this cast
work
}
}

Are converters invoked before validators. can I do this

thanks


Re: stateless vs. stateful what exactly did I do ?

2008-06-11 Thread Ayodeji Aladejebi
http://www.javaworld.com/javaworld/jw-06-2008/jw-06-wicket1.html?page=1

On 6/11/08, Eyal Golan [EMAIL PROTECTED] wrote:

 Hi,
 I have built a page that is stateless (bookmarkable) that accepts
 PageParameters.
 Now, this page inherits from a page that accepts PageParameters AND another
 parameter.

 public final class UserBrowserPage extends EntityBrowserPage {
   public UserBrowserPage(PageParameters pageParameters) {
 super(pageParameters, Const.LOCALIZATION_USER_PREFIX, personId);
 ...
   }
 }

 And:
 public abstract class EntityBrowserPage extends StyledSecuredBasePage {
   public EntityBrowserPage(PageParameters pageParameters, String
 localizationPrefix,
 String localizationPostfix) {
  ...
   }
 }

 Now, the prefix and postfix are not used for class members.
 They're used to create a Panel in the constructor and that's all.

 To my understanding, the UserBrowserPage is stateless.
 I even do in the Application a mounting: mount(new
 QueryStringUrlCodingStrategy(/userBrowser, UserBrowserPage.class));
 Which implies that it is stateless page.

 Am I correct?

 what happens if a sub class is a stateless page (has no parameters
 constructor or only with PageParameters), but the parent page is stateful
 (gets in the constructor parameters and stores them in class members)?

 Hope I was clear :)

 Thanks


 --
 Eyal Golan
 [EMAIL PROTECTED]

 Visit: http://jvdrums.sourceforge.net/
 LinkedIn: http://www.linkedin.com/in/egolan74




-- 
Aladejebi Ayodeji A.,
DabarObjects Solutions
Phone: +234 9 481 7 156
Mobile: +234 803 589 1780
Email: [EMAIL PROTECTED]
Web: www.dabarobjects.com
Blog: blog.dabarobjects.com


Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-01 Thread Ayodeji Aladejebi
scan this user forum, you will realize that there is no high demand for
generics in wicket from users. I am yet to see one user or thread here of
wicket users screeming out for generics addition. I think users has been
doing just fine without it at least speaking for myself.

Anything more than IModel, I wont upgrade to 1.4 as well

+1 for IModels only

as for as I am concerned, annotations are better 1.5 additions than
generics. generics is just awful


On 6/1/08, atul singh [EMAIL PROTECTED] wrote:

 1)
   [ X] Can best be done in a limited fashion, where we only generify

 IModel but not components. I care more about what generifying can do
 for API clarity (declaring a component to only accept certain models
 for instance) than static type checking.

 *Reason::* I think generifying data-structure/models is what is
 sustainable.
 Components can become too complicated when gentrified..and who know how far
 wicket wants to go!!

 2)
 [X] I definitively won't be using 1.4. if Wicket doesn't go for my
 preference.



 On Mon, Jun 2, 2008 at 2:14 AM, Eelco Hillenius [EMAIL PROTECTED]
 
 wrote:

  Hi all,
 
  We have had several threads in this and the dev list, and some
  discussions in the public on how to incorporate generics in Wicket.
 
  I'd like to use this thread to gather the opinions of as many regular
  Wicket users as we can. Please help us get an impression of what our
  users think about the issue by completing this simple survey. Note
  that it is not a vote; we only want to get an idea of what you think.
 
  1) Generifying* Wicket
[ ] Can best be done like currently in the 1.4 branch, where models
  and components are both generified. I care most about the improved
  static type checking generified models and components give Wicket.
[ ] Can best be done in a limited fashion, where we only generify
  IModel but not components. I care more about what generifying can do
  for API clarity (declaring a component to only accept certain models
  for instance) than static type checking.
[ ] Should be avoided, I prefer the way 1.3 works. Because... (fill
  in your opinion here).
[ ]  (anything other than these choices?)
 
  2) How strongly do you feel about your choice above?
[ ] Whatever choice ultimately made, I'll happily convert/ start
  using 1.4 and up.
[ ] I might rethink upgrading if my choice doesn't win.
[ ] I definitively won't be using 1.4. if Wicket doesn't go for my
  preference.
 
  Thanks in advance for everyone participating, and pls feel free to
  explain yourself further beyond just answering these questions!
 
  Eelco
 
  p.s. I suggest that the core devs and most active participants and
  previous discussions wait a few days before giving their opinions so
  that we don't flood the thread right from the start.
 
  * Parameterizing would probably be the better word to use, but
  generifying seems to be the word that many people use.
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 



Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-01 Thread Ayodeji Aladejebi
  [X ] Can best be done in a limited fashion, where we only generify
IModel but not components. I care more about what generifying can do
for API clarity (declaring a component to only accept certain models
for instance) than static type checking.
[ X] Whatever choice ultimately made, I'll happily convert/ start
using 1.4 and up.

On 6/1/08, Eelco Hillenius [EMAIL PROTECTED] wrote:

 Hi all,

 We have had several threads in this and the dev list, and some
 discussions in the public on how to incorporate generics in Wicket.

 I'd like to use this thread to gather the opinions of as many regular
 Wicket users as we can. Please help us get an impression of what our
 users think about the issue by completing this simple survey. Note
 that it is not a vote; we only want to get an idea of what you think.

 1) Generifying* Wicket
[ ] Can best be done like currently in the 1.4 branch, where models
 and components are both generified. I care most about the improved
 static type checking generified models and components give Wicket.
[ ] Can best be done in a limited fashion, where we only generify
 IModel but not components. I care more about what generifying can do
 for API clarity (declaring a component to only accept certain models
 for instance) than static type checking.
[ ] Should be avoided, I prefer the way 1.3 works. Because... (fill
 in your opinion here).
[ ]  (anything other than these choices?)

 2) How strongly do you feel about your choice above?
[ ] Whatever choice ultimately made, I'll happily convert/ start
 using 1.4 and up.
[ ] I might rethink upgrading if my choice doesn't win.
[ ] I definitively won't be using 1.4. if Wicket doesn't go for my
 preference.

 Thanks in advance for everyone participating, and pls feel free to
 explain yourself further beyond just answering these questions!

 Eelco

 p.s. I suggest that the core devs and most active participants and
 previous discussions wait a few days before giving their opinions so
 that we don't flood the thread right from the start.

 * Parameterizing would probably be the better word to use, but
 generifying seems to be the word that many people use.

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




Re: Problem with Textfield

2008-05-11 Thread Ayodeji Aladejebi
You should use a writable model like PropertyModel. Read the documentation
for more info.

So i rewrite your code like this:

try this

First, Create a Backing Bean which will hold 2 values, the value of the
TICKER SYMBOL and the value of the Stock Answer
class StockBean implements Serializable {
  private String stockSymbol;
  private int stockValue;
 ..getter
..setter
}

public class GetQuoteSymbol extends WebPage {
   //declare the backing bean
   private StockBean beanModel;

   public GetQuoteSymbol() {

   Form form = new Form(f) {

   protected void onSubmit() {
   String sym = beanModel.getStockSymbol();  //(String)
model.getObject();
   int stockValue = sym.hashCode() % 100;
   beanModel.setStockValue(stockValue);
  if you want it to display the answer, dont bother forwarding the
pag
  // setResponsePage(this);
   }
   };
// create the backing bean
   beanModel = new StockBean();

//Use propertymodels to map the attributes of a backing bean to a Textfield
or other components
//First parameter is the expression that shows the bean property to map to.
and the other parameter is the bean to map to

   PropertyModel stockSymModel= new
PropertyModel(stockSymbol,beanModel); // this model will be used by the
textfield

   TextField stockField = new TextField(stockField , stockSymModel);


   PropertyModel stockValModel= new
PropertyModel(stockValue,beanModel); // this model will be used by the
Label that will tell us the answer

   Label valueLabel= new Label(stockLabel, beanModel);

   form.add(stockField );
form.add(valueLabel);
   add(form);

   }

}

 form wicket:id=f
Please Provide your Symbol
   input type=text wicket:id=stockField 
The Present Stock Quote is
span wicket:id=stockLabel
0.00
/span
   input type=submit value=Ok
   /form

Hope this helps

On 5/11/08, kengimel [EMAIL PROTECTED] wrote:


 Hi,

 I am new to wicket and while trying out this snippet of code.


 public class GetQuoteSymbol extends WebPage {

 private Model model;

 public GetQuoteSymbol() {

 Form form = new Form(f) {

 protected void onSubmit() {
 String sym = (String) model.getObject();
 int stockValue = sym.hashCode() % 100;
 QuoteResult quoteResult = new QuoteResult(stockValue);
 setResponsePage(quoteResult);
 }
 };
 Model model = new Model(MSFT);
 TextField symbol = new TextField(sym, model);

 form.add(symbol);
 add(form);

 }

 }



 head

 titleGetQuoteSymbol/title
 link rel=stylesheet type=text/css href=style.css/
 /head
 body
 !-- --

 form wicket:id=f
 input type=text wicket:id=sym
 input type=submit value=Ok
 /form
 /body
 /html


 public class QuoteResult extends WebPage {
 public QuoteResult(int stockValue) {

 add(new Label(v, Integer.toString(stockValue)));
 }

 }

 html xmlns:wicket
 head
 meta http-equiv=Content-Type content=text/html;
 charset=UTF-8/
 titleQuoteResult/title
 link rel=stylesheet type=text/css href=style.css/
 /head
 body
 !-- --
 The stock value is: 100.
 /body
 /html

 when i execute the code i encountered.

 this error::

 WicketMessage: Method onFormSubmitted of interface
 org.apache.wicket.markup.html.form.IFormSubmitListener targeted at
 component
 [MarkupContainer [Component id = f, page =
 myapp.stockquote.GetQuoteSymbol,
 path = 2:f.GetQuoteSymbol$1, isVisible = true, isVersioned = true]] threw
 an
 exception

 Root cause:

 java.lang.NullPointerException
 at myapp.stockquote.GetQuoteSymbol$1.onSubmit(GetQuoteSymbol.java:26)
 at org.apache.wicket.markup.html.form.Form.delegateSubmit(Form.java:1328)
 at org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:776)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at

 org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:183)
 at

 org.apache.wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents(ListenerInterfaceRequestTarget.java:73)
 at

 org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:91)
 at

 org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1166)
 at org.apache.wicket.RequestCycle.step(RequestCycle.java:1243)
 at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1331)
 at org.apache.wicket.RequestCycle.request(RequestCycle.java:493)
 at
 org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:363)
 at

 org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:194)
 at

 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 at

 

Re: TinyMCE Behavior rather than TinyMCE Panel

2008-05-07 Thread Ayodeji Aladejebi
yeah yeah, thanks now i recall i checke it out from wicket-stuff repo.


On 5/7/08, Timm Helbig [EMAIL PROTECTED] wrote:

 Hi,

 AFAIK the only Release for Wicket 1.3 is available through the Wicketstuff
 Subversion Repository. The last Release I tried from sourceforge.net was
 outdated, because it was targeted for Wicket 1.2

 The Module needed is wicket-contrib-tinymce and I suggest
 wicket-contrib-tinymce-examples. And you have to build them on your own.

 Hope this helps.

 Regards,
 Timm


 Am Dienstag, 6. Mai 2008 23:40:21 schrieb Ayodeji Aladejebi:

  Hi,
 
  I sometimes saw a TinyMCE code that uses AbstractBehavior to integrate
  TinyMCE rather than TinyMCEPanel from the one available in wicket
 stuffs.
 
  Please does anyone know where I can find this build
 
 
  thanks




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




TinyMCE Behavior rather than TinyMCE Panel

2008-05-06 Thread Ayodeji Aladejebi
Hi,

I sometimes saw a TinyMCE code that uses AbstractBehavior to integrate
TinyMCE rather than TinyMCEPanel from the one available in wicket stuffs.

Please does anyone know where I can find this build


thanks


Refactoring Support For Wicket in Netbeans? Wonderful

2008-05-04 Thread Ayodeji Aladejebi
I grabbed the latest plugin for wicket from Netbeans plugin portal and to my
suprise, my HTML files are automatically refactored when a corresponding
wicket component class is refactored.

Just excited to see this

you could also give it a try


Re: DatePicker Simple Question

2008-04-13 Thread Ayodeji Aladejebi
thanks

On 4/12/08, Gerolf Seitz [EMAIL PROTECTED] wrote:

 iirc, the default behavior is that you can click on the month,
 and then an advanced month/year selection will be displayed.
 if that's not the case, you need to override
 Datepicker#enableMonthYearSelection
 and return true.

   Gerolf

 On Sat, Apr 12, 2008 at 4:37 AM, Ayodeji Aladejebi [EMAIL PROTECTED]
 wrote:


  Please,
 
  The default behavior of the current datepicker allows users to scroll
  month
  by month, how can datepicker be configured to scroll year by year?
 
  thanks
 



Participate, Collaborate, Innovate
Join Community:
http://www.cowblock.net/

Get A Free Blog:
http://blogs.cowblock.net/


DatePicker Simple Question

2008-04-11 Thread Ayodeji Aladejebi
Please,

The default behavior of the current datepicker allows users to scroll month
by month, how can datepicker be configured to scroll year by year?

thanks


Re: Problem with serializing objects

2008-04-02 Thread Ayodeji Aladejebi
from JPA experience, eager loading of List of Entities is part of what hogs
memory. I have profiles an application before that the memory  usage just
kept growing each time my page reference a particular entity that eager
loads other collection of entities. As soon as I removed the eager load
annotation, my memory usage became quite stable.

if you need the reference your collections, just take another trip to the
database and fetch them.

Beware of some JPA providers, they also hog memory too.

I am not saying this is the problem in your case, yu may choose to look into
it and give that a try.


just dropped by

cheers

dabar

On 4/2/08, Java Programmer [EMAIL PROTECTED] wrote:

 Hello,
 We have problem with serializing webpages - the user session files
 growing rapidly (each request about 100KB), we don't know what we have
 did wrong - system is based on examples from wicket.apache.org, so it
 should work but this large files (10-20MB for some time, after many
 request) slows it down.
 We have tried to put transient in all fields which we are use as
 components on WebPages - it doesn't help.
 Maybe I put some code and little explain and you can tell us whay is
 wrong.
 The example will be consider LinkTree with 2000+ categories:
 Categories we have as Hibernate Entity cached whole in ehcache in memory:
 @Entity
 @Cache(usage=CacheConcurrencyStrategy.READ_WRITE)
 public class Category implements Serializable {

 @Id
 @GeneratedValue(strategy = GenerationType.AUTO)
 private Integer id;

 private String name;

 private String description;

 @Enumerated(value = EnumType.STRING)
 private CategoryStatus categoryStatus;

 @ManyToOne(fetch=FetchType.EAGER)
 @JoinColumn(name=parent_id, insertable=false, updatable=false,
 nullable=true)
 @Cascade(org.hibernate.annotations.CascadeType.ALL)
 @Fetch(value=FetchMode.SELECT)
 @Cache(usage=CacheConcurrencyStrategy.READ_WRITE)
 private Category parent;

 @OneToMany(fetch=FetchType.EAGER)
 @JoinColumn(name=parent_id)
 @Cascade(org.hibernate.annotations.CascadeType.ALL)
 @IndexColumn(name=list_id)
 @Fetch(value=FetchMode.SELECT)
 @Cache(usage=CacheConcurrencyStrategy.READ_WRITE)
 private ListCategory children = new ArrayListCategory ();

 @Index(name = categoryPathIndex)
 private String categoryPath = ;

 public Category addChild(Category child) {
 child.parent = this;
 children.add(child);
 return this;
 }

 //getters setters hashcode equals
 }

 Next we put the categories on panel as:
 public class CategoryTreePanel extends Panel {

 private final transient Log LOG =
 LogFactory.getLog(CategoryTreePanel.class);

 private transient Category activeCategory;

 private transient TreeNode treeNode;

 private transient LinkTree tree;

 public CategoryTreePanel(String id, ListCategory rootCategory) {
 this(id, rootCategory, null);
 }

 public CategoryTreePanel(String id, ListCategory rootCategory,
 Category activeCategory) {
 super(id);
 LOG.info(activeCategory:  + activeCategory);
 this.activeCategory = activeCategory;
 tree = new CarPartsLinkTree(category_tree,
 createTreeModel(rootCategory));
 tree.setRootLess(true);
 LOG.info(treeNode:  + treeNode);
 if(treeNode != null) {
 expandAllParentNodes(tree, treeNode);
 tree.getTreeState().selectNode(treeNode, true);
 } else {
 tree.getTreeState().collapseAll();
 }
 add(tree);
 }

 class CarPartsLinkTree extends LinkTree {

 public CarPartsLinkTree(String id, TreeModel model) {
 super(id, model);
 }

 @Override
 protected void onNodeLinkClicked(TreeNode node, BaseTree
 tree,
 AjaxRequestTarget target) {
 super.onNodeLinkClicked(node, tree, target);
 int catId = ((CategoryTreeNode)
 ((DefaultMutableTreeNode)
 node).getUserObject()).getCategory().getId();
 setRedirect(true);
 Page page = getPage();
 if(page instanceof AdvertismentsList || page
 instanceof AddAdvertisement) {
 setResponsePage(getPage().getClass(), new
 PageParameters(category= + catId));
 } else {
 setResponsePage(AdvertismentsList.class,
 new
 PageParameters(category= + catId));
 }
 }
 @Override
 protected ResourceReference getCSS() {
 return null;
 }

 

Re: comunication between panels

2008-02-18 Thread Ayodeji Aladejebi
panels in session is a bad idea.

Why not just keep the panel state information in the session and then let
them just pull it from there when they instantiate?


By the way, what are you trying to achieve with your panels cuz it is a bad
idea to be stuffing up panels in your session when you can simply keep the
state information the panels need there.

If you instantiate a new Panel, the new Panel can call
getSession().getInformationStateId(), pass that informationState to an
IModel and then the Panel has whatever it needs



On 2/18/08, Martijn Dashorst [EMAIL PROTECTED] wrote:

 WHY ARE YOU SHOUTING?

 Martijn

 On 2/18/08, Mazzanti Luca [EMAIL PROTECTED] wrote:
 
  i have a question: how can i comunicate between panels in wicket?
 
  my application contains a frameset of 2 pages, each of these has a
  tabbedPanel containing many panels:
  structure--
 
   APP
 PAGE1 PAG2
  panel panel panelpanel panel panel
 
  ---
 
  what is a good solution?
  MY solution is to:
 
  1)extends WicketSession and implements get/set methods to retrieve
 insances
  of these panels
  2)use it:
 
 Panel donald = ( (MySession) panel.getSession()
 ).getPanel('donaldduck');
 
  so i can retrieve insance of foo panel everywhere and use its public
  methods.
 
  IS A CORRECT SOLUTION?
  and then... PUTTING PANELS INSTANCES IN SESSION is a bad implementation
  about MEMORY AND wicket SERIALIZATION ?
 
  There is a BEST SOLUTION? that i don't know
  Thanks.
 
  --
  View this message in context:
 http://www.nabble.com/comunication-between-panels-tp15542127p15542127.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]
 
 


 --
 Buy Wicket in Action: http://manning.com/dashorst
 Apache Wicket 1.3.1 is released
 Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.1

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




-- 
Aladejebi Ayodeji A.,
DabarObjects Solutions
Phone: +234 9 481 7 156
Mobile: +234 803 589 1780
Email: [EMAIL PROTECTED]
Web: www.dabarobjects.com
Blog: blog.dabarobjects.com

Participate, Collaborate, Innovate
Join Community:
http://www.cowblock.net/

Get A Free Blog:
http://blogs.cowblock.net/


Re: comunication between panels

2008-02-18 Thread Ayodeji Aladejebi
Panel A puts the state information in the session during Link.onClick()

Panel B uses Session.getSession() to retrieve the state information during
render()

this simple technique is what i use and its very efficient.


On 2/18/08, Ayodeji Aladejebi [EMAIL PROTECTED] wrote:

 panels in session is a bad idea.

 Why not just keep the panel state information in the session and then let
 them just pull it from there when they instantiate?


 By the way, what are you trying to achieve with your panels cuz it is a
 bad idea to be stuffing up panels in your session when you can simply keep
 the state information the panels need there.

 If you instantiate a new Panel, the new Panel can call
 getSession().getInformationStateId(), pass that informationState to an
 IModel and then the Panel has whatever it needs



 On 2/18/08, Martijn Dashorst [EMAIL PROTECTED] wrote:
 
  WHY ARE YOU SHOUTING?
 
  Martijn
 
  On 2/18/08, Mazzanti Luca [EMAIL PROTECTED] wrote:
  
   i have a question: how can i comunicate between panels in wicket?
  
   my application contains a frameset of 2 pages, each of these has a
   tabbedPanel containing many panels:
   structure--
  
APP
  PAGE1 PAG2
   panel panel panelpanel panel panel
  
   ---
  
   what is a good solution?
   MY solution is to:
  
   1)extends WicketSession and implements get/set methods to retrieve
  insances
   of these panels
   2)use it:
  
  Panel donald = ( (MySession) panel.getSession()
  ).getPanel('donaldduck');
  
   so i can retrieve insance of foo panel everywhere and use its public
   methods.
  
   IS A CORRECT SOLUTION?
   and then... PUTTING PANELS INSTANCES IN SESSION is a bad
  implementation
   about MEMORY AND wicket SERIALIZATION ?
  
   There is a BEST SOLUTION? that i don't know
   Thanks.
  
   --
   View this message in context:
  http://www.nabble.com/comunication-between-panels-tp15542127p15542127.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]
  
  
 
 
  --
  Buy Wicket in Action: http://manning.com/dashorst
  Apache Wicket 1.3.1 is released
  Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.1
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 --
 Aladejebi Ayodeji A.,
 DabarObjects Solutions
 Phone: +234 9 481 7 156
 Mobile: +234 803 589 1780
 Email: [EMAIL PROTECTED]
 Web: www.dabarobjects.com
 Blog: blog.dabarobjects.com

 Participate, Collaborate, Innovate
 Join Community:
 http://www.cowblock.net/

 Get A Free Blog:
 http://blogs.cowblock.net/




-- 
Aladejebi Ayodeji A.,
DabarObjects Solutions
Phone: +234 9 481 7 156
Mobile: +234 803 589 1780
Email: [EMAIL PROTECTED]
Web: www.dabarobjects.com
Blog: blog.dabarobjects.com

Participate, Collaborate, Innovate
Join Community:
http://www.cowblock.net/

Get A Free Blog:
http://blogs.cowblock.net/


Re: Adding Panel(s) at Runtime (dynamically)

2008-02-08 Thread Ayodeji Aladejebi
//HTML
div wicket:id=panelListView
div wicket:id=runtimePanelItem/div
/div

your ListView model which is expected to be a List, determines the number of
Panels to be dynamically created
//Java

ListView panelListView= new ListView(panelListView, model){
   public void populateItem(ListItem item){
  SomeModelObject object = item.getModelObject();
  if(bla bla bla)
  item.add(new MyRuntimePanel(runtimePanelItem));
  else
  item.add(new MyOtherRuntimePanel(runtimePanelItem);
   }
}

infact you can insert some logic inside the ListView to determine which
specific panel to add dynamically.



On 2/8/08, Edvin Syse [EMAIL PROTECTED] wrote:

 Hi,

 Use a ListView or some other Repeater-component and implement a model
 that returns a list of the classes that should be created as panels. If
 you need a wicket:id on the surrounding div, that's fine, but not
 needed. You would then do

 WebMarkupContainer cont = new WebMarkupContainer(cont);

 Then you add the ListView to cont component istead of the page.

 Also, you would use the div with class a as the base for each listItem:

 div class=a wicket:id=contsPanels here/div

 -- Edvin

 mehdi b skrev:
  Hi all,
 
  I want to add some panels to my web page and the number of panels is
 unknown. I want a div wicket:id=cont/div in my template page and add
 needed panels to this div (the number of panels is determined at run time).
  Besides, I want a surrounding div class=a/div for each dynamic
 panel on adding it to the page.
 
  Thanks
 
 
  -
  Looking for last minute shopping deals?  Find them fast with Yahoo!
 Search.

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




Wicket MarkupException

2008-02-07 Thread Ayodeji Aladejebi
I just noticed that anytime i create wicket components having markups in a
seperate project and add it as a dependency to another wicket project, i get
this exception during runtime. I end up merging the seperate component with
the big project to make it work

I use Netbeans 6
Wicket 1.3

The ExcelPanel is a seperate jar of components added into the classpath of
another project. Any ideas

WicketMessage: Markup of type 'html' for component '
com.dabarobjects.wicketx.ExcelPanel' not found. Enable debug messages for
org.apache.wicket.util.resource to get a list of all filenames tried:
[MarkupContainer [Component id = excelholder, page = com.myapp.wicket.Home,
path = 4:excelholder.ExcelPanel, isVisible = true, isVersioned = true]]

Root cause:

org.apache.wicket.markup.MarkupNotFoundException: Markup not found.
Component class: com.dabarobjects.wicketx.ExcelPanel Enable debug messages
for org.apache.wicket.util.resource to get a list of all filenames tried
at org.apache.wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java
:215)
at org.apache.wicket.MarkupContainer.getAssociatedMarkupStream(
MarkupContainer.java:342)
at org.apache.wicket.MarkupContainer.renderAssociatedMarkup(
MarkupContainer.java:603)
at org.apache.wicket.markup.html.panel.Panel.onComponentTagBody(Panel.java
:112)
at org.apache.wicket.Component.renderComponent(Component.java:2429)
at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1354)
at org.apache.wicket.Component.render(Component.java:2266)
at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1240)
at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1370)
at org.apache.wicket.Page.onRender(Page.java:1442)
at org.apache.wicket.Component.render(Component.java:2266)
at org.apache.wicket.Page.renderPage(Page.java:891)
at
org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.respond
(BookmarkablePageRequestTarget.java:231)
at org.apache.wicket.request.AbstractRequestCycleProcessor.respond(
AbstractRequestCycleProcessor.java:103)
at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java
:1100


-- 
Aladejebi Ayodeji A.,
DabarObjects Solutions
Phone: +234 9 481 7 156
Mobile: +234 803 589 1780
Email: [EMAIL PROTECTED]
Web: www.dabarobjects.com
Blog: blog.dabarobjects.com

Participate, Collaborate, Innovate
Join Community:
http://www.cowblock.net/

Get A Free Blog:
http://blogs.cowblock.net/


Re: Wicket MarkupException

2008-02-07 Thread Ayodeji Aladejebi
then again, what is so annoying in Netbeans is that it seem to lock your
distribution files when tomcat is currently running your webapplication
making it difficult for such changes to reflect when you have recompiled the
external project and modified its markup too :(

On 2/7/08, Ayodeji Aladejebi [EMAIL PROTECTED] wrote:

 OoKie, i think its was my fault actaully. I did a Clean and Build on the
 project and it did work. Essentially netbeans only update Class files during
 build operations until you perform a Clean and Build i think. This seems to
 be the reason the markup files were not found at least in this my case

 So for some reason Netbeans did not update the markup files during the
 build operations.

 thanks

 On 2/7/08, Peter Thomas [EMAIL PROTECTED] wrote:
 
  On Feb 7, 2008 4:00 PM, Maurice Marrink [EMAIL PROTECTED] wrote:
 
   That is odd, it works for our component project.
   On tomcat that is. Either as compiled directory or as a jar.
  
   Can you give more details on what you are doing, maybe even show us
   the poms for your projects.
  
   Maurice
  
   On Feb 7, 2008 11:21 AM, Ayodeji Aladejebi [EMAIL PROTECTED]
  wrote:
I just noticed that anytime i create wicket components having
  markups in
   a
seperate project and add it as a dependency to another wicket
  project, i
   get
this exception during runtime. I end up merging the seperate
  component
   with
the big project to make it work
   
I use Netbeans 6
Wicket 1.3
   
The ExcelPanel is a seperate jar of components added into the
  classpath
   of
another project. Any ideas
   
  
 
  I've seen similar error messages when using the ReloadingWicketFilter
  under
  some specific conditions.  Maybe you are using it as well?  Also does
  the
  problem still happen in 'deployment' mode?
 
  - Peter
 
 
WicketMessage: Markup of type 'html' for component '
com.dabarobjects.wicketx.ExcelPanel' not found. Enable debug
  messages
   for
org.apache.wicket.util.resource to get a list of all filenames
  tried:
[MarkupContainer [Component id = excelholder, page =
   com.myapp.wicket.Home,
path = 4:excelholder.ExcelPanel, isVisible = true, isVersioned =
  true]]
   
Root cause:
   
org.apache.wicket.markup.MarkupNotFoundException: Markup not found.
Component class: com.dabarobjects.wicketx.ExcelPanel Enable debug
   messages
for org.apache.wicket.util.resource to get a list of all filenames
  tried
at org.apache.wicket.markup.MarkupCache.getMarkupStream(
  MarkupCache.java
:215)
at org.apache.wicket.MarkupContainer.getAssociatedMarkupStream(
MarkupContainer.java:342)
at org.apache.wicket.MarkupContainer.renderAssociatedMarkup(
MarkupContainer.java:603)
at org.apache.wicket.markup.html.panel.Panel.onComponentTagBody(
   Panel.java
:112)
at org.apache.wicket.Component.renderComponent(Component.java:2429)
at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java
  :1354)
at org.apache.wicket.Component.render(Component.java:2266)
at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java
   :1240)
at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java
   :1370)
at org.apache.wicket.Page.onRender(Page.java:1442)
at org.apache.wicket.Component.render(Component.java:2266)
at org.apache.wicket.Page.renderPage(Page.java:891)
at
   
  
  org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.respond
(BookmarkablePageRequestTarget.java:231)
at org.apache.wicket.request.AbstractRequestCycleProcessor.respond(
AbstractRequestCycleProcessor.java:103)
at org.apache.wicket.RequestCycle.processEventsAndRespond(
   RequestCycle.java
:1100
   
   
--
Aladejebi Ayodeji A.,
DabarObjects Solutions
Phone: +234 9 481 7 156
Mobile: +234 803 589 1780
Email: [EMAIL PROTECTED]
Web: www.dabarobjects.com
Blog: blog.dabarobjects.com
   
Participate, Collaborate, Innovate
Join Community:
http://www.cowblock.net/
   
Get A Free Blog:
http://blogs.cowblock.net/
   
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 







Re: Wicket MarkupException

2008-02-07 Thread Ayodeji Aladejebi
OoKie, i think its was my fault actaully. I did a Clean and Build on the
project and it did work. Essentially netbeans only update Class files during
build operations until you perform a Clean and Build i think. This seems to
be the reason the markup files were not found at least in this my case

So for some reason Netbeans did not update the markup files during the build
operations.

thanks

On 2/7/08, Peter Thomas [EMAIL PROTECTED] wrote:

 On Feb 7, 2008 4:00 PM, Maurice Marrink [EMAIL PROTECTED] wrote:

  That is odd, it works for our component project.
  On tomcat that is. Either as compiled directory or as a jar.
 
  Can you give more details on what you are doing, maybe even show us
  the poms for your projects.
 
  Maurice
 
  On Feb 7, 2008 11:21 AM, Ayodeji Aladejebi [EMAIL PROTECTED] wrote:
   I just noticed that anytime i create wicket components having markups
 in
  a
   seperate project and add it as a dependency to another wicket project,
 i
  get
   this exception during runtime. I end up merging the seperate component
  with
   the big project to make it work
  
   I use Netbeans 6
   Wicket 1.3
  
   The ExcelPanel is a seperate jar of components added into the
 classpath
  of
   another project. Any ideas
  
 

 I've seen similar error messages when using the ReloadingWicketFilter
 under
 some specific conditions.  Maybe you are using it as well?  Also does the
 problem still happen in 'deployment' mode?

 - Peter


   WicketMessage: Markup of type 'html' for component '
   com.dabarobjects.wicketx.ExcelPanel' not found. Enable debug messages
  for
   org.apache.wicket.util.resource to get a list of all filenames tried:
   [MarkupContainer [Component id = excelholder, page =
  com.myapp.wicket.Home,
   path = 4:excelholder.ExcelPanel, isVisible = true, isVersioned =
 true]]
  
   Root cause:
  
   org.apache.wicket.markup.MarkupNotFoundException: Markup not found.
   Component class: com.dabarobjects.wicketx.ExcelPanel Enable debug
  messages
   for org.apache.wicket.util.resource to get a list of all filenames
 tried
   at org.apache.wicket.markup.MarkupCache.getMarkupStream(
 MarkupCache.java
   :215)
   at org.apache.wicket.MarkupContainer.getAssociatedMarkupStream(
   MarkupContainer.java:342)
   at org.apache.wicket.MarkupContainer.renderAssociatedMarkup(
   MarkupContainer.java:603)
   at org.apache.wicket.markup.html.panel.Panel.onComponentTagBody(
  Panel.java
   :112)
   at org.apache.wicket.Component.renderComponent(Component.java:2429)
   at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java
 :1354)
   at org.apache.wicket.Component.render(Component.java:2266)
   at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java
  :1240)
   at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java
  :1370)
   at org.apache.wicket.Page.onRender(Page.java:1442)
   at org.apache.wicket.Component.render(Component.java:2266)
   at org.apache.wicket.Page.renderPage(Page.java:891)
   at
  
 
 org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.respond
   (BookmarkablePageRequestTarget.java:231)
   at org.apache.wicket.request.AbstractRequestCycleProcessor.respond(
   AbstractRequestCycleProcessor.java:103)
   at org.apache.wicket.RequestCycle.processEventsAndRespond(
  RequestCycle.java
   :1100
  
  
   --
   Aladejebi Ayodeji A.,
   DabarObjects Solutions
   Phone: +234 9 481 7 156
   Mobile: +234 803 589 1780
   Email: [EMAIL PROTECTED]
   Web: www.dabarobjects.com
   Blog: blog.dabarobjects.com
  
   Participate, Collaborate, Innovate
   Join Community:
   http://www.cowblock.net/
  
   Get A Free Blog:
   http://blogs.cowblock.net/
  
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 



Re: How to Apache tomcat wicket setup?

2008-02-06 Thread Ayodeji Aladejebi
the last thing i know about tomcat6 is that its performance is getting good
enough to handle all these without apache. in any case i use reverse proxy
built into apache.no need for mod_jk

then keep your resource folder outside your web app context so that tomcat
will not see it

On 2/6/08, cwilkes [EMAIL PROTECTED] wrote:


 Look at Exclusions on the documentation page:
 http://tomcat.apache.org/connectors-doc/reference/uriworkermap.html

 Chris


 Penn wrote:
 
  Previously, when using a struts application we would just say *.jsp is
  forward to tomcat. How to do this with wicket as we don't have any
  specific file extension?
 

 --
 View this message in context:
 http://www.nabble.com/How-to-Apache-tomcat-wicket-setup--tp15299970p15301172.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: Tip:ServletContext from WicketFilter

2008-01-22 Thread Ayodeji Aladejebi
thanks, works great!

On 1/21/08, Igor Vaynberg [EMAIL PROTECTED] wrote:

 there is a webapplication.getservletcontext().

 -igor


 On Jan 21, 2008 7:42 AM, Ayodeji Aladejebi [EMAIL PROTECTED] wrote:
  Well, I have started migrating some code to 1.3, however i had some
  STOP-AND-CONFIRM situation
 
  In 1.2.x
 
  ServletContext context = Application.getWicketServlet
 ().getServletContext()
  ?
 
  doSomethingWithContext(context);
 
  Migrating to 1.3.x
 
  ServletContext context =
  Application.getWicketFilter().getFilterConfig().getServletContext()
  ?
 
  doSomethingWithContext(context);
 
 
  I guess by doing this, my previous code wont break, even though there is
 no
  WicketServlet configured in my web.xml?
 
  Or must I configure a WicketServlet to be able to do this
 
  thanks
 

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




Tip:ServletContext from WicketFilter

2008-01-21 Thread Ayodeji Aladejebi
Well, I have started migrating some code to 1.3, however i had some
STOP-AND-CONFIRM situation

In 1.2.x

ServletContext context = Application.getWicketServlet().getServletContext()
?

doSomethingWithContext(context);

Migrating to 1.3.x

ServletContext context =
Application.getWicketFilter().getFilterConfig().getServletContext()
?

doSomethingWithContext(context);


I guess by doing this, my previous code wont break, even though there is no
WicketServlet configured in my web.xml?

Or must I configure a WicketServlet to be able to do this

thanks


Re: wicket + CMS

2008-01-16 Thread Ayodeji Aladejebi
please is it possible to inject Panels using Spring, because my own version
of CMS will allow swapping of panels without recompilation.



On 1/17/08, Igor Vaynberg [EMAIL PROTECTED] wrote:

 keep in mind that this is designed towards our internal requirements
 and not as a general purpose cms. that said, one of the requirements
 is to provide an optimized workflow for our integrators. these guys
 get down to the nitty gritty - so the most optimized workflow for them
 is to be able to check out a site from svn, edit it locally with
 whatever tools they prefer, and check it back in. we cant do that with
 a jcr :)

 -igor


 On Jan 16, 2008 11:36 PM, Florian Sperber [EMAIL PROTECTED] wrote:
  Hi Igor,
 
  have you seen: http://cocoondev.org/daisy/index.html ?
 
  Maybe their approach of keeping a repository could be interesting for
  you ;-)
 
  Kind regards
  Florian Sperber
 
  Igor Vaynberg schrieb:
 
   same way all the java apps do, svnkit.com :)
  
   -igor
  
  
   On Jan 16, 2008 11:01 PM, Martin Funk [EMAIL PROTECTED] wrote:
   Hi Igor,
  
   just curiosity, how do you cross that gap from java to svn?
  
   mf
  
   Igor Vaynberg schrieb:
  
   i am writing one right now for my company. i am building it on top
 of
   svn so you get versioning/tagging for free. it also allows you to
   embed tiles which are wicket components into the pages for all the
   dynamic parts. there is a good chance it will open sourced once i
 get
   it to a point where it is approaching something useful.
  
   -igor
  
  
   On Jan 16, 2008 1:28 PM, Jonathan Locke [EMAIL PROTECTED]
 wrote:
  
   i'm curious.  who out there is using wicket for CMS?  i know hippo
 is, but is
   there another as well?
   --
   View this message in context:
 http://www.nabble.com/wicket-%2B-CMS-tp14895305p14895305.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]
  
  
  
  
 -
   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]
  
 
 
  -
  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: Javadoc?

2008-01-14 Thread Ayodeji Aladejebi
i was even referring to getting the javadocs for offline use by downloading
it.

On 1/12/08, Johan Compagner [EMAIL PROTECTED] wrote:

 We also have them on wicketstuff.org/wicket13doc i believe
 Dont know if that is the latest version and i cant check it at this time

 On 1/11/08, Ayodeji Aladejebi [EMAIL PROTECTED] wrote:
  The javadoc does not come with the wicket 1.3 bundle.
 
  Where can the javadoc for all the wicket1.3 builds be found?
 

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




-- 
Aladejebi Ayodeji A.,
DabarObjects Solutions
Phone: +234 9 481 7 156
Mobile: +234 803 589 1780
Email: [EMAIL PROTECTED]
Web: www.dabarobjects.com
Blog: blog.dabarobjects.com

Participate, Collaborate, Innovate
Join Community:
http://www.cowblock.net/

Get A Free Blog:
http://blogs.cowblock.net/


Re: Javadoc?

2008-01-14 Thread Ayodeji Aladejebi
it was quite easy with netbeans maven...just unzip the wicket1.3.zip and
open the src folder with NB provided you have installed the maven plugin
though

On 1/14/08, Martijn Dashorst [EMAIL PROTECTED] wrote:

 We still need to find time to implement that in our build. The problem
 is with the multi-module maven setup that makes it difficult to
 provide a decent setup for the javadocs.

 If you want them in your IDE, using maven is the best way to get the
 docs integrated. It will automatically download the source jars (which
 include the JavaDoc) and bind that to the dependencies. This way you
 have the javadoc and the sources readily available, allowing you to
 set breakpoints inside Wicket, Hibernate, Spring, etc. and read the
 code.

 If you don't mind a bit of manual downloading and unzipping, then you
 can download the javadoc jars from the maven repo.

 For instance the wicket javadocs:

 http://repo1.maven.org/maven2/org/apache/wicket/wicket/1.3.0/wicket-1.3.0-javadoc.jar

 http://repo1.maven.org/maven2/org/apache/wicket/wicket-extensions/1.3.0/wicket-extensions-1.3.0-javadoc.jar

 etc.

 Martijn

 On 1/14/08, Ayodeji Aladejebi [EMAIL PROTECTED] wrote:
  i was even referring to getting the javadocs for offline use by
 downloading
  it.
 
  On 1/12/08, Johan Compagner [EMAIL PROTECTED] wrote:
  
   We also have them on wicketstuff.org/wicket13doc i believe
   Dont know if that is the latest version and i cant check it at this
 time
  
   On 1/11/08, Ayodeji Aladejebi [EMAIL PROTECTED] wrote:
The javadoc does not come with the wicket 1.3 bundle.
   
Where can the javadoc for all the wicket1.3 builds be found?
   
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 
  --
  Aladejebi Ayodeji A.,
  DabarObjects Solutions
  Phone: +234 9 481 7 156
  Mobile: +234 803 589 1780
  Email: [EMAIL PROTECTED]
  Web: www.dabarobjects.com
  Blog: blog.dabarobjects.com
 
  Participate, Collaborate, Innovate
  Join Community:
  http://www.cowblock.net/
 
  Get A Free Blog:
  http://blogs.cowblock.net/
 


 --
 Buy Wicket in Action: http://manning.com/dashorst
 Apache Wicket 1.3.0 is released
 Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0

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




-- 
Aladejebi Ayodeji A.,
DabarObjects Solutions
Phone: +234 9 481 7 156
Mobile: +234 803 589 1780
Email: [EMAIL PROTECTED]
Web: www.dabarobjects.com
Blog: blog.dabarobjects.com

Participate, Collaborate, Innovate
Join Community:
http://www.cowblock.net/

Get A Free Blog:
http://blogs.cowblock.net/


Javadoc?

2008-01-11 Thread Ayodeji Aladejebi
The javadoc does not come with the wicket 1.3 bundle.

Where can the javadoc for all the wicket1.3 builds be found?


Re: Javadoc?

2008-01-11 Thread Ayodeji Aladejebi
thanks, i have already done dat with NB fastastic maven support

On 1/11/08, Artur W. [EMAIL PROTECTED] wrote:



 Ayodeji Aladejebi wrote:
 
  The javadoc does not come with the wicket 1.3 bundle.
 
  Where can the javadoc for all the wicket1.3 builds be found?
 

 You can generate it from the source:

 mvn javadoc:javadoc


 Artur

 --
 View this message in context:
 http://www.nabble.com/Javadoc--tp14751479p14751719.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]




-- 
Aladejebi Ayodeji A.,
DabarObjects Solutions
Phone: +234 9 481 7 156
Mobile: +234 803 589 1780
Email: [EMAIL PROTECTED]
Web: www.dabarobjects.com
Blog: blog.dabarobjects.com

Participate, Collaborate, Innovate
Join Community:
http://www.cowblock.net/

Get A Free Blog:
http://blogs.cowblock.net/


Re: GWT + Wicket

2007-12-13 Thread Ayodeji Aladejebi
rather than have Wicket/GWT

sincerely i envision a wicket contrib project that can help us generate
javascript on the fly from pure java code within wicket for common and
simple client side behavior.

Wicket ajax is very solid but believe me, Javascript has come to stay for a
while. So I think a flexible java to javascript integration will not be a
bad idea.

cuz not all behaviors are going to be ajax based. Some behaviors just need
to happen within the browser without getting back to the server each time.
some are already built into the framework like
CheckBox.wantOnChangeNotification but they all somehow leverage ajax
which is why i could not use Echo because i dont want to have to hit my
server because my game sprite has to hit the server to move from point A
(34,90) to point B(34,91). the world is still short of bandwidth

But i look at a common base and generic API specification and interface for
stuffs that is pure @runtAtClient stuffs. Any javascript framework can be
used but they must confirm to this API

DND, visibility, sound, client side validation, simple animation, fading,
shadow, warning popups and a host of them.

maybe a provider pattern like I can use Hibernate or Toplink for JPA, with
this API , I can take any Dojo, Scriptaculous or Mootools contrib that
complies to this API and use then.

I suggest an interface that is also compatible with IBehavior. There is also
a factory that takes this interface and compiles the java code into
javascript , dynamically wraps the script around the appropriate component
somehow and then you wont need to even care about javascript for many basic
client based activities.





On 12/12/07, Eelco Hillenius [EMAIL PROTECTED] wrote:

 On Dec 11, 2007 2:15 PM, Dan Kaplan [EMAIL PROTECTED] wrote:
  I've scoured the internet to figure out how to integrate a GWT app
 inside a
  Wicket App.  I'm not getting very good results.  I also checked the
 mailing
  archives and didn't really find any technical advice on how to do this.

 What specific problems have you encountered? My understanding is that
 GWT runs much like an applet, and client server communication is done
 using services that can be implemented in various ways. I don't think
 GWT and Wicket should bite each other much here.

  First, I noticed a lot of the attitude towards GWT/Wicket is that you
  usually want to choose one or the other.  I disagree.  In fact, I think
  comparing GWT to Wicket is comparing apples and oranges.  GWT is a
 Toolkit,
  and Wicket is a Framework.  They both do different things and they're
 both
  very good at what they do.  Therefore, it's worthwhile to have GWT
  integration in wicket.

 I guess most people just don't want to use two technologies with an
 overlap. But no-one of the core team at least is against doing it. It
 would be fun to hear from people who did that with success. I don't
 see why it couldn't be done (but then again... I never actually
 tried).

  That being said, I've also inferred from most of the Wicket + GWT
  conversations that the Wicket developers are trying to add some huge
  functionality to Wicket to allow you to place the a GWT app from your
  WebPage classes.  That may come in handy, but I'm not so sure that it's
  necessary.  I think the client side code that GWT requires could easily
 be
  added by hardcoding it in the markup and that would be good enough for
 most
  (myself included).  The part that's tricky to me is this section:
 
 http://code.google.com/webtoolkit/documentation/com.google.gwt.doc.Developer
  Guide.RemoteProcedureCalls.html

 Yeah. Maybe we/ Wicket's users want to do things to neat/ generic. :-)

  Specifically, if you scroll down a little to the image, how do you get
 the
  right side to integrate with Wicket?  As you can see, GWT uses a
  RemoteServiceServlet if you want your GWT app to communicate with the
  server.  But the wicket philosophy seems like it tries to hide Servlets
 from
  the user.  So, in short, can anyone advise me on how to integrate a GWT
 app
  with Wicket?

 I don't have much advise other then try to keep it simple and if it
 works, it works.

 Eelco

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




-- 
Aladejebi Ayodeji A.,
DabarObjects Solutions
Phone: +234 9 481 7 156
Mobile: +234 803 589 1780
Email: [EMAIL PROTECTED]
Web: www.dabarobjects.com
Blog: blog.dabarobjects.com

Participate, Collaborate, Innovate
Join Community:
http://www.cowblock.net/

Get A Free Blog:
http://blogs.cowblock.net/


Re: Beyond Wicket:Firefox and Gmail Users (Any Browser Crash Noticed Lately)

2007-11-22 Thread Ayodeji Aladejebi
i dont have firebug install as well and it keeps me from wicket forum...its
a nasty bug and have switched temporarily to IE7. But i dont know who to
blaim...Gmail  or Firefox?

On Nov 21, 2007 12:34 PM, Francis De Brabandere [EMAIL PROTECTED] wrote:

 I have the same problem, is that firebug an extension? I don't have it
 installed.

 On Nov 20, 2007 10:29 PM, Nick Heudecker [EMAIL PROTECTED] wrote:

  Have you disabled Firebug for Gmail?
 
  On Nov 20, 2007 3:28 PM, Ayodeji Aladejebi [EMAIL PROTECTED] wrote:
 
   Please this is off wicket topic but i do notice my Firefox 2.0.0.9
   crashes particularly when I try to search the wicket mailing list for
   FAQs. This started happening since i noticed an upgrade in Gmail
  
   Anyone experiencing somthing like this?
  
  
   thanks
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 
  --
  Nick Heudecker
  Professional Wicket Training  Consulting
  http://www.systemmobile.com
 
  Eventful - Intelligent Event Management
  http://www.eventfulhq.com
 



 --
 http://www.somatik.be
 Microsoft gives you windows, Linux gives you the whole house.



Beyond Wicket:Firefox and Gmail Users (Any Browser Crash Noticed Lately)

2007-11-20 Thread Ayodeji Aladejebi
Please this is off wicket topic but i do notice my Firefox 2.0.0.9
crashes particularly when I try to search the wicket mailing list for
FAQs. This started happening since i noticed an upgrade in Gmail

Anyone experiencing somthing like this?


thanks

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



Re: Problem with wicket authentication

2007-11-06 Thread Ayodeji Aladejebi
you have not used it correctly

return a Roles object and not null
@Override
  public Roles getRoles() {
 return new Roles(ADMIN);
  }

@AuthorizeInstantiation(ADMIN)
public class AdminPage extends WebPage {
}


On 11/6/07, Maurice Marrink [EMAIL PROTECTED] wrote:

 You are using the wrong authorization framework!

 :) No seriously now. I don't know what is wrong with your code,
 although the authenticate method might give some useful debugging
 info.
 There is however a second authorization framework for wicket called
 Swarm. you might want to check it out.
 http://wicketstuff.org/confluence/display/STUFFWIKI/Wicket-Security

 Maurice

 P.S. warning: shameless self-promoting :)


 On Nov 5, 2007 2:32 PM, Hugues Pichereau [EMAIL PROTECTED] wrote:
  Hi,
 
  I would like to use Wicket authentication, as in the examples.
  So I modified the Wicket QuickStart project to use authentication, like
 this:
 
  public class WicketApplication extends AuthenticatedWebApplication {
 
 public WicketApplication() {
 }
 
 public Class getHomePage() {
return HomePage.class;
 }
 
 @Override
 protected Class? extends WebPage getSignInPageClass() {
return LoginPage.class;
 }
 
 @Override
 protected Class? extends AuthenticatedWebSession
 getWebSessionClass() {
return WicketSession.class;
 }
  }
 
 
  public class WicketSession extends AuthenticatedWebSession {
 
 public WicketSession(AuthenticatedWebApplication application, Request
 request) {
super(application, request);
 }
 
 @Override
 public boolean authenticate(String arg0, String arg1) {
return false; // should block everybody
 }
 
 @Override
 public Roles getRoles() {
return null;
 }
  }
 
 
  HomePage.html has:
  a href=# wicket:id=goto-adminAdmin page/a
 
  public class HomePage extends WebPage {
 
 public HomePage(final PageParameters parameters) {
add(new PageLink(goto-admin, AdminPage.class));
 }
  }
 
 
  LoginPage.html has:
  span wicket:id=signInPanel /
 
  public final class LoginPage extends SignInPage {
  }
 
 
  And finally, the admin page to protect:
 
  @AuthorizeInstantiation(USER)
  public class AdminPage extends WebPage {
  }
 
  The problem is that a click from the HomePage always brings the
 AdminPage, without any
  LoginPage displayed.
 
  I used Wicket 1.3 beta4.
 
  After reading the Wicket example and 2 tutorials on authentication, I
 really can't see what I'm missing.
  Any idea ?
 
  Hugues
 
 

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




Re: difference between Link(SomePage.class) and Link(new SomePage())

2007-11-02 Thread Ayodeji Aladejebi
boolean loggedIn = session.get().isSignedIn();

MySignInForm.setVisible(!loggedIn);

then you can set your expired page settings to point to the page with your
SignInForm

hope this assists your design decision

why should you invalidate a session by passing parameter to another page

why not just call session.invalidate() from Link.onClick?


On 11/2/07, auron [EMAIL PROTECTED] wrote:


 Hey Igor -

 Thanks for the reply. Unfortunately I am still having some trouble finding
 the solution for this. I've been using nabble to search the forums and so
 far I cannot find anything of use (perhaps my search terms aren't
 effective).

 it seems that main problem is that when invalidating a session and calling
 a
 page that was previously within the session, the page expires, which makes
 sense, but I need a way to tell wicket to use a new page and new session?
 once this happens. The closest thing I found on the mailing list were
 these
 threads:

 http://www.nabble.com/Page-expiration-tf4191798.html#a11972501
 http://www.nabble.com/Clearing-Session-tf4684426.html#a13452853

 Any help is greatly appreciated. Thanks.

 igor.vaynberg wrote:
 
  search the archives for this. this is a common mistake and has been
  explained/corrected on this mailing list a multitude of times.
 
  -igor
 
  On 11/2/07, auron [EMAIL PROTECTED] wrote:
 
  Hey all,
 
  Sorry to be the wicket newbie, but I was wondering if you guys could
 help
  me
  to understand how Links work.
 
  I understand that when you do Link(SomePage.class), it calls the zero
  param
  constructor of SomePage, and when you do Link(new SomePage(someParams))
  you
  can call other constructors, but besides this, what are the other
  differences?
 
  I have a LoginPage that renders a login form if the zero param
  constructor
  is called, and when LoginPage(false) is called, it signs out the user
  first
  and then renders a login page. The problem is that when I use Link(new
  LoginPage(false)) to sign out the user, it does indeed sign out the
 user,
  but a wicket page expired message is rendered rather than the
 LoginPage.
 
 
  public LoginPage() {
  this(true);
  }
 
  public LoginPage(boolean isLogin) {
  Model simpleUser = new Model(new SimpleUser());
  add(new SignInForm(loginform, simpleUser));
  ACPSession session = getACPSession();
  if (isLogin) {
  if (session.isSignedIn()) {
 
  error(getLocalizer().getString(login.errors.alreadysignedin,
  LoginPage.this));
  }
  } else {
  if (session.isSignedIn()) {
  info(getLocalizer().getString(login.info.signedout));
  session.signOut();
  //after this, Page Expired error.
  }
  }
  }
 
  Hope this made sense, any help is greatly appreciated.
  Thank you,
  jin
  --
  View this message in context:
 
 http://www.nabble.com/difference-between-Link%28SomePage.class%29-and-Link%28new-SomePage%28%29%29-tf4738073.html#a13549579
  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/difference-between-Link%28SomePage.class%29-and-Link%28new-SomePage%28%29%29-tf4738073.html#a13556635
 Sent from the Wicket - User mailing list archive at Nabble.com.


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




Adding Calldecorator to AjaxPagingLink?

2007-10-28 Thread Ayodeji Aladejebi
i cant seem to find a way around this, any tip will be appreciated


Re: Adding Calldecorator to AjaxPagingLink?

2007-10-28 Thread Ayodeji Aladejebi
yeah looking at the source, i know wat to do thanks :)

On 10/28/07, Igor Vaynberg [EMAIL PROTECTED] wrote:

 ajaxpagingnavigator has newPagingNavigationLink() that you can
 override and return a link with your call decorator. its all there in
 the source. if we make everything trivially pluggable wicket will end
 up a huge spaghetti mess, so somethings you need to research and
 possibly replicate on your own.

 -igor


 On 10/28/07, Ayodeji Aladejebi [EMAIL PROTECTED] wrote:
  but AjaxPagingNavigator or PagingNavigationLink has no such method to
  override
 
  On 10/28/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
  
   override getajaxcalldecorator()?
  
   -igor
  
  
   On 10/27/07, Ayodeji Aladejebi [EMAIL PROTECTED] wrote:
i cant seem to find a way around this, any tip will be appreciated
   
  
   -
   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: Wicket and Netbeans 6

2007-10-23 Thread Ayodeji Aladejebi
I have checked out and built wicket support for netbeans from
http://blogs.sun.com/geertjan/entry/when_boudreau_met_wicket
before,

if you have NB6 installed already,

install these two NB modules, create a WebApplication Project in NB and you
will have a ready sample application that runs fine and contains all the
artifacts you need to build without errors

Download and install this module into NB6
http://www.dabarobjects.com/downloads/org-netbeans-modules-web-wicket.nbm
Download and install this module in Netbeans6
http://www.dabarobjects.com/downloads/org-netbeans-modules-wicket-library.nbm

start netbeans, create a new Web Application Project, Select Wicket 1.2 and
then BOOM! everything is ready to go

yu may have to remove the * behind the url when it launches browser

On 10/22/07, Reinout van Schouwen [EMAIL PROTECTED] wrote:

 Op zaterdag 20-10-2007 om 16:20 uur [tijdzone +0100], schreef Ayodeji
 Aladejebi:
  if you are a beginner with both Netbeans and Maven then find one of the
  wicket plugins for NB6 and install them. they have a quickstart project
 by
  default

 One of the wicket plugins for NB6?

 As far as I have been able to track down, there's exactly one Wicket
 plugin supposed to work with Netbeans 6. You have to fetch it from a CVS
 branch and build it yourself -- which I haven't managed yet; it keeps
 complaining about an undefined nbplatform.default.harness.dir.

 If anyone else wants to try, here's how far I got:
 - create an account on dev.java.net;
 - follow cvs instructions but use the -r nb_60 branch:
 cvs -d :pserver:username@cvs.dev.java.net:/cvs checkout -r nb_60
 nbwicketsupport
 - open the subproject 'nbmodule' in Netbeans

 regards,

 --
 Reinout van Schouwen




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





Get A Free Blog:
http://blogs.cowblock.net/


On Using Models (Again)

2007-10-20 Thread Ayodeji Aladejebi
Greetings,
Please I have some further questions to ask about models.

LoadableDetachableModel cannot be used as a CompoundPropertyModel obviously

meaning that if I load an Object with LoadableDetachableModel , I cant
simple pass the LoadableDetachableModel to a Label so that the Label can use
its id to resolve the value,

Which means I have to first get the Object from the LoadableDetachableModel
before wrapping it into CompoundPropertyModel again or a PropertyModel

Please help me out;

class MyData {

Long id;
String name;
String address;
String info;

}

class MyDataModel extends LoadableDetachableModel {
Long id;

public Object load(){
 return dao.getData(id);
}
}

MyDataModel mymodel = ...;
Label nameLabel = new Label(name, mymodel);
Label addressLabel = new Label(address, mymodel);
Label infoLabel = new Label(info, mymodel);

because i see so many codes like this:

 Label label = new Label(name, new AbstractReadOnlyModel() {

 public Object getObject(Component component) {
 return someobject.getName();
 }
 });
1.  why create another Model
2. to retreive my someobject from another model to use in another model just
to display does yet seem nice to me

so why can that single instance of LoadableDetachableModel which is a
readonly model be very handy for so many Label components knowing fully well
that Websites are filled with labels loading from a Data Object.

shoot me somebody :)

am still using 1.2.6 please, is it time to move to 1.3?


Re: On Using Models (Again)

2007-10-20 Thread Ayodeji Aladejebi
wonderful!, it was the javadoc that confused me since it wrote Object and
there is no other constuctor for IModel


On 10/20/07, Johan Compagner [EMAIL PROTECTED] wrote:

 new Compoundpropertymodel(new Loadabledetachablemodel(yourdbobject))

 so just wrap it and then use it as compound

 On 10/20/07, Ayodeji Aladejebi [EMAIL PROTECTED] wrote:
  Greetings,
  Please I have some further questions to ask about models.
 
  LoadableDetachableModel cannot be used as a CompoundPropertyModel
 obviously
 
  meaning that if I load an Object with LoadableDetachableModel , I cant
  simple pass the LoadableDetachableModel to a Label so that the Label can
 use
  its id to resolve the value,
 
  Which means I have to first get the Object from the
 LoadableDetachableModel
  before wrapping it into CompoundPropertyModel again or a PropertyModel
 
  Please help me out;
 
  class MyData {
 
  Long id;
  String name;
  String address;
  String info;
 
  }
 
  class MyDataModel extends LoadableDetachableModel {
  Long id;
 
  public Object load(){
   return dao.getData(id);
  }
  }
 
  MyDataModel mymodel = ...;
  Label nameLabel = new Label(name, mymodel);
  Label addressLabel = new Label(address, mymodel);
  Label infoLabel = new Label(info, mymodel);
 
  because i see so many codes like this:
 
   Label label = new Label(name, new AbstractReadOnlyModel() {
 
   public Object getObject(Component component) {
   return someobject.getName();
   }
   });
  1.  why create another Model
  2. to retreive my someobject from another model to use in another model
 just
  to display does yet seem nice to me
 
  so why can that single instance of LoadableDetachableModel which is a
  readonly model be very handy for so many Label components knowing fully
 well
  that Websites are filled with labels loading from a Data Object.
 
  shoot me somebody :)
 
  am still using 1.2.6 please, is it time to move to 1.3?
 

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




Re: Wicket and Netbeans 6

2007-10-20 Thread Ayodeji Aladejebi
if you are a beginner with both Netbeans and Maven then find one of the
wicket plugins for NB6 and install them. they have a quickstart project by
default


On 10/20/07, dtoffe [EMAIL PROTECTED] wrote:



 ZedroS wrote:
 
  Netbeans has now created a quickstart project. However its name is
  quickstart (war) and I don't manage to have it running. I run the
  Start.java but nothing happens...
 
  Sorry for all these questions, I'm new to Netbeans (which I choose to
  try out the UML part).
 

 I'm using Netbeans 5.5.1 but know nothing about Maven. I've installed
 the Wicket support plugin from Netbeans Update Center and added the Wicket
 (1.2.6) jars creating a library in Library Manager, this works fine so
 far.
 I've seen recently a new Wicket plugin for 1.3 but can't install it
 due
 to dependency problems, perhaps it's tailored to Netbeans 6.

 Hope this helps,

 Daniel

 --
 View this message in context:
 http://www.nabble.com/Wicket-and-Netbeans-6-tf4657950.html#a13310690
 Sent from the Wicket - User mailing list archive at Nabble.com.


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




Session Objects Approach

2007-10-10 Thread Ayodeji Aladejebi
Basically there is an object like this, a common model

class User{
 Long id;
 String username;
 String password;
 String fullname;
 ...
 List collections;
}

From most examples and basic approach, i see references to this Object in
the session
During user sign in, this object is loaded from database and stored in the
memory and then during authentication, this object is checked against Null
to know if a user is signed in or not and then if required, a getter in the
session returns the reference.


Please correct me if I am wrong,

Now I thought,

Instead of keeping the object reference in the session after a sign in, why
not just keep the ID (Long) and then during authentication, the code just
checks for Null or Zero
 and then if the entire user object is required in any of the pages, The
USER ID is passed into the DAO which then loads the object and then
discarded immediately after use so that no references exists to it again


Does this approach have any significant improvement over the former? and
what could be the cons

Thanks


EmailAddressValidator Issue

2007-09-21 Thread Ayodeji Aladejebi
Isnt  [EMAIL PROTECTED] not a valid email address, the Wicket
EmailAddressValidator rejects it

someone tell me that is not a valid email address


  1   2   >