Re: new feature in trunk and branch: Component#onInitialize()

2010-07-13 Thread Ernesto Reinaldo Barreiro
Igor,

Thanks for this new feature!

Just one question/remark... the JavaDoc of onBeforeRender states

* Because this method is responsible for cascading {...@link
#onBeforeRender()} call to
* children it is strongly recommended that super call is made at the
end of the override.

Is this also true for onInitialize? I understand from JavaDoc bellow
that this method is called only once after component construction (on
first request cycle?) so for more dynamic situations we still will
need to use onBeforeRender. Is this assumption true?

Cheers,

Ernesto

On Tue, Jul 13, 2010 at 4:09 AM, Igor Vaynberg igor.vaynb...@gmail.com wrote:
 there have been a lot of threads over the years about having some
 place to initialize components other than constructors. there are a
 few problems with constructors, such as not being able to call
 getPage() or non-final methods. historically we have refused to
 implement this because we have maintained constructors were good
 enough, but over the years i have seen a few usecases where something
 like this would have been really nice. there have always been easy
 workarounds that is why we were in no hurry to implement this, but i
 think the time has come.

 below is the javadoc from the method

        /**
         * This method is meant to be used as an alternative to initialize
 components. Usually the
         * component's constructor is used for this task, but sometimes a
 component cannot be
         * initialized in isolation, it may need to access its parent
 component or its markup in order
         * to fully initialize. This method is invoked once per component's
 lifecycle when a path exists
         * from this component to the {...@link Page} thus providing the
 component with an atomic callback
         * when the component's environment is built out.
         * p
         * Overrides must call supe...@link #onInitialize()}
         * /p
         *
         * p
         * It is safe to use {...@link #getPage()} in this method
         * /p
         *
         * p
         * NOTE:The timing of this call is not precise, the contract is that
 it is called sometime
         * before {...@link Component#onBeforeRender()}.
         * /p
         *
         */
        protected void onInitialize()
        {
        }

 play around and see if you can find any problems. this will be part of
 1.4.10 and 1.5.M1

 -igor

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: new feature in trunk and branch: Component#onInitialize()

2010-07-13 Thread Igor Vaynberg
onInitialize() is called only once, like the javadoc says.

-igor

On Mon, Jul 12, 2010 at 10:58 PM, Ernesto Reinaldo Barreiro
reier...@gmail.com wrote:
 Igor,

 Thanks for this new feature!

 Just one question/remark... the JavaDoc of onBeforeRender states

 * Because this method is responsible for cascading {...@link
 #onBeforeRender()} call to
 * children it is strongly recommended that super call is made at the
 end of the override.

 Is this also true for onInitialize? I understand from JavaDoc bellow
 that this method is called only once after component construction (on
 first request cycle?) so for more dynamic situations we still will
 need to use onBeforeRender. Is this assumption true?

 Cheers,

 Ernesto

 On Tue, Jul 13, 2010 at 4:09 AM, Igor Vaynberg igor.vaynb...@gmail.com 
 wrote:
 there have been a lot of threads over the years about having some
 place to initialize components other than constructors. there are a
 few problems with constructors, such as not being able to call
 getPage() or non-final methods. historically we have refused to
 implement this because we have maintained constructors were good
 enough, but over the years i have seen a few usecases where something
 like this would have been really nice. there have always been easy
 workarounds that is why we were in no hurry to implement this, but i
 think the time has come.

 below is the javadoc from the method

        /**
         * This method is meant to be used as an alternative to initialize
 components. Usually the
         * component's constructor is used for this task, but sometimes a
 component cannot be
         * initialized in isolation, it may need to access its parent
 component or its markup in order
         * to fully initialize. This method is invoked once per component's
 lifecycle when a path exists
         * from this component to the {...@link Page} thus providing the
 component with an atomic callback
         * when the component's environment is built out.
         * p
         * Overrides must call supe...@link #onInitialize()}
         * /p
         *
         * p
         * It is safe to use {...@link #getPage()} in this method
         * /p
         *
         * p
         * NOTE:The timing of this call is not precise, the contract is that
 it is called sometime
         * before {...@link Component#onBeforeRender()}.
         * /p
         *
         */
        protected void onInitialize()
        {
        }

 play around and see if you can find any problems. this will be part of
 1.4.10 and 1.5.M1

 -igor

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Consecutive AJAX operations lead to Page Expired

2010-07-13 Thread asarpe

Not very sure what you meant by quickstart or it didnt happen  but I am
assuming is referring to the lack of code sample. If so, sorry for the
incomplete post.

Here is the Panel class in question, trimmed down to size to just the
relevant parts.

public class MyPanel extends Panel {

public MyPanel (String id, BasePage? parent) {
super(id, parent);
addPanelComponents();
}

private class MyForm extends Form {
private PageParameters properties;  
public AddCompetitorForm(String name) {
super(name);
addFormComponents();
}

public void addFormComponents() {
this.properties = new PageParameters();
add(new MyUrlTextField(WICKETID_INPUT, new
PropertyModelString(this.properties, WICKETID_INPUT)));
add(new AjaxButton(WICKETID_BUTTON_ADD, this) {
protected void onError(AjaxRequestTarget 
target, Form? form) {
super.onError(target, form);
onApplicationError(target);
}
protected void onSubmit(AjaxRequestTarget 
target, Form? form) {

String value =
AddCompetitorForm.this.properties.getString(WICKETID_INPUT);
try {
//write data to DB

repaintListViewComponent(listView, listViewData, target,
repaintableContainer);  
} catch (Exception e) {

onApplicationError(target, e, e.getMessage());
}
}
});
}
}   

protected void addPanelComponents() {
add(new MyForm(WICKETID_FORM));
listView = new ListViewWebsiteModel(WICKETID_REPEATER, 
listViewData) {
protected void populateItem(ListItemMyPOJO item) {
final MyPOJO c = item.getModelObject();

item.add(new 
AjaxFallbackLink(WICKETID_BUTTON_DEL) {
public void onClick(AjaxRequestTarget 
target) {
try {
//delete this entry 
from the database   
listViewData.remove(c);

repaintListViewComponent(listView, listViewData, target,
repaintableContainer);
} catch (Exception e) {

onApplicationError(target, e, e.getMessage());
}
}

getTimeLogger().endLoggingPage();
}
});
}
};
listView.setReuseItems(true);
listView.setOutputMarkupId(true);
repaintableContainer.add(listView);
add(repaintableContainer);
}

protected void repaintListViewComponent(ListView repeater, List model,
AjaxRequestTarget target, WebMarkupContainer container) {
repeater.modelChanging();
repeater.removeAll();
repeater.setList(model);
repeater.modelChanged();
target.addComponent(container);
}
}

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Consecutive-AJAX-operations-lead-to-Page-Expired-tp2286087p2287076.html
Sent from the Wicket - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: new feature in trunk and branch: Component#onInitialize()

2010-07-13 Thread vladimir.kovalyuk

The sources shows that the markup container is initialized prior to children
initialization. As expected. I used to double check due to onBeforeRender()
method. Should javadoc mention aforementioned?

The great news is that onBeforeRender() will never be used for component
initialization just for rendering event.

Looking forward for 1.4.10
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/new-feature-in-trunk-and-branch-Component-onInitialize-tp2286924p2287133.html
Sent from the Wicket - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Consecutive AJAX operations lead to Page Expired

2010-07-13 Thread Martin Grigorov
I guess he meant that this is very common use case and that's why we
believe it is an error in your code.
Please create as simple as possible application that manifests the
problem [1] and attach it to a ticket in the bug tracking system [2].

[1] To create a simple application you may use Wicket Quickstart -
http://wicket.apache.org/quickstart.html
Extend it so it shows the problem.

[2] https://issues.apache.org/jira/browse/WICKET
You have to login to create a new ticket

On Tue, 2010-07-13 at 00:07 -0700, asarpe wrote:
 Not very sure what you meant by quickstart or it didnt happen  but I am
 assuming is referring to the lack of code sample. If so, sorry for the
 incomplete post.
 
 Here is the Panel class in question, trimmed down to size to just the
 relevant parts.
 
 public class MyPanel extends Panel {
 
   public MyPanel (String id, BasePage? parent) {
   super(id, parent);
   addPanelComponents();
   }
 
   private class MyForm extends Form {
   private PageParameters properties;  
   public AddCompetitorForm(String name) {
   super(name);
   addFormComponents();
   }
 
   public void addFormComponents() {
   this.properties = new PageParameters();
   add(new MyUrlTextField(WICKETID_INPUT, new
 PropertyModelString(this.properties, WICKETID_INPUT)));
   add(new AjaxButton(WICKETID_BUTTON_ADD, this) {
   protected void onError(AjaxRequestTarget 
 target, Form? form) {
   super.onError(target, form);
   onApplicationError(target);
   }
   protected void onSubmit(AjaxRequestTarget 
 target, Form? form) {
   
   String value =
 AddCompetitorForm.this.properties.getString(WICKETID_INPUT);
   try {
   //write data to DB
   
 repaintListViewComponent(listView, listViewData, target,
 repaintableContainer);
   } catch (Exception e) {
   
 onApplicationError(target, e, e.getMessage());
   }
   }
   });
   }
   }   
   
   protected void addPanelComponents() {
   add(new MyForm(WICKETID_FORM));
   listView = new ListViewWebsiteModel(WICKETID_REPEATER, 
 listViewData) {
   protected void populateItem(ListItemMyPOJO item) {
   final MyPOJO c = item.getModelObject();
 
   item.add(new 
 AjaxFallbackLink(WICKETID_BUTTON_DEL) {
   public void onClick(AjaxRequestTarget 
 target) {
   try {
   //delete this entry 
 from the database   
   listViewData.remove(c);
   
 repaintListViewComponent(listView, listViewData, target,
 repaintableContainer);
   } catch (Exception e) {
   
 onApplicationError(target, e, e.getMessage());
   }
   }
   
 getTimeLogger().endLoggingPage();
   }
   });
   }
   };
   listView.setReuseItems(true);
   listView.setOutputMarkupId(true);
   repaintableContainer.add(listView);
   add(repaintableContainer);
   }
   
   protected void repaintListViewComponent(ListView repeater, List model,
 AjaxRequestTarget target, WebMarkupContainer container) {
   repeater.modelChanging();
   repeater.removeAll();
   repeater.setList(model);
   repeater.modelChanged();
   target.addComponent(container);
   }
 }
 



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



