Re: New bie question . Custom Form Submit

2012-02-16 Thread Sven Meier
You cannot just invoke process(), the browser has to send the input values via form submit. This is what the SubmitLink does for you. Sven Am 16.02.2012 08:52, schrieb atomix: Ahh Thanks again... I didn't khow that the SubmitLink can be outside of a Form ... ...but IMO , why can't another

Updating a component from custom thread or why getRequestCycle returns null

2012-02-16 Thread BayPhilip
Hello, everybody. Here is the situation I'm facing last weeks. I have an Index class which extends WebPage. In this Index class I have added a panel, called MainPanel. I have also a thead which is run from Index. MainPanel is not created while initialization of Index. MainPanel is created when I

LoadableDetachableModels for a ListView ( database with Cayenne)

2012-02-16 Thread atomix
Hi all , I'm using Cayenne as my database service... Now in a query return a ListPerson which I want to wrap a whole List in to ( so call) LoadableDetachableListModels to provide for a ListView, I'm also know that a DataProvider could do the same thing but did any one have write something like

Re: LoadableDetachableModels for a ListView ( database with Cayenne)

2012-02-16 Thread vineet semwal
see listmodel btw if you have a big list ,use dataview On Thu, Feb 16, 2012 at 8:14 PM, atomix say_i_love_you_4e...@yahoo.com wrote: Hi all , I'm using Cayenne as my database service... Now in a query return a ListPerson which I want to wrap a whole List in to ( so call)

Re: LoadableDetachableModels for a ListView ( database with Cayenne)

2012-02-16 Thread vineet semwal
sorry when i meant if you are going to retrieve a lot of data use dataview On Thu, Feb 16, 2012 at 8:17 PM, vineet semwal vineetsemwal1...@gmail.com wrote: see listmodel btw if you have a big list ,use dataview On Thu, Feb 16, 2012 at 8:14 PM, atomix say_i_love_you_4e...@yahoo.com wrote:

Re: LoadableDetachableModels for a ListView ( database with Cayenne)

2012-02-16 Thread François Meillet
Hi Vineet, public LoadableDetachableModelYourClass load(final Long xxx) { LoadableDetachableModelListYourClass model = new LoadableDetachableModelListYourClass() { protected YourClass load() { try {

Re: LoadableDetachableModels for a ListView ( database with Cayenne)

2012-02-16 Thread Francois Meillet
Hi Vineet, public LoadableDetachableModelYourClass load(final Long xxx) { LoadableDetachableModelListYourClass model = new LoadableDetachableModelListYourClass() { protected YourClass load() { try { ListYourClass list = get your liste

Re: AbstractPageableView cachedItemCount

2012-02-16 Thread Jonathan Tougas
It should be discarded only before rendering. I figured out a way to accomplish this by extending the DataTable class and creating a wrapper for the data provider with a cache of it's own, which bypasses the AbstractPageableView's size cache. This one is cleared by the extension of DataTable

Re: AbstractPageableView cachedItemCount

2012-02-16 Thread Igor Vaynberg
suppose you have a label before the data table that shows how many items are in the table. it uses datatable.getitemcount() to do this. onbeforerender() will be called on the label before it is on the datatable so it now uses the stale item count and is out of sync with the datatable. -igor On

Slow rendering

2012-02-16 Thread Jürgen Lind
Hi there, I am currently encountering a problem that I don't know how to attack... We have developed an application that uses the Tree-Component to show hierarchical data to the user. In some cases, the tree degenerates to a plain list that can be quite large. Now, if the list has around 1000

Re: Slow rendering

2012-02-16 Thread Christian Huber
Hi Jürgen, I just had a quick glance at the Component and MarkupContainer classes and if I am not mistaken you should be able to override onRender() and onComponentTag() which would give you a few more measuring points and maybe more pointers on where to look further. HTH, Christian The

Re: Slow rendering

2012-02-16 Thread Igor Vaynberg
why is your tree rendering all the nodes ahead of time? shouldnt it render them lazily as they are expanded? -igor On Thu, Feb 16, 2012 at 10:50 AM, Jürgen Lind juergen.l...@iteratec.de wrote: Hi there, I am currently encountering a problem that I don't know how to attack... We have

Re: Slow rendering

2012-02-16 Thread Jürgen Lind
Hi, as I was saying in the original post, in rare cases the tree degenerates to a plain list - i.e a tree with one (hidden) root node and up to 5000 children that are rendered at the same time. Please do not ask me, why our customer would want that - it is how it is for the time being ;-) J.

Re: Slow rendering

2012-02-16 Thread Pamir Erdem
I'm so sorry but i could not understand the question. If it is in server side than you can instrument it with JProfiler or JxInsight. If it is on client side dynaTrace can help you or even google chrome javascript can help you to detect the problem On Thu, Feb 16, 2012 at 10:42 PM, Jürgen Lind

1.5.4 error handling with web.xml error-page issue

2012-02-16 Thread pkc
Am I missing something simple? I tried about 100 misc trial and error things to get this to use my wicket page to handle 404's (and other errors). filter-mapping filter-namewicket/filter-name url-pattern/*/url-pattern /filter-mapping

Re: Veil behavior of wicketstuff-minis

2012-02-16 Thread matteus
I succeeded to solve my problem. I found the site https://cwiki.apache.org/WICKET/generic-busy-indicator-for-both-ajax-and-non-ajax-submits.html where shows an example of ajax and non ajax button to put the veil . Then I created the files. Css and. Js with these samples and placed in the same

Re: Updating a component from custom thread or why getRequestCycle returns null

2012-02-16 Thread robmcguinness
there are many examples in this forum, but here is something I wrote a while back that passes thread locals (user info in this example) to the new thread and when the thread is done doing work, the ui repaints with data from thread. https://gist.github.com/706011 use it as a guide and make it

Re: 1.5.4 error handling with web.xml error-page issue

2012-02-16 Thread robmcguinness
not sure if the */* matters when you mount the url. mountPage(/ErrorPage, ErrorPage.class); rob -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/1-5-4-error-handling-with-web-xml-error-page-issue-tp4395935p4395984.html Sent from the Users forum mailing list

Re: how to do i18n of javascript file with Wicket?

2012-02-16 Thread infiniter
I have the exact same issue.. What did you decide for your problem? I'm trying to decide now what the best approach is. Two of my options were exactly the ones you describe to improve your design, but the one that I currently have is a template, which looks like this: var someData= {

Re: 1.5.4 error handling with web.xml error-page issue

2012-02-16 Thread pkc
I have no idea if this is documented and why it is needed but it works after changing web.xml to filter-mapping filter-namewicket/filter-name url-pattern/*/url-pattern dispatcherREQUEST/dispatcher dispatcherERROR/dispatcher /filter-mapping -- View this message in context: