Re: jWicket 0.5.10

2010-05-17 Thread Stefan Jozsa
Thanks !

Istvan

--- On Sun, 5/16/10, Stefan Lindner lind...@visionet.de wrote:
 From: Stefan Lindner lind...@visionet.de
 Subject: jWicket 0.5.10
 To: users@wicket.apache.org
 Date: Sunday, May 16, 2010, 12:53 PM
 jWicket 0.5.10 is now available at
 wicketstuff: 
 https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/jwicket-parent

 
 Upgraded jQuery-ui to version 1.8.1
 
 Stefan
 


  


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



Re: Bug or feature?

2010-05-17 Thread Richard Wilkinson
Hi,

This is the same bug as I reported in December of last year (2009):

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

-- 
Regards - Richard Wilkinson
Developer,
jWeekend: OO  Java Technologies - Development and Training
http://jWeekend.com


On 15 May 2010 11:25, Martin Makundi martin.maku...@koodaripalvelut.com wrote:
 Hi!

 Unfortunately it is a bug that occurs only with wicket:exdends pages.

 Jira issue created: https://issues.apache.org/jira/browse/WICKET-2872

 **
 Martin

 2010/5/15 Martin Makundi martin.maku...@koodaripalvelut.com:
 Hi!

 I Just upgraded from 1.4-rc7 to 1.4.8 and I see strange behavior with
 enclosures. Has the specification changed?

 I used to have:
    wicket:enclosure child=selectedCustomersLabel
    trth align=leftwicket:container
 wicket:id=customerSelectionLabel/:/thtdwicket:container
 wicket:id=selectedCustomersLabel//td/tr
    /wicket:enclosure

 And in the code I was used to changing the visibility only for
 selectedCustomersLabel

 This worked fine with 1.4-rc7. Setting selectedCustomersLabel
 invisible would hide also customerSelectionLabel.

 Now with 1.4.8 I get an exception that customerSelectionLabel does not
 have markup if I set it invisible it works, but that's a whole lot
 of work if I have to change all enclosures to work like this. What's
 the benefit of enclosure like that?

 is it a bug, am I doing something wrong or is it a feature?

 WicketMessage: The component(s) below failed to render. A common
 problem is that you have added a component in code but forgot to
 reference it in the markup (thus the component will never be
 rendered).

 1. [Component id = customerSelectionLabel]

 Root cause:

 org.apache.wicket.WicketRuntimeException: The component(s) below
 failed to render. A common problem is that you have added a component
 in code but forgot to reference it in the markup (thus the component
 will never be rendered).

 1. [Component id = customerSelectionLabel]

 at org.apache.wicket.Page.checkRendering(Page.java:1182)
 at org.apache.wicket.Page.renderPage(Page.java:922)
 at 
 org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:261)
 at 
 org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:105)
 at 
 org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1258)
 at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329)
 at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1428)

 **
 Martin


 -
 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: Bug or feature?

2010-05-17 Thread Martin Makundi
Hi!

It cannot be the same because this is not fixed.

**
Martin

2010/5/17 Richard Wilkinson richardjohnwilkin...@googlemail.com:
 Hi,

 This is the same bug as I reported in December of last year (2009):

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

 --
 Regards - Richard Wilkinson
 Developer,
 jWeekend: OO  Java Technologies - Development and Training
 http://jWeekend.com


 On 15 May 2010 11:25, Martin Makundi martin.maku...@koodaripalvelut.com 
 wrote:
 Hi!

 Unfortunately it is a bug that occurs only with wicket:exdends pages.

 Jira issue created: https://issues.apache.org/jira/browse/WICKET-2872

 **
 Martin

 2010/5/15 Martin Makundi martin.maku...@koodaripalvelut.com:
 Hi!

 I Just upgraded from 1.4-rc7 to 1.4.8 and I see strange behavior with
 enclosures. Has the specification changed?

 I used to have:
    wicket:enclosure child=selectedCustomersLabel
    trth align=leftwicket:container
 wicket:id=customerSelectionLabel/:/thtdwicket:container
 wicket:id=selectedCustomersLabel//td/tr
    /wicket:enclosure

 And in the code I was used to changing the visibility only for
 selectedCustomersLabel

 This worked fine with 1.4-rc7. Setting selectedCustomersLabel
 invisible would hide also customerSelectionLabel.

 Now with 1.4.8 I get an exception that customerSelectionLabel does not
 have markup if I set it invisible it works, but that's a whole lot
 of work if I have to change all enclosures to work like this. What's
 the benefit of enclosure like that?

 is it a bug, am I doing something wrong or is it a feature?

 WicketMessage: The component(s) below failed to render. A common
 problem is that you have added a component in code but forgot to
 reference it in the markup (thus the component will never be
 rendered).

 1. [Component id = customerSelectionLabel]

 Root cause:

 org.apache.wicket.WicketRuntimeException: The component(s) below
 failed to render. A common problem is that you have added a component
 in code but forgot to reference it in the markup (thus the component
 will never be rendered).

 1. [Component id = customerSelectionLabel]

 at org.apache.wicket.Page.checkRendering(Page.java:1182)
 at org.apache.wicket.Page.renderPage(Page.java:922)
 at 
 org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:261)
 at 
 org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:105)
 at 
 org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1258)
 at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329)
 at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1428)

 **
 Martin


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



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



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



Re: Bug or feature?

2010-05-17 Thread Martin Makundi
Ah.. so is fixed in 1.5 ? Gurk...

2010/5/17 Martin Makundi martin.maku...@koodaripalvelut.com:
 Hi!

 It cannot be the same because this is not fixed.

 **
 Martin

 2010/5/17 Richard Wilkinson richardjohnwilkin...@googlemail.com:
 Hi,

 This is the same bug as I reported in December of last year (2009):

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

 --
 Regards - Richard Wilkinson
 Developer,
 jWeekend: OO  Java Technologies - Development and Training
 http://jWeekend.com


 On 15 May 2010 11:25, Martin Makundi martin.maku...@koodaripalvelut.com 
 wrote:
 Hi!

 Unfortunately it is a bug that occurs only with wicket:exdends pages.

 Jira issue created: https://issues.apache.org/jira/browse/WICKET-2872

 **
 Martin

 2010/5/15 Martin Makundi martin.maku...@koodaripalvelut.com:
 Hi!

 I Just upgraded from 1.4-rc7 to 1.4.8 and I see strange behavior with
 enclosures. Has the specification changed?

 I used to have:
    wicket:enclosure child=selectedCustomersLabel
    trth align=leftwicket:container
 wicket:id=customerSelectionLabel/:/thtdwicket:container
 wicket:id=selectedCustomersLabel//td/tr
    /wicket:enclosure

 And in the code I was used to changing the visibility only for
 selectedCustomersLabel

 This worked fine with 1.4-rc7. Setting selectedCustomersLabel
 invisible would hide also customerSelectionLabel.

 Now with 1.4.8 I get an exception that customerSelectionLabel does not
 have markup if I set it invisible it works, but that's a whole lot
 of work if I have to change all enclosures to work like this. What's
 the benefit of enclosure like that?

 is it a bug, am I doing something wrong or is it a feature?

 WicketMessage: The component(s) below failed to render. A common
 problem is that you have added a component in code but forgot to
 reference it in the markup (thus the component will never be
 rendered).

 1. [Component id = customerSelectionLabel]

 Root cause:

 org.apache.wicket.WicketRuntimeException: The component(s) below
 failed to render. A common problem is that you have added a component
 in code but forgot to reference it in the markup (thus the component
 will never be rendered).

 1. [Component id = customerSelectionLabel]

 at org.apache.wicket.Page.checkRendering(Page.java:1182)
 at org.apache.wicket.Page.renderPage(Page.java:922)
 at 
 org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:261)
 at 
 org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:105)
 at 
 org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1258)
 at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329)
 at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1428)

 **
 Martin


 -
 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



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


Re: jWicket 0.5.10

2010-05-17 Thread Josh Kamau
Hi stefan, where can i see a demo?

regards
Josh

On Sun, May 16, 2010 at 12:53 PM, Stefan Lindner lind...@visionet.dewrote:

 jWicket 0.5.10 is now available at wicketstuff:
 https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/jwicket-parent

 Upgraded jQuery-ui to version 1.8.1

 Stefan



How to perform form validation with ajax before user submits the form

2010-05-17 Thread Erich W Schreiner
Dear all,

I would like to perform form validation using Ajax before the user actually 
submits the form, similar to Ajax-based field validation. I have added an 
implementation of AbstractFormValidator to the form, and an Ajax behavior that 
sends the current data to the server triggered by the onchange event. 
My problems are: 
1. The form validator gets called and can process the current form fields, but 
I do not see how to refresh the feedback panel properly.
2. What is the best practice to trigger form validation? Currently, I call 
getForm().onFormSubmitted() from within setObject() of my model, which in turn 
gets called from the onchange Ajax behavior, but to call onFormSubmitted() is 
discouraged in the javadoc.

TIA for any feedback :-)
Erich

Re: How to perform form validation with ajax before user submits the form

2010-05-17 Thread Ernesto Reinaldo Barreiro
On 1) Why not call AjaxRequestTarget.get().addComponent(yourFeedbackPanel)?

Ernesto


On Mon, May 17, 2010 at 1:17 PM, Erich W Schreiner eschrei...@yahoo.com wrote:
 Dear all,

 I would like to perform form validation using Ajax before the user actually 
 submits the form, similar to Ajax-based field validation. I have added an 
 implementation of AbstractFormValidator to the form, and an Ajax behavior 
 that sends the current data to the server triggered by the onchange event.
 My problems are:
 1. The form validator gets called and can process the current form fields, 
 but I do not see how to refresh the feedback panel properly.
 2. What is the best practice to trigger form validation? Currently, I call 
 getForm().onFormSubmitted() from within setObject() of my model, which in 
 turn gets called from the onchange Ajax behavior, but to call 
 onFormSubmitted() is discouraged in the javadoc.

 TIA for any feedback :-)
 Erich

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



Re: How to perform form validation with ajax before user submits the form

2010-05-17 Thread Erich W Schreiner
Hi Ernesto,

I was not aware of this static method. Works like a charm :-)
Many thanks for the quick response.

Regards,
Erich







From: Ernesto Reinaldo Barreiro reier...@gmail.com
To: users@wicket.apache.org
Sent: Mon, May 17, 2010 1:26:36 PM
Subject: Re: How to perform form validation with ajax before user submits the  
form

On 1) Why not call AjaxRequestTarget.get().addComponent(yourFeedbackPanel)?

Ernesto


On Mon, May 17, 2010 at 1:17 PM, Erich W Schreiner eschrei...@yahoo.com wrote:
 Dear all,

 I would like to perform form validation using Ajax before the user actually 
 submits the form, similar to Ajax-based field validation. I have added an 
 implementation of AbstractFormValidator to the form, and an Ajax behavior 
 that sends the current data to the server triggered by the onchange event.
 My problems are:
 1. The form validator gets called and can process the current form fields, 
 but I do not see how to refresh the feedback panel properly.
 2. What is the best practice to trigger form validation? Currently, I call 
 getForm().onFormSubmitted() from within setObject() of my model, which in 
 turn gets called from the onchange Ajax behavior, but to call 
 onFormSubmitted() is discouraged in the javadoc.

 TIA for any feedback :-)
 Erich

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

AW: jWicket 0.5.10

2010-05-17 Thread Stefan Lindner
Hi Josh,

download ist. Call mvn install and put the resulting war file into your deploy 
dir. Perhaps you have to remove slf4j from the web-inf/lib folder of the war 
file if your server has it's own slf4j.

The Demo does not look very pretty, it's more of a demonstratioin what's 
possible and a starting point for code inspection.

Stefan

-Ursprüngliche Nachricht-
Von: Josh Kamau [mailto:joshnet2...@gmail.com]
Gesendet: Mo 17.05.2010 13:14
An: users@wicket.apache.org
Betreff: Re: jWicket 0.5.10
 