wicket in a mobile application.

2010-07-13 Thread amit1400158

Please tell me how successful is wicket in  mobile application??
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wicket-in-a-mobile-application-tp2287273p2287273.html
Sent from the Wicket - User mailing list archive at Nabble.com.


RE: wicket in a mobile application.

2010-07-13 Thread Stefan Lindner
What do you mean with mobile? Search for walmart on this list. Then you 
will find some informations about walmart using Wicket for mobile devices.

Stefan

-Ursprüngliche Nachricht-
Von: amit1400158 [mailto:ade...@qasource.com] 
Gesendet: Dienstag, 13. Juli 2010 13:22
An: users@wicket.apache.org
Betreff: wicket in a mobile application.


Please tell me how successful is wicket in  mobile application??
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wicket-in-a-mobile-application-tp2287273p2287273.html
Sent from the Wicket - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: wicket in a mobile application.

2010-07-13 Thread Ernesto Reinaldo Barreiro
http://www.mail-archive.com/users@wicket.apache.org/msg48605.html

On Tue, Jul 13, 2010 at 1:21 PM, amit1400158 ade...@qasource.com wrote:

 Please tell me how successful is wicket in  mobile application??
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/wicket-in-a-mobile-application-tp2287273p2287273.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: wicket in a mobile application.

