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:

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 jackeblag...@yahoo.com wrote: Is it possible to implement one table with different providers? My problem is that there are some entries

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

Re: Wicket 1.5.0 and ResourceReferences

2011-09-28 Thread Martin Grigorov
On Wed, Sep 28, 2011 at 9:58 AM, Arne And arne@gmail.com 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

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

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

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 t...@bluedog.com.au wrote: Hi Group, I am new to Wicket and I am attempting to read some JSON data posted from

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

filter feedback messages

2011-09-28 Thread Miroslav F.
hi folks, i have this problem: have panel: wicket:panel ba href=cart.htmlcart:/a/b span wicket:id=cartItems[0]/span items,nbsp;nbsp;nbsp;bspan wicket:id=cartPrice[0]/span $/b /span /div /wicket:panel then implementing class: package

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. mir...@seznam.cz wrote: hi folks, i have this problem: have panel: wicket:panel        ba

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 button onclick=HERE which is not what you want On Wed, Sep 28, 2011 at 11:41 AM, Mathilde Pellerin mathilde.pelle...@statlife.fr wrote:

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-

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

Re: filter feedback messages

2011-09-28 Thread manuelbarzi
have you tried ContainerFeedbackMessageFilter instead? 2011/9/28 Miroslav F. mir...@seznam.cz:   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

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 martin.dil...@googlemail.com 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

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:

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- From:

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. mir...@seznam.cz: yes. it doesn't matter if i do: this.add(new FeedbackPanel(feedback, new ComponentFeedbackMessageFilter(this))); or this.add(new FeedbackPanel(feedback, new

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

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 messages

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);

Re: filter feedback messages

2011-09-28 Thread manuelbarzi
form may need a filter too. 2011/9/28 Miroslav F. mir...@seznam.cz: 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

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

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:

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 mathilde.pelle...@statlife.fr 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

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:

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 without

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

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 wml...@gmail.com 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

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 mgrigo...@apache.orgwrote: yes. this is how it works On Wed, Sep 28, 2011 at 1:54 PM, Martin A wml...@gmail.com

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.it] Sent:

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.

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

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 mgrigo...@apache.org wrote: Actually it seems Wicket is to blame here. In wicket-ajax.js, line 1680 (processScript()

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 jeffrey.schnel...@envisa.com 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

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),

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 manuelba...@gmail.com 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 manuelba...@gmail.com wrote: this error happens on this simple composite (wicket 1.4.17): Page   |-Panel      |-Form         |-TextField    

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 igor.vaynb...@gmail.com wrote: sounds like a problem with your html... -igor On Wed, Sep 28, 2011 at 9:18 AM, manuelbarzi

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 manuelba...@gmail.com 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

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

2011-09-28 Thread manuelbarzi
confirmed: a single self-closed textarea tag (textarea... /) 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

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 igor.vaynb...@gmail.com wrote: per html spec textarea must have a closing tag... -igor On Wed, Sep 28, 2011 at 9:25 AM, manuelbarzi

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 manuelba...@gmail.com 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 igor.vaynb...@gmail.com

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

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

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 div wicket:id=containers div wicket:id=container1 /div div wicket:id=container2 /div /div

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:

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

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 dawi...@gmail.com 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

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] berlin.br...@primerica.com: Does anyone have an article on how to add dynamic content such that the content isn't defined in the markup at

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,

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 nhsoft@gmail.com 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