How about something like AjaxSelfUpdatingTimerBehavior? Also, this page has
some ajaxy examples that might help.
http://www.wicket-library.com/wicket-examples/ajax/
On Wednesday, May 16, 2012 at 7:28 AM, Brown, Berlin [GCG-PFS] wrote:
> I normally use 'target.addComponent(someOtherComponent)'
Hi all,
I wondering what will be the difference if i use
*((WebRequest)RequestCycle.get().getRequest()).getHeader("User-Agent");*
or
*WebSession.get().getClientInfo().getUserAgent();*
As the client info per session would be same .
and If I need to control this on the WebApplication level ,
Hello, i'm experiencing some issues with ending of target's lifecycle.
On my page I have few Panels, where user is entering data. One of them has
ListView, with TextField below and "Add" button. I've implemented, that
TextField stuff goes to ListView even "Add" button is not pressed (with
onBlur e
On Wed, May 30, 2012 at 1:41 AM, wicket user wrote:
> Hi all,
>
> I wondering what will be the difference if i use
> *((WebRequest)RequestCycle.get().getRequest()).getHeader("User-Agent");*
>
> or
>
> *WebSession.get().getClientInfo().getUserAgent();*
>
> As the client info per session would be s
Hello,
I'm trying set the current page number in a DataGrid to the last one but
don't know how to clear the cachedPageCount in AbstractPageableView. In my
scenario after creating a new entity I want to select it and change the page
of the grid to the page where this element exists. It works the pa
Question was how to handle user agent on the application level , i dont wanna
write same code on each page to check the user agent then render the
appropriate page
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/handling-user-agent-tp4649565p4649584.html
Sent from the
Anybody doing any ajax push stuff using wicket?
Douglas
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org
I have a situation where I need to access the page from the load method of a
loadableDetachableModel. The loadableDetachableModel is used deep down on a
panel that needs access to the page in order to access the model object. To
complicate things this page is abstract and can be extended to provi
What do you mean by "push stuff"?
From: Douglas Ferguson
To: Wicket Mailing List List
Date: 05/30/2012 03:19 PM
Subject:wicket & ajax push
Anybody doing any ajax push stuff using wicket?
Douglas
-
To uns
> public MyPanel(String id, MyModel model) {
That looks suspicious, why should MyPanel require a specific model
implementation?
What's so special about your MyModel? Is it a Wicket model, i.e.
implements IModel?
If yes, then the constructor should look like this:
public MyPanel(String id,
Hi,
I aggree with Sven. Another option is to pass the panel to the LDM's
contructor so you can do a panel.getPage() to get the page. Just cast to
the appropriate page type and do yourpage.getMyModel().
Best regards,
Sebastien.
On Wed, May 30, 2012 at 10:32 PM, Sven Meier wrote:
> > public MyP
My quick example isn't real and perhaps a bit misleading. Actually there is
nothing special about MyModel, its just a POJO that I am wrapping up in a
detachable model. Maybe I misunderstood what you were trying to tell me.
/** Specialization of MyPage that gets the POJO from a database. */
publi
But if I do that won't the panel get serialized with the loadable detachable
model? I would have to store a reference on the detachable model in order
to use it in the load method. I could mark it transient and it would be
there when the page is initially rendered but not on subsequent requests.
Well, I don't think so, even it needs to be tested.
My guess is that the panel is added to the page (then, serialized). To the
LDM's contructor, you will pass 'this' (means, the panel). In the LDM, you
will store the reference of that 'this' into a variable. In all case, we
always have the referen
Ok, MyPOJO makes more sense.
But then again, why don't you just use a model:
public abstract class MyPage extends WebPage {
public abstract MyPOJO getMyPOJO();
public onInitialize() {
this.add(new MyPanel("myPanel", new
AbstractReadOnlyModel() {
A model can have a reference to a component, that's no problem for
serialization.
Sven
On 05/30/2012 11:17 PM, Sebastien wrote:
Well, I don't think so, even it needs to be tested.
My guess is that the panel is added to the page (then, serialized). To the
LDM's contructor, you will pass 'this'
The reason for the detachable stuff is that when the page gets serialized it
is going to serialize all the components in the page hierarchy and the
models bound to them. When that happens MyPOJO is going also get serialized
which I'm trying to avoid. In my application these objects can be very
la
Well I gave this approach a try but unfortunately the first time the load
method gets called the getPage method throws an illegal state exception
java.lang.IllegalStateException: No Page found for component
So I guess this means that during the construction of the panel the load is
getting called
in Wicket 1.4, this works fine:
this.form.add(new Loop("ccformfields", ccformfields.size())
{
@Override
protected void populateItem(LoopItem item)
{
int index = item.ge
Hello again,
I tested in a quickstart and it works. (I just noticed you did not called
super.onInitialize())
The code I used:
class MyPOJO
{
public Boolean isSelected()
{
return true;
}
}
public class HomePage extends WebPage
{
private static final long serialVersionUID
Thank you so much Sebastien and Sven! Sebastien I altered my actual code to
put the panel on the LDM and it didn't work on the initial try. The problem
with the illegal state exception I was having seems to happen if you
construct your components in the panel constructor instead of the
onInitiali
Update - Access the page with MyPanel.this.getPage() seems to work fine.
More testing is required but looks like I have a solution.
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Access-to-Page-from-LoadableDetachableModel-tp4649586p4649602.html
Sent from the Users f
Update - I forgot to mention that my LDM is a class nested in the panel
class.
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Access-to-Page-from-LoadableDetachableModel-tp4649586p4649603.html
Sent from the Users forum mailing list archive at Nabble.com.
Hi Tom,
my usecase is:
I wan't wicket to search for the "key=value" in particular order, i.e:
let's say i have those propertis files:
1. ...\java\com\mycompany*\external\*WicketApplication_en.properties
2. ...\java\com\mycompany\WicketApplication_en.properties
3. ...\java\com\mycomp
Please change the sentence "so i want Wicket to load the "wicket:messag" in
the following order: "
to "so i want Wicket to load the "wicket:messag" from the following files:"
Thanks!
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/How-to-change-the-properties-file-loc
Could you please provide a quickstart?
-Tom
On 31.05.2012, 00:32 paulstar wrote:
> in Wicket 1.4, this works fine:
>
> this.form.add(new Loop("ccformfields", ccformfields.size())
> {
> @Override
> protected void popula
26 matches
Mail list logo