On Thu, Apr 12, 2012 at 8:05 AM, vaibhav228 vaibhav...@gmail.com wrote:
Thanks for the reply Dan.
We need to use only SSI, because these pages are getting generated from the
CMS, and in the CMS we have done separate header, footer, menu htmls and
while generating main page we are including
On Thu, Apr 12, 2012 at 4:59 AM, Dan Retzlaff dretzl...@gmail.com wrote:
Hi all. Time to start a thread of my own. :)
Many of Wicket's powerful repeaters depend on IDataProvider. This interface
has a size() method which returns a non-null integer. This makes it easy to
determine the total
On Thu, Apr 12, 2012 at 7:38 AM, Ahijah darren.gr...@gmail.com wrote:
Thanks for the tip, that definitely sounds like the way to go. Quick
follow-up, how does one mount an AbstractResource within the application.
There doesn't appear to be an Abstract reference class to instantiate using
Hi Martin,
Thanks for the reply. I am new to wicket framework. Can you
please elaborate more on how to do the setting that you have provided. It
would be very helpful.
My app is running at ROOT level. SSI is already enabled in the
web.xml file by removing the SSI servlet tags
Hey Bertrand,
This is not a complete answer. The complete answer is in the mail
thread that led to WICKET-4488:
Only the initial version of _stateful_ page is bookmarkable.
I.e. only ?0 is really bookmarkable because in my session page1?3
could be created by clicking link1 then link2 while in the
See filter-mapping and servlet-mapping elements in web.xsd
On Thu, Apr 12, 2012 at 9:20 AM, vaibhav228 vaibhav...@gmail.com wrote:
Hi Martin,
Thanks for the reply. I am new to wicket framework. Can you
please elaborate more on how to do the setting that you have provided. It
would
See
https://cwiki.apache.org/confluence/display/WICKET/Migration+to+Wicket+1.5#MigrationtoWicket1.5-HeaderContribution
and the next paragraph
On Wed, Apr 11, 2012 at 11:34 PM, Sandor Feher sfe...@bluesystem.hu wrote:
Hi,
I would like to use some visural wicket components so I need to
Hi,
On Wed, Apr 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
whats happening is this
user hits the page /foo
goes to /foo?1
does a bunch of ajax stuff, staying on /foo?1
clicks refresh, so hits /foo?1
listview refreshes, changing hierarchy, creating page version 2
the ajax behavior's url is rendered as /foo?2:...
the page is rendered, but not redirected to
Ok, it seems that time takes care of this problem and leak is not wicket-ajax
problem:
Tests with IE 10 (consumer preview) shows no leaking, gc seems to work and
browser
refresh clears the memory. There were no leaking with Opera, Firefox and
Chrome.
Furthermore previous JS debugging did
Hi,
Can you put a breakpoint in WicketServlet#init() ?
The only reason for that I see is this servlet to be initialized twice ...
Even better set the breakpoint in Application#setName() and see who is
calling it and how many times
On Thu, Apr 12, 2012 at 4:41 AM, Alex Rass a...@itbsllc.com
Hi.
I have a set of components C (anything you want Label, DateField,
TextField, DropDownChoice ...)
and another ChechBox inside a ListItem. I want to use the checkbox for
enabling / disabling of all components C (when checkbox is selected I want
to disable all C components):
final
On Thu, Apr 12, 2012 at 11:52 AM, dpmihai dpmi...@yahoo.com wrote:
Hi.
I have a set of components C (anything you want Label, DateField,
TextField, DropDownChoice ...)
and another ChechBox inside a ListItem. I want to use the checkbox for
enabling / disabling of all components C (when
Thanks a lot. I did not see it.
Also my first error in Wicket Ajax Debug was because I had some invisible
components in my ListItem.
So after I checked also for visibility everything was ok.
--
View this message in context:
On Thu, Apr 12, 2012 at 9:12 AM, Martin Grigorov mgrigo...@apache.org wrote:
On Thu, Apr 12, 2012 at 4:59 AM, Dan Retzlaff dretzl...@gmail.com wrote:
Hi all. Time to start a thread of my own. :)
Many of Wicket's powerful repeaters depend on IDataProvider. This interface
has a size() method
That's the solution which I have used for the case, where count is not possible.
It has only one slight disadvantage - if count == n*pageSize then the last page
will be blank.
Best regards,
Michal Wegrzyn
-Original Message-
From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com]
Sent:
Hi,
I have custom component (extends MarkupContainer implements
IMarkupCacheKeyProvider, IMarkupResourceStreamProvider) which fetches its
HTML markup from database.
Following HTML markup:
lt;img alt= src=img/supplier/supplier1.pnggt;
lt;brgt;Some text
lt;brgt;Some more text
causes following
Hi,
Please create a ticket with a simple quickstart app that demonstrates
the problem.
Thanks!
On Thu, Apr 12, 2012 at 12:55 PM, mjirkovsky
mjirkov...@valconsystems.com wrote:
Hi,
I have custom component (extends MarkupContainer implements
IMarkupCacheKeyProvider,
I created a simple page with a DateField and an
AjaxFormComponentUpdatingBehavior where I want to read the model. The
following code does work in Wicket 1.4.16 (prints the selected date), but
does not in Wicket 1.5.5 (prints null):
public class DatePage extends WebPage {
private
A stateless bean is injected into the home page class. Load the page in two
tabs (so twice in the same session), then on the first tab, press the
button. The error occurs every time in this scenario.
On Thu, Apr 12, 2012 at 2:41 AM, Martin Grigorov mgrigo...@apache.orgwrote:
Hi,
On Wed, Apr
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
The difference is that scoped beans are represented by proxy.
I guess there is no proxy for the stateless EJB. You can verify this
by putting a breakpoint in your page's #onBeforeRender() and checking
the type of the injected value.
Later during deserialization the current class loader cannot
Martin Grigorov-4 wrote
On Thu, Apr 12, 2012 at 7:38 AM, Ahijah lt;darren.greer@gt; wrote:
mountResource(/Feed2, new MyResourceReference());
class MyResourceReference extends ResourceReference {
public IResource getResource() { return new MyResource(); }
}
Thanks Martin! For
@Override
protected void onBeforeRender() {
System.out.println( foo );
System.out.println( foo.getClass() );
super.onBeforeRender();
}
When using @Stateless, the output is :
08:52:35,027 INFO [stdout] (http--127.0.0.1-8080-1) Proxy for view class:
com.foo.FooStateless of
hi everybody,,
I'm new into the forum and i'm french so i'm begging you to excuse my
english.
I have to create a panel which contains a ListView of a mixed entity object.
A little example:
public Person implements Serializable{
getName()
}
public Event implements Serializable{
getType()
}
If you have a number of JSON end-points, the best architecture would
probably be to use Spring MVC to do the JSON handling, and then map the
Spring MVC paths into your web app using the Wicket filter ignore paths
option (
Thanks for the reminder.
FYI... whoever built ZipGrocery - you are running your site with the ajax
debugger still on.
-Original Message-
From: Martijn Dashorst [mailto:martijn.dasho...@gmail.com]
Sent: Thursday, April 12, 2012 5:49 AM
To: users@wicket.apache.org
Subject: Built
I think the challenge is getting content from a /ssi/footer request
integrated into a Wicket-rendered page. AFAIK Wicket doesn't provide any
component for that. It might be possible using servlet's forward
capability from a custom Wicket component's onComponentTagBody. It seems to
be used for
See org.apache.wicket.markup.html.include.Include
Maybe it will do the job
On Thu, Apr 12, 2012 at 5:17 PM, Dan Retzlaff dretzl...@gmail.com wrote:
I think the challenge is getting content from a /ssi/footer request
integrated into a Wicket-rendered page. AFAIK Wicket doesn't provide any
Hi,
Should be better with a form
private IModelDate date;
public Test() {
super();
add(new TestForm(form, date = new ModelDate(new Date(;
}
private class TestForm extends Form {
public TestForm(String form, final IModelDate dateModel) {
Your second suggestion seems pretty solid, but I think people do make
non-trivial component hierarchy changes in onBeforeRender. Why not just
freeze the page version during rendering of reuseItems=false ListViews? You
know the content will be thrown away so a new page version doesn't seem
Done:
https://issues.apache.org/jira/browse/WICKET-4494
Michal
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-5-HtmlHandler-markup-without-base-tag-problem-tp4551420p4552044.html
Sent from the Users forum mailing list archive at Nabble.com.
Hi,
I have this scenario:
- browser requests some time-expensive page
- page renders lazy component (instead of regular component) and starts
thread for computation data
- lazy component use Behavior with AJAX callback, timed in seconds
- user sees in browser indicator
- when Behavior fires,
It does not matter. Your code (DateTextField instead DateField) does not work
either in Wicket 1.5.5 It prints just the current date no matter what date I
choose.
--
View this message in context:
Hi
Me again with a follow up to my isAuto() problem.
Setting component.setAuto(true) is quite bad, since Wicket will remove
all components in the detachChildren() method which have the Auto Flag
and which are not an instance of InlineEnclosure. Which all of my
components obviously are not...
Show me your code. full file class.
Le 12 avr. 2012 à 16:41, dpmihai a écrit :
It does not matter. Your code (DateTextField instead DateField) does not work
either in Wicket 1.5.5 It prints just the current date no matter what date I
choose.
--
View this message in context:
Hi,
using a fragment or a panel will help you
public class MyMixedEntitiesPane extends Panel {
public MyMixedEntitiesPanel(IModelUserDetails userDetails) {
myMixedEntitiesPanel.add( new Label(x, );
myMixedEntitiesPanel.add( new Label(y, );
I built zipgrocery ... my client is still pointing the domain to the test
server... will be fixed soon.
Josh.
On Thu, Apr 12, 2012 at 4:55 PM, Jeffrey Schneller
jeffrey.schnel...@envisa.com wrote:
Thanks for the reminder.
FYI... whoever built ZipGrocery - you are running your site with the
Hi,
On Thu, Apr 12, 2012 at 5:48 PM, Adrian Wiesmann awiesm...@somap.org wrote:
Hi
Me again with a follow up to my isAuto() problem.
Setting component.setAuto(true) is quite bad, since Wicket will remove all
components in the detachChildren() method which have the Auto Flag and which
are
Hi, Martin. I don't think it's appropriate to have your background thread
referencing page objects, especially not modifying them. In general, pages
get deserialized from the page store, in which case the thread's changes
won't even be seen. Maybe you are saved by an optimization that leaves the
Hi,
You can avoid this problem by using copy-on-write collections but this
will just postpone seeing the bigger problem: showing stale data.
Here is the scenario:
- wicket serializes the page in the disk
- your thread pushes data which is stored somehow in the page
- a new ajax request comes and
Igor,
The link I click ends with /mp/oid/123.9, where 123 is a product id.
However, when the page is rendered its URL changes to end with
/mp/oid/123.x where x is different every time. Moreover, the page is
displaying the wrong product 379!
So, it's not the wrong version of the page, but the
but if you do not know how many results you have then that can happen
using any approach...
-igor
On Thu, Apr 12, 2012 at 2:36 AM, Michal Wegrzyn
michal.wegr...@onior.com wrote:
That's the solution which I have used for the case, where count is not
possible.
It has only one slight
Thanks François for your reply.
But my real question is. UserDetails is it a bean that you created by
hand?
How do you populate it?
Thanks again
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Conception-question-about-mixed-entities-and-model-tp4551789p4552250.html
weld doesnt wrap ejbs in serializable proxies. if you want to inject
ejbs you should do it with wicket-jee module found in wicketstuff.
-igor
On Thu, Apr 12, 2012 at 5:55 AM, Jonathan Tougas jtou...@gmail.com wrote:
@Override
protected void onBeforeRender() {
System.out.println( foo );
On Thu, Apr 12, 2012 at 7:26 AM, Dan Retzlaff dretzl...@gmail.com wrote:
Your second suggestion seems pretty solid, but I think people do make
non-trivial component hierarchy changes in onBeforeRender.
my point was that such changes are not worthy of a page version
increment because they can be
This is just an idea
public class UserDetails {
public UserDetails( Person person, Event event, Mail mail ) {
// here you use the properties you need
this.firstName = person.getFirstName();
this.xxx = event.getXXX();
On Thu, Apr 12, 2012 at 8:22 AM, Alec Swan alecs...@gmail.com wrote:
Igor,
The link I click ends with /mp/oid/123.9, where 123 is a product id.
However, when the page is rendered its URL changes to end with
/mp/oid/123.x where x is different every time. Moreover, the page is
displaying the
I am wondering if AjaxEditableLabel is intentionally missing a
setConvertEmptyInputStringToNull(...) method? I have a use case for it, and it
seems like it would be reasonable to implement.
For now, I have a work-around for this by overriding AjaxEditableLabel's
newEditor(...) method. However,
On Thu, Apr 12, 2012 at 6:43 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote:
On Thu, Apr 12, 2012 at 8:22 AM, Alec Swan alecs...@gmail.com wrote:
Igor,
The link I click ends with /mp/oid/123.9, where 123 is a product id.
However, when the page is rendered its URL changes to end with
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 it with wicket-jee module found in wicketstuff.
-igor
On Thu, Apr 12, 2012 at 5:55 AM, Jonathan
On Thu, Apr 12, 2012 at 8:55 AM, Martin Grigorov mgrigo...@apache.org wrote:
On Thu, Apr 12, 2012 at 6:43 PM, Igor Vaynberg igor.vaynb...@gmail.com
wrote:
On Thu, Apr 12, 2012 at 8:22 AM, Alec Swan alecs...@gmail.com wrote:
Igor,
The link I click ends with /mp/oid/123.9, where 123 is a
but because of the existence of a page with pageId 0 in the page
store user sees page1, not page2 as user2 intended
So, what is the page id in ../mp/oid/123.9 url?
On Thu, Apr 12, 2012 at 9:58 AM, Igor Vaynberg igor.vaynb...@gmail.com wrote:
On Thu, Apr 12, 2012 at 8:55 AM, Martin Grigorov
I was thinking the same freeze pattern could be applied in the other
repeaters configured to throw away their content. But the no action phase
= no version increment rule is simpler to explain, and probably more
fool-proof.
On Thu, Apr 12, 2012 at 8:38 AM, Igor Vaynberg
I don't know much about HybridUrlCodingStrategy since I use Wicket 1.5,
but based on what you observed (.x changes on every render), I would say
the x is the page version.
I re-read your emails and if I understand correctly, both product 379
and 123 use the same page class. If that is the
In our case Markup for the component comes from CMS. We want to parse
the markup and cache Markup object in memory.
Parsing happens asynchronously (depending on the content change in CMS)
in a separate thread from the request thread.
We have custom MarkupParser that extends
On Thu, Apr 12, 2012 at 7:47 PM, Bertrand Guay-Paquet
ber...@step.polymtl.ca wrote:
I don't know much about HybridUrlCodingStrategy since I use Wicket 1.5, but
based on what you observed (.x changes on every render), I would say the x
is the page version.
I re-read your emails and if I
I looked into wicket-jee but this won't do for me.
I don't think this problem is Wicket related in any event. Here are some
links I came across.
- https://community.jboss.org/thread/179757
- http://java.net/jira/browse/GLASSFISH-12599
-
And I see no way to detect such problem by having just the
information encoded in the url
This is VERY scary!
How do I fix this?
On Thu, Apr 12, 2012 at 11:39 AM, Martin Grigorov mgrigo...@apache.org wrote:
On Thu, Apr 12, 2012 at 7:47 PM, Bertrand Guay-Paquet
ber...@step.polymtl.ca wrote:
I
When re-rendering a page, can you parse the new request URL and make sure
all the parameters are the same as those used at construction? I don't
think Wicket saves the original parameters now, but maybe it should.
On Thu, Apr 12, 2012 at 12:15 PM, Alec Swan alecs...@gmail.com wrote:
And I see
On Thu, Apr 12, 2012 at 10:39 AM, Martin Grigorov mgrigo...@apache.org wrote:
On Thu, Apr 12, 2012 at 7:47 PM, Bertrand Guay-Paquet
ber...@step.polymtl.ca wrote:
I don't know much about HybridUrlCodingStrategy since I use Wicket 1.5, but
based on what you observed (.x changes on every render),
you simply need to check what page class is mounted, and if the page
retrieved by id is not of that class then dont render it but redirect
to the bookmarkable url instead.
-igor
Both pages actually use the same MyPage.java class in this case. The
only difference is the page parameter encoded in
in that case a bit of logic in the page that checks the product id in
onconfigure() against one in the model, and if they are different
redirects to the correct page...
-igor
On Thu, Apr 12, 2012 at 1:56 PM, Bertrand Guay-Paquet
ber...@step.polymtl.ca wrote:
you simply need to check what page
On Wed, Apr 11, 2012 at 9:59 PM, Dan Retzlaff dretzl...@gmail.com wrote:
For SQL-based views, the application complexity comes from the need to
construct a count(*) query with exactly the same criteria as the subsequent
result query. In my experience, this pollutes DAO interfaces and
I have 2 JavaBeans A B. A has 2 fields: String name, Integer b_id. B has
2 fields: Integer id, String display.
I have a list of beans for B:
1, foo
2, bar
I have a single A bean, where its b_id corresponds to an id in bean B
(basically the beans represent 2 tables in a DB with the ids as
65 matches
Mail list logo