Multiple Data Providers for DataTable

2011-09-28 Thread codix
Is it possible to implement one table with different providers? My problem is that there are some entries in my table with values coming from different POJOs. I don't have any idea how to mix different POJOs in one data provider. -- View this message in context: http://apache-wicket.1842946.n4.na

Re: Multiple Data Providers for DataTable

2011-09-28 Thread Martin Grigorov
Can you use a compound provider which delegates the logic to N other providers and collects their responses into one ? On Wed, Sep 28, 2011 at 2:44 AM, codix wrote: > Is it possible to implement one table with different providers? My problem is > that there are some entries in my table with value

Re: Wicket 1.5.0 and ResourceReferences

2011-09-28 Thread Arne And
As far as I understand, both suggested solutions work on the entire application, right? Is there no way to define a particular resource caching strategy for a particular resource or set of resources, e.g. set a resource strategy for all javascript resources, but leave everything else default? A O

Re: Wicket 1.5.0 and ResourceReferences

2011-09-28 Thread Martin Grigorov
On Wed, Sep 28, 2011 at 9:58 AM, Arne And wrote: > As far as I understand, both suggested solutions work on the entire > application, right? Is there no way to define a particular resource > caching strategy for a particular resource or set of resources, e.g. > set a resource strategy for all java

java.lang.IllegalStateException: STREAMED - Consuming JSON fails

2011-09-28 Thread Tate Jones
Hi Group, I am new to Wicket and I am attempting to read some JSON data posted from a wicket page. The following exception occurs with Wicket 1.4.18 and Jetty 6.1.x when attempting to read the servlet request - BufferedReader br = hsr.getReader(). Sep 28, 2011 8:50:48 AM org.apache.wicket.Requ

Re: Multiple Data Providers for DataTable

2011-09-28 Thread codix
I'm sorry but I don't get your statement. Currently, I have one data provider and a data table. To populate the rows, I call another panel where a Label is added. Currently I am using a POJO with a particular type. Unfortunately, other data calls for other POJOs with different types. Trying to cast

Re: java.lang.IllegalStateException: STREAMED - Consuming JSON fails

2011-09-28 Thread Martin Grigorov
This exception says "Don't use the reader but use the input stream because something (maybe header) has been already read from the stream". On Wed, Sep 28, 2011 at 10:59 AM, Tate Jones wrote: > Hi Group, > > I am new to Wicket and I am attempting to read some JSON data posted from a > wicket pag

Re: Servlet and Wicket

2011-09-28 Thread Pointbreak
No that was not was I was saying. I am just advising you to let Wicket manage complete pages, instead of parts of pages composed within another servlet architecture. I would give you the same advise if you were using JSF instead. On Tuesday, September 27, 2011 11:58 AM, "koha...@gmail.com" wrote:

Re: adding resources after ajax swap

2011-09-28 Thread Martin Grigorov
Actually it seems Wicket is to blame here. In wicket-ajax.js, line 1680 (processScript() method) there is the following line: var req = new Wicket.Ajax.Request(src, onLoad, false, false); where src is the src attribute of the contributed script element. Why Wicket tries to load the script body wit

filter feedback messages

2011-09-28 Thread Miroslav F.
hi folks, i have this problem: have panel: cart: [0] items,   [0] $ then implementing class: package cz.mineralshop; import java.util.ArrayList; import org.apache.wicket.markup.html.basic.Label; import org.apache.wicket.markup.html.panel.Panel

how to use getAjaxCallDecorator with AjaxButton ?