2010-07-13 Thread Arjun Dhar

Check out:
http://www.thebuzzmedia.com/apache-wicket-powers-mobile-walmart-com/

Also, keep in mind Wicket is a server side component framework and like all
such frameworks it produces HTML, BUT as you will read from the link that it
allows you maintain consistent server-side code for components that could
generate specialized HTML for each mobile device.
+ It's AJAX support is pretty comprehensive.

The question is a bit vague but hopefully the above will provide you with
some clues.
..am learning the ropes myself heh :)
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wicket-in-a-mobile-application-tp2287273p2287300.html
Sent from the Wicket - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: wicket in a mobile application.

2010-07-13 Thread amit1400158

Thanks for speedy replies
Stefan I already know that walmart has developed its mobile site in wicket,
I want to know how successful is wicket in mobile applications. Like are
there any performance issues with using wicket in mobile, are there any
tendencies of hanging the application?? 
I have worked in wicket for 2 years now, but have never developed any app
for mobile, So please bear with my simple qustions. Thanks in
advance
1. Do we have to use different jdk while developing mobile apps??
2. Are there any special browsers for testing apps developed for mobile??
3. Is there any specification for mobile wicket apps??
4. Are there any books or online tutorials available for this??
5.Do we have to develop some special components for mobile apps??
6.Lastly, if I have worked on developing complex desktop apps in wicket, how
difficult it is for me to develop wicket mobile applications
Regards,
Amit Dewan
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wicket-in-a-mobile-application-tp2287273p2287332.html
Sent from the Wicket - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: wicket in a mobile application.