Hi stefan, where can i see a demo?

regards
Josh

On Sun, May 16, 2010 at 12:53 PM, Stefan Lindner lind...@visionet.dewrote:

 jWicket 0.5.10 is now available at wicketstuff:
 https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/jwicket-parent

 Upgraded jQuery-ui to version 1.8.1

 Stefan




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

Re: Empty List Default Message

2010-05-17 Thread Pedro Santos
Hi, just an idea:

class EmptyMessage extends Label{
 EmptyMessage(Model listModel, String message){
  super(new AbstractReadyOnlyModel(){
 getObject(){
  listModel.getObject().size()==0?message:null;
 }
  });
 }
}

On Mon, May 17, 2010 at 8:06 AM, Ayodeji Aladejebi aladej...@gmail.comwrote:

 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




-- 
Pedro Henrique Oliveira dos Santos


When is AbstractBehavior#bind not called?

2010-05-17 Thread David Chang
I have a top page which has two panel-based components. 

Component 1 implements AbstractBehavior's bind method. 

Component 2 has a wicket Link pointing to a child page. 

When I am at the top page, refresh always gets #bind called.

When I click the Link in Component 2, the bind method in Component 1 does not 
get called.

Can anybody tell why this happened? 

I am quite puzzled. I am kind of new in wicket. I am using wicket 1.4.8 on 
tomcat. 

Regards.



  

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



dynamic forms retrieve a component for validation

2010-05-17 Thread fachhoch

dynamic forms how can I identify individual component to validate  them , in
fixed forms  in my custom valiator I use 

getFormComponent(acdSentToDFI).getConvertedInput()
to retrieve the   user entered value and validate  it but in case of dynamic
forms how can I identify each component?


-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/dynamic-forms-retrieve-a-component-for-validation-tp2219721p2219721.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



Re: uncaught exception in wicket-ajax.js

2010-05-17 Thread Ivan Zinchenko

Thanks, Igor!
I've solved this issue for the moment. Still not 100% sure what was the
cause, but anyway, maybe this will solve the problem for someone else too. 

Debugging wicket-ajax.js pointed that exception was thrown by
xmlHttpRequest.send. While reading nslApplicationCacheChannel docs on
Mozilla dev center, I've found that inheritApplicationCache will cause
NS_ERROR_ALREADY_OPENED if you try setting it after AsyncOpen() call. Than I
discovered unused link to jquery.js in wicket:head of my page. So my
assumption is that jquery ajax support somehow trying to set this property
after wicket opens channel. Removing jquery.js from head solved things for
me. Still want to dig deeper in this issue to make sure I won't hit this
wall later on.
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/uncaught-exception-in-wicket-ajax-js-tp2197887p2219754.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



Re: Wicket:Form support?

2010-05-17 Thread Fernando Wermus
I've never used it, but you have FormComponentPanel. It is a wicket:panel
but It also has the behavior or traits of a form.

On Mon, May 17, 2010 at 6:44 AM, Ayodeji Aladejebi aladej...@gmail.comwrote:

 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




-- 
Fernando Wermus.

www.linkedin.com/in/fernandowermus


Re: Which url coding strategy to make more restful in page with navigator?

2010-05-17 Thread Igor Vaynberg
please attach your code to a jira issue so it doesnt get lost.

-igor

2010/5/14 cleverpig greatclever...@gmail.com:
 hi,everybody!

 Maybe we should not do the same thing to reinvent the wheel.
 After a morning of thinking and programming, I wrote a few simple
 restful navigator implement!
 Here are main 4 classes:
 1.BookmarkablePagingNavigator
 2.BookmarkablePagingNavigation
 3.BookmarkablePagingNavigationLink
 4.BookmarkablePagingNavigationIncrementLink

 Core idea is to override PagingNavigator and PagingNavigation classes'
 newPagingNavigationLink and newPagingNavigationIncrementLink methods.
 BookmarkablePagingNavigationLink extends from PagingNavigationLink.

 BookmarkablePagingNavigationLink's work depends on CharSequence getURL
 () method:
 protected CharSequence getURL () (
   if (getPopupSettings ()! = null)
throw new IllegalStateException (You cannot specify popup
 settings and a page map);
PageParameters parameters = getPageParameters ();
if (getPopupSettings ()! = null)
return urlFor (getPopupSettings (). getPageMap (this),
 getPageClass (), parameters);
else
return urlFor (getPageClass (), parameters);
 )

 I'm so glad to give my gift:I put these classes as attachment with
 this mail,please share it~

 TO FIX: it can not handle the search bar of the parameters or other
 parameters of DataTable Headers(such as sort param).


 2010/5/14 cleverpig greatclever...@gmail.com:
 thanks,igor!

 but where can I find out this bookmarkable paging navigator?
 I only get 
 it:http://apache-wicket.1842946.n4.nabble.com/PageNavigator-Vs-Nice-Url-td1848271.html#a1848272
 but that is a old track about nice url and paging navigator,including
 a lot discuss without final result.

 2010/5/13 Igor Vaynberg igor.vaynb...@gmail.com:
 if you use a bookmarkable paging navigator then even the default
 mounting strategy will work. you can probably find one by searching
 the list.

 -igor

 On Thu, May 13, 2010 at 12:56 AM, cleverpig greatclever...@gmail.com 
 wrote:
 hi,everybody!

 I checked a variety url coding strategies, but did not find one that
 is very appropriate when using datatable and navigator in page.

 HybridUrlCodingStrategy might also be, but it can not display the page
 parameter in url, can not be true bookmarkable.
 And the version number int its url will make the user confused.

 I look forward to using MixedParamUrlCodingStrategy, which may need to
 find out navigation links parameter name in the navigator,such
 as:first,next,etc!

 Not sure we have a better solution, please guide me~

 --
 cleverpig(Dan)
 Location: Beijing
 Address: Room 4018,No.A2 South Avenue Fuxingmen Beijing,P.R.China
 Zipcode: 100031
 MSN: great_liu...@hotmail.com
 QQ: 149291732
 Skype: cleverpigatmatrix
 Facebook ID:cleverpig
 Blog: cleverpig.name/dan/
 Tags: del.icio.us/cleverpig
 Twitter: twitter.com/cleverpig
 新浪微博: t.sina.com.cn/cleverpig
 Organization: www.beijing-open-party.org
 or...@facebook: http://www.facebook.com/group.php?gid=8159558294

 -
 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





 --
 cleverpig(Dan)
 Location: Beijing
 Address: Room 4018,No.A2 South Avenue Fuxingmen Beijing,P.R.China
 Zipcode: 100031
 MSN: great_liu...@hotmail.com
 QQ: 149291732
 Skype: cleverpigatmatrix
 Facebook ID:cleverpig
 Blog: cleverpig.name/dan/
 Tags: del.icio.us/cleverpig
 Twitter: twitter.com/cleverpig
 新浪微博: t.sina.com.cn/cleverpig
 Organization: www.beijing-open-party.org
 or...@facebook: http://www.facebook.com/group.php?gid=8159558294




 --
 cleverpig(Dan)
 Location: Beijing
 Address: Room 4018,No.A2 South Avenue Fuxingmen Beijing,P.R.China
 Zipcode: 100031
 MSN: great_liu...@hotmail.com
 QQ: 149291732
 Skype: cleverpigatmatrix
 Facebook ID:cleverpig
 Blog: cleverpig.name/dan/
 Tags: del.icio.us/cleverpig
 Twitter: twitter.com/cleverpig
 新浪微博: t.sina.com.cn/cleverpig
 Organization: www.beijing-open-party.org
 or...@facebook: http://www.facebook.com/group.php?gid=8159558294


 -
 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



Ajax Repeater Fragment Update

2010-05-17 Thread Dr. Wolf Blecher
Hi,

maybe I just get the usual response that I have to redraw the complete table,
but it's worth a try.

I want to implement a Drop-Down-Detail-Table, basically it is the same
functionality as a tree-table but I don't want to show additional table rows,
but extend the current table row with additional information.

What I tried is to add a Fragment to my table row, where the information I
additionally want to display is encapsulated by a WebMarkupContainer whose
isVisible method depends on the compressed state of the detail information.

On the Fragment I have a AjaxLink and three labels (one to display the link
symbol, and two to display base information)

I've overwritten the onClick Method of the Link and added the Fragment to the
target.

What happens when I click on the link is that the fragment gets redrawn (as
expected) but not _inside_ the repeater but merely ontop of the repeater:


Before Click:
-
Header BlaBla
Table Head
Compressed Entry 1
Compressed Entry 2
Footer BlaBla


After Click:
-
Header BlaBla
Expaneded Entry 1
Table Head
Compressed Entry 1
Compressed Entry 2
Footer BlaBla


Does anyone has any ideas wether it is possible to update the fragment
_inside_ the table or do I have to redraw the complete table to achieve the
expected behaviour?

Regards

Wolf

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



Re: dynamic forms retrieve a component for validation

2010-05-17 Thread fachhoch

ok in fixed forms I know the id of each formcomponent and I can retrieve the
component using its id , but in dynamic forms all formcomponents will have
the same name and in this case how can I reterieve a specific formcomponnt ?
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/dynamic-forms-retrieve-a-component-for-validation-tp2219721p2219839.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



Re: dynamic forms retrieve a component for validation

2010-05-17 Thread Igor Vaynberg
validators get the value being validated passed in to them, not sure
why you would need to get another formcomponent inside a validator.

-igor

On Mon, May 17, 2010 at 7:29 AM, fachhoch fachh...@gmail.com wrote:

 dynamic forms how can I identify individual component to validate  them , in
 fixed forms  in my custom valiator I use

 getFormComponent(acdSentToDFI).getConvertedInput()
 to retrieve the   user entered value and validate  it but in case of dynamic
 forms how can I identify each component?


 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/dynamic-forms-retrieve-a-component-for-validation-tp2219721p2219721.html
 Sent from the Wicket - User mailing list archive at Nabble.com.

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



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



Re: When is AbstractBehavior#bind not called?

2010-05-17 Thread Igor Vaynberg
the first link is a bookmarkable link, it recreates the page instance.
bind is only called when the behavior is *added* to the component.

link 2 is not a bookmarkable link, it doesnt recreate the page
instance so the behavior is not added because a page instance where
the behavior has already been added is used, thus no bind call

-igor

On Mon, May 17, 2010 at 6:22 AM, David Chang david_q_zh...@yahoo.com wrote:
 I have a top page which has two panel-based components.

 Component 1 implements AbstractBehavior's bind method.

 Component 2 has a wicket Link pointing to a child page.

 When I am at the top page, refresh always gets #bind called.

 When I click the Link in Component 2, the bind method in Component 1 does not 
 get called.

 Can anybody tell why this happened?

 I am quite puzzled. I am kind of new in wicket. I am using wicket 1.4.8 on 
 tomcat.

 Regards.





 -
 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: setOutputMarkupPlaceholderTag + value

2010-05-17 Thread Ivoneta

Yes hiddenField is the solution...
Thanks Igor
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/setOutputMarkupPlaceholderTag-value-tp2196140p2219895.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



Re: Wicket:Form support?

2010-05-17 Thread Igor Vaynberg
no, not for the form. the standard way to accomplish such a thing is
to put the form into a panel.

-igor

On Mon, May 17, 2010 at 2:44 AM, Ayodeji Aladejebi aladej...@gmail.com wrote:
 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


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



Re: When is AbstractBehavior#bind not called?

2010-05-17 Thread David Chang
igor, you imagined the exact situation I have regarding the link types. I did 
not say many details such as this in my original post because I was not sure 
whether that is useful, but you figured it perfectly. 

thanks!!!


--- On Mon, 5/17/10, Igor Vaynberg igor.vaynb...@gmail.com wrote:

 From: Igor Vaynberg igor.vaynb...@gmail.com
 Subject: Re: When is AbstractBehavior#bind not called?
 To: users@wicket.apache.org
 Date: Monday, May 17, 2010, 11:27 AM
 the first link is a bookmarkable
 link, it recreates the page instance.
 bind is only called when the behavior is *added* to the
 component.
 
 link 2 is not a bookmarkable link, it doesnt recreate the
 page
 instance so the behavior is not added because a page
 instance where
 the behavior has already been added is used, thus no bind
 call
 
 -igor
 
 On Mon, May 17, 2010 at 6:22 AM, David Chang david_q_zh...@yahoo.com
 wrote:
  I have a top page which has two panel-based
 components.
 
  Component 1 implements AbstractBehavior's bind
 method.
 
  Component 2 has a wicket Link pointing to a child
 page.
 
  When I am at the top page, refresh always gets #bind
 called.
 
  When I click the Link in Component 2, the bind method
 in Component 1 does not get called.
 
  Can anybody tell why this happened?
 
  I am quite puzzled. I am kind of new in wicket. I am
 using wicket 1.4.8 on tomcat.
 
  Regards.
 
 
 
 
 
 
 -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 


  

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



Re: Ajax Repeater Fragment Update

2010-05-17 Thread Jeremy Thomerson
You CAN update fragments within a table.  You didn't show any markup, so I
don't know what specific piece you want to update - there are some
restrictions on what you can do in a table.  But, if it's just in a TD or
something, you're typically just fine.

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



On Mon, May 17, 2010 at 10:41 AM, Dr. Wolf Blecher 
wolf.blec...@itk-engineering.de wrote:

 Hi,

 maybe I just get the usual response that I have to redraw the complete
 table,
 but it's worth a try.

 I want to implement a Drop-Down-Detail-Table, basically it is the same
 functionality as a tree-table but I don't want to show additional table
 rows,
 but extend the current table row with additional information.

 What I tried is to add a Fragment to my table row, where the information I
 additionally want to display is encapsulated by a WebMarkupContainer whose
 isVisible method depends on the compressed state of the detail
 information.

 On the Fragment I have a AjaxLink and three labels (one to display the link
 symbol, and two to display base information)

 I've overwritten the onClick Method of the Link and added the Fragment to
 the
 target.

 What happens when I click on the link is that the fragment gets redrawn (as
 expected) but not _inside_ the repeater but merely ontop of the repeater:


 Before Click:
 -
 Header BlaBla
 Table Head
 Compressed Entry 1
 Compressed Entry 2
 Footer BlaBla


 After Click:
 -
 Header BlaBla
 Expaneded Entry 1
 Table Head
 Compressed Entry 1
 Compressed Entry 2
 Footer BlaBla


 Does anyone has any ideas wether it is possible to update the fragment
 _inside_ the table or do I have to redraw the complete table to achieve the
 expected behaviour?

 Regards

 Wolf

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




Re: When is AbstractBehavior#bind not called?

2010-05-17 Thread Jeremy Thomerson
Igor's a mind-reader.  Send him some more :)

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



On Mon, May 17, 2010 at 11:23 AM, David Chang david_q_zh...@yahoo.comwrote:

 igor, you imagined the exact situation I have regarding the link types. I
 did not say many details such as this in my original post because I was not
 sure whether that is useful, but you figured it perfectly.

 thanks!!!


 --- On Mon, 5/17/10, Igor Vaynberg igor.vaynb...@gmail.com wrote:

  From: Igor Vaynberg igor.vaynb...@gmail.com
  Subject: Re: When is AbstractBehavior#bind not called?
  To: users@wicket.apache.org
  Date: Monday, May 17, 2010, 11:27 AM
  the first link is a bookmarkable
  link, it recreates the page instance.
  bind is only called when the behavior is *added* to the
  component.
 
  link 2 is not a bookmarkable link, it doesnt recreate the
  page
  instance so the behavior is not added because a page
  instance where
  the behavior has already been added is used, thus no bind
  call
 
  -igor
 
  On Mon, May 17, 2010 at 6:22 AM, David Chang david_q_zh...@yahoo.com
  wrote:
   I have a top page which has two panel-based
  components.
  
   Component 1 implements AbstractBehavior's bind
  method.
  
   Component 2 has a wicket Link pointing to a child
  page.
  
   When I am at the top page, refresh always gets #bind
  called.
  
   When I click the Link in Component 2, the bind method
  in Component 1 does not get called.
  
   Can anybody tell why this happened?
  
   I am quite puzzled. I am kind of new in wicket. I am
  using wicket 1.4.8 on tomcat.
  
   Regards.
  
  
  
  
  
  
  -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
  
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 




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




Re: Best practises question

