Re: Glue for composing panels

2009-11-02 Thread Michal Kurtak
Hi Frank, We use the same approach as you. We have found one disadvantage, which relates to references to components created by subclasses. I'll demostrate it (problem and solution) in the following example: class BasePage extends Page { /** Component created by subclass */ private

Wicket Wiki: create attachments permission

2009-11-02 Thread ralf . eichinger
I would like to ask some screenshots and descriptive images to my documentations in the wiki. Can anybody give me these permissions? (I think of some screenshots ot the liferay portal when started first. Then in the future screenshots of wicket widgets, to promote them better...) I swear

Re: Tree table with check box

2009-11-02 Thread vela
Hello again, Please find the below given code Page class: Treetable has been added in the Page class as follows IColumn columns[] = new IColumn[] { new PropertyTreeColumn(new ColumnLocation(Alignment.LEFT, Unit.PERCENT),Check,userObject.name) {

DefaultObjectStreamFactory | Re: AccessControlException with Wicket on Google App Engine (GAE)

2009-11-02 Thread Andreas Maza
just to circumvent the problem for a while, I am thinking of the following workaround: what would be the implications if I change the implementation of IObjectStreamFactor.DefaultObjectStreamFactory so that newObjectInputStream() and newObjectOutputStream return the regular JDK

How can I correctly add (by Ajax) and remove (by Ajax) an AjaxSelfUpdatingTimerBehavior?

2009-11-02 Thread Ambrose Wheatcroft
Hello, Is it possible to correctly add and then remove an AjaxSelfUpdatingTimerBehavior from a component, all by Ajax? At the moment I'm running into problems - the browser gets a Page Expired response soon after I remove the behavior. I think I have an idea why it doesn't work in its current

Re: wicket + jdbc template app

2009-11-02 Thread Ivan Dudko
thank you guys!

Re: How can I correctly add (by Ajax) and remove (by Ajax) an AjaxSelfUpdatingTimerBehavior?

2009-11-02 Thread Ernesto Reinaldo Barreiro
Remember having the same problem with panel and I have dome something like for(Object behavior : getBehaviors()) { if(behavior instanceof AjaxSelfUpdatingTimerBehavior) { remove((AjaxSelfUpdatingTimerBehavior)behavior); } } add(new AjaxSelfUpdatingTimerBehavior(Duration.seconds(1000))); So, that

Re: How can I correctly add (by Ajax) and remove (by Ajax) an AjaxSelfUpdatingTimerBehavior?

2009-11-02 Thread Ambrose Wheatcroft
Okay, So I got it working. As you suggest - stop() works. I then also store the behavior so that it can be removed permanently on a later Ajax trip. That way I can keep adding and removing timers with different intervals. Thanks! 2009/11/2 Ernesto Reinaldo Barreiro reier...@gmail.com:

mount recursive

2009-11-02 Thread Giambalvo, Christian
Hi all, is it possible to mount a package recursivly? Let's assume following classes: com.test.pages.TestClass1 com.test.pages.TestClass2 com.test.pages.subpackage.TestClass3 com.test.pages.subpackage.TestClass4 now i'd like to do mount(/pages,

Re: mount recursive

2009-11-02 Thread Vytautas Racelis
Hi, you may look at usage of http://xaloon.googlecode.com/svn/trunk/xaloon-wicket-components/src/main/java/org/xaloon/wicket/component/mounting/MountPageGroup.java @MountPageGroup(context=/pages) class Parent {} @MountPage(path=/page_1) //result /pages/page_1 class A extends Parent {}

RE: Glue for composing panels

2009-11-02 Thread Frank Silbermann
If I understand you correctly, Michal, you don't want to set the component's model once and for all as it is being created, and you're worried that the model-setting method might be called before the first onBeforeRender(). That's just an example, I guess, so perhaps the general concern is that

Re: OSGi Wicket

2009-11-02 Thread Ben Tilford
You might want to check out http://kenai.com/projects/joint the wicket example builds a menu system based of pages / links that are on the classpath which implement a Navigatable interface and have the @Navigation annotation. Still very early in development but it still might do what you need.

Re: OSGi Wicket

2009-11-02 Thread Ben Tilford
Forgot to mention, the Netbeans Lookup would also be an option. On Mon, Nov 2, 2009 at 10:45 AM, Ben Tilford bentilf...@gmail.com wrote: You might want to check out http://kenai.com/projects/joint the wicket example builds a menu system based of pages / links that are on the classpath which

Re: Bookmarkable images from db

2009-11-02 Thread Peter Dotchev
Hi Alex, I check SharedResources, but as I understand it I would have to add there a Resource object for each image. After checking again the javadoc there might be another way. Display each image with Image constructor that takes ValueMap and provide there some image identification. Add a

Re: Bookmarkable images from db

2009-11-02 Thread James Carman
Just write a servlet (or Spring Web MVC handler). On Mon, Nov 2, 2009 at 10:52 AM, Peter Dotchev dotc...@gmail.com wrote: Hi Alex, I check SharedResources, but as I understand it I would have to add there a Resource object for each image. After checking again the javadoc there might be

Wicket Examples as portlets in Liferay

2009-11-02 Thread Ralf Eichinger
Hi, I try to get the wicket-examples-WAR running as portlets in Liferay according to my description here: http://cwiki.apache.org/confluence/display/WICKET/Wicket+Examples+as+portlets But after drag'n'drop e.g. the echo example portlet, it is not shown. When I look in the HTML-source of the

Re: OSGi Wicket

2009-11-02 Thread Daniel Stoch
Hi, The very simple way to solve such problems is: 1. Add: DynamicImport-Package: * to MANIFEST.MF file in bundle with Wicket. 2. Use customized implementation of IClassResolver which falls back to Wicket bundle ClassLoader, eg: try { ClassLoader loader =

Re: Exception in paging

2009-11-02 Thread Igor Vaynberg
maybe you are missing wrong versions of wicket and extensions jars. they should be the same version. -igor On Mon, Nov 2, 2009 at 7:34 AM, Dusan Banik bani...@gmail.com wrote: Hi can somebody help me with this exception. It happends only in table with paging. 13:01:10.536 [SocketListener0-9]

Re: OSGi Wicket

2009-11-02 Thread Daniel Stoch
One more thing, I've read your post: Here is a post about this by me with some interesting comments from Igor:  http://bioscene.blogspot.com/2009/03/serialization-in-osgi.html Maybe the problems with serialization of EntityImpl private class should be solved by... not serializing this class

Problems with displaying modal window

2009-11-02 Thread Anders Sørensen
Hello everybody. I have a webpage under development where I use modal windows. This has so fare not caused any problems - but now I get an error on one of my pages. I have just added the modal window capability to the page - so this has not worked before. When I click the button I get the

Re: DefaultObjectStreamFactory | Re: AccessControlException with Wicket on Google App Engine (GAE)

2009-11-02 Thread Igor Vaynberg
that should most likely work without problems. -igor On Mon, Nov 2, 2009 at 1:47 AM, Andreas Maza andr.m...@gmail.com wrote: just to circumvent the problem for a while, I am thinking of the following workaround: what would be the implications if I change the implementation of

Re: Wicket Wiki: create attachments permission

2009-11-02 Thread Igor Vaynberg
dont think we could even if we wanted to. you will have to upload the images somewhere public and then ask on the list to have them attached to a wiki page :| -igor On Mon, Nov 2, 2009 at 2:32 AM, ralf.eichin...@pixotec.de wrote: I would like to ask some screenshots and descriptive images to

Re: Glue for composing panels

2009-11-02 Thread Michal Kurtak
Yes Frank, model-setting method was just an example how to access a component before onBeforeRender() executes. I've only tried to point out that we set componentsAssembled = true in assembleComponents() method. We call assembleComponents() from get-method (for referenced component) to ensure

Re: Tree table with check box

2009-11-02 Thread vela
Hello again, Please find the below given code Page class: Treetable has been added in the Page class as follows IColumn columns[] = new IColumn[] { new PropertyTreeColumn(new ColumnLocation(Alignment.LEFT, Unit.PERCENT),Check,userObject.name) {

Re: Bookmarkable images from db

2009-11-02 Thread Alex Objelean
Exactly. You can see the example posted by Vytautas Racelis earlier at this link: http://xaloon.googlecode.com/svn/trunk/xaloon-wicket-repository/src/main/java/org/xaloon/wicket/component/resource/ImageLink.java I prefer to do it this way: http://pastebin.com/m328e21ff The first example allow

tinymce ajaxbutton

2009-11-02 Thread tubin gen
My form has tinymce text area so I added TinyMceAjaxButton , now due to new requirements sometimes I have to hide tinymce textarea , anytime I hide tinymce text area the TinyMceAjaxButton submit button does not work , Is there a way I can use the TinyMceAjaxButton without tinynmce

Re: Wicket Release Plans for 1.5

2009-11-02 Thread Vladimir K
The best would be short release cycle and very long support cycle. The latter is more important. igor.vaynberg wrote: do you guys want a release cycle that will take a year? the auto-detaching models are perfectly possible now by implementing a IDetachListener and detaching all fields

tinymce textarea hidden in form

2009-11-02 Thread tubin gen
My form has tinymce text area so I added TinyMceAjaxButton , now due to new requirements sometimes I have to hide tinymce textarea , anytime I hide tinymce text area the TinyMceAjaxButton submit button does not work , Is there a way I can use the TinyMceAjaxButton without tinynmce

Asynchronous construction of page

2009-11-02 Thread Kaspar Fischer
I am trying to find out how to load several parts (Wicket panels) of a page in parallel using Ajax. The content of these parts takes long to render but I still want the user to see the other, readily available parts of the page, with the delayed panels appearing when available. Several

Re: Asynchronous construction of page

2009-11-02 Thread Igor Vaynberg
if you want nonblocking you have to make each thing you are trying to load asynchronously its own page inside an iframe. the page itself can only be accessed synchronously, otherwise you would have to do your own multithreaded access handling in components...which would be horrific. -igor On

Page model returning null

2009-11-02 Thread Loren Cole
I've got the following bits of code: public HomePage(PageParameters parms) { this(); Long accountId = parms.getLong(accountId); account = new ModelEntity(Account.class, accountId); setModel(account); ... public class EditContactDetails extends Panel{ public

London Wicket Event at Foyles Bookshop, November 21st, 2009

2009-11-02 Thread jWeekend
We will hold our next London Wicket Event on Saturday, 21st November, from 14:45. This time we have hired The Gallery at the iconic Foyles Bookshop in central London. We again welcome guests and speakers from several countries, including at least 3 core committers, Matej, Jeremy and of course,

Re: Page model returning null

2009-11-02 Thread Jeremy Thomerson
On Mon, Nov 2, 2009 at 4:57 PM, Loren Cole loren.c...@gmail.com wrote: HomePage hp = (HomePage) this.findPage(); ModelEntity account = (ModelEntity) parent.getInnermostModel(); Is this just a typo? You're getting the home page and then getting the innermost

sesseion timeout using a Panel

2009-11-02 Thread Joe
i have a pannel code for login ,when  session timeout ,i don't login fist time. it mean i must refresh the page, then i can login form the login pannel when the session timeout. if the login code is not the pannel, it don't need refresh the login page ,and it can login .i don't know why. thx  

Wicket Examples as portlets in Liferay

2009-11-02 Thread Ralf Eichinger
Hi sending again, as I do not see it in user list...: Hi, I try to get the wicket-examples-WAR running as portlets in Liferay according to my description here: http://cwiki.apache.org/confluence/display/WICKET/Wicket+Examples+as+portlets But after drag'n'drop e.g. the echo example portlet, it