2011-09-28 Thread Mathilde Pellerin
Hi all, I want to generate a Line chart (from Google Visualization API) when I submit a form. To do that, I used getAjaxCallDecorator like this : AjaxButton submit = new AjaxButton("submit") { private int agePersonne; private double risque; @Override

Re: filter feedback messages

2011-09-28 Thread manuelbarzi
how is your composite? page |-Form (with own FeedbackPanel) ||-Panel (with own FeedbackPanel) | |-Other stuff ? On Wed, Sep 28, 2011 at 11:33 AM, Miroslav F. wrote: > hi folks, > > i have this problem: > > have panel: > >        cart: >                [0] > items,   [0] $ >

Re: how to use getAjaxCallDecorator with AjaxButton ?

2011-09-28 Thread Martin Grigorov
Move your code from IAjaxCallDecorator to onSubmit() and use target.appendJavascript() IAjaxCallDecorator is used to modify the javascript which is used to in which is not what you want On Wed, Sep 28, 2011 at 11:41 AM, Mathilde Pellerin wrote: > Hi all, > > I want to generate a Line chart (fro

RE: filter feedback messages

2011-09-28 Thread Miroslav F.
Page1 \ +--- PanelCart | +--- Form i know all fedback panels displays all feedback messages and i have to filter them. what i don't know is how to tell in PanelCart to display only messages produced in PanelCart and ignore others messages? > -Original Message- > F

WicketTester#startPanel marked deprecated??

2011-09-28 Thread splitshade
Hi, I´m just upgrading a quire large Application to Wicket 1.5. I just saw that the Method public final Panel startPanel(final ITestPanelSource testPanelSource) is marked deprecated with the hint: @deprecated since 1.5 use {@link #startComponentInPage(Class, IMarkupFragment)} instead But that

Re: filter feedback messages

2011-09-28 Thread manuelbarzi
have you tried ContainerFeedbackMessageFilter instead? 2011/9/28 Miroslav F. : >   Page1 >     \ >     +--- PanelCart >     | >     +--- Form > > i know all fedback panels displays all feedback messages and i have to > filter them. what i don't know is how to tell in PanelCart to display > only m

Re: WicketTester#startPanel marked deprecated??

2011-09-28 Thread Martin Grigorov
Use org.apache.wicket.util.tester.BaseWicketTester.startComponentInPage(C) On Wed, Sep 28, 2011 at 12:01 PM, splitshade wrote: > Hi, > > I´m just upgrading a quire large Application to Wicket 1.5. > I just saw that the Method > public final Panel startPanel(final ITestPanelSource testPanelSource)

Re: filter feedback messages

2011-09-28 Thread Pranav kacholia
If you want to show the feedback messages for only PanelCart use ComponentFeedbackMessageFilter If you want to show the messages for PanelCart and its sub-components , use ContainerFeedbackMessageFilter -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/filter-feedback-

RE: filter feedback messages

2011-09-28 Thread Miroslav F.
yes. it doesn't matter if i do: this.add(new FeedbackPanel("feedback", new ComponentFeedbackMessageFilter(this))); or this.add(new FeedbackPanel("feedback", new ContainerFeedbackMessageFilter(this))); in PanelCart.class, panel still show messages produced in form. > -Original Message- >

Re: filter feedback messages

2011-09-28 Thread manuelbarzi
what's the feedback message filter you've added to the form? 2011/9/28 Miroslav F. : > yes. it doesn't matter if i do: > this.add(new FeedbackPanel("feedback", new > ComponentFeedbackMessageFilter(this))); > or > this.add(new FeedbackPanel("feedback", new > ContainerFeedbackMessageFilter(this)));

Divide an Ajax request into two parts

2011-09-28 Thread Pranav kacholia
Hi All, Suppose i have a textfield with and oncomponentchange behavior which is being used to do a search. Now the search can be done in two ways, say 1 method is faster than the other. The searrch results are displayed vide ajax in a table. Is there anyway to fire two consecutive ajax reque

Re: filter feedback messages

2011-09-28 Thread Andrea Del Bene
Hi, does form use PanelCart fields for validation? yes. it doesn't matter if i do: this.add(new FeedbackPanel("feedback", new ComponentFeedbackMessageFilter(this))); or this.add(new FeedbackPanel("feedback", new ContainerFeedbackMessageFilter(this))); in PanelCart.class, panel still show message

RE: filter feedback messages

2011-09-28 Thread Miroslav F.
i think that form doesn't need filter - or to be precise i don't want to filter messages in form. i only need to filter messages in panelcart (which extends panel): public class PanelCart extends Panel { public PanelCart(String id) { super(id); ...d

Re: filter feedback messages

2011-09-28 Thread manuelbarzi
form may need a filter too. 2011/9/28 Miroslav F. : > i think that form doesn't need filter - or to be precise i don't want to > filter messages in form. > > i only need to filter messages in panelcart (which extends panel): > > public class PanelCart extends Panel > { >        public PanelCart(S

Re: Divide an Ajax request into two parts

2011-09-28 Thread Martin Grigorov
Use OnChangeAjaxBehavior to fire request to method 1 and AbstractAjaxTimerBehavior for method 2. Override their #getChannel() method to return different name so they are not queued at the client. Have fun with synchronizing them... On Wed, Sep 28, 2011 at 12:24 PM, Pranav kacholia wrote: > Hi Al

RE: filter feedback messages

2011-09-28 Thread Miroslav F.
at the moment o don't deal with form filter, i deal with problem how to filter in PanelCart messages not produced in PanelCart and how to set it in PanelCart -see below ;-) > -Original Message- > From: manuelbarzi [mailto:manuelba...@gmail.com] > Sent: 28. September 2011 12:39 > To: user

Re: WicketTester#startPanel marked deprecated??

2011-09-28 Thread splitshade
ah there you go, got it. Thanks. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/WicketTester-startPanel-marked-deprecated-tp3850565p3850659.html Sent from the Users forum mailing list archive at Nabble.com.

Re: how to use getAjaxCallDecorator with AjaxButton ?

2011-09-28 Thread Mathilde Pellerin
Ok, I understand. Thanks, it works well now. 2011/9/28 Mathilde Pellerin > Hi all, > > I want to generate a Line chart (from Google Visualization API) when I > submit a form. > To do that, I used getAjaxCallDecorator like this : > > AjaxButton submit = new AjaxButton("submit") { >

Re: Divide an Ajax request into two parts

2011-09-28 Thread Pranav kacholia
Yeah, that sounds like a synchronization headache i guess another way of phrasing this is whether there is anyway of making an AjaxUpdate non-blocking. as data is available, it will constantly update. Be very useful for searches -- View this message in context: http://apache-wicket.184294

Re: filter feedback messages

2011-09-28 Thread Andrea Del Bene
Which version of Wicket are you using? I'm trying to reproducing the bug wit 1.4.17 but without success. at the moment o don't deal with form filter, i deal with problem how to filter in PanelCart messages not produced in PanelCart and how to set it in PanelCart -see below ;-) -Original Mes

RE: filter feedback messages

2011-09-28 Thread Miroslav F.
1.4.13 > -Original Message- > From: Andrea Del Bene [mailto:adelb...@ciseonweb.it] > Sent: 28. September 2011 13:00 > To: users@wicket.apache.org > Subject: Re: filter feedback messages > > Which version of Wicket are you using? I'm trying to > reproducing the bug wit 1.4.17 but withou

Does PagingNavigation render the entire page and would AjaxPagingNavigation render only its assigned pageableView?

2011-09-28 Thread Martin A
Hello, I've got a PagingNavigation on a PageableListView, contained in a parent Page. To me it looks like it renders the whole page when paging its assigned pageableView. I would like to know if AjaxPagingNavigation would refresh only its assigned pageableView, because there are other components on

Re: Does PagingNavigation render the entire page and would AjaxPagingNavigation render only its assigned pageableView?

2011-09-28 Thread Martin Grigorov
yes. this is how it works On Wed, Sep 28, 2011 at 1:54 PM, Martin A wrote: > Hello, > I've got a PagingNavigation on a PageableListView, contained in a parent > Page. To me it looks like it renders the whole page when paging its assigned > pageableView. I would like to know if AjaxPagingNavigatio

Re: Does PagingNavigation render the entire page and would AjaxPagingNavigation render only its assigned pageableView?

2011-09-28 Thread Martin A
Thanks, but strangely, clicking on a AjaxNavigationLink returns empty response. Do you have any ideas why this happens? Thanks! On Wed, Sep 28, 2011 at 3:01 PM, Martin Grigorov wrote: > yes. this is how it works > > On Wed, Sep 28, 2011 at 1:54 PM, Martin A wrote: > > Hello, > > I've got a Pagi

FW: filter feedback messages

2011-09-28 Thread Miroslav F.
same with 1.4.18 > -Original Message- > From: Miroslav F. [mailto:mir...@seznam.cz] > Sent: 28. September 2011 13:26 > To: users@wicket.apache.org > Subject: RE: filter feedback messages > > 1.4.13 > > > -Original Message- > > From: Andrea Del Bene [mailto:adelb...@ciseonweb.i

RE: filter feedback messages

2011-09-28 Thread Miroslav F.
hmm, stil no succes, still trying. again recap: public class PageBase extends WebPage { public PageBase() { this.add(new PanelCart("cart").setRenderBodyOnly(true)); } } public class PageOrder extends PageBase { public PageOrder() {

CSS and JS references in wicket 1.4.18

2011-09-28 Thread Jeffrey Schneller
I know there is a current thread discussing how to remove the wicket-ver-XXX from the url for a js file. I was wondering if there was a way to include the wicket-ver-XXX for all CSS and JS references in wicket 1.4.18? I am sure it is probably something simple that I am overlooking. Thanks

Re: filter feedback messages

2011-09-28 Thread Andrea Del Bene
I've practically made a carbon copy of your code, but everything seems work well (tested also with wicket 1.4.13). Can you attach the full code (markup included) of your panel and pages? hmm, stil no succes, still trying. again recap: public class PageBase extends WebPage { public PageB

Re: adding resources after ajax swap

2011-09-28 Thread Igor Vaynberg
hrm. that seems pretty strange. might have had something to do with WICKET-1623. something we should fix though... -igor On Wed, Sep 28, 2011 at 2:22 AM, Martin Grigorov wrote: > Actually it seems Wicket is to blame here. > In wicket-ajax.js, line 1680 (processScript() method) there is the > fo

Re: CSS and JS references in wicket 1.4.18

2011-09-28 Thread Igor Vaynberg
this is a new feature in 1.5 -igor On Wed, Sep 28, 2011 at 7:06 AM, Jeffrey Schneller wrote: > I know there is a current thread discussing how to remove the > wicket-ver-XXX from the url for a js file.  I was wondering if there was > a way to include the wicket-ver-XXX for all CSS and JS refere

pretty strange behavior with TextArea containing remaining output html code inside

2011-09-28 Thread manuelbarzi
this error happens on this simple composite (wicket 1.4.17): Page |-Panel |-Form |-TextField |-TextField |-TextArea |-TextField |-TextField |-Button |-Button when just rendering this simple page (no logic implemented yet), th

Re: pretty strange behavior with TextArea containing remaining output html code inside

2011-09-28 Thread Igor Vaynberg
sounds like a problem with your html... -igor On Wed, Sep 28, 2011 at 9:18 AM, manuelbarzi wrote: > this error happens on this simple composite (wicket 1.4.17): > > Page >   |-Panel >      |-Form >         |-TextField >         |-TextField >         |-TextArea >         |-TextField >         |-

Re: pretty strange behavior with TextArea containing remaining output html code inside

2011-09-28 Thread manuelbarzi
TextArea is one-self-closed tag <.../>. should TextArea two-opening-closing tags <...>... work fine. On Wed, Sep 28, 2011 at 6:18 PM, manuelbarzi wrote: > this error happens on this simple composite (wicket 1.4.17): > > Page >   |-Panel >      |-Form >         |-TextField >         |-TextFiel

Re: pretty strange behavior with TextArea containing remaining output html code inside

2011-09-28 Thread manuelbarzi
should a single closed textarea tag be a problem? neither html editor nor wicket markup validation complains about it. . On Wed, Sep 28, 2011 at 6:26 PM, Igor Vaynberg wrote: > sounds like a problem with your html... > > -igor > > > On Wed, Sep 28, 2011 at 9:18 AM, manuelbarzi wrote: >> this e

Re: pretty strange behavior with TextArea containing remaining output html code inside

2011-09-28 Thread Igor Vaynberg
per html spec textarea must have a closing tag... -igor On Wed, Sep 28, 2011 at 9:25 AM, manuelbarzi wrote: > TextArea is one-self-closed tag <.../>. > > should TextArea  two-opening-closing tags <...>... work fine. > > > > On Wed, Sep 28, 2011 at 6:18 PM, manuelbarzi wrote: >> this error happe

Re: pretty strange behavior with TextArea containing remaining output html code inside

2011-09-28 Thread manuelbarzi
confirmed: a single self-closed textarea tag () makes rendering fail in this wicket version. it does not complain about textarea markup (neither html editor), but renders it containing the remaining html escaped inside, and setting a closing textarea tag at the end. only double opening-closing tex

Re: pretty strange behavior with TextArea containing remaining output html code inside

2011-09-28 Thread manuelbarzi
right. may wicket html validation complain in future version for this particular case. low priority issue... . On Wed, Sep 28, 2011 at 6:42 PM, Igor Vaynberg wrote: > per html spec textarea must have a closing tag... > > -igor > > On Wed, Sep 28, 2011 at 9:25 AM, manuelbarzi wrote: >> TextAre

Re: pretty strange behavior with TextArea containing remaining output html code inside

2011-09-28 Thread Igor Vaynberg
file a jira issue -igor On Wed, Sep 28, 2011 at 9:52 AM, manuelbarzi wrote: > right. > > may wicket html validation complain in future version for this > particular case. low priority issue... > . > > > > On Wed, Sep 28, 2011 at 6:42 PM, Igor Vaynberg > wrote: >> per html spec textarea must ha

How to set Cookie on Redirect to URL

2011-09-28 Thread bht
Hi, How do I add a cookie to a URL redirect response? I started with the following class: public class RedirectToUrlWithHandlerException extends ReplaceHandlerException { ... public RedirectToUrlWithHandlerException(final String redirectUrl, final int statusCode, final IRequestHandler ha

Tracking Memory Usage

2011-09-28 Thread Dawid Dudzinski
Hello, We are running into memory usage problems in our Wicket application. The team has identified several areas worth of improving. However we were only able to do that by looking at our code and not by profiling the jvm. This brings me to my actual questions: 1. Is there tool or method to deter

Dynamic Markup Content in Wicket (1.4+)

2011-09-28 Thread Brown, Berlin [GCG-PFS]
Does anyone have an article on how to add dynamic content such that the content isn't defined in the markup at compile time. It is generated at runtime. For example. Old Way - Listing1 ... With dynamic content - Listing2 ... I could use an offline, compil

Re: Authorization using JAAS and getting the Principal.

2011-09-28 Thread amateo
Hi, I have the same problem but I'm getting the request in a different way: (HttpServletRequest) PolicyContext.getContext("javax.servlet.http.HttpServletRequest") Did you find a solution? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Authorization-using-JAAS-and-

ModalWindow in IE6, IE7, IE8 browser issues

2011-09-28 Thread nhsoft.yhw
Q1: After the upgrade to 1.5 version , I found that the ModalWindow appear in IE "Page Expired" error, but in Chrome browser to normal. Same Code for ModalWindow works for Firefox, IE, Chrome with wicket 1.4.18 version. My ModalWindow Use WebPage Mode, not Page Mode. Q2: sometimes Modalwindow d

Re: Tracking Memory Usage

2011-09-28 Thread Igor Vaynberg
yourkit is an excellent profiler... -igor On Wed, Sep 28, 2011 at 6:04 PM, Dawid Dudzinski wrote: > Hello, > > We are running into memory usage problems in our Wicket application. The > team has identified several areas worth of improving. However we were only > able to do that by looking at our

Re: Dynamic Markup Content in Wicket (1.4+)

2011-09-28 Thread Martin Makundi
I remember we discussed it before: http://apache-wicket.1842946.n4.nabble.com/Wicket-MashUpContainer-td1893282.html 2011/9/29 Brown, Berlin [GCG-PFS] : > Does anyone have an article on how to add dynamic content such that the > content isn't defined in the markup at compile time.  It is generat

Re: Dynamic Markup Content in Wicket (1.4+)

2011-09-28 Thread Igor Vaynberg
any component can implement IMarkupResourceStreamProvider and return whatever markup it wants wicket to use. If you need a fine-tuned control over the caching mechanism for this markup you can also let your components implement IMarkupCacheKeyProvider. -igor On Wed, Sep 28, 2011 at 8:05 PM, Brow

Re: ModalWindow in IE6, IE7, IE8 browser issues

2011-09-28 Thread Igor Vaynberg
please create a quickstart that reproduces the issue and attach it to a jira issue. -igor On Wed, Sep 28, 2011 at 8:54 PM, nhsoft.yhw wrote: > Q1: > After the upgrade to 1.5 version , I found that the ModalWindow appear in IE > "Page Expired" error, but in Chrome browser to normal. > > Same Co

PageFactory and SessionSettings

2011-09-28 Thread Dirk Forchel
After migration to Wicket 1.5 I'm wondering why our tests with our own IPageFactory implementation is not working anymore. In our tests we use the following code ... WicketTester tester = new WicketTester(); tester.getApplication().getSessionSettings().setPageFactory( new FooPageFactory() ); But

Re: Tracking Memory Usage

2011-09-28 Thread Martin Grigorov
On Thu, Sep 29, 2011 at 3:04 AM, Dawid Dudzinski wrote: > Hello, > > We are running into memory usage problems in our Wicket application. The > team has identified several areas worth of improving. However we were only > able to do that by looking at our code and not by profiling the jvm. This > b

Re: ModalWindow in IE6, IE7, IE8 browser issues

2011-09-28 Thread nhsoft.yhw
here is exception stack, but only IE throws the exception ERROR - DefaultExceptionMapper - Connection lost, give up responding. org.apache.wicket.protocol.http.servlet.ResponseIOException: ClientAbortException: java.io.IOException at org.apache.wicket.protocol.http.servlet.ServletWeb

Re: ModalWindow in IE6, IE7, IE8 browser issues

2011-09-28 Thread Martin Grigorov
This is fixed in 1.5.1 On Thu, Sep 29, 2011 at 8:50 AM, nhsoft.yhw wrote: > here is exception stack, but only IE throws the exception > > > ERROR - DefaultExceptionMapper     - Connection lost, give up responding. > org.apache.wicket.protocol.http.servlet.ResponseIOException: > ClientAbortExcepti

Re: PageFactory and SessionSettings

2011-09-28 Thread Martin Grigorov
Indeed this is missed. I'll create a ticket for it. Thanks! On Thu, Sep 29, 2011 at 8:05 AM, Dirk Forchel wrote: > After migration to Wicket 1.5 I'm wondering why our tests with our own > IPageFactory implementation is not working anymore. In our tests we use the > following code ... > > WicketT