2010-05-17 Thread Jeremy Thomerson
You should use PageReference (Page#getPageReference()).

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



On Sun, May 16, 2010 at 11:52 PM, Rik van der Kleij rikvdkl...@gmail.comwrote:

 Hi Jeremy,

 So an instance field inside a page that points to another page is also
 something you should avoid? In our application we using this pattern a lot
 (for going back to previous page) but it never seems to be any problem. So
 probably because our pages don't consume a lot of memory.

 Regards,
 Rik

 On 17 mei 2010, at 06:13, Jeremy Thomerson wrote:

  In general, you should not pass references to components to other pages.
  That section on anonymous inner classes is telling you that when you
 create
  an anonymous inner class and pass it to another page, you
  will inadvertently be passing a reference to the outer class, which is
  typically a page.  This builds up memory and you will get a OOM.  Passing
  models between pages is absolutely fine - as long as you're not
 accidentally
  passing a bunch of other stuff with it (including large domain objects -
  which should be detached by using a detachable model).  The page linked
 to
  even says that you will often pass models between pages.
 
  --
  Jeremy Thomerson
  http://www.wickettraining.com
 
 
 
  On Sun, May 16, 2010 at 11:05 PM, Rik van der Kleij 
 rikvdkl...@gmail.comwrote:
 
  Hi Bernard and Mike,
 
  According to
 
 https://cwiki.apache.org/WICKET/best-practices-and-gotchas.html#BestPracticesandGotchas-AnonymousInnerclassessharingmodels
  could eventually lead to Out of memory error.
 
  Holding a page reference in an instance field that points to another
 page
  looks the same but it is doesn't seems to be a problem. What's the
  difference?
 
  Regards,
  Rik
 
 
  On 16 mei 2010, at 04:39, Michael O'Cleirigh wrote:
 
  Hello,
 
  I'm not sure on the answer to your question about the anonymous inner
  class but in general sharing models between pages can be a bad idea.
 
  The memory issues comes into play if the IModel is like Model and the
  contained object is not transient (it is serialized as part of the
 page).
 
  While Pages are serialized each page is serialized independently so on
  page reload the IModel from the first page is no longer the same object
  instance as the IModel from the second page.  At deserialization time
 the
  page1.model.getObject().equals page2.model.getObject() but
  page1.model.getObject() != page2.model.getObject(); so any changes to
 either
  model are not shared between then.
 
  This is not a problem if the model is loadable since the memory of the
  page it is contained in doesn't matter as the value is loaded from the
  backend db or some other independent data source like the httpsession,
 or
  with wicketApplication.
 
  You can see the same effect if you try and share a model between a
 panel
  and a ModelWindow that uses a PageCreator
 
  Hope this helps,
 
  Mike
  Hi,
 
  Can someone explain me why it is a memory issue when an instance of an
  anonymous IModel class is passed to another page to be shared, but it
 seems
  to be no problem when a page reference is passed to another page and is
 put
  in an instance field (for example to be used in a button to navigate
 back to
  previous page)?
 
  Many thanks.
 
  Regards,
  Rik
 
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 


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




HELP! org.apache.wicket.WicketRuntimeException: There is no application attached to current thread btpool0-6

2010-05-17 Thread Fernando Wermus
Hi all,
I have 2 services in my app. I have wicket pages and a flex-blazeds
service. My wicket app pops up a modal window to show a flex-blazeds service
which connects to back end to do some business logic; *besides it sends some
emails*. The emails are again rendered by wicket using a fake request cycle,
etc. But, the flex-blazeds service runs in a thread and wicket runs in
another thread. Thus, when I try to render the email, I don't have an
Application - the wicket Application is in a different thread.



 org.apache.wicket.WicketRuntimeException: There is no application attached
to current thread btpool0-6

HELP! Is there some way to use wicket as a render in a different thread? or
some trick about this?

thanks in advance


-- 
Fernando Wermus.

www.linkedin.com/in/fernandowermus


Re: wicket-event.js 404

2010-05-17 Thread Lorenzo Bolzani
2010/5/14 Jeremy Thomerson jer...@wickettraining.com:
 Also - what version of Wicket are you using?


I was using version 1.4.3. It seems to be fixed in 1.4.8.

Was something related to an AjaxFormSubmitBehavior binded to the onblur event.


Thanks, bye

Lorenzo

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



Replace panel+javaScript functions doesn't work

2010-05-17 Thread Ivoneta

Hello
I have a panel with an ajax button. When the button is clicked the ajax
event replace the current panel. 
I don't understand why after replaces the panel, the javascripts functions
doesn't work.

I added the javascript resources in the head of my webpage, in the
traditional way
html xmlns:wicket
head
titleFrontEnd Seguros/title
  script language=JavaScript1.2
src=views/js/accordion.js/script
/head
body

What things do I suposse to do to the JavaScript works?What is wrong?
Please help mee

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Replace-panel-javaScript-functions-doesn-t-work-tp2220030p2220030.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



Re: Replace panel+javaScript functions doesn't work

2010-05-17 Thread Jeremy Thomerson
I'll guess, even though you don't mention it, that you are doing some JS
initialization when the page first loads (like making a section of the page
an accordion panel).  Then you replace this section with a new one and don't
reinitialize your JS stuff.  You need to do
AjaxRequestTarget#appendJavascript(your-initialization-script) in your
button.

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



On Mon, May 17, 2010 at 12:39 PM, Ivoneta ietaraz...@gmail.com wrote:


 Hello
 I have a panel with an ajax button. When the button is clicked the ajax
 event replace the current panel.
 I don't understand why after replaces the panel, the javascripts functions
 doesn't work.

 I added the javascript resources in the head of my webpage, in the
 traditional way
 html xmlns:wicket
head
titleFrontEnd Seguros/title
  script language=JavaScript1.2
 src=views/js/accordion.js/script
/head
body

 What things do I suposse to do to the JavaScript works?What is wrong?
 Please help mee

 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Replace-panel-javaScript-functions-doesn-t-work-tp2220030p2220030.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




Re: Replace panel+javaScript functions doesn't work

2010-05-17 Thread Zilvinas Vilutis
Well javascript should work, maybe the markup ids are changed and JS
references non-existing elements or so.

It's nothing clear from the markup you gave.

What panel do you replace? What JS is invoked or what elements are used in
JS are inside the panel?

Žilvinas Vilutis

Mobile:   (+370) 652 38353
E-mail:   cika...@gmail.com


On Mon, May 17, 2010 at 10:39 AM, Ivoneta ietaraz...@gmail.com wrote:


 Hello
 I have a panel with an ajax button. When the button is clicked the ajax
 event replace the current panel.
 I don't understand why after replaces the panel, the javascripts functions
 doesn't work.

 I added the javascript resources in the head of my webpage, in the
 traditional way
 html xmlns:wicket
head
titleFrontEnd Seguros/title
  script language=JavaScript1.2
 src=views/js/accordion.js/script
/head
body

 What things do I suposse to do to the JavaScript works?What is wrong?
 Please help mee

 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Replace-panel-javaScript-functions-doesn-t-work-tp2220030p2220030.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




Re: Best practises question

2010-05-17 Thread Zilvinas Vilutis
Are there any patterns described how to use PageReference efficiently?


Žilvinas Vilutis

Mobile:   (+370) 652 38353
E-mail:   cika...@gmail.com


On Mon, May 17, 2010 at 9:55 AM, Jeremy Thomerson jer...@wickettraining.com
 wrote:

 You should use PageReference (Page#getPageReference()).

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



 On Sun, May 16, 2010 at 11:52 PM, Rik van der Kleij rikvdkl...@gmail.com
 wrote:

  Hi Jeremy,
 
  So an instance field inside a page that points to another page is also
  something you should avoid? In our application we using this pattern a
 lot
  (for going back to previous page) but it never seems to be any problem.
 So
  probably because our pages don't consume a lot of memory.
 
  Regards,
  Rik
 
  On 17 mei 2010, at 06:13, Jeremy Thomerson wrote:
 
   In general, you should not pass references to components to other
 pages.
   That section on anonymous inner classes is telling you that when you
  create
   an anonymous inner class and pass it to another page, you
   will inadvertently be passing a reference to the outer class, which is
   typically a page.  This builds up memory and you will get a OOM.
  Passing
   models between pages is absolutely fine - as long as you're not
  accidentally
   passing a bunch of other stuff with it (including large domain objects
 -
   which should be detached by using a detachable model).  The page linked
  to
   even says that you will often pass models between pages.
  
   --
   Jeremy Thomerson
   http://www.wickettraining.com
  
  
  
   On Sun, May 16, 2010 at 11:05 PM, Rik van der Kleij 
  rikvdkl...@gmail.comwrote:
  
   Hi Bernard and Mike,
  
   According to
  
 
 https://cwiki.apache.org/WICKET/best-practices-and-gotchas.html#BestPracticesandGotchas-AnonymousInnerclassessharingmodelscould
  eventually lead to Out of memory error.
  
   Holding a page reference in an instance field that points to another
  page
   looks the same but it is doesn't seems to be a problem. What's the
   difference?
  
   Regards,
   Rik
  
  
   On 16 mei 2010, at 04:39, Michael O'Cleirigh wrote:
  
   Hello,
  
   I'm not sure on the answer to your question about the anonymous inner
   class but in general sharing models between pages can be a bad idea.
  
   The memory issues comes into play if the IModel is like Model and the
   contained object is not transient (it is serialized as part of the
  page).
  
   While Pages are serialized each page is serialized independently so
 on
   page reload the IModel from the first page is no longer the same
 object
   instance as the IModel from the second page.  At deserialization time
  the
   page1.model.getObject().equals page2.model.getObject() but
   page1.model.getObject() != page2.model.getObject(); so any changes to
  either
   model are not shared between then.
  
   This is not a problem if the model is loadable since the memory of
 the
   page it is contained in doesn't matter as the value is loaded from the
   backend db or some other independent data source like the httpsession,
  or
   with wicketApplication.
  
   You can see the same effect if you try and share a model between a
  panel
   and a ModelWindow that uses a PageCreator
  
   Hope this helps,
  
   Mike
   Hi,
  
   Can someone explain me why it is a memory issue when an instance of
 an
   anonymous IModel class is passed to another page to be shared, but it
  seems
   to be no problem when a page reference is passed to another page and
 is
  put
   in an instance field (for example to be used in a button to navigate
  back to
   previous page)?
  
   Many thanks.
  
   Regards,
   Rik
  
  
  
  
 -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
  
  
  
   -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
  
  
   -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
  
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 



Re: Best practises question

2010-05-17 Thread Jeremy Thomerson
Not that I know of.  Although googling Wicket pagereference will give you
a discussion thread on it.  Basically, just replace private Page
previousPage with private PageReference previousPage.

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



On Mon, May 17, 2010 at 12:35 PM, Zilvinas Vilutis cika...@gmail.comwrote:

 Are there any patterns described how to use PageReference efficiently?


 Žilvinas Vilutis

 Mobile:   (+370) 652 38353
 E-mail:   cika...@gmail.com


 On Mon, May 17, 2010 at 9:55 AM, Jeremy Thomerson 
 jer...@wickettraining.com
  wrote:

  You should use PageReference (Page#getPageReference()).
 
  --
  Jeremy Thomerson
  http://www.wickettraining.com
 
 
 
  On Sun, May 16, 2010 at 11:52 PM, Rik van der Kleij 
 rikvdkl...@gmail.com
  wrote:
 
   Hi Jeremy,
  
   So an instance field inside a page that points to another page is also
   something you should avoid? In our application we using this pattern a
  lot
   (for going back to previous page) but it never seems to be any problem.
  So
   probably because our pages don't consume a lot of memory.
  
   Regards,
   Rik
  
   On 17 mei 2010, at 06:13, Jeremy Thomerson wrote:
  
In general, you should not pass references to components to other
  pages.
That section on anonymous inner classes is telling you that when you
   create
an anonymous inner class and pass it to another page, you
will inadvertently be passing a reference to the outer class, which
 is
typically a page.  This builds up memory and you will get a OOM.
   Passing
models between pages is absolutely fine - as long as you're not
   accidentally
passing a bunch of other stuff with it (including large domain
 objects
  -
which should be detached by using a detachable model).  The page
 linked
   to
even says that you will often pass models between pages.
   
--
Jeremy Thomerson
http://www.wickettraining.com
   
   
   
On Sun, May 16, 2010 at 11:05 PM, Rik van der Kleij 
   rikvdkl...@gmail.comwrote:
   
Hi Bernard and Mike,
   
According to
   
  
 
 https://cwiki.apache.org/WICKET/best-practices-and-gotchas.html#BestPracticesandGotchas-AnonymousInnerclassessharingmodelscouldeventually
  lead to Out of memory error.
   
Holding a page reference in an instance field that points to another
   page
looks the same but it is doesn't seems to be a problem. What's the
difference?
   
Regards,
Rik
   
   
On 16 mei 2010, at 04:39, Michael O'Cleirigh wrote:
   
Hello,
   
I'm not sure on the answer to your question about the anonymous
 inner
class but in general sharing models between pages can be a bad idea.
   
The memory issues comes into play if the IModel is like Model and
 the
contained object is not transient (it is serialized as part of the
   page).
   
While Pages are serialized each page is serialized independently so
  on
page reload the IModel from the first page is no longer the same
  object
instance as the IModel from the second page.  At deserialization
 time
   the
page1.model.getObject().equals page2.model.getObject() but
page1.model.getObject() != page2.model.getObject(); so any changes
 to
   either
model are not shared between then.
   
This is not a problem if the model is loadable since the memory of
  the
page it is contained in doesn't matter as the value is loaded from
 the
backend db or some other independent data source like the
 httpsession,
   or
with wicketApplication.
   
You can see the same effect if you try and share a model between a
   panel
and a ModelWindow that uses a PageCreator
   
Hope this helps,
   
Mike
Hi,
   
Can someone explain me why it is a memory issue when an instance
 of
  an
anonymous IModel class is passed to another page to be shared, but
 it
   seems
to be no problem when a page reference is passed to another page and
  is
   put
in an instance field (for example to be used in a button to navigate
   back to
previous page)?
   
Many thanks.
   
Regards,
Rik
   
   
   
   
  -
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org
   
   
   
   
   
 -
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org
   
   
   
   
 -
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org
   
   
  
  
   -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
  
 



Re: Best practises question

2010-05-17 Thread Scott Swank
Page someBigPage = new YourBigPage(...);
PageReference bigPageRef = someBigPage.getPageReference();

Now you just keep a hold of bigPageRef.  When you want to go back to
that page you just ask it for the page:

Page reconstitutedBigPage = bigPageRef.getPage();



On Mon, May 17, 2010 at 10:35 AM, Zilvinas Vilutis cika...@gmail.com wrote:
 Are there any patterns described how to use PageReference efficiently?


 Žilvinas Vilutis

 Mobile:   (+370) 652 38353
 E-mail:   cika...@gmail.com


 On Mon, May 17, 2010 at 9:55 AM, Jeremy Thomerson jer...@wickettraining.com
 wrote:

 You should use PageReference (Page#getPageReference()).

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



 On Sun, May 16, 2010 at 11:52 PM, Rik van der Kleij rikvdkl...@gmail.com
 wrote:

  Hi Jeremy,
 
  So an instance field inside a page that points to another page is also
  something you should avoid? In our application we using this pattern a
 lot
  (for going back to previous page) but it never seems to be any problem.
 So
  probably because our pages don't consume a lot of memory.
 
  Regards,
  Rik
 
  On 17 mei 2010, at 06:13, Jeremy Thomerson wrote:
 
   In general, you should not pass references to components to other
 pages.
   That section on anonymous inner classes is telling you that when you
  create
   an anonymous inner class and pass it to another page, you
   will inadvertently be passing a reference to the outer class, which is
   typically a page.  This builds up memory and you will get a OOM.
  Passing
   models between pages is absolutely fine - as long as you're not
  accidentally
   passing a bunch of other stuff with it (including large domain objects
 -
   which should be detached by using a detachable model).  The page linked
  to
   even says that you will often pass models between pages.
  
   --
   Jeremy Thomerson
   http://www.wickettraining.com
  
  
  
   On Sun, May 16, 2010 at 11:05 PM, Rik van der Kleij 
  rikvdkl...@gmail.comwrote:
  
   Hi Bernard and Mike,
  
   According to
  
 
 https://cwiki.apache.org/WICKET/best-practices-and-gotchas.html#BestPracticesandGotchas-AnonymousInnerclassessharingmodelscould
  eventually lead to Out of memory error.
  
   Holding a page reference in an instance field that points to another
  page
   looks the same but it is doesn't seems to be a problem. What's the
   difference?
  
   Regards,
   Rik
  
  
   On 16 mei 2010, at 04:39, Michael O'Cleirigh wrote:
  
   Hello,
  
   I'm not sure on the answer to your question about the anonymous inner
   class but in general sharing models between pages can be a bad idea.
  
   The memory issues comes into play if the IModel is like Model and the
   contained object is not transient (it is serialized as part of the
  page).
  
   While Pages are serialized each page is serialized independently so
 on
   page reload the IModel from the first page is no longer the same
 object
   instance as the IModel from the second page.  At deserialization time
  the
   page1.model.getObject().equals page2.model.getObject() but
   page1.model.getObject() != page2.model.getObject(); so any changes to
  either
   model are not shared between then.
  
   This is not a problem if the model is loadable since the memory of
 the
   page it is contained in doesn't matter as the value is loaded from the
   backend db or some other independent data source like the httpsession,
  or
   with wicketApplication.
  
   You can see the same effect if you try and share a model between a
  panel
   and a ModelWindow that uses a PageCreator
  
   Hope this helps,
  
   Mike
   Hi,
  
   Can someone explain me why it is a memory issue when an instance of
 an
   anonymous IModel class is passed to another page to be shared, but it
  seems
   to be no problem when a page reference is passed to another page and
 is
  put
   in an instance field (for example to be used in a button to navigate
  back to
   previous page)?
  
   Many thanks.
  
   Regards,
   Rik
  
  
  
  
 -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
  
  
  
   -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
  
  
   -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
  
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 



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

Re: HELP! org.apache.wicket.WicketRuntimeException: There is no application attached to current thread btpool0-6

2010-05-17 Thread Igor Vaynberg
there have been numerous posts to this list on this exact topic,
simply search for them. the gist was to use wicket tester to render
the emails as it will set up the complete environment.

-igor

On Mon, May 17, 2010 at 10:13 AM, Fernando Wermus
fernando.wer...@gmail.com wrote:
 Hi all,
    I have 2 services in my app. I have wicket pages and a flex-blazeds
 service. My wicket app pops up a modal window to show a flex-blazeds service
 which connects to back end to do some business logic; *besides it sends some
 emails*. The emails are again rendered by wicket using a fake request cycle,
 etc. But, the flex-blazeds service runs in a thread and wicket runs in
 another thread. Thus, when I try to render the email, I don't have an
 Application - the wicket Application is in a different thread.



  org.apache.wicket.WicketRuntimeException: There is no application attached
 to current thread btpool0-6

 HELP! Is there some way to use wicket as a render in a different thread? or
 some trick about this?

 thanks in advance


 --
 Fernando Wermus.

 www.linkedin.com/in/fernandowermus


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



Re: Replace panel+javaScript functions doesn't work

2010-05-17 Thread Ivoneta

in the html for the webPage, I have this

  head
titleFrontEnd Seguros/title
link href=views/css/ui.all.css rel=stylesheet type=text/css/
link href=views/css/QuotePage.css rel=stylesheet
type=text/css/
script language=JavaScript1.2
src=views/js/jqueryMin.js/script
script language=JavaScript1.2 src=views/js/ui.core.js/script
script language=JavaScript1.2
src=views/js/ui.datepicker.js/script
script language=JavaScript1.2
src=views/js/ui.datepicker-es.js/script
  script language=JavaScript1.2
src=views/js/ui.datepicker-fr.js/script
  !--script language=JavaScript1.2
src=views/js/accordion.js/script--
/head
body
  div class=quotPan2 bg_gray_plane wicket:id=CreateQuotePanel
/div
  div wicket:id=InsuranceObjectInformationPanel/div
  div wicket:id=InsuranceOptionsPanel/div
/body

in the CreateQuotePanel, I have a form , with two jquery datePickers
fields(this fields are rendering with jQuery and CSS) and an ajax button.
When button is clicked the panel is replaced for another one, that contains
another form with a ajax link. If the ajax link is clicked, the panel is
replaced again. The replaced panel should have a two jquery datePickers
fields, but it doesn't work, they don't render!

In the main html is the only place where I inicialize the javascript!
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Replace-panel-javaScript-functions-doesn-t-work-tp2220030p2220086.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



Re: Replace panel+javaScript functions doesn't work

2010-05-17 Thread Jeremy Thomerson
Do you use certain classes which cause the date pickers to be automatically
initialized?  Try adding this to AjaxRequestTarget#appendJavascript:  
$('.selector').datepicker().  The selector obviously needs to be a valid
jQuery selector.

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



On Mon, May 17, 2010 at 1:06 PM, Ivoneta ietaraz...@gmail.com wrote:


 in the html for the webPage, I have this

  head
titleFrontEnd Seguros/title
 link href=views/css/ui.all.css rel=stylesheet
 type=text/css/
link href=views/css/QuotePage.css rel=stylesheet
 type=text/css/
script language=JavaScript1.2
 src=views/js/jqueryMin.js/script
script language=JavaScript1.2 src=views/js/ui.core.js/script
script language=JavaScript1.2
 src=views/js/ui.datepicker.js/script
script language=JavaScript1.2
 src=views/js/ui.datepicker-es.js/script
  script language=JavaScript1.2
 src=views/js/ui.datepicker-fr.js/script
  !--script language=JavaScript1.2
 src=views/js/accordion.js/script--
/head
body
   div class=quotPan2 bg_gray_plane wicket:id=CreateQuotePanel
 /div
  div wicket:id=InsuranceObjectInformationPanel/div
  div wicket:id=InsuranceOptionsPanel/div
 /body

 in the CreateQuotePanel, I have a form , with two jquery datePickers
 fields(this fields are rendering with jQuery and CSS) and an ajax button.
 When button is clicked the panel is replaced for another one, that contains
 another form with a ajax link. If the ajax link is clicked, the panel is
 replaced again. The replaced panel should have a two jquery datePickers
 fields, but it doesn't work, they don't render!

 In the main html is the only place where I inicialize the javascript!
 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Replace-panel-javaScript-functions-doesn-t-work-tp2220030p2220086.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




parent window

2010-05-17 Thread Pablo Borges
I have a page that has a text field and a button. clicking the button opens
a modal panel. How do I get when I click an item in the modal panel the
value is set in the text field on the screen that called the modal panel?
Examples are welcome.
Thanks


Re: parent window

2010-05-17 Thread Pedro Santos
If I understand,  you need to use the value of the text field on the page on
your modal panel. Pass it as parameter to the modal panel, as constructor
parameter for instance.
add( new AjaxButton(){
   onSubmit(requestTarget){
   (...)
   modal.setContent(new ModalPanel(, textField.getValue());
 (...)
   }
});

On Mon, May 17, 2010 at 3:12 PM, Pablo Borges pablosbor...@gmail.comwrote:

 I have a page that has a text field and a button. clicking the button opens
 a modal panel. How do I get when I click an item in the modal panel the
 value is set in the text field on the screen that called the modal panel?
 Examples are welcome.
 Thanks




-- 
Pedro Henrique Oliveira dos Santos


Re: Replace panel+javaScript functions doesn't work

2010-05-17 Thread Ivoneta

The first time the datepicker field is initialized when the DOM is ready
$(document).ready(function(){
   $('#initialDate').datepicker({
  
  changeMonth: true,
  changeYear: true,
  showOn: 'button',
  buttonImage: 'views/images/calendar.jpg',
  buttonImageOnly: true
  });
}

If I use AjaxRequestTarget#appendJavascript() Will I to put all the
functions associate with the things that I need in it?
is there another form to inicialize the javascript? Not only pieces of it?
I ask you, because put all the content of the javascript like a parameter in
the AjaxRequestTarget#appendJavascript() for all the replace panels that I
need to do, is like repetitive!



-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Replace-panel-javaScript-functions-doesn-t-work-tp2220030p2220181.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



Re: Replace panel+javaScript functions doesn't work

2010-05-17 Thread Jeremy Thomerson
In the page put:

function initMyDatePickers() {
  $('#initialDate').datepicker({
   changeMonth: true,
   changeYear: true,
   showOn: 'button',
   buttonImage: 'views/images/calendar.jpg',
   buttonImageOnly: true
  });
}

$(document).ready(initMyDatePicker);

Then, in AjaxRequestTarget#appendJavascript(initMyDatePicker());

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



On Mon, May 17, 2010 at 2:07 PM, Ivoneta ietaraz...@gmail.com wrote:


 The first time the datepicker field is initialized when the DOM is ready
 $(document).ready(function(){
   $('#initialDate').datepicker({

  changeMonth: true,
  changeYear: true,
  showOn: 'button',
  buttonImage: 'views/images/calendar.jpg',
  buttonImageOnly: true
  });
 }

 If I use AjaxRequestTarget#appendJavascript() Will I to put all the
 functions associate with the things that I need in it?
 is there another form to inicialize the javascript? Not only pieces of it?
 I ask you, because put all the content of the javascript like a parameter
 in
 the AjaxRequestTarget#appendJavascript() for all the replace panels that I
 need to do, is like repetitive!



 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Replace-panel-javaScript-functions-doesn-t-work-tp2220030p2220181.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




order of javascript sources

2010-05-17 Thread Ralf Eichinger
How can I ensure that lightbox JavaScriptReference (see below) is
loaded after the two HeaderContributions (prototype and scriptaculous)?

- Headercontributions:
add(JavascriptPackageResource.getHeaderContribution(this.getClass(),
js/prototype.js));
add(JavascriptPackageResource.getHeaderContribution(this.getClass(),
js/scriptaculous.js?load=effects,builder));

- JavaScriptReference:
add(new JavaScriptReference(lightbox, new
TextTemplateResourceReference(this.getClass(), js/lightbox.js,
text/javascript, new LoadableDetachableModelMapString, Object()
{...}})));

and in HTML of this Panel:
wicket:head
script wicket:id=lightbox src=# language=JavaScript/script
/wicket:head

The result is always this order in the HTML:
script wicket:id=lightbox
src=resources/LightBox2Panel/js/lightbox.js language=JavaScript
type=text/javascript/script
script type=text/javascript 
src=resources/LightBox2Panel/js/prototype.js/script
script type=text/javascript 
src=resources/LightBox2Panel/js/scriptaculous.js?load=effects,builder/script

I already tried to load the HeaderContributions as JavaScriptReference, too, and
defining the order in the Panel-HTML-template, but then I can not pass the 
URL-params to scriptaculous.js...

Any ideas?


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



Re: order of javascript sources

2010-05-17 Thread Zilvinas Vilutis
It can be accomplished by the component hierarchy, by knowing that parent
components' references are added first or in other words renderHead is
invoked earlier.

So you may have a:

class AbstractPrototypScriptaculousBehaviour extends AbstractBehaviour {
  renderHead( response ){
super.renderHead( response  );
response.renderJavascrtReference( new JavascriptResourceReference(
this.getClass(), js/prototype.js ), prototype );
response.renderJavascrtReference( new JavascriptResourceReference(
this.getClass(), js/scriptaculous.js?load=effects,builder ),
scriptaculous );
  }
}

class LightBoxBehaviour extends AbstractPrototypScriptaculousBehaviour {
  renderHead( response ){
super.renderHead( response  );
response.renderJavascrtReference( new JavascriptResourceReference(
this.getClass(), lightbox.js ), lightbox );
  }
}


Žilvinas Vilutis

Mobile:   (+370) 652 38353
E-mail:   cika...@gmail.com


On Mon, May 17, 2010 at 1:03 PM, Ralf Eichinger
ralf.eichin...@pixotec.dewrote:

 How can I ensure that lightbox JavaScriptReference (see below) is
 loaded after the two HeaderContributions (prototype and scriptaculous)?

 - Headercontributions:
 add(JavascriptPackageResource.getHeaderContribution(this.getClass(),
js/prototype.js));
 add(JavascriptPackageResource.getHeaderContribution(this.getClass(),

  js/scriptaculous.js?load=effects,builder));

 - JavaScriptReference:
 add(new JavaScriptReference(lightbox, new
 TextTemplateResourceReference(this.getClass(), js/lightbox.js,
 text/javascript, new LoadableDetachableModelMapString, Object()
 {...}})));

 and in HTML of this Panel:
 wicket:head
 script wicket:id=lightbox src=# language=JavaScript/script
 /wicket:head

 The result is always this order in the HTML:
 script wicket:id=lightbox
 src=resources/LightBox2Panel/js/lightbox.js language=JavaScript
 type=text/javascript/script
 script type=text/javascript
 src=resources/LightBox2Panel/js/prototype.js/script
 script type=text/javascript
 src=resources/LightBox2Panel/js/scriptaculous.js?load=effects,builder/script

 I already tried to load the HeaderContributions as JavaScriptReference,
 too, and
 defining the order in the Panel-HTML-template, but then I can not pass the
 URL-params to scriptaculous.js...

 Any ideas?


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




Re: ListView highlight selected row

2010-05-17 Thread JeroenWolff

Thanks Igor...

But i forgot to tell...my app is a single page app with only Ajax
replacements. Is it possible to click on a (Ajax) link in de
(Pageable)ListView and replace the ListView with a changed style on the
selected Item?

now in my Ajax onClick i have target.addChildren(listView, Label.class); to
update the Labels in the listview, but
how can i change the Attribute of that selected Item? 

Thanks,

Jeroen
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/ListView-highlight-selected-row-tp2197486p2220309.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



Re: ListView highlight selected row

2010-05-17 Thread Igor Vaynberg
repaint the item, eg add it to the target

-igor

On Mon, May 17, 2010 at 1:30 PM, JeroenWolff jeroen.wo...@gmail.com wrote:

 Thanks Igor...

 But i forgot to tell...my app is a single page app with only Ajax
 replacements. Is it possible to click on a (Ajax) link in de
 (Pageable)ListView and replace the ListView with a changed style on the
 selected Item?

 now in my Ajax onClick i have target.addChildren(listView, Label.class); to
 update the Labels in the listview, but
 how can i change the Attribute of that selected Item?

 Thanks,

 Jeroen
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/ListView-highlight-selected-row-tp2197486p2220309.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



Changing css class based on page

2010-05-17 Thread Ioannis Mavroukakis
Hey guys got a newbish question I cannot get my head around, and I would 
appreciate any help.

I've got an AbstractBasePage template using markup inheritance. It very simply 
has some BookmarkablePageLink's which are common
across all pages. What I want to do, is have a different css class for the 
active link (i.e. the one whose page you are on) and another for the inactive 
ones
and I cannot for the life of me figure out what's the best way to do it.  Is it 
something I should be doing in code ?

TIA!

Yiannis.

Re: Changing css class based on page

2010-05-17 Thread Jeremy Thomerson
link1.add(new AttributeModifier(class, true, new
AbstractReadOnlyModelString() {
public String getObject() {
  return AbstractBasePage.this.getClass().equals(LinkOnePageClass.class) ?
selectedPage : notSelectedPage;
}
});

There's probably a way to make that more reusable - but that should get you
started.

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



On Mon, May 17, 2010 at 4:24 PM, Ioannis Mavroukakis 
imavrouka...@gameaccount.com wrote:

 Hey guys got a newbish question I cannot get my head around, and I would
 appreciate any help.

 I've got an AbstractBasePage template using markup inheritance. It very
 simply has some BookmarkablePageLink's which are common
 across all pages. What I want to do, is have a different css class for the
 active link (i.e. the one whose page you are on) and another for the
 inactive ones
 and I cannot for the life of me figure out what's the best way to do it.
  Is it something I should be doing in code ?

 TIA!

 Yiannis.


Re: Changing css class based on page

2010-05-17 Thread Ioannis Mavroukakis
Thanks Jeremy that's great help as that's the route I considered initially 
going down, trying to make it reusable is the next step..

Y.
On 17 May 2010, at 22:28, Jeremy Thomerson wrote:

 link1.add(new AttributeModifier(class, true, new
 AbstractReadOnlyModelString() {
 public String getObject() {
  return AbstractBasePage.this.getClass().equals(LinkOnePageClass.class) ?
 selectedPage : notSelectedPage;
 }
 });
 
 There's probably a way to make that more reusable - but that should get you
 started.
 
 --
 Jeremy Thomerson
 http://www.wickettraining.com
 
 
 
 On Mon, May 17, 2010 at 4:24 PM, Ioannis Mavroukakis 
 imavrouka...@gameaccount.com wrote:
 
 Hey guys got a newbish question I cannot get my head around, and I would
 appreciate any help.
 
 I've got an AbstractBasePage template using markup inheritance. It very
 simply has some BookmarkablePageLink's which are common
 across all pages. What I want to do, is have a different css class for the
 active link (i.e. the one whose page you are on) and another for the
 inactive ones
 and I cannot for the life of me figure out what's the best way to do it.
 Is it something I should be doing in code ?
 
 TIA!
 
 Yiannis.
 
 
 __
 This email has been scanned by the MessageLabs Email Security System.
 For more information please visit http://www.messagelabs.com/email 
 __


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



Small doubt about wicket and Html

2010-05-17 Thread Victor_Trapiello

Hello guy;

I´m in Spain 12.0 o´clock nothing to do and before falling a sleep I
wonder... is there any method / way to hidde wicket items/componentes direct
in the html code¿? I mean now I do not want to show an image, in my java
code I say bablablabla myLabelWithImage.SetVisible(false);

can we do something similar like in php or strutsc, like puting ablock of
html and at the beginning one conditions intead putting everything in the
java code¿?

Thank you very much guys!

Victor Trapiello
www.trapiello.net
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Small-doubt-about-wicket-and-Html-tp2220418p2220418.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



Re: Small doubt about wicket and Html

2010-05-17 Thread Jeremy Thomerson
You can not do it directly in HTML - it breaks the separation of concerns.
 But, you can create a WebMarkupContainer, set the visibility on it, and
nest your HTML within it.  Then you can control the visibility for that
entire block with only the single component.  Also, see wicket:enclosure.

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



On Mon, May 17, 2010 at 4:41 PM, Victor_Trapiello vic...@trapiello.netwrote:


 Hello guy;

 I´m in Spain 12.0 o´clock nothing to do and before falling a sleep I
 wonder... is there any method / way to hidde wicket items/componentes
 direct
 in the html code¿? I mean now I do not want to show an image, in my java
 code I say bablablabla myLabelWithImage.SetVisible(false);

 can we do something similar like in php or strutsc, like puting ablock of
 html and at the beginning one conditions intead putting everything in the
 java code¿?

 Thank you very much guys!

 Victor Trapiello
 www.trapiello.net
 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Small-doubt-about-wicket-and-Html-tp2220418p2220418.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




Re: When is AbstractBehavior#bind not called?

2010-05-17 Thread David Chang
Any suggestion about minimal design changes?

Thanks!

--- On Mon, 5/17/10, Igor Vaynberg igor.vaynb...@gmail.com wrote:

 From: Igor Vaynberg igor.vaynb...@gmail.com
 Subject: Re: When is AbstractBehavior#bind not called?
 To: users@wicket.apache.org
 Date: Monday, May 17, 2010, 11:27 AM
 the first link is a bookmarkable
 link, it recreates the page instance.
 bind is only called when the behavior is *added* to the
 component.
 
 link 2 is not a bookmarkable link, it doesnt recreate the
 page
 instance so the behavior is not added because a page
 instance where
 the behavior has already been added is used, thus no bind
 call
 
 -igor
 
 On Mon, May 17, 2010 at 6:22 AM, David Chang david_q_zh...@yahoo.com
 wrote:
  I have a top page which has two panel-based
 components.
 
  Component 1 implements AbstractBehavior's bind
 method.
 
  Component 2 has a wicket Link pointing to a child
 page.
 
  When I am at the top page, refresh always gets #bind
 called.
 
  When I click the Link in Component 2, the bind method
 in Component 1 does not get called.
 
  Can anybody tell why this happened?
 
  I am quite puzzled. I am kind of new in wicket. I am
 using wicket 1.4.8 on tomcat.
 
  Regards.
 
 
 
 
 
 
 -
  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



Just launched - www.onmydoorstep.com.au

2010-05-17 Thread Richard Nichols
Hey all,

Just thought fellow Wicketeers might be interested to take a look at a
site I have just launched built 100% with Wicket -
http://www.onmydoorstep.com.au/

The site is a community portal for people living in Victoria,
Australia and displays government data about every suburb, city and
town in the state. It also allows users to find government services
and business nearby and submit community events/festivals and ask
questions of other users.

It integrates Wicket with Facebook Connect, Google Maps, Google
Charts, Google's Weather API, plus on the backend, warp-persist, Guice
and Hibernate/JPA. I also made extensive use of
http://code.google.com/p/visural-wicket

Anyhow - happy to answer any questions about the above technologies
and the experience of building the site with Wicket. Also welcome
feedback  criticism should you have some :)


cheers,
Richard.

-- 
Richard Nichols :: http://www.visural.com/ :: http://www.richardnichols.net/

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



Re: When is AbstractBehavior#bind not called?

2010-05-17 Thread David Chang
One more thing regarding suggestion:

The link on the second component points to a secured page (that needs login).

--- On Mon, 5/17/10, David Chang david_q_zh...@yahoo.com wrote:

 From: David Chang david_q_zh...@yahoo.com
 Subject: Re: When is AbstractBehavior#bind not called?
 To: users@wicket.apache.org
 Date: Monday, May 17, 2010, 9:30 PM
 Any suggestion about minimal design
 changes?
 
 Thanks!
 
 --- On Mon, 5/17/10, Igor Vaynberg igor.vaynb...@gmail.com
 wrote:
 
  From: Igor Vaynberg igor.vaynb...@gmail.com
  Subject: Re: When is AbstractBehavior#bind not
 called?
  To: users@wicket.apache.org
  Date: Monday, May 17, 2010, 11:27 AM
  the first link is a bookmarkable
  link, it recreates the page instance.
  bind is only called when the behavior is *added* to
 the
  component.
  
  link 2 is not a bookmarkable link, it doesnt recreate
 the
  page
  instance so the behavior is not added because a page
  instance where
  the behavior has already been added is used, thus no
 bind
  call
  
  -igor
  
  On Mon, May 17, 2010 at 6:22 AM, David Chang david_q_zh...@yahoo.com
  wrote:
   I have a top page which has two panel-based
  components.
  
   Component 1 implements AbstractBehavior's bind
  method.
  
   Component 2 has a wicket Link pointing to a
 child
  page.
  
   When I am at the top page, refresh always gets
 #bind
  called.
  
   When I click the Link in Component 2, the bind
 method
  in Component 1 does not get called.
  
   Can anybody tell why this happened?
  
   I am quite puzzled. I am kind of new in wicket. I
 am
  using wicket 1.4.8 on tomcat.
  
   Regards.
  
  
  
  
  
  
 
 -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
  
  
 
 -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
  
  
 
 
       
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 




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



firefox 3.5.9

2010-05-17 Thread Douglas Ferguson
Where are experiencing some strange latency with ajax (even the indicator gif 
stops spining), so far we've only seen it on windows firefox 3.5.9 

Are there any know issues?

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



Re: Just launched - www.onmydoorstep.com.au

2010-05-17 Thread Cristi Manole
cool site! I like it! congrats.

On Mon, May 17, 2010 at 9:31 PM, Richard Nichols r...@visural.com wrote:

 Hey all,

 Just thought fellow Wicketeers might be interested to take a look at a
 site I have just launched built 100% with Wicket -
 http://www.onmydoorstep.com.au/

 The site is a community portal for people living in Victoria,
 Australia and displays government data about every suburb, city and
 town in the state. It also allows users to find government services
 and business nearby and submit community events/festivals and ask
 questions of other users.

 It integrates Wicket with Facebook Connect, Google Maps, Google
 Charts, Google's Weather API, plus on the backend, warp-persist, Guice
 and Hibernate/JPA. I also made extensive use of
 http://code.google.com/p/visural-wicket

 Anyhow - happy to answer any questions about the above technologies
 and the experience of building the site with Wicket. Also welcome
 feedback  criticism should you have some :)


 cheers,
 Richard.

 --
 Richard Nichols :: http://www.visural.com/ ::
 http://www.richardnichols.net/

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




-- 
Cristi Manole

Nova Creator Software
www.novacreator.com


Re: When is AbstractBehavior#bind not called?

2010-05-17 Thread David Chang
Or can I trigger the bind method of the first component?

Regards.

--- On Mon, 5/17/10, David Chang david_q_zh...@yahoo.com wrote:

 From: David Chang david_q_zh...@yahoo.com
 Subject: Re: When is AbstractBehavior#bind not called?
 To: users@wicket.apache.org
 Date: Monday, May 17, 2010, 9:33 PM
 One more thing regarding suggestion:
 
 The link on the second component points to a secured page
 (that needs login).
 
 --- On Mon, 5/17/10, David Chang david_q_zh...@yahoo.com
 wrote:
 
  From: David Chang david_q_zh...@yahoo.com
  Subject: Re: When is AbstractBehavior#bind not
 called?
  To: users@wicket.apache.org
  Date: Monday, May 17, 2010, 9:30 PM
  Any suggestion about minimal design
  changes?
  
  Thanks!
  
  --- On Mon, 5/17/10, Igor Vaynberg igor.vaynb...@gmail.com
  wrote:
  
   From: Igor Vaynberg igor.vaynb...@gmail.com
   Subject: Re: When is AbstractBehavior#bind not
  called?
   To: users@wicket.apache.org
   Date: Monday, May 17, 2010, 11:27 AM
   the first link is a bookmarkable
   link, it recreates the page instance.
   bind is only called when the behavior is *added*
 to
  the
   component.
   
   link 2 is not a bookmarkable link, it doesnt
 recreate
  the
   page
   instance so the behavior is not added because a
 page
   instance where
   the behavior has already been added is used, thus
 no
  bind
   call
   
   -igor
   
   On Mon, May 17, 2010 at 6:22 AM, David Chang
 david_q_zh...@yahoo.com
   wrote:
I have a top page which has two panel-based
   components.
   
Component 1 implements AbstractBehavior's
 bind
   method.
   
Component 2 has a wicket Link pointing to a
  child
   page.
   
When I am at the top page, refresh always
 gets
  #bind
   called.
   
When I click the Link in Component 2, the
 bind
  method
   in Component 1 does not get called.
   
Can anybody tell why this happened?
   
I am quite puzzled. I am kind of new in
 wicket. I
  am
   using wicket 1.4.8 on tomcat.
   
Regards.
   
   
   
   
   
   
  
 
 -
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org
   
   
   
  
 
 -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
   
   
  
  
        
  
 
 -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
  
  
 
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 




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



Re: Which url coding strategy to make more restful in page with navigator?

2010-05-17 Thread cleverpig
ok,I'd created a improvement issue:
https://issues.apache.org/jira/browse/WICKET-2876

2010/5/17 Igor Vaynberg igor.vaynb...@gmail.com:
 please attach your code to a jira issue so it doesnt get lost.

 -igor

 2010/5/14 cleverpig greatclever...@gmail.com:
 hi,everybody!

 Maybe we should not do the same thing to reinvent the wheel.
 After a morning of thinking and programming, I wrote a few simple
 restful navigator implement!
 Here are main 4 classes:
 1.BookmarkablePagingNavigator
 2.BookmarkablePagingNavigation
 3.BookmarkablePagingNavigationLink
 4.BookmarkablePagingNavigationIncrementLink

 Core idea is to override PagingNavigator and PagingNavigation classes'
 newPagingNavigationLink and newPagingNavigationIncrementLink methods.
 BookmarkablePagingNavigationLink extends from PagingNavigationLink.

 BookmarkablePagingNavigationLink's work depends on CharSequence getURL
 () method:
 protected CharSequence getURL () (
       if (getPopupSettings ()! = null)
            throw new IllegalStateException (You cannot specify popup
 settings and a page map);
        PageParameters parameters = getPageParameters ();
        if (getPopupSettings ()! = null)
            return urlFor (getPopupSettings (). getPageMap (this),
 getPageClass (), parameters);
        else
            return urlFor (getPageClass (), parameters);
 )

 I'm so glad to give my gift:I put these classes as attachment with
 this mail,please share it~

 TO FIX: it can not handle the search bar of the parameters or other
 parameters of DataTable Headers(such as sort param).


 2010/5/14 cleverpig greatclever...@gmail.com:
 thanks,igor!

 but where can I find out this bookmarkable paging navigator?
 I only get 
 it:http://apache-wicket.1842946.n4.nabble.com/PageNavigator-Vs-Nice-Url-td1848271.html#a1848272
 but that is a old track about nice url and paging navigator,including
 a lot discuss without final result.

 2010/5/13 Igor Vaynberg igor.vaynb...@gmail.com:
 if you use a bookmarkable paging navigator then even the default
 mounting strategy will work. you can probably find one by searching
 the list.

 -igor

 On Thu, May 13, 2010 at 12:56 AM, cleverpig greatclever...@gmail.com 
 wrote:
 hi,everybody!

 I checked a variety url coding strategies, but did not find one that
 is very appropriate when using datatable and navigator in page.

 HybridUrlCodingStrategy might also be, but it can not display the page
 parameter in url, can not be true bookmarkable.
 And the version number int its url will make the user confused.

 I look forward to using MixedParamUrlCodingStrategy, which may need to
 find out navigation links parameter name in the navigator,such
 as:first,next,etc!

 Not sure we have a better solution, please guide me~

 --
 cleverpig(Dan)
 Location: Beijing
 Address: Room 4018,No.A2 South Avenue Fuxingmen Beijing,P.R.China
 Zipcode: 100031
 MSN: great_liu...@hotmail.com
 QQ: 149291732
 Skype: cleverpigatmatrix
 Facebook ID:cleverpig
 Blog: cleverpig.name/dan/
 Tags: del.icio.us/cleverpig
 Twitter: twitter.com/cleverpig
 新浪微博: t.sina.com.cn/cleverpig
 Organization: www.beijing-open-party.org
 or...@facebook: http://www.facebook.com/group.php?gid=8159558294

 -
 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





 --
 cleverpig(Dan)
 Location: Beijing
 Address: Room 4018,No.A2 South Avenue Fuxingmen Beijing,P.R.China
 Zipcode: 100031
 MSN: great_liu...@hotmail.com
 QQ: 149291732
 Skype: cleverpigatmatrix
 Facebook ID:cleverpig
 Blog: cleverpig.name/dan/
 Tags: del.icio.us/cleverpig
 Twitter: twitter.com/cleverpig
 新浪微博: t.sina.com.cn/cleverpig
 Organization: www.beijing-open-party.org
 or...@facebook: http://www.facebook.com/group.php?gid=8159558294




 --
 cleverpig(Dan)
 Location: Beijing
 Address: Room 4018,No.A2 South Avenue Fuxingmen Beijing,P.R.China
 Zipcode: 100031
 MSN: great_liu...@hotmail.com
 QQ: 149291732
 Skype: cleverpigatmatrix
 Facebook ID:cleverpig
 Blog: cleverpig.name/dan/
 Tags: del.icio.us/cleverpig
 Twitter: twitter.com/cleverpig
 新浪微博: t.sina.com.cn/cleverpig
 Organization: www.beijing-open-party.org
 or...@facebook: http://www.facebook.com/group.php?gid=8159558294


 -
 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





-- 
cleverpig(Dan)
Location: Beijing
Address: Room 4018,No.A2 South Avenue Fuxingmen Beijing,P.R.China
Zipcode: 100031

Re: When is AbstractBehavior#bind not called?

2010-05-17 Thread Igor Vaynberg
behaviors have onbeforerender which will be called no matter what kind
of link is used.

-igor

On Mon, May 17, 2010 at 6:30 PM, David Chang david_q_zh...@yahoo.com wrote:
 Any suggestion about minimal design changes?

 Thanks!

 --- On Mon, 5/17/10, Igor Vaynberg igor.vaynb...@gmail.com wrote:

 From: Igor Vaynberg igor.vaynb...@gmail.com
 Subject: Re: When is AbstractBehavior#bind not called?
 To: users@wicket.apache.org
 Date: Monday, May 17, 2010, 11:27 AM
 the first link is a bookmarkable
 link, it recreates the page instance.
 bind is only called when the behavior is *added* to the
 component.

 link 2 is not a bookmarkable link, it doesnt recreate the
 page
 instance so the behavior is not added because a page
 instance where
 the behavior has already been added is used, thus no bind
 call

 -igor

 On Mon, May 17, 2010 at 6:22 AM, David Chang david_q_zh...@yahoo.com
 wrote:
  I have a top page which has two panel-based
 components.
 
  Component 1 implements AbstractBehavior's bind
 method.
 
  Component 2 has a wicket Link pointing to a child
 page.
 
  When I am at the top page, refresh always gets #bind
 called.
 
  When I click the Link in Component 2, the bind method
 in Component 1 does not get called.
 
  Can anybody tell why this happened?
 
  I am quite puzzled. I am kind of new in wicket. I am
 using wicket 1.4.8 on tomcat.
 
  Regards.
 
 
 
 
 
 
 -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 

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






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



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



wicketstuff-merged-resources 3.1 parent class scanning?

2010-05-17 Thread Ryan Crumley
All,

[If there is a wicketstuff specific mailing list please let me know
and I will be happy to post there (wicketstuff.org is down so its
difficult to find information).]

I am using wicketstuff-merged-resources (3.1-SNAPSHOT) with
wicketstuff-annotation (1.1) and I have found a potential issue with
annotation detection. My page hierarchy looks something like this:

public abstract class BasePage extends WebPage { ... }

public class HomePage extends BasePage { ... }

I would like to add @JsContribution to BasePage however the resources
are only included if the concrete page (in this example: 'HomePage')
also has resource annotations. Removing @JsContribution from HomePage
results in all resources from BasePage also disappearing. Is this a
known bug? Am I using the framework incorrectly?

Thanks in advance for any guidance.

Ryan

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



click url /submit cross target between iframes

2010-05-17 Thread Emulator
Hi everyone, I'm using wicket 1.4.8, and IE6(IE 6 request due to project
restriction).
I have a three pages, Menu(on left side), List(top on the right),
Detail(buttom on the right).
The List page is simply like a bookshelf that shows each book's name. When I
click one of the book on the List. The book's info will be shown on the
Detail page.

Because of all books' data is coming from database, so I implement my
pageable dataprovider and a custom listview so tha each book presented on
the html table just like td wicket:id=1span
wicket:id=text1/span/td

List.page
form wicket:id=ListForm target=_detail
table  frame=border rules=none cellspacing=0px id=dataView
tr style=background-color:#FF9
th1st Column/th
th2nd Column/th
th3rd Column/th
th4th Column/th
/tr
tr wicket:id=selectList onclick=ListForm.submit()
td wicket:id=1a href=# wicket:id=link1 target=_detailspan
wicket:id=text1/span/a/td
td wicket:id=2a href=# wicket:id=link2 target=_detailspan
wicket:id=text2/span/a/td
td wicket:id=3a href=# wicket:id=link3 target=_detailspan
wicket:id=text3/span/a/td
td wicket:id=4a href=# wicket:id=link4 target=_detailspan
wicket:id=text4/span/a/td
/tr
/table
/form

Then I process the above html code as a subclass of Link, process all
onClick/onSubmit. And it would be fine if I just want to show info page on
the List. If I set onClick to setResponsePage(new BookDetailPage(Book aBook,
...other Param));

List.java

void onClick()
{
setResponsePage(new BookDetailPage(Book aBook, ...other Param));
}

Detail.html
form wicket:id=EditForm
span wicket:id=booksId/span
input type=text wicket:id=booksName/input
input type=text wicket:id=booksPublisher/input
span wicket:id=booksUpdateTime/span
p/p
input type=submit wicket:id=btnCommit/input
/form

But what I want is to show book info (BookDetailPage) on the detail page. so
I use 3 iframes to include those 3 pages into one page - book_index, then
process all iframe to wicket class InlineFrame.
The reason of using iframe is to decrease the full-page reload and db
connection that bookshelf uses.

Book_Index.html
form
iframe wicket:id=_iMenu frameborder=1 framespacing=0 width=20%
height=100% align=left/iframe
iframe wicket:id=_iList frameborder=1 framespacing=0 width=80%
height=75% align=top scrolling=no/iframe
iframe wicket:id=_iDetail name=_detail frameborder=1 framespacing=0
width=80% height=25% align=buttom/iframe
/form

Book_Index.java
Books_Index()
{
super();
add(new InlineFrame(_iMenu, new LeftMenu()));
FunctionPage master = new FunctionPage(this);

InlineFrame f_master = new InlineFrame(_iList,master);
add(f_master);

DataEditPage detail = new DataEditPage();
InlineFrame iDetail = new InlineFrame(_iDetail, detail);
iDetail.setOutputMarkupId(true);
add(iDetail);

master.setEditorPage(detail, this);
}

I've tried to specified form post target, url target on the List.html but
not works.
Or use it on List

ListPage
void onClick()
{
/* init actions */

/* target is still remain in self */
 this.RequestCycle().setRequestTarget(new
PageReferenceRequestTarget(detailPage));
 this.setResponsePage(new DetailPage());

/*  no compatible RequestTarget for InlineFrame*/
 this.RequestCycle().setRequestTarget(detailFrame);
 this.setResponsePage(new DetailPage());
}


Is any way that can set link/post target to the detail frame, or other way I
should do without iframe?

Regards,
Victor Chen


Re: firefox 3.5.9

2010-05-17 Thread Martin Makundi
Are you using firebug?

2010/5/18 Douglas Ferguson doug...@douglasferguson.us:
 Where are experiencing some strange latency with ajax (even the indicator gif 
 stops spining), so far we've only seen it on windows firefox 3.5.9

 Are there any know issues?

 D/
 -
 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: firefox 3.5.9

2010-05-17 Thread nicolas melendez
when you enter to gmail, with firebug activated, a warning appear! haha

On Tue, May 18, 2010 at 12:35 AM, Martin Makundi 
martin.maku...@koodaripalvelut.com wrote:

 Are you using firebug?

 2010/5/18 Douglas Ferguson doug...@douglasferguson.us:
  Where are experiencing some strange latency with ajax (even the indicator
 gif stops spining), so far we've only seen it on windows firefox 3.5.9
 
  Are there any know issues?
 
  D/
  -
  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




-- 
NM (Nicolás Meléndez)
Java Software Developer

A) Google App Engine works:

1) http://www.clasificad.com.ar - Local free classifieds for  housing, sale,
services, local community, curses,jobs, and events - GAE/J + Wicket + YUI

2) http://www.chessk.com - Massive multiplayer chess online - GAE/J +
Applets + Wicket

B) Linkedin: http://ar.linkedin.com/in/nicolasmelendez


