how to implement a decorator

2012-06-12 Thread Jonathan Tougas
I'm trying to figure out how to implement a decorator tag. Here's what I mean: I want: wicket:modBox style=1 span wicket:id=modBoxText/span /wicket:modBox to render to: div class=mod-style-1 spanFOO!/span /div with nothing more than the usual add( new Label( modBoxText, FOO! ) ) in the

Re: problem with page refresh

2012-04-18 Thread Jonathan Tougas
Hi Ale. I had a very similar problem, and I was able to get the behavior I expected by changing the render strategy to ONE_PASS_RENDER in Application.init(). Have a look at this http://apache-wicket.1842946.n4.nabble.com/refresh-and-AjaxFallbackDefaultDataTable-td4384935.html On Wed, Apr 18,

Re: Wicket 1.5.5 + JBoss 7.1.1 + CDI - ClassNotFoundException

2012-04-12 Thread Jonathan Tougas
11, 2012 at 10:54 PM, Jonathan Tougas jtou...@gmail.com wrote: I'm running Wicket 1.5 on JBoss 7.1.1 with some CDI thrown in to the mix. In certain cases when Wicket deserializes a Page containing a reference to a CDI bean, I get this exception: In what cases exactly ? Because the problem

Re: Wicket 1.5.5 + JBoss 7.1.1 + CDI - ClassNotFoundException

2012-04-12 Thread Jonathan Tougas
I'm not familiar with the Wicketopia source, but doing a quick scan I can't find any EJBs in there. The problem in this case occurs if the FooStateless class is @Stateless. Changing this to @ApplicationScoped, the problem goes away. On Thu, Apr 12, 2012 at 8:28 AM, Jonathan Tougas jtou

Re: Wicket 1.5.5 + JBoss 7.1.1 + CDI - ClassNotFoundException

2012-04-12 Thread Jonathan Tougas
loading of the underlying bean. On Thu, Apr 12, 2012 at 3:40 PM, Jonathan Tougas jtou...@gmail.com wrote: I'm not familiar with the Wicketopia source, but doing a quick scan I can't find any EJBs in there. The problem in this case occurs if the FooStateless class is @Stateless. Changing

Re: Wicket 1.5.5 + JBoss 7.1.1 + CDI - ClassNotFoundException

2012-04-12 Thread Jonathan Tougas
is loaded without problems and it seems the proxy itself deals with the class loading of the underlying bean. On Thu, Apr 12, 2012 at 3:40 PM, Jonathan Tougas jtou...@gmail.com wrote: I'm not familiar with the Wicketopia source, but doing a quick scan I can't find any EJBs

Re: Wicket 1.5.5 + JBoss 7.1.1 + CDI - ClassNotFoundException

2012-04-12 Thread Jonathan Tougas
to the bottom of this. On Thu, Apr 12, 2012 at 11:56 AM, Jonathan Tougas jtou...@gmail.com wrote: I'll check it out thanks! On Thu, Apr 12, 2012 at 11:33 AM, Igor Vaynberg igor.vaynb...@gmail.comwrote: weld doesnt wrap ejbs in serializable proxies. if you want to inject ejbs you should do

Re: Wicket 1.5.5 + JBoss 7.1.1 + CDI - ClassNotFoundException

2012-04-11 Thread Jonathan Tougas
. On Wed, Apr 11, 2012 at 3:54 PM, Jonathan Tougas jtou...@gmail.com wrote: I'm running Wicket 1.5 on JBoss 7.1.1 with some CDI thrown in to the mix. In certain cases when Wicket deserializes a Page containing a reference to a CDI bean, I get this exception: 15:10:30,841 ERROR

Re: AbstractPageableView cachedItemCount

2012-02-17 Thread Jonathan Tougas
() 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 Thu, Feb 16, 2012 at 9:08 AM, Jonathan Tougas jtou...@gmail.com wrote: It should be discarded only before rendering. I figured out a way

Re: AbstractPageableView cachedItemCount

2012-02-16 Thread Jonathan Tougas
On Wed, Feb 15, 2012 at 4:25 PM, Jonathan Tougas jtou...@gmail.com wrote: The cachedItemCount calculated in onBeforeRender should not be discarded at the end of a request (so the clear in onDetach and readObject shouldn't be there). This way it would still be around when a request comes

AbstractPageableView cachedItemCount

2012-02-15 Thread Jonathan Tougas
! Jonathan Tougas

Re: AbstractPageableView cachedItemCount

2012-02-15 Thread Jonathan Tougas
size() calls with multiple requests. Right? Dan On Wed, Feb 15, 2012 at 9:31 AM, Jonathan Tougas jtou...@gmail.com wrote: I noticed two count queries go by when using the DataTable component. so I searched and dug up this jira issue https://issues.apache.org/jira/browse/WICKET-1766

Re: AbstractPageableView cachedItemCount

2012-02-15 Thread Jonathan Tougas
? On Wed, Feb 15, 2012 at 1:37 PM, Jonathan Tougas jtou...@gmail.com wrote: The PagingNavigationIncrementLink's linksTo(Page), which calls isLast() which calls pageable getPageCount() which ends up calling size() eventually. This is called during Component.canCallListenerInterface (*you're

Re: refresh and AjaxFallbackDefaultDataTable

2012-02-14 Thread Jonathan Tougas
Can't you fix that with a getPage().dirty(); in the Ajax request handler? Hmm tried your suggestion, but no luck. How would it help anyway? It's dirty() that is causing the page to change version in the first place right? RefreshingView.onPopulate() - MarkupContainer.removeAll() -

refresh and AjaxFallbackDefaultDataTable

2012-02-13 Thread Jonathan Tougas
I'm getting some inconsistent behavior with AjaxFallbackDefaultDataTable. Here are two scenarios that can be run on wicket-examples: *Scenario 1* 1 - navigate to http://wicketstuff.org/wicket/repeater/wicket/bookmarkable/org.apache.wicket.examples.repeater.AjaxDataTablePage 2 - click the link to