2010-07-13 Thread amit1400158

Arjun thanks for explaining me nicely
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wicket-in-a-mobile-application-tp2287273p2287334.html
Sent from the Wicket - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: wicket in a mobile application.

2010-07-13 Thread Martin Funk
Hi Amit,

the market for web-apps specially designed for mobiles is rather new, the
technological decisions made in that area aren't quite settled yet. Its not
even clear if serving your content in an web-app is the best approach.
The biggest problem seems to be the big number of different devices out
there. Solving that is not really dependent on the framework you use for
developing the web-app. Though if you use wicket your toolbox is well set.
Since it is not possible to render the content customized down to every
device out there a classification of the devices needs to be done. Then it
is a monetary question to decide how many device classes ought to be
supported.
With wicket you might have the chance of developing the components once and
then render em using the html template that fits the device best. Wickets
style mechanism is a good entry point for that.

Ad 1.
It runs on the server side, no different jdk needed

Ad 2.
Firefox offers a plugin that lets you configure the user-agent string in the
header, so the browser can mimic another browser.
As many of the mobile browsers are WebKit based Google Chrome is a good
start to test with.

Ad 3.
err... not that I know of.

Ad 4.
Life will teach you

Ad 5.
same as 3.

Ad 6.
How should we know. Just go ahead and tell us about the experiences you make

mf

2010/7/13 amit1400158 ade...@qasource.com


 Thanks for speedy replies
 Stefan I already know that walmart has developed its mobile site in wicket,
 I want to know how successful is wicket in mobile applications. Like are
 there any performance issues with using wicket in mobile, are there any
 tendencies of hanging the application??
 I have worked in wicket for 2 years now, but have never developed any app
 for mobile, So please bear with my simple qustions. Thanks in
 advance
 1. Do we have to use different jdk while developing mobile apps??
 2. Are there any special browsers for testing apps developed for mobile??
 3. Is there any specification for mobile wicket apps??
 4. Are there any books or online tutorials available for this??
 5.Do we have to develop some special components for mobile apps??
 6.Lastly, if I have worked on developing complex desktop apps in wicket,
 how
 difficult it is for me to develop wicket mobile applications
 Regards,
 Amit Dewan
 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/wicket-in-a-mobile-application-tp2287273p2287332.html
 Sent from the Wicket - User mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




Page Expired with back button

2010-07-13 Thread Christian Helmbold

Hello,

when I go back to the previous page with the browsers back button and click on 
a 
link on that page, I get every time a page expired error. It seems like Wicket 
loses the session, since all other actions in the application then results in 
an 
expired error. I've looked if the number of session on tomcat changes but there 
is no change, so tomcat seems to keep the session.

The same problem occurs if I click on link and immediately click on a second 
link before the response of the first click was received.

I'm using Wicket 1.4.8 on tomcat 5.5 and 6.

Any idea how to fix or where to look for the error?

Thanks!

Christian




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Page Expired with back button

2010-07-13 Thread Martin Grigorov
You are the second person reporting this problem with click link1 and
then click link2 this week.
Can you please create a simple application that shows the problem and
attach it to Jira ticket.