Re: Just launched - www.onmydoorstep.com.au

2010-05-17 Thread Jeremy Thomerson
I concur - very nice.

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



On Mon, May 17, 2010 at 8:43 PM, Cristi Manole cristiman...@gmail.comwrote:

 cool site! I like it! congrats.

 On Mon, May 17, 2010 at 9:31 PM, Richard Nichols r...@visural.com wrote:

  Hey all,
 
  Just thought fellow Wicketeers might be interested to take a look at a
  site I have just launched built 100% with Wicket -
  http://www.onmydoorstep.com.au/
 
  The site is a community portal for people living in Victoria,
  Australia and displays government data about every suburb, city and
  town in the state. It also allows users to find government services
  and business nearby and submit community events/festivals and ask
  questions of other users.
 
  It integrates Wicket with Facebook Connect, Google Maps, Google
  Charts, Google's Weather API, plus on the backend, warp-persist, Guice
  and Hibernate/JPA. I also made extensive use of
  http://code.google.com/p/visural-wicket
 
  Anyhow - happy to answer any questions about the above technologies
  and the experience of building the site with Wicket. Also welcome
  feedback  criticism should you have some :)
 
 
  cheers,
  Richard.
 
  --
  Richard Nichols :: http://www.visural.com/ ::
  http://www.richardnichols.net/
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 


 --
 Cristi Manole

 Nova Creator Software
 www.novacreator.com



HTML editing, HTML templates, HTML refactoring

2010-05-17 Thread bht
Hi,

IDE technology now offers HTML refactoring support even including css
style selectors.

Dreamweaver supports HTML remplates.

In principle, Wicket could support these technologies due to its clean
HTML approach.

However, I have not been able to get any of this to work, because
Wicket ignores its own Java package structure.

I am prepared to do whatever is necessary, e.g. storing HTML page
files outside Java packages. So far, if I do that, then I need to
duplicate the Java package structure in the web directory. With that,
all resource links e.g. images, css have to be ../../../... for the
web developers, but for Wicket they have to be .

So currently, refactoring does not work, and I have to copy every page
into the web root for viewing.

How can I provide the best editing experience for HTML developers so
that all links work, and so that Dreamweaver templates and IDE
refactoring are not broken?


Many thanks,

Bernard

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



Re: wicketstuff-merged-resources 3.1 parent class scanning?

2010-05-17 Thread Jeremy Thomerson
I'm not a maintainer on those projects so I defer on applying the following
patches.  However, I think that it is a bug.  If it is a bug, it will also
require a change in the annotations project in WicketStuff.  I have created
a patch for each.  Could you test it and see if it works?  If so, I'll go
ahead and commit it (unless one of the maintainers objects here first).

