Re: AjaxLazyLoadPanel, nothing else works until it finishes loading

2010-11-24 Thread avrahamr

I'm having the same problem.
Have anyone found a solution?

On Thu, Aug 12, 2010 at 7:42 AM, wincen [via Apache Wicket] 
ml-node+2322202-522808124-117...@n4.nabble.comml-node%2b2322202-522808124-117...@n4.nabble.com
 wrote:

 I got my AjaxLazyLoadPanel to work probably but nothing else on the page
 seems to process until after the contents of the panel are finished loading.


 I have some buttons on the form and if I click them while the panel is
 loading the button event code is not triggered until after the lazy load
 panel has finished.  Is there something I can do to allow my buttons work
 even if the lazyloadpanel has not finished loading?

 --
  View message @
 http://apache-wicket.1842946.n4.nabble.com/AjaxLazyLoadPanel-nothing-else-works-until-it-finishes-loading-tp2322202p2322202.html
 To start a new topic under Wicket - User, email
 ml-node+1842947-58522394-117...@n4.nabble.comml-node%2b1842947-58522394-117...@n4.nabble.com
 To unsubscribe from Wicket - User, click 
 herehttp://apache-wicket.1842946.n4.nabble.com/template/NodeServlet.jtp?tpl=unsubscribe_by_codenode=1842947code=YXZyYWhhbXJAZ21haWwuY29tfDE4NDI5NDd8LTEwMTIyNDQ2OTU=.





-- 
[]'s
Avraham Rosenzweig
avrah...@gmail.com

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/AjaxLazyLoadPanel-nothing-else-works-until-it-finishes-loading-tp2322202p3058057.html
Sent from the Users forum 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: Model Is Not being Refreshed

2010-08-04 Thread avrahamr

I think attachments are not good in the list, so we didn't get your code.

I'm not following the way you are mixing Model with the Object and I
recommend reading:
https://cwiki.apache.org/WICKET/working-with-wicket-models.html

The StudyModel should be something like this:
public class StudyModel implements IModel {

private Study study;
 public Object getObject() {
return study;
 }

public void setObject(Object object) {
this.study =  (Study)study;
 }
   ...

But if that's the case, I don't see a reason not to use the concrete Model
class: new Model(study)

Also, I see from your examples you are using Wicket 1.3.x, is that right?

With Wicket 1.4.x and generics it all becomes much more clear.

On Wed, Aug 4, 2010 at 11:38 AM, nivs [via Apache Wicket] 
ml-node+2313107-368287748-293...@n4.nabble.comml-node%2b2313107-368287748-293...@n4.nabble.com
 wrote:

 After a long battle..i have progressed an inch forward!

 The StudyModel that implements IModel seemed to have the problem.
 I did not set the object in setObject...after modifying it in the following

 way..the Refresh button works.


 public Object getObject() {
 return this;
 }

 public void setObject(Object object) {
 StudyModel model = (StudyModel)object;
 this.studyVO = model.getStudyVO();

 }

 But I am not there as yet...now when I lookup and then click on an item
 from
 the list, the form again is empty..meaning the model is not being updated.

 So basically.
 1.Search  Panel - Search items
 2.SearchResults - onClick
 3.Details- displayed correctly..., now I click cancel, tht hides the
 details
 panel
 4. I click on New/Refresh button on Search Panel
 5. A new details page is loaded - the effect of modifying setObject() in
 the
 Model
 6.I click on cancel on details panel
 7. And perform steps 1 to 2
 8. An empty details panel is displayed...

 If i can get a single thread of clue..will fix this and cement it 
 Obviously I dont have a grip over Models..

 Cheers
 niv




 On Wed, Aug 4, 2010 at 11:12 AM, Nivedan Nadaraj [hidden 
 email]http://user/SendEmail.jtp?type=nodenode=2313107i=0wrote:


  Hi
 
 
  After I added setOutputMarkupPlaceHolderTag(true) to the details panel,
 the
  Ajax function works and I can see the details panel. (Which I could not
  earlier)
  However, the problem still remains as in the model has not been updated
 and
  still refers to the stale/old one.
 
  @avrahmr
  I used the setModel but I get a wicket runtime exception.
 
  Thanks for your thoughts.
  Niv
 
 
  On Wed, Aug 4, 2010 at 10:25 AM, Nivedan Nadaraj [hidden 
  email]http://user/SendEmail.jtp?type=nodenode=2313107i=1wrote:

 
  Hi,
 
  I have attached the code as a text file. I have removed lines that don't

  really make any contribution to the problem at hand after carefully
  examining it.
 
  Appreciate your time if you could see any issues please let me know.
 
  Basically the code has the Form objects I used, and the different panels

  involved with it.
 
  Many thanks
  Niv
 
 
  On Tue, Aug 3, 2010 at 10:30 PM, Nivedan Nadaraj [hidden 
  email]http://user/SendEmail.jtp?type=nodenode=2313107i=2wrote:

 
  Avraham and Matt,
 
  Thanks for the points. I will have a look at it tomorrow and post the
  code if I still haven't resolved. I don't have the code on me at the
 moment.
  Reg
  Niv
 
 
 
 
  On Tue, Aug 3, 2010 at 9:41 PM, mwilber [hidden 
  email]http://user/SendEmail.jtp?type=nodenode=2313107i=3
 wrote:
 
 
  Again without seeing more of the code some of this is guessing.
 
  If the component that you are trying to update is not part of the
  original
  HTML it will not be updated in the ajax response. I see that you are
  marking
  the component as visible and enabled. If it isn't visible during the
  initial
  rendering then it won't be placed in the HTML. If you mark the
 component
  with
 
 
 http://wicket.apache.org/apidocs/1.4/org/apache/wicket/Component.html#setOutputMarkupPlaceholderTag(boolean
 )
 http://wicket.apache.org/apidocs/1.4/org/apache/wicket/Component.html#setOutputMarkupPlaceholderTag%28boolean%29

  setOutputMarkupPlaceholderTag(true)  then the invisible component will

  have
  a placeholder to be updated during the ajax response.
  --
  View this message in context:
 
 http://apache-wicket.1842946.n4.nabble.com/Model-Is-Not-being-Refreshed-tp2311457p2311876.htmlhttp://apache-wicket.1842946.n4.nabble.com/Model-Is-Not-being-Refreshed-tp2311457p2311876.html?by-user=t
  Sent from the Wicket - User mailing list archive at Nabble.com.
 
  -
  To unsubscribe, e-mail: [hidden 
  email]http://user/SendEmail.jtp?type=nodenode=2313107i=4
  For additional commands, e-mail: [hidden 
  email]http://user/SendEmail.jtp?type=nodenode=2313107i=5
 
 
 
 
 


 --
  View message @
 http://apache-wicket.1842946.n4.nabble.com/Model-Is-Not-being-Refreshed-tp2311457p2313107.html
 To start a new topic 

Re: Model Is Not being Refreshed

2010-08-03 Thread avrahamr

Without seeing the code I can't be of much help, but I think the line:

 detailsPanel.getStudyForm().setModelObject(studyModel);

Should be:

 detailsPanel.getStudyForm().setModel(studyModel);

You could also keep a reference to the studyModel when you construct the
Form and just call:

 studyModel.setStudy();

But, it really depends on how you implement the StudyModel and how you
access it.

Cheers,
   Avraham

On Tue, Aug 3, 2010 at 11:17 AM, nivs [via Apache Wicket] 
ml-node+2311457-311556210-293...@n4.nabble.comml-node%2b2311457-311556210-293...@n4.nabble.com
 wrote:

 Hi

 Can someone point me the right direction.

 I have a search panel that does a look up and renders a resultsPanel. I
 don't use detachable model here and used PageableListView
 On the resultsPanel,onClick, I use the hibernate entity and pass it as a
 model to the DetailsPanel. The detailsPanel renders it right no issue here.


 Now When I hit the New button(acutally after I click cancel button on
 Details, the details panel is set to visible=false).  on the search, I
 expect to see a fresh page in details panel, but
 the details panel uses the old values I selected and renders it.

 This is what I do on onNew submit button.

 I reset the model and set it to the form which should call
 setDefaultObjectModel.

 SearchPanel

  onNew(){
 studyModel = new StudyModel();
 studyModel.setStudy(new Study());
 detailsPanel.getStudyForm().setModelObject(studyModel);
 detailsPanel.setVisible(true);
 }

 After onNew is executed, I don't see the model being updated. A bit lost
 here, any ideas?

 Thanks again
 Reg
 Niv


 --
  View message @
 http://apache-wicket.1842946.n4.nabble.com/Model-Is-Not-being-Refreshed-tp2311457p2311457.html
 To start a new topic under Wicket - User, email
 ml-node+1842947-1647783149-293...@n4.nabble.comml-node%2b1842947-1647783149-293...@n4.nabble.com
 To unsubscribe from Wicket - User, click 
 herehttp://apache-wicket.1842946.n4.nabble.com/subscriptions/Unsubscribe.jtp?code=YXZyYWhhbXJAZ21haWwuY29tfDE4NDI5NDd8LTEwNzY0NzQ1ODc=.





-- 
[]'s
Avraham Rosenzweig
avrah...@gmail.com

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Model-Is-Not-being-Refreshed-tp2311457p2311658.html
Sent from the Wicket - User mailing list archive at Nabble.com.


Re: Wicket stuff site

2010-07-29 Thread avrahamr

It was down for a while. Would it be too much to ask for a heads-up next
time :-)

On Thu, Jul 29, 2010 at 4:50 PM, Martijn Dashorst [via Apache Wicket] 
ml-node+2306488-1603966086-293...@n4.nabble.comml-node%2b2306488-1603966086-293...@n4.nabble.com
 wrote:

 Confluence is up and running again... Hoping to upgrade it to 3.3 soon...

 Martijn

 On Thu, Jul 29, 2010 at 1:40 PM, Martijn Dashorst
 [hidden email] http://user/SendEmail.jtp?type=nodenode=2306488i=0
 wrote:

  On Thu, Jul 29, 2010 at 11:32 AM, Martin Grigorov [hidden 
  email]http://user/SendEmail.jtp?type=nodenode=2306488i=1
 wrote:
  Confluence is down right now for security reasons.
 
  Not really: it is down because we are (were?) working on installing
  hudson and didn't want to wait 10 minutes for the container to start
  up. I guess we can enable confluence again as hudson seems to be
  humming quite nicely.
 
  The only service that is down for secutiry reasons is JIRA.
 
  Martijn
 
 
  On Thu, Jul 29, 2010 at 10:47 AM, armandoxxx [hidden 
  email]http://user/SendEmail.jtp?type=nodenode=2306488i=2wrote:

 
 
  Hey ppl ...
 
  Does anyone know the right link to wicket stuff site .. cause link I
 find
  on
  google or other sites are not working ...
 
  http://wicketstuff.org/confluence/display/STUFFWIKI
 
  Kind regards
 
  Armando
  --
  View this message in context:
 
 http://apache-wicket.1842946.n4.nabble.com/Wicket-stuff-site-tp2306142p2306142.htmlhttp://apache-wicket.1842946.n4.nabble.com/Wicket-stuff-site-tp2306142p2306142.html?by-user=t
  Sent from the Wicket - User mailing list archive at Nabble.com.
 
  -
  To unsubscribe, e-mail: [hidden 
  email]http://user/SendEmail.jtp?type=nodenode=2306488i=3
  For additional commands, e-mail: [hidden 
  email]http://user/SendEmail.jtp?type=nodenode=2306488i=4
 
 
 
 
 
 
  --
  Become a Wicket expert, learn from the best: 
  http://wicketinaction.comhttp://wicketinaction.com?by-user=t
  Apache Wicket 1.4 increases type safety for web applications
  Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.8
 



 --
 Become a Wicket expert, learn from the best: 
 http://wicketinaction.comhttp://wicketinaction.com?by-user=t
 Apache Wicket 1.4 increases type safety for web applications
 Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.8

 -
 To unsubscribe, e-mail: [hidden 
 email]http://user/SendEmail.jtp?type=nodenode=2306488i=5
 For additional commands, e-mail: [hidden 
 email]http://user/SendEmail.jtp?type=nodenode=2306488i=6



 --
  View message @
 http://apache-wicket.1842946.n4.nabble.com/Wicket-stuff-site-tp2306142p2306488.html
 To start a new topic under Wicket - User, email
 ml-node+1842947-1647783149-293...@n4.nabble.comml-node%2b1842947-1647783149-293...@n4.nabble.com
 To unsubscribe from Wicket - User, click 
 herehttp://apache-wicket.1842946.n4.nabble.com/subscriptions/Unsubscribe.jtp?code=YXZyYWhhbXJAZ21haWwuY29tfDE4NDI5NDd8LTEwNzY0NzQ1ODc=.





-- 
[]'s
Avraham Rosenzweig
avrah...@gmail.com

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


Re: Using Apache mod rewrite to fix home page parameter problem

2010-07-28 Thread avrahamr

So there is were I don't follow.
You use crypted url strategy in order to have non bookmarkable links.
Now you want the homemage to have bookmarkable links.
So why not to stop using crypted url strategy for the homepage, you can use
it only for the pages you want non bookmarkable URLs.
Am I missing something?

Also, for the Wicket experts out there, can we do something like this on the
Application?
mount(new QueryStringUrlCodingStrategy(/, HomePage.class));

On Wed, Jul 28, 2010 at 2:18 PM, fatefree [via Apache Wicket] 
ml-node+2304786-2098886504-293...@n4.nabble.comml-node%2b2304786-2098886504-293...@n4.nabble.com
 wrote:

 I use a crypted url strategy for security on non bookmarkable page links.
 If you have a standard bookmarkable page, wicket will generate a REST style
 urls like /page/id/5, which will not be encrypted. However there seems to be
 an issue where if you try to mount the home page, it is generated as
 /page?id=1, which then gets encrypted.

 However instead of using apache mod rewrite, I found that if you set the
 index page to forward the request to another page using
 setResponsePage(StoriesPage.class), and do not redirect, the issue seems to
 be resolved.

 --
  View message @
 http://apache-wicket.1842946.n4.nabble.com/Using-Apache-mod-rewrite-to-fix-home-page-parameter-problem-tp2303737p2304786.html
 To start a new topic under Wicket - User, email
 ml-node+1842947-1647783149-293...@n4.nabble.comml-node%2b1842947-1647783149-293...@n4.nabble.com
 To unsubscribe from Wicket - User, click 
 herehttp://apache-wicket.1842946.n4.nabble.com/subscriptions/Unsubscribe.jtp?code=YXZyYWhhbXJAZ21haWwuY29tfDE4NDI5NDd8LTEwNzY0NzQ1ODc=.





-- 
[]'s
Avraham Rosenzweig
avrah...@gmail.com

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Using-Apache-mod-rewrite-to-fix-home-page-parameter-problem-tp2303737p2305504.html
Sent from the Wicket - User mailing list archive at Nabble.com.


Re: Using Apache mod rewrite to fix home page parameter problem

2010-07-27 Thread avrahamr

What do you mean unintentionally? Why do you use a crypted url strategy?


On Tue, Jul 27, 2010 at 6:54 PM, fatefree [via Apache Wicket] 
ml-node+2303737-2108181663-293...@n4.nabble.comml-node%2b2303737-2108181663-293...@n4.nabble.com
 wrote:

 I am looking for a solution to a nagging problem on my first wicket
 site, www.luckeffect.com.

 The problem is that page parameters are not bookmarkable on the page
 that is specified as the application home page. For an example, the
 breadcrumb link Home  'Page 1' on http://www.luckeffect.com/ is
 unintentionally obfuscated through the crypted url coding strategy
 because the parameters on the home page are standard query parameters.
 However, on any other page, they are bookmarked correctly, for
 example, the exact same link on the unlucky page
 http://www.luckeffect.com/unlucky works as intended.

 One idea was to change my application home page to a class that simply
 redirects to a new StoriesPage, mapped to /stories. This fixes the
 page parameter problem, but I really don't like adding a redirect to
 the home page for seo reasons. To circumvent this, is it possible to
 use apache's mod rewrite to change www.luckeffect.com/ to
 www.luckeffect.com/stories behind the scenes? Are there any known
 problems with using apache mod rewrite with wicket?

 -
 To unsubscribe, e-mail: [hidden 
 email]http://user/SendEmail.jtp?type=nodenode=2303737i=0
 For additional commands, e-mail: [hidden 
 email]http://user/SendEmail.jtp?type=nodenode=2303737i=1



 --
  View message @
 http://apache-wicket.1842946.n4.nabble.com/Using-Apache-mod-rewrite-to-fix-home-page-parameter-problem-tp2303737p2303737.html
 To start a new topic under Wicket - User, email
 ml-node+1842947-1647783149-293...@n4.nabble.comml-node%2b1842947-1647783149-293...@n4.nabble.com
 To unsubscribe from Wicket - User, click 
 herehttp://apache-wicket.1842946.n4.nabble.com/subscriptions/Unsubscribe.jtp?code=YXZyYWhhbXJAZ21haWwuY29tfDE4NDI5NDd8LTEwNzY0NzQ1ODc=.