On Tue, 2010-07-13 at 07:38 -0700, Christian Helmbold wrote:
 Hello,
 
 when I go back to the previous page with the browsers back button and click 
 on a 
 link on that page, I get every time a page expired error. It seems like 
 Wicket 
 loses the session, since all other actions in the application then results in 
 an 
 expired error. I've looked if the number of session on tomcat changes but 
 there 
 is no change, so tomcat seems to keep the session.
 
 The same problem occurs if I click on link and immediately click on a second 
 link before the response of the first click was received.
 
 I'm using Wicket 1.4.8 on tomcat 5.5 and 6.
 
 Any idea how to fix or where to look for the error?
 
 Thanks!
 
 Christian
 
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: new feature in trunk and branch: Component#onInitialize()

2010-07-13 Thread Igor Vaynberg
On Tue, Jul 13, 2010 at 1:05 AM, vladimir.kovalyuk koval...@gmail.com wrote:

 The sources shows that the markup container is initialized prior to children
 initialization. As expected.

im pretty sure that is a safe assumption to make, not sure if its
javadoc worthy.

-igor

 I used to double check due to onBeforeRender()
 method. Should javadoc mention aforementioned?

 The great news is that onBeforeRender() will never be used for component
 initialization just for rendering event.

 Looking forward for 1.4.10
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/new-feature-in-trunk-and-branch-Component-onInitialize-tp2286924p2287133.html
 Sent from the Wicket - User mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: new feature in trunk and branch: Component#onInitialize()

2010-07-13 Thread Josh Glassman
Nice, I have one or two places where onInitialize would make more sense than
onBeforeRender. Thanks for the update!

One question, does it matter where in the override we call super#onInitialize
(beginning or end)?


Re: new feature in trunk and branch: Component#onInitialize()

2010-07-13 Thread Igor Vaynberg
i think in most cases it would make sense to call super first, just
like the constructor.

-igor

On Tue, Jul 13, 2010 at 8:35 AM, Josh Glassman josh...@gmail.com wrote:
 Nice, I have one or two places where onInitialize would make more sense than
 onBeforeRender. Thanks for the update!

 One question, does it matter where in the override we call super#onInitialize
 (beginning or end)?


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Panel update with Ajax

2010-07-13 Thread Sven Meier

Hi,

always when working with PropertyModel make sure that the properties exists.
In your case it should probably be:

new PropertyModelString(this, model.object.id))

Note that using the CompoundPropertyModel as suggested earlier is much 
easier.


Regards

Sven

On 07/13/2010 05:16 AM, Mansour Al Akeel wrote:

Thank you. I didn't know that wicket will pick the properties without
getters. I thought I have to create a getter for each property before
it's seen. Now the remaining issues:
When I use soemthing like :
add(new Label(id, new PropertyModelString(this, 
model.id)));
I get an exception:

WicketMessage: No get method defined for class: class
org.apache.wicket.model.CompoundPropertyModel expression: id

Root cause:

org.apache.wicket.WicketRuntimeException: No get method defined for
class: class org.apache.wicket.model.CompoundPropertyModel expression:
id
at 
org.apache.wicket.util.lang.PropertyResolver.getGetAndSetter(PropertyResolver.java:445)

The second issue is when I use
add(new AjaxEditableLabelString(codProduct));
and then try to update the panel, I get this exception:
WicketMessage: No get method defined for class: class
rentals.entities.Product expression: label

Root cause:

org.apache.wicket.WicketRuntimeException: No get method defined for
class: class rentals.entities.Product expression: label
at 
org.apache.wicket.util.lang.PropertyResolver.getGetAndSetter(PropertyResolver.java:445)

Any explanation why this is happening ?

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

   



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: new feature in trunk and branch: Component#onInitialize()

2010-07-13 Thread Erik van Oosten
I always wonder about the order and worry what could go wrong. A small 
sentence in the javadoc would stop that. E.g. something simple like:


 * p
 * Markup containers are initialized prior to their children.
 * /p

would be marvelous.

Regards,
 Erik.


Op 13-07-10 17:16, Igor Vaynberg wrote:

On Tue, Jul 13, 2010 at 1:05 AM, vladimir.kovalyukkoval...@gmail.com  wrote:
   