Patch for annotations: http://pastebin.com/nxQuLfqf
http://pastebin.com/nxQuLfqfPatch for merged-resources:
http://pastebin.com/Cbpjtvqp

http://pastebin.com/CbpjtvqpFile attachments to the list will be stripped.

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



On Mon, May 17, 2010 at 9:43 PM, Ryan Crumley crum...@gmail.com wrote:

 All,

 [If there is a wicketstuff specific mailing list please let me know
 and I will be happy to post there (wicketstuff.org is down so its
 difficult to find information).]

 I am using wicketstuff-merged-resources (3.1-SNAPSHOT) with
 wicketstuff-annotation (1.1) and I have found a potential issue with
 annotation detection. My page hierarchy looks something like this:

 public abstract class BasePage extends WebPage { ... }

 public class HomePage extends BasePage { ... }

 I would like to add @JsContribution to BasePage however the resources
 are only included if the concrete page (in this example: 'HomePage')
 also has resource annotations. Removing @JsContribution from HomePage
 results in all resources from BasePage also disappearing. Is this a
 known bug? Am I using the framework incorrectly?

 Thanks in advance for any guidance.

 Ryan

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


Index: annotation/src/main/java/org/wicketstuff/config/MatchingResources.java
===
--- annotation/src/main/java/org/wicketstuff/config/MatchingResources.java	(revision 5264)
+++ annotation/src/main/java/org/wicketstuff/config/MatchingResources.java	(working copy)
@@ -86,12 +86,14 @@
 return urls;
 }
 
+
 /**
  * Get all matching classes that are annotated with the given Annotation.
  * @param annotation an annotation class
+ * @param includeSubclasses if true, this will also return classes whose superclass has the specified annotation
  * @return List of all classes that have the given annotation.  List is empty if non matches found.
  */
-public ListClass? getAnnotatedMatches(Class? extends Annotation annotation)
+public ListClass? getAnnotatedMatches(Class? extends Annotation annotation, boolean includeSubclasses) 
 {
 ListClass? matches = new ArrayListClass?();
 MetadataReaderFactory f = new SimpleMetadataReaderFactory();
@@ -108,22 +110,45 @@
 }
 AnnotationMetadata anno = meta.getAnnotationMetadata();
 SetString types = anno.getAnnotationTypes();
-if (types.contains(annotation.getName()))
+if (types.contains(annotation.getName()) || (includeSubclasses  anySuperHas(getClass(anno.getSuperClassName()), annotation)))
 {
-try
-{
-matches.add(Class.forName(anno.getClassName()));
-}
-catch (ClassNotFoundException e)
-{
-throw new RuntimeException(e);
-}
+matches.add(getClass(anno.getClassName()));
 }
 }
 return matches;
 }
 
 /**
+ * Get all matching classes that are annotated with the given Annotation.  Note that this method only returns
+ * those classes that actually contain the annotation, and does not return classes whose superclass contains 
+ * the annotation.
+ *  
+ * @param annotation an annotation class
+ * @return List of all classes that have the given annotation.  List is empty if non matches found.
+ * @see MatchingResources#getAnnotatedMatches(Class, boolean)
+ */
+public ListClass? getAnnotatedMatches(Class? extends Annotation annotation)
+{
+return getAnnotatedMatches(annotation, false);
+}
+
+private boolean anySuperHas(Class? clz, Class? extends Annotation annotation) 
+{
+return clz != null  (clz.isAnnotationPresent(annotation) || anySuperHas(clz.getSuperclass(), annotation));
+}
+
+private Class? getClass(String className) {
+try
+{
+return Class.forName(className);
+}
+catch (ClassNotFoundException e)
+{
+throw new RuntimeException(e);
+}
+}
+
+/**
  * Get a single matching resource.  Throws an exception if multiple are found.  This is useful if you
  * are expecting to find only one instance of an item on the classpath.
  * @return The single matching {...@link Resource}
Index: 

Re: HTML editing, HTML templates, HTML refactoring

2010-05-17 Thread Jeremy Thomerson
You won't get full previewability in Wicket.  A page can have a panel that
is marked with div wicket:id=myPanel  That panel could be any panel at
runtime - and there'd be no way to preview the page with the panel in it
without running the app.

I've seen teams successfully get their HTML designers to edit HTML in the
source tree if they were using Maven and could tell the designer to cd
myproject; mvn jetty:run.

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



On Mon, May 17, 2010 at 11:37 PM, b...@actrix.gen.nz wrote:

 Hi,

 IDE technology now offers HTML refactoring support even including css
 style selectors.

 Dreamweaver supports HTML remplates.

 In principle, Wicket could support these technologies due to its clean
 HTML approach.

 However, I have not been able to get any of this to work, because
 Wicket ignores its own Java package structure.

 I am prepared to do whatever is necessary, e.g. storing HTML page
 files outside Java packages. So far, if I do that, then I need to
 duplicate the Java package structure in the web directory. With that,
 all resource links e.g. images, css have to be ../../../... for the
 web developers, but for Wicket they have to be .

 So currently, refactoring does not work, and I have to copy every page
 into the web root for viewing.

 How can I provide the best editing experience for HTML developers so
 that all links work, and so that Dreamweaver templates and IDE
 refactoring are not broken?


 Many thanks,

 Bernard

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




Re: HTML editing, HTML templates, HTML refactoring

2010-05-17 Thread bht
Jeremy,

I am not asking for full previewbly in the sense that you are
describing. Obviously this is not possible in dynamic scenarios.

However, Dreamweaver provides templates where each panel can be
previewed in the context of a page so it is Dreamweaver that provides
full previewability. I have seen this documented at
http://www.2rue.de/hacking/wicket/leveraging-wicket-templates-for-offline-viewing-with-dreamweaver/

However, whether dynamic content can be previewed or not, it can
always be filled with something that gets replaced at runtime anyway. 

In any case, I want to get the HTML resource paths right, so how do I
do that? I haven't seen a solution for that yet.

Many thanks,

Bernard


On Mon, 17 May 2010 23:52:59 -0500, you wrote:

You won't get full previewability in Wicket.  A page can have a panel that
is marked with div wicket:id=myPanel  That panel could be any panel at
runtime - and there'd be no way to preview the page with the panel in it
without running the app.

I've seen teams successfully get their HTML designers to edit HTML in the
source tree if they were using Maven and could tell the designer to cd
myproject; mvn jetty:run.


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



Re: HTML editing, HTML templates, HTML refactoring

2010-05-17 Thread Jeremy Thomerson
Have you tried using wicket:link around your resource references?

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



On Tue, May 18, 2010 at 12:10 AM, b...@actrix.gen.nz wrote:

 Jeremy,

 I am not asking for full previewbly in the sense that you are
 describing. Obviously this is not possible in dynamic scenarios.

 However, Dreamweaver provides templates where each panel can be
 previewed in the context of a page so it is Dreamweaver that provides
 full previewability. I have seen this documented at

 http://www.2rue.de/hacking/wicket/leveraging-wicket-templates-for-offline-viewing-with-dreamweaver/

 However, whether dynamic content can be previewed or not, it can
 always be filled with something that gets replaced at runtime anyway.

 In any case, I want to get the HTML resource paths right, so how do I
 do that? I haven't seen a solution for that yet.

 Many thanks,

 Bernard


 On Mon, 17 May 2010 23:52:59 -0500, you wrote:

 You won't get full previewability in Wicket.  A page can have a panel that
 is marked with div wicket:id=myPanel  That panel could be any panel at
 runtime - and there'd be no way to preview the page with the panel in it
 without running the app.
 
 I've seen teams successfully get their HTML designers to edit HTML in the
 source tree if they were using Maven and could tell the designer to cd
 myproject; mvn jetty:run.


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




Re: firefox 3.5.9

2010-05-17 Thread Douglas Ferguson
I think firebug is installed but not running.

D/

On May 17, 2010, at 10:35 PM, Martin Makundi wrote:

 Are you using firebug?
 
 2010/5/18 Douglas Ferguson doug...@douglasferguson.us:
 Where are experiencing some strange latency with ajax (even the indicator 
 gif stops spining), so far we've only seen it on windows firefox 3.5.9
 
 Are there any know issues?
 
 D/
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 


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



Re: Request Https page

2010-05-17 Thread v...@wav@gmail.com

Hello,

I have implemented the HttpsRequestCycleProcessor in the application class
and added @RequiredHttps in the Login Page.

But i haven't used https in any of the application before. Could anyone tell
how to access the page from the browser. If  it is a http page, we simply
call like http://localhost:8080/test. But how to call the application for
https request.


-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Request-Https-page-tp2197896p2220768.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