-- 
[]'s
Avraham Rosenzweig
avrah...@gmail.com

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Using-Apache-mod-rewrite-to-fix-home-page-parameter-problem-tp2303737p2303959.html
Sent from the Wicket - User mailing list archive at Nabble.com.


Re: IVisitorT extends Component and IFormModelUpdateListener not extending Component

2010-07-26 Thread avrahamr

You can still visit all components and manually check if it is an
instanceof IFormModelUpdateListener

On Mon, Jul 26, 2010 at 12:10 PM, Joseph Pachod [via Apache Wicket] 
ml-node+2302070-350349768-293...@n4.nabble.comml-node%2b2302070-350349768-293...@n4.nabble.com
 wrote:

 hello

 I wanted to do an Component.IVisitor for all children components
 implementing IFormModelUpdateListener.

 However, IVisitor requires something extending Component, which
 IFormModelUpdateListener can't do (it's an interface).

 As such, I had to dump all generics info and do instanceof to get it
 running.

 However, for wicket 1.5 I guess, shouldn't there be an IComponent
 interface that IFormModelUpdateListener would implement ? IVisitor would
 then be of T extends IComponent and I could do an
 IVisitorIFormModelUpdateListener.

 What's your pick on that ?

 ++

 --
 Joseph Pachod
 IT

 THOMAS DAILY GmbH
 Adlerstraße 19
 79098 Freiburg
 Deutschland
 T  + 49 761 3 85 59 506
 F  + 49 761 3 85 59 550
 E  [hidden email] http://user/SendEmail.jtp?type=nodenode=2302070i=0
 www.thomas-daily.de

 Geschäftsführer/Managing Directors:
 Wendy Thomas, Susanne Larbig
 Handelsregister Freiburg i.Br., HRB 3947

 Registrieren Sie sich unter https://www.thomas-daily.de/user/sign-in für
 die TD Morning News, eine kostenlose Auswahl aktueller Themen aus TD
 Premium, morgens ab 9:15 in Ihrer Mailbox.

 Aktuelle Presseinformationen für die TD Morning News und TD Premium nimmt
 unsere Redaktion unter [hidden 
 email]http://user/SendEmail.jtp?type=nodenode=2302070i=1entgegen.
 Redaktionsschluss für die TD Morning News ist täglich um 8:45.

 Register free of charge at https://www.thomas-daily.de/user/sign-in to
 have the TD Morning News, a selection of the latest topics from TD Premium,
 delivered to your mailbox from 9:15 every morning.

 Our editorial department receives the latest press releases for the TD
 Morning News and TD Premium at [hidden 
 email]http://user/SendEmail.jtp?type=nodenode=2302070i=2.
 The editorial deadline for the TD Morning News is 8.45am daily.


 -
 To unsubscribe, e-mail: [hidden 
 email]http://user/SendEmail.jtp?type=nodenode=2302070i=3
 For additional commands, e-mail: [hidden 
 email]http://user/SendEmail.jtp?type=nodenode=2302070i=4



 --
  View message @
 http://apache-wicket.1842946.n4.nabble.com/IVisitor-T-extends-Component-and-IFormModelUpdateListener-not-extending-Component-tp2302070p2302070.html
 To start a new topic under Wicket - User, email
 ml-node+1842947-1647783149-293...@n4.nabble.comml-node%2b1842947-1647783149-293...@n4.nabble.com
 To unsubscribe from Wicket - User, click 
 herehttp://apache-wicket.1842946.n4.nabble.com/subscriptions/Unsubscribe.jtp?code=YXZyYWhhbXJAZ21haWwuY29tfDE4NDI5NDd8LTEwNzY0NzQ1ODc=.





-- 
[]'s
Avraham Rosenzweig
avrah...@gmail.com

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/IVisitor-T-extends-Component-and-IFormModelUpdateListener-not-extending-Component-tp2302070p2302075.html
Sent from the Wicket - User mailing list archive at Nabble.com.


Re: TextFieldInteger

2010-07-22 Thread avrahamr

I've encontered the same problem and it took me a while to figure it out
why.

So maybe it's a good idea to make it automatic on the framework,

On all TextFieldE constructors without the type parameter we should call
setType() like this:

setType((Class?) ((ParameterizedType)
getClass().getGenericSuperclass()).getActualTypeArguments()[0]);

Too complicated??



On Fri, Jul 23, 2010 at 1:02 AM, Josh Glassman [via Apache Wicket] 
ml-node+2299461-894925024-293...@n4.nabble.comml-node%2b2299461-894925024-293...@n4.nabble.com
 wrote:

 There is also a constructor that will take a Class type as a parameter.

 On Thu, Jul 22, 2010 at 3:11 PM, T Ames [hidden 
 email]http://user/SendEmail.jtp?type=nodenode=2299461i=0
 wrote:

  I think you have to use the setType(Integer.class) method on the
 TextField
  object.
 
  setType
 
  public final FormComponent
 
 
 file:///C:/Downloads/Java/wicket/apache-wicket-1.4.1/apidocs/org/apache/wicket/markup/html/form/FormComponent.htmlT

 
 
 file:///C:/Downloads/Java/wicket/apache-wicket-1.4.1/apidocs/org/apache/wicket/markup/html/form/FormComponent.html

  *setType*(java.lang.Class? type)
 
  Sets the type that will be used when updating the model for this
 component.
  If no type is specified String type is assumed.
 
   *Parameters:*type - *Returns:*this for chaining
 
  On Thu, Jul 22, 2010 at 1:50 PM, Douglas Ferguson 
  [hidden email] http://user/SendEmail.jtp?type=nodenode=2299461i=1
 wrote:
 
   Has anybody succesfully used TextFieldInteger?
  
   I get an runtime exception trying to cast String to Integer.
  
   If supply (Integer.class) to the constructor then it is trying to case
  Long
   to Integer.
  
   D/
  
 


 --
  View message @
 http://apache-wicket.1842946.n4.nabble.com/TextField-Integer-tp2299053p2299461.html
 To start a new topic under Wicket - User, email
 ml-node+1842947-1647783149-293...@n4.nabble.comml-node%2b1842947-1647783149-293...@n4.nabble.com
 To unsubscribe from Wicket - User, click 
 herehttp://apache-wicket.1842946.n4.nabble.com/subscriptions/Unsubscribe.jtp?code=YXZyYWhhbXJAZ21haWwuY29tfDE4NDI5NDd8LTEwNzY0NzQ1ODc=.





-- 
[]'s
Avraham Rosenzweig
avrah...@gmail.com

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


Re: Question - Does Wicket really initialize a page instance once?

2010-07-09 Thread avrahamr

But a different page instance for each person or browser section is expected
by any Java developer.

What is not so much expected is that for the same person, in the same
browser session, you can't rely on natural object identity, like Martin
said, thanks to serialization... But you can rely on object values, so if
you correctly implement hash and equals it should be fine.

On Wed, Jul 7, 2010 at 10:48 PM, Martin Makundi [via Apache Wicket] 
ml-node+2281423-751388596-293...@n4.nabble.comml-node%2b2281423-751388596-293...@n4.nabble.com
 wrote:

 Also yes ;)

 2010/7/7 James Carman [hidden 
 email]http://user/SendEmail.jtp?type=nodenode=2281423i=0:


  2010/7/7 Martin Makundi [hidden 
  email]http://user/SendEmail.jtp?type=nodenode=2281423i=1:

  But remember... not being reconstructed does not mean that you won't
  have MULTIPLE INSTANCES of the same page.
 
  ... thanks to serialization ;)) so be warned if you code something
  that depends on instances.
 
  It's not just serialization.  A new page instance will be constructed
  for each person that hits it.
 
  -
  To unsubscribe, e-mail: [hidden 
  email]http://user/SendEmail.jtp?type=nodenode=2281423i=2
  For additional commands, e-mail: [hidden 
  email]http://user/SendEmail.jtp?type=nodenode=2281423i=3
 
 

 -
 To unsubscribe, e-mail: [hidden 
 email]http://user/SendEmail.jtp?type=nodenode=2281423i=4
 For additional commands, e-mail: [hidden 
 email]http://user/SendEmail.jtp?type=nodenode=2281423i=5



 --
  View message @
 http://apache-wicket.1842946.n4.nabble.com/Question-Does-Wicket-really-initialize-a-page-instance-once-tp2281200p2281423.html
 To start a new topic under Wicket - User, email
 ml-node+1842947-1647783149-293...@n4.nabble.comml-node%2b1842947-1647783149-293...@n4.nabble.com
 To unsubscribe from Wicket - User, click 
 herehttp://apache-wicket.1842946.n4.nabble.com/subscriptions/Unsubscribe.jtp?code=YXZyYWhhbXJAZ21haWwuY29tfDE4NDI5NDd8LTEwNzY0NzQ1ODc=.





-- 
[]'s
Avraham Rosenzweig
avrah...@gmail.com

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Question-Does-Wicket-really-initialize-a-page-instance-once-tp2281200p2283205.html
Sent from the Wicket - User mailing list archive at Nabble.com.


Re: is this a bug in ModelT?

2010-06-15 Thread avrahamr

Another option would be to directly implement IModelT.

On Tue, Jun 15, 2010 at 7:04 PM, Rodolfo Hansen [via Apache Wicket] 
ml-node+2256139-803998731-293...@n4.nabble.comml-node%2b2256139-803998731-293...@n4.nabble.com
 wrote:

 Are you sure you want to override Model in the first place?
 Di you see LoadableDetachableModel ?

 Model is not ment to be an abstract class,
 I would argue its not a bug, but that would be a whole other debate...

 On Tue, 2010-06-15 at 06:56 -0400, Alex Rass wrote:

  No, Martin, it can't work.
  Look at the implementation.
 
  ALL other methods use object directly.
  SO if you just override getObject you'll endup with a broken:
  equals(), hashCode(), toString() methods (which breaks any form of
 caching)
  detach() would also be broken.
 
  So no, it can't work.
  You HAVE to super.setObject() or setObject() directly and use internal
  object to use ModelT class.
  Which is not deadly, but a need to know.
 
  Hence: is it a bug or a feature?
  Igor? :)
 
  - Alex
 
 
  -Original Message-
  From: Martin Makundi [mailto:[hidden 
  email]http://user/SendEmail.jtp?type=nodenode=2256139i=0]

  Sent: Tuesday, June 15, 2010 6:11 AM
  To: [hidden email]http://user/SendEmail.jtp?type=nodenode=2256139i=1
  Subject: Re: is this a bug in ModelT?
 
  I did something similar and it works.
 
  **
  Martin
 
  2010/6/15 Alex Rass [hidden 
  email]http://user/SendEmail.jtp?type=nodenode=2256139i=2:

   Hi.
  
   Was writing some code and encountered that
   org.apache.wicket.model.Model T
  
   Always uses direct references to 'object' variable directly. And never
   as getObject().
   This may hinder overriding methods.
  
   (I found this cause I overwrote getObject() and NOTHING changed :) I
   then looked at the source and knew how to fix it)
  
   Bug or feature?
  
   This is Wicket 1.4.7
  
   - Alex
  
  
   -
   To unsubscribe, e-mail: [hidden 
   email]http://user/SendEmail.jtp?type=nodenode=2256139i=3
   For additional commands, e-mail: [hidden 
   email]http://user/SendEmail.jtp?type=nodenode=2256139i=4
  
  
 
  -
  To unsubscribe, e-mail: [hidden 
  email]http://user/SendEmail.jtp?type=nodenode=2256139i=5
  For additional commands, e-mail: [hidden 
  email]http://user/SendEmail.jtp?type=nodenode=2256139i=6
 
 
 
  -
  To unsubscribe, e-mail: [hidden 
  email]http://user/SendEmail.jtp?type=nodenode=2256139i=7
  For additional commands, e-mail: [hidden 
  email]http://user/SendEmail.jtp?type=nodenode=2256139i=8
 




 --
  View message @
 http://apache-wicket.1842946.n4.nabble.com/is-this-a-bug-in-Model-T-tp2255650p2256139.html
 To start a new topic under Wicket - User, email
 ml-node+1842947-1647783149-293...@n4.nabble.comml-node%2b1842947-1647783149-293...@n4.nabble.com
 To unsubscribe from Wicket - User, click 
 herehttp://apache-wicket.1842946.n4.nabble.com/subscriptions/Unsubscribe.jtp?code=YXZyYWhhbXJAZ21haWwuY29tfDE4NDI5NDd8LTEwNzY0NzQ1ODc=.





-- 
[]'s
Avraham Rosenzweig
avrah...@gmail.com

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/is-this-a-bug-in-Model-T-tp2255650p2256282.html
Sent from the Wicket - User mailing list archive at Nabble.com.