The sources shows that the markup container is initialized prior to children
initialization. As expected.
 

im pretty sure that is a safe assumption to make, not sure if its
javadoc worthy.

-igor

   

I used to double check due to onBeforeRender()
method. Should javadoc mention aforementioned?

The great news is that onBeforeRender() will never be used for component
initialization just for rendering event.

Looking forward for 1.4.10
--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/new-feature-in-trunk-and-branch-Component-onInitialize-tp2286924p2287133.html
Sent from the Wicket - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org


 

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

   


--
Sent from my SMTP compliant software
Erik van Oosten
http://day-to-day-stuff.blogspot.com/



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Interrupting AjaxSelfUpdatingTimerBehavior

2010-07-13 Thread dbuttery

Hi all,

   This may have been asked-and-answered but here goes ...

   I'm looking for a way to interrupt a AjaxSelfUpdatingTimerBehavior. 
Specifically, there is a AjaxSelfUpdatingTimerBehavior running on a page to
auto-refresh displayed data.  There is also a button to invoke a dialog to
allow the user to change critieria that determines what data is to be
displayed.

   Presently it appears that the button's onclick handler does not get
invoked until the timer fires after its current interval has been met.

   When the button is clicked I would like the timer to be interrupted and
allow the onclick handler to do its thing immediately.

   Simple enough, eh?

Thanks,
-Dennis

   
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Interrupting-AjaxSelfUpdatingTimerBehavior-tp2287833p2287833.html
Sent from the Wicket - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Any Italian wicket maniacs out there?

2010-07-13 Thread Francisco Diaz Trepat - gmail
Hi, I would like to ask some Italian users about something personal.

If any, and don't mind please contact me privately. I'll surely appreciate
it.

regards,

f(t)


Multiple columns using div with last one on each row different

2010-07-13 Thread Chris Colman
I'm using wicket to generate HTML and Compass/Blueprint to manage the
CSS.

I have a multi column layout with a product in each cell like:


P1   P2   P3
P4   P5   P6
P7

Etc.,

With the blueprint CSS framework you need to specify a slightly
different CSS 'class' (eg., lastCell) for the last item in each row
and that uses different CSS that does not append an extra 'space' in the
grid as it does for the previous cells in that row.

I know that I can use 

new SimpleAttributeModifier(class, lastCell));

when populating the list view but to do that I need to know how many
cells will appear in each row. What if I didn't want to hard code that
and leave it up to the markup to decide. Is there any wicket markup
trick that I can use to tell wicket to insert a special 'class' value
into the 'last cell' on each row?

-Original Message-
From: Francisco Diaz Trepat - gmail
[mailto:francisco.diaztre...@gmail.com]
Sent: Wednesday, 14 July 2010 6:13 AM
To: Wicket-Users
Subject: Any Italian wicket maniacs out there?

Hi, I would like to ask some Italian users about something personal.

If any, and don't mind please contact me privately. I'll surely
appreciate
it.

regards,

f(t)

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Multiple columns using div with last one on each row different

2010-07-13 Thread Anh
Not familiar with the blueprint framework, but is there some reason
you could not use

whatever:last-child {

}

CSS pseudo-selector?

On Tue, Jul 13, 2010 at 7:16 PM, Chris Colman
chr...@stepaheadsoftware.com wrote:
 I'm using wicket to generate HTML and Compass/Blueprint to manage the
 CSS.

 I have a multi column layout with a product in each cell like:


 P1   P2   P3
 P4   P5   P6
 P7

 Etc.,

 With the blueprint CSS framework you need to specify a slightly
 different CSS 'class' (eg., lastCell) for the last item in each row
 and that uses different CSS that does not append an extra 'space' in the
 grid as it does for the previous cells in that row.

 I know that I can use

        new SimpleAttributeModifier(class, lastCell));

 when populating the list view but to do that I need to know how many
 cells will appear in each row. What if I didn't want to hard code that
 and leave it up to the markup to decide. Is there any wicket markup
 trick that I can use to tell wicket to insert a special 'class' value
 into the 'last cell' on each row?

-Original Message-
From: Francisco Diaz Trepat - gmail
 [mailto:francisco.diaztre...@gmail.com]
Sent: Wednesday, 14 July 2010 6:13 AM
To: Wicket-Users
Subject: Any Italian wicket maniacs out there?

Hi, I would like to ask some Italian users about something personal.

If any, and don't mind please contact me privately. I'll surely
 appreciate
it.

regards,

f(t)

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Panel update with Ajax

2010-07-13 Thread Mansour Al Akeel
Sven, thank you.
But what about the ajax part.

On Tue, Jul 13, 2010 at 7:28 PM, Sven Meier s...@meiers.net wrote:
 Hi,

 always when working with PropertyModel make sure that the properties exists.
 In your case it should probably be:

    new PropertyModelString(this, model.object.id))

This one is not working as expected.
Do you have a ling for an example  ?


 Note that using the CompoundPropertyModel as suggested earlier is much
 easier.

 Regards

 Sven

 On 07/13/2010 05:16 AM, Mansour Al Akeel wrote:

 Thank you. I didn't know that wicket will pick the properties without
 getters. I thought I have to create a getter for each property before
 it's seen. Now the remaining issues:
 When I use soemthing like :
                add(new Label(id, new PropertyModelString(this,
 model.id)));
 I get an exception:

 WicketMessage: No get method defined for class: class
 org.apache.wicket.model.CompoundPropertyModel expression: id

 Root cause:

 org.apache.wicket.WicketRuntimeException: No get method defined for
 class: class org.apache.wicket.model.CompoundPropertyModel expression:
 id
 at
 org.apache.wicket.util.lang.PropertyResolver.getGetAndSetter(PropertyResolver.java:445)

 The second issue is when I use
 add(new AjaxEditableLabelString(codProduct));
 and then try to update the panel, I get this exception:
 WicketMessage: No get method defined for class: class
 rentals.entities.Product expression: label

 Root cause:

 org.apache.wicket.WicketRuntimeException: No get method defined for
 class: class rentals.entities.Product expression: label
 at
 org.apache.wicket.util.lang.PropertyResolver.getGetAndSetter(PropertyResolver.java:445)

 Any explanation why this is happening ?

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



RE: Multiple columns using div with last one on each row different

2010-07-13 Thread Chris Colman
That would probably not work because the child at the end of each row is not 
necessarily the last child in the 'containing object'.

The container is the category which has n products eg.,

P1 P2 P3 P4 P5 P6 P7 P8

Where P8 would be the last child

But I need P3 and P6 to be marked as 'last cell'.



-Original Message-
From: Anh [mailto:7za...@gmail.com]
Sent: Wednesday, 14 July 2010 1:19 PM
To: users@wicket.apache.org
Subject: Re: Multiple columns using div with last one on each row
different

Not familiar with the blueprint framework, but is there some reason
you could not use

whatever:last-child {

}

CSS pseudo-selector?

On Tue, Jul 13, 2010 at 7:16 PM, Chris Colman
chr...@stepaheadsoftware.com wrote:
 I'm using wicket to generate HTML and Compass/Blueprint to manage the
 CSS.

 I have a multi column layout with a product in each cell like:


 P1   P2   P3
 P4   P5   P6
 P7

 Etc.,

 With the blueprint CSS framework you need to specify a slightly
 different CSS 'class' (eg., lastCell) for the last item in each row
 and that uses different CSS that does not append an extra 'space' in the
 grid as it does for the previous cells in that row.

 I know that I can use

        new SimpleAttributeModifier(class, lastCell));

 when populating the list view but to do that I need to know how many
 cells will appear in each row. What if I didn't want to hard code that
 and leave it up to the markup to decide. Is there any wicket markup
 trick that I can use to tell wicket to insert a special 'class' value
 into the 'last cell' on each row?

-Original Message-
From: Francisco Diaz Trepat - gmail
 [mailto:francisco.diaztre...@gmail.com]
Sent: Wednesday, 14 July 2010 6:13 AM
To: Wicket-Users
Subject: Any Italian wicket maniacs out there?

Hi, I would like to ask some Italian users about something personal.

If any, and don't mind please contact me privately. I'll surely
 appreciate
it.

regards,

f(t)

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org