Other Component than link in TabbedPanel's newLink

2014-02-07 Thread Richter, Marvin
Hey,

I'm trying to use a Component which itself contains a Component in the 
TabbedPanel's newLink method.
Unfortunately that's not allowed  Cause ... only raw markup is allowed ...

Any ideas how can still achieve this?

Code:

final BootstrapTabbedPanelConfigTypeTab configTypes = new 
BootstrapTabbedPanelConfigTypeTab(configTypes,
tabs) {

@Override
protected WebMarkupContainer newLink(final String linkId, final 
int index) {
IModelString label = 
Model.of(tabs.get(index).getConfigType().getObject().getName());
SplitButton splitButton = new SplitButton(linkId, label) {

@Override
protected AbstractLink newBaseButton(String 
markupId, IModelString labelModel,
IModelIconType iconTypeModel) {
return new LinkVoid(markupId) {

private static final long 
serialVersionUID = 1L;

@Override
public void onClick() {
setSelectedTab(index);
}
};
}

@Override
protected ListAbstractLink 
newSubMenuButtons(String buttonMarkupId) {
ListAbstractLink subMenuLinks = new 
ArrayListAbstractLink();
subMenuLinks.add(new AjaxLink(buttonMarkupId) {

@Override
public void 
onComponentTagBody(MarkupStream markupStream,
ComponentTag openTag) {

replaceComponentTagBody(markupStream, openTag, Edit);
}

@Override
public void onClick(AjaxRequestTarget 
target) {

LOG.debug(tabs.get(index).getConfigType().getObject().toString());
}
});
return subMenuLinks;
}
};
return splitButton;
}
};

Marvin Richter
Software Developer
T  +49 (0) 30 69 538 1099
M  +49 (0) 174 744 4991
marvin.rich...@jestadigital.commailto:marvin.rich...@jestadigital.com

JESTA DIGITAL GmbH   Karl-Liebknecht-Str. 32   10178 Berlin, Germany
Gesellschaft mit beschränkter Haftung mit Sitz in Berlin
HRB Nr. 97990 Amtsgericht Charlottenburg
Geschäftsführer: Markus Peuler



Re: Other Component than link in TabbedPanel's newLink

2014-02-07 Thread Martin Grigorov
You a component that has its own markup, i.e. a Panel with SplitButton
inside.

Martin Grigorov
Wicket Training and Consulting


On Fri, Feb 7, 2014 at 9:00 AM, Richter, Marvin 
marvin.rich...@jestadigital.com wrote:

 Hey,

 I'm trying to use a Component which itself contains a Component in the
 TabbedPanel's newLink method.
 Unfortunately that's not allowed  Cause ... only raw markup is
 allowed ...

 Any ideas how can still achieve this?

 Code:

 final BootstrapTabbedPanelConfigTypeTab configTypes = new
 BootstrapTabbedPanelConfigTypeTab(configTypes,
 tabs) {

 @Override
 protected WebMarkupContainer newLink(final String linkId,
 final int index) {
 IModelString label =
 Model.of(tabs.get(index).getConfigType().getObject().getName());
 SplitButton splitButton = new SplitButton(linkId,
 label) {

 @Override
 protected AbstractLink newBaseButton(String
 markupId, IModelString labelModel,
 IModelIconType iconTypeModel) {
 return new LinkVoid(markupId) {

 private static final long
 serialVersionUID = 1L;

 @Override
 public void onClick() {
 setSelectedTab(index);
 }
 };
 }

 @Override
 protected ListAbstractLink
 newSubMenuButtons(String buttonMarkupId) {
 ListAbstractLink subMenuLinks = new
 ArrayListAbstractLink();
 subMenuLinks.add(new
 AjaxLink(buttonMarkupId) {

 @Override
 public void
 onComponentTagBody(MarkupStream markupStream,
 ComponentTag openTag) {

 replaceComponentTagBody(markupStream, openTag, Edit);
 }

 @Override
 public void
 onClick(AjaxRequestTarget target) {

 LOG.debug(tabs.get(index).getConfigType().getObject().toString());
 }
 });
 return subMenuLinks;
 }
 };
 return splitButton;
 }
 };

 Marvin Richter
 Software Developer
 T  +49 (0) 30 69 538 1099
 M  +49 (0) 174 744 4991
 marvin.rich...@jestadigital.commailto:marvin.rich...@jestadigital.com

 JESTA DIGITAL GmbH   Karl-Liebknecht-Str. 32   10178 Berlin, Germany
 Gesellschaft mit beschränkter Haftung mit Sitz in Berlin
 HRB Nr. 97990 Amtsgericht Charlottenburg
 Geschäftsführer: Markus Peuler




RE: Other Component than link in TabbedPanel's newLink

2014-02-07 Thread Richter, Marvin
OMFG ... that was too easy ... I missed the forest for the trees

Thanks

Marvin Richter
Software Developer
T  +49 (0) 30 69 538 1099
M  +49 (0) 174 744 4991
marvin.rich...@jestadigital.com  

JESTA DIGITAL GmbH   Karl-Liebknecht-Str. 32   10178 Berlin, Germany
Gesellschaft mit beschränkter Haftung mit Sitz in Berlin
HRB Nr. 97990 Amtsgericht Charlottenburg
Geschäftsführer: Markus Peuler


-Original Message-
From: Martin Grigorov [mailto:mgrigo...@apache.org] 
Sent: Friday, February 07, 2014 9:04 AM
To: users@wicket.apache.org
Subject: Re: Other Component than link in TabbedPanel's newLink

You a component that has its own markup, i.e. a Panel with SplitButton inside.

Martin Grigorov
Wicket Training and Consulting


On Fri, Feb 7, 2014 at 9:00 AM, Richter, Marvin  
marvin.rich...@jestadigital.com wrote:

 Hey,

 I'm trying to use a Component which itself contains a Component in the 
 TabbedPanel's newLink method.
 Unfortunately that's not allowed  Cause ... only raw markup is 
 allowed ...

 Any ideas how can still achieve this?

 Code:

 final BootstrapTabbedPanelConfigTypeTab configTypes = new 
 BootstrapTabbedPanelConfigTypeTab(configTypes,
 tabs) {

 @Override
 protected WebMarkupContainer newLink(final String 
 linkId, final int index) {
 IModelString label = 
 Model.of(tabs.get(index).getConfigType().getObject().getName());
 SplitButton splitButton = new SplitButton(linkId,
 label) {

 @Override
 protected AbstractLink 
 newBaseButton(String markupId, IModelString labelModel,
 IModelIconType iconTypeModel) {
 return new LinkVoid(markupId) {

 private static final long 
 serialVersionUID = 1L;

 @Override
 public void onClick() {
 setSelectedTab(index);
 }
 };
 }

 @Override
 protected ListAbstractLink 
 newSubMenuButtons(String buttonMarkupId) {
 ListAbstractLink subMenuLinks = new 
 ArrayListAbstractLink();
 subMenuLinks.add(new
 AjaxLink(buttonMarkupId) {

 @Override
 public void 
 onComponentTagBody(MarkupStream markupStream,
 ComponentTag openTag) 
 {

 replaceComponentTagBody(markupStream, openTag, Edit);
 }

 @Override
 public void 
 onClick(AjaxRequestTarget target) {

 LOG.debug(tabs.get(index).getConfigType().getObject().toString());
 }
 });
 return subMenuLinks;
 }
 };
 return splitButton;
 }
 };

 Marvin Richter
 Software Developer
 T  +49 (0) 30 69 538 1099
 M  +49 (0) 174 744 4991
 marvin.rich...@jestadigital.commailto:marvin.rich...@jestadigital.com
 

 JESTA DIGITAL GmbH   Karl-Liebknecht-Str. 32   10178 Berlin, Germany
 Gesellschaft mit beschränkter Haftung mit Sitz in Berlin HRB Nr. 97990 
 Amtsgericht Charlottenburg
 Geschäftsführer: Markus Peuler



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



RE: Other Component than link in TabbedPanel's newLink

2014-02-07 Thread Richter, Marvin
Hmmm unfortunately that didn't do the job  :(
I'm quite sure that I just overlooked something ...

Error:
Close tag not found for tag: a href=# wicket:id=link. For  Components 
only raw markup is allow in between the tags but not other Wicket Component. 
Component: [SplitButtonContainer [Component id = link]]
 MarkupStream: [markup = 
jar:file:/home/mrichter/.m2/repository/de/agilecoders/wicket/wicket-bootstrap-core/0.8.4/wicket-bootstrap-core-0.8.4.jar!/de/agilecoders/wicket/core/markup/html/bootstrap/tabs/BootstrapTabbedPanel.html
a href=# wicket:id=linkspan wicket:id=title[[tab title]]/span/a, 
index = 1, current =  'span wicket:id=title' (line 0, column 0)]

final BootstrapTabbedPanelConfigTypeTab configTypes = new 
BootstrapTabbedPanelConfigTypeTab(configTypes,
tabs) {

@Override
protected WebMarkupContainer newLink(final String linkId, final 
int index) {
return new SplitButtonContainer(linkId, 
tabs.get(index).getConfigType().getObject().getName()) {

@Override
protected void onBaseButtonClick() {
setSelectedTab(index);
}

@Override
protected ListAbstractLink 
onNewSubMenuButtons(String buttonMarkupId) {
ListAbstractLink subMenuLinks = new 
ArrayListAbstractLink();
subMenuLinks.add(new AjaxLink(buttonMarkupId) {

@Override
public void 
onComponentTagBody(MarkupStream markupStream,
ComponentTag openTag) {

replaceComponentTagBody(markupStream, openTag, Edit);
}

@Override
public void onClick(AjaxRequestTarget 
target) {

LOG.debug(tabs.get(index).getConfigType().getObject().toString());
}
});
return subMenuLinks;
}
};
}
};


private abstract static class SplitButtonContainer extends Panel {

public SplitButtonContainer(final String id, final String title) {
super(id);
IModelString label = Model.of(title);
SplitButton splitButton = new SplitButton(splitButton, label) {

@Override
protected AbstractLink newBaseButton(String markupId, 
IModelString labelModel,
IModelIconType iconTypeModel) {
return new LinkVoid(markupId) {

private static final long serialVersionUID = 1L;

@Override
public void onClick() {
onBaseButtonClick();
}
};
}

@Override
protected ListAbstractLink newSubMenuButtons(String 
buttonMarkupId) {
return onNewSubMenuButtons(buttonMarkupId);
}
};
}

protected abstract void onBaseButtonClick();
protected abstract ListAbstractLink onNewSubMenuButtons(String 
buttonMarkupId);
}

Thanks in advance,
Marvin


-Original Message-
From: Richter, Marvin [mailto:marvin.rich...@jestadigital.com] 
Sent: Friday, February 07, 2014 9:07 AM
To: users@wicket.apache.org
Subject: RE: Other Component than link in TabbedPanel's newLink

OMFG ... that was too easy ... I missed the forest for the trees

Thanks

Marvin Richter
Software Developer
T  +49 (0) 30 69 538 1099
M  +49 (0) 174 744 4991
marvin.rich...@jestadigital.com  

JESTA DIGITAL GmbH   Karl-Liebknecht-Str. 32   10178 Berlin, Germany 
Gesellschaft mit beschränkter Haftung mit Sitz in Berlin HRB Nr. 97990 
Amtsgericht Charlottenburg
Geschäftsführer: Markus Peuler


-Original Message-
From: Martin Grigorov [mailto:mgrigo...@apache.org]
Sent: Friday, February 07, 2014 9:04 AM
To: users@wicket.apache.org
Subject: Re: Other Component than link in TabbedPanel's newLink

You a component that has its own markup, i.e. a Panel with SplitButton inside.

Martin Grigorov
Wicket Training and Consulting


On Fri, Feb 7, 2014 at 9:00 AM, Richter, Marvin  
marvin.rich...@jestadigital.com wrote:

 Hey,

 I'm trying to use a Component which itself contains a Component in the 
 TabbedPanel's newLink method.
 Unfortunately that's not allowed  Cause ... only raw markup is 
 allowed ...

 Any ideas how can still achieve this?

 Code:

 final 

Re: Other Component than link in TabbedPanel's newLink

2014-02-07 Thread Martin Grigorov
Yes, it won't work so easy ...
You use new component for the link, but then the title is not needed.
The easiest is to add MyTabbedPanel extends BootstrapTabbedPanel and in
MyTabbedPanel.html provide whatever markup fits best for your use case.
Feel free to file an issue to wicket-bootstrap for improvement.

Martin Grigorov
Wicket Training and Consulting


On Fri, Feb 7, 2014 at 9:25 AM, Richter, Marvin 
marvin.rich...@jestadigital.com wrote:

 Hmmm unfortunately that didn't do the job  :(
 I'm quite sure that I just overlooked something ...

 Error:
 Close tag not found for tag: a href=# wicket:id=link. For
  Components only raw markup is allow in between the tags but not other
 Wicket Component. Component: [SplitButtonContainer [Component id = link]]
  MarkupStream: [markup =
 jar:file:/home/mrichter/.m2/repository/de/agilecoders/wicket/wicket-bootstrap-core/0.8.4/wicket-bootstrap-core-0.8.4.jar!/de/agilecoders/wicket/core/markup/html/bootstrap/tabs/BootstrapTabbedPanel.html
 a href=# wicket:id=linkspan wicket:id=title[[tab
 title]]/span/a, index = 1, current =  'span wicket:id=title' (line
 0, column 0)]

 final BootstrapTabbedPanelConfigTypeTab configTypes = new
 BootstrapTabbedPanelConfigTypeTab(configTypes,
 tabs) {

 @Override
 protected WebMarkupContainer newLink(final String linkId,
 final int index) {
 return new SplitButtonContainer(linkId,
 tabs.get(index).getConfigType().getObject().getName()) {

 @Override
 protected void onBaseButtonClick() {
 setSelectedTab(index);
 }

 @Override
 protected ListAbstractLink
 onNewSubMenuButtons(String buttonMarkupId) {
 ListAbstractLink subMenuLinks = new
 ArrayListAbstractLink();
 subMenuLinks.add(new
 AjaxLink(buttonMarkupId) {

 @Override
 public void
 onComponentTagBody(MarkupStream markupStream,
 ComponentTag openTag) {

 replaceComponentTagBody(markupStream, openTag, Edit);
 }

 @Override
 public void
 onClick(AjaxRequestTarget target) {

 LOG.debug(tabs.get(index).getConfigType().getObject().toString());
 }
 });
 return subMenuLinks;
 }
 };
 }
 };


 private abstract static class SplitButtonContainer extends Panel {

 public SplitButtonContainer(final String id, final String title) {
 super(id);
 IModelString label = Model.of(title);
 SplitButton splitButton = new SplitButton(splitButton,
 label) {

 @Override
 protected AbstractLink newBaseButton(String markupId,
 IModelString labelModel,
 IModelIconType iconTypeModel) {
 return new LinkVoid(markupId) {

 private static final long serialVersionUID
 = 1L;

 @Override
 public void onClick() {
 onBaseButtonClick();
 }
 };
 }

 @Override
 protected ListAbstractLink newSubMenuButtons(String
 buttonMarkupId) {
 return onNewSubMenuButtons(buttonMarkupId);
 }
 };
 }

 protected abstract void onBaseButtonClick();
 protected abstract ListAbstractLink onNewSubMenuButtons(String
 buttonMarkupId);
 }

 Thanks in advance,
 Marvin


 -Original Message-
 From: Richter, Marvin [mailto:marvin.rich...@jestadigital.com]
 Sent: Friday, February 07, 2014 9:07 AM
 To: users@wicket.apache.org
 Subject: RE: Other Component than link in TabbedPanel's newLink

 OMFG ... that was too easy ... I missed the forest for the trees

 Thanks

 Marvin Richter
 Software Developer
 T  +49 (0) 30 69 538 1099
 M  +49 (0) 174 744 4991
 marvin.rich...@jestadigital.com

 JESTA DIGITAL GmbH   Karl-Liebknecht-Str. 32   10178 Berlin, Germany
 Gesellschaft mit beschränkter Haftung mit Sitz in Berlin HRB Nr. 97990
 Amtsgericht Charlottenburg
 Geschäftsführer: Markus Peuler


 -Original Message-
 From: Martin Grigorov [mailto:mgrigo...@apache.org]
 Sent: Friday, February 07, 2014 9:04 AM
 To: users@wicket.apache.org
 Subject: Re: Other Component than link in TabbedPanel's newLink

 You a component that has its own markup, i.e. a Panel 

RE: Other Component than link in TabbedPanel's newLink

2014-02-07 Thread Richter, Marvin
This is not my only problem ... bootstrap itself doesn't even support what I 
was trying to do  :-/
Cause this is just a small page to support some configs, this would be too much 
effort for now to write all this by myself.

I'll create a pull request for the BootstrapTabbedPanel improvement at the 
weekend.

Thanks,
Marvin


-Original Message-
From: Martin Grigorov [mailto:mgrigo...@apache.org] 
Sent: Friday, February 07, 2014 9:39 AM
To: users@wicket.apache.org
Subject: Re: Other Component than link in TabbedPanel's newLink

Yes, it won't work so easy ...
You use new component for the link, but then the title is not needed.
The easiest is to add MyTabbedPanel extends BootstrapTabbedPanel and in 
MyTabbedPanel.html provide whatever markup fits best for your use case.
Feel free to file an issue to wicket-bootstrap for improvement.

Martin Grigorov
Wicket Training and Consulting


On Fri, Feb 7, 2014 at 9:25 AM, Richter, Marvin  
marvin.rich...@jestadigital.com wrote:

 Hmmm unfortunately that didn't do the job  :( I'm quite sure that 
 I just overlooked something ...

 Error:
 Close tag not found for tag: a href=# wicket:id=link. For  
 Components only raw markup is allow in between the tags but not other 
 Wicket Component. Component: [SplitButtonContainer [Component id = 
 link]]
  MarkupStream: [markup =
 jar:file:/home/mrichter/.m2/repository/de/agilecoders/wicket/wicket-bo
 otstrap-core/0.8.4/wicket-bootstrap-core-0.8.4.jar!/de/agilecoders/wic
 ket/core/markup/html/bootstrap/tabs/BootstrapTabbedPanel.html
 a href=# wicket:id=linkspan wicket:id=title[[tab 
 title]]/span/a, index = 1, current =  'span wicket:id=title' 
 (line 0, column 0)]

 final BootstrapTabbedPanelConfigTypeTab configTypes = new 
 BootstrapTabbedPanelConfigTypeTab(configTypes,
 tabs) {

 @Override
 protected WebMarkupContainer newLink(final String 
 linkId, final int index) {
 return new SplitButtonContainer(linkId,
 tabs.get(index).getConfigType().getObject().getName()) {

 @Override
 protected void onBaseButtonClick() {
 setSelectedTab(index);
 }

 @Override
 protected ListAbstractLink 
 onNewSubMenuButtons(String buttonMarkupId) {
 ListAbstractLink subMenuLinks = new 
 ArrayListAbstractLink();
 subMenuLinks.add(new
 AjaxLink(buttonMarkupId) {

 @Override
 public void 
 onComponentTagBody(MarkupStream markupStream,
 ComponentTag openTag) 
 {

 replaceComponentTagBody(markupStream, openTag, Edit);
 }

 @Override
 public void 
 onClick(AjaxRequestTarget target) {

 LOG.debug(tabs.get(index).getConfigType().getObject().toString());
 }
 });
 return subMenuLinks;
 }
 };
 }
 };


 private abstract static class SplitButtonContainer extends Panel {

 public SplitButtonContainer(final String id, final String title) {
 super(id);
 IModelString label = Model.of(title);
 SplitButton splitButton = new SplitButton(splitButton,
 label) {

 @Override
 protected AbstractLink newBaseButton(String 
 markupId, IModelString labelModel,
 IModelIconType iconTypeModel) {
 return new LinkVoid(markupId) {

 private static final long 
 serialVersionUID = 1L;

 @Override
 public void onClick() {
 onBaseButtonClick();
 }
 };
 }

 @Override
 protected ListAbstractLink 
 newSubMenuButtons(String
 buttonMarkupId) {
 return onNewSubMenuButtons(buttonMarkupId);
 }
 };
 }

 protected abstract void onBaseButtonClick();
 protected abstract ListAbstractLink 
 onNewSubMenuButtons(String buttonMarkupId);
 }

 Thanks in advance,
 Marvin


 -Original Message-
 From: Richter, Marvin [mailto:marvin.rich...@jestadigital.com]
 Sent: Friday, February 07, 2014 9:07 AM
 To: users@wicket.apache.org
 Subject: RE: Other Component than link in TabbedPanel's newLink

 OMFG ... that was too easy ... I missed the forest for the trees

 Thanks

 Marvin Richter
 Software 

Re: Datepicker to pick just the month

2014-02-07 Thread María del Busto Griñón
Well that doesn't seem to be right, because it says that date formats are:


   - d, dd: Numeric date, no leading zero and leading zero, respectively.
   Eg, 5, 05.
   - D, DD: Abbreviated and full weekday names, respectively. Eg, Mon,
   Monday.
   - m, mm: Numeric month, no leading zero and leading zero, respectively.
   Eg, 7, 07.
   - M, MM: Abbreviated and full month names, respectively. Eg, Jan, January
   - yy, : 2- and 4-digit years, respectively. Eg, 12, 2012.

But if I set MM it outputs 02 instead of February, the date formats
that it is using are those of SimpleDateFormat..



2014-02-06 16:14 GMT+01:00 Martin Grigorov mgrigo...@apache.org:

 Hi,

 I assume you use wicket-datetime module.
 You will have to consult with YUI 2.x docs to see what is supported -
 http://yui.github.io/yui2/

 https://github.com/l0rdn1kk0n/wicket-bootstrap uses this datepicker -
 http://bootstrap-datepicker.readthedocs.org/en/latest/options.html#format

 Wicket JQuery UI project provides integration with JQuery UI datepicker.

 Martin Grigorov
 Wicket Training and Consulting


 On Thu, Feb 6, 2014 at 3:46 PM, María del Busto Griñón 
 maria.delbu...@gmail.com wrote:

  Hi,
 
  I am developing a webapp where at some certain point we need to pick just
  the month of a date. I have tried to create a DatePicker with date
 format =
  , and it works ok when it loads the date from the Database, if the
  month of the date stored is february, for example, it renders February
  correct, but if I try to pick another month, for example March, then in
 the
  date field it shows 03 and it shows an error pointing that the date
 format
  is not correct.
 
  Isn't it allowed to use the  format? MMM doesn't work either...
 
  Thanks!
 



The AjaxSubmitLink does not respond after migrating to wicket 6

2014-02-07 Thread Heshani
I migrated the application from wicket 1.4 to 6.13.0. After the migration the
AjaxSubmitLink gets rendered with, href=javascript:;. Anyone knows the
reason for this issue? 
Thank you!

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/The-AjaxSubmitLink-does-not-respond-after-migrating-to-wicket-6-tp4664294.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: The AjaxSubmitLink does not respond after migrating to wicket 6

2014-02-07 Thread Martin Grigorov
Hi,

Check for JavaScript errors/logs.

Martin Grigorov
Wicket Training and Consulting


On Fri, Feb 7, 2014 at 12:15 PM, Heshani heshni.per...@gmail.com wrote:

 I migrated the application from wicket 1.4 to 6.13.0. After the migration
 the
 AjaxSubmitLink gets rendered with, href=javascript:;. Anyone knows the
 reason for this issue?
 Thank you!

 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/The-AjaxSubmitLink-does-not-respond-after-migrating-to-wicket-6-tp4664294.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: The AjaxSubmitLink does not respond after migrating to wicket 6

2014-02-07 Thread Heshani
It does have the below javascript error, 
 Wicket.Ajax.registerPreCallHandler is not a function

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/The-AjaxSubmitLink-does-not-respond-after-migrating-to-wicket-6-tp4664294p4664296.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: The AjaxSubmitLink does not respond after migrating to wicket 6

2014-02-07 Thread Martin Grigorov
This API has been reworked. See
https://cwiki.apache.org/confluence/display/WICKET/Wicket+Ajax#WicketAjax-GlobalAjaxcalllisteners

And http://wicketinaction.com/2012/07/wicket-6-javascript-improvements/

Martin Grigorov
Wicket Training and Consulting


On Fri, Feb 7, 2014 at 12:29 PM, Heshani heshni.per...@gmail.com wrote:

 It does have the below javascript error,
  Wicket.Ajax.registerPreCallHandler is not a function

 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/The-AjaxSubmitLink-does-not-respond-after-migrating-to-wicket-6-tp4664294p4664296.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: Choice Renderers Display Issue After Submit

2014-02-07 Thread Sven Meier

I don't see a reason why this shouldn't work.

Please create a quickstart showing the problem.

Sven

On 02/06/2014 10:47 AM, MissOvenMitts wrote:

Hi guys!

I'm using a ChoiceRenderer for the first time, and am having a slight
problem with it. Any help would be *greatly* appreciated!

I have a DropDownChoice used to select a particular PeriodBean object which
uses a ChoiceRenderer to properly display only the Description string of
the object. The issue is that once a selection is made and I submit the form
(works properly), the DropDownChoice goes back to not having a selection
displayed (because, I'm assuming, it doesn't know how to take the item in
the property model and display it in the DropDownChoice). How do I make it
continue to properly display the selected PeriodBean Description?

Here's code (simplified version of mine):


// This is what a PeriodBean looks like:
public class PeriodBean implements Serializable {

 private String periodIndex;
 private String periodDescription;

 public String getPeriodIndex() {
 return periodIndex;
 }

 public void setPeriodIndex(String periodIndex) {
 this.periodIndex = periodIndex;
 }

 public String getPeriodDescription() {
 return periodDescription;
 }

 public void setPeriodDescription(String periodDescription) {
 this.periodDescription = periodDescription;
 }

}


// This is what my SearchCriteriaBean looks like (stores the selected value
from the dropdown):
public class SearchCriteriaBean implements Serializable {
   
 private PeriodBean selectedPeriod;


 public PeriodBean getSelectedPeriod() {
 return performancePeriod;
 }

 public void setSelectedPeriod(PeriodBean periodBean ) {
 this.selectedPeriod= periodBean;
 }

}


// This is a PeriodList item that creates the list of acceptable choices for
my dropdown
public class PeriodList extends
 AbstractReadOnlyModelListlt;? extends PeriodBean {

 public PeriodList() {
 super();
 }

 @Override
 public ListPeriodBean getObject() {
 ListPeriodBean pendings = new ArrayListPeriodBean();
 
	// Go to the database and do some stuff to get the proper list of

selectable pending periods
 
	return pendingPeriods;

 }

 public IteratorPeriodBean iterator() {
 ListPeriodBean pendings = this.getObject();
 return pendings.iterator();
 }
 };




// And this is JAVA in the Page itself:

// Create a search criteria
SearchCriteriaBean searchCriteria = new SearchCriteriaBean(); //Defined
above

// Create a list
PeriodList periodChoices = new PeriodList(); //Defined above

// Create my dropdown and choice renderer to display the period description
ChoiceRendererPeriodBean choiceRenderer = new ChoiceRendererPeriodBean(
 periodDescription, periodIndex);
DropDownChoicePeriodBean periodChoice = new DropDownChoicePeriodBean(
  periodChoice,
   new PropertyModelPeriodBean(searchCriteria, selectedPeriod),
periodChoices, choiceRenderer);
periodChoice.setOutputMarkupId(true);
periodChoice.setRequired(true);
form.add(periodChoice); // There is a form on this page but I am not showing
for simplicity.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Choice-Renderers-Display-Issue-After-Submit-tp4664225.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




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



Re: Choice Renderers Display Issue After Submit

2014-02-07 Thread Martin Grigorov
The user explains in his second mail that everything is fine once the
#equals() method is properly implemented.

Martin Grigorov
Wicket Training and Consulting


On Fri, Feb 7, 2014 at 12:50 PM, Sven Meier s...@meiers.net wrote:

 I don't see a reason why this shouldn't work.

 Please create a quickstart showing the problem.

 Sven


 On 02/06/2014 10:47 AM, MissOvenMitts wrote:

 Hi guys!

 I'm using a ChoiceRenderer for the first time, and am having a slight
 problem with it. Any help would be *greatly* appreciated!

 I have a DropDownChoice used to select a particular PeriodBean object
 which
 uses a ChoiceRenderer to properly display only the Description string of
 the object. The issue is that once a selection is made and I submit the
 form
 (works properly), the DropDownChoice goes back to not having a selection
 displayed (because, I'm assuming, it doesn't know how to take the item in
 the property model and display it in the DropDownChoice). How do I make it
 continue to properly display the selected PeriodBean Description?

 Here's code (simplified version of mine):


 // This is what a PeriodBean looks like:
 public class PeriodBean implements Serializable {

  private String periodIndex;
  private String periodDescription;

  public String getPeriodIndex() {
  return periodIndex;
  }

  public void setPeriodIndex(String periodIndex) {
  this.periodIndex = periodIndex;
  }

  public String getPeriodDescription() {
  return periodDescription;
  }

  public void setPeriodDescription(String periodDescription) {
  this.periodDescription = periodDescription;
  }

 }


 // This is what my SearchCriteriaBean looks like (stores the selected
 value
 from the dropdown):
 public class SearchCriteriaBean implements Serializable {
 private PeriodBean selectedPeriod;

  public PeriodBean getSelectedPeriod() {
  return performancePeriod;
  }

  public void setSelectedPeriod(PeriodBean periodBean ) {
  this.selectedPeriod= periodBean;
  }

 }


 // This is a PeriodList item that creates the list of acceptable choices
 for
 my dropdown
 public class PeriodList extends
  AbstractReadOnlyModelListlt;? extends PeriodBean {

  public PeriodList() {
  super();
  }

  @Override
  public ListPeriodBean getObject() {
  ListPeriodBean pendings = new ArrayListPeriodBean();
 // Go to the database and do some stuff to get the
 proper list of
 selectable pending periods
 return pendingPeriods;
  }

  public IteratorPeriodBean iterator() {
  ListPeriodBean pendings = this.getObject();
  return pendings.iterator();
  }
  };




 // And this is JAVA in the Page itself:

 // Create a search criteria
 SearchCriteriaBean searchCriteria = new SearchCriteriaBean(); //Defined
 above

 // Create a list
 PeriodList periodChoices = new PeriodList(); //Defined above

 // Create my dropdown and choice renderer to display the period
 description
 ChoiceRendererPeriodBean choiceRenderer = new
 ChoiceRendererPeriodBean(
  periodDescription, periodIndex);
 DropDownChoicePeriodBean periodChoice = new DropDownChoicePeriodBean(
   periodChoice,
new PropertyModelPeriodBean(searchCriteria, selectedPeriod),
 periodChoices, choiceRenderer);
 periodChoice.setOutputMarkupId(true);
 periodChoice.setRequired(true);
 form.add(periodChoice); // There is a form on this page but I am not
 showing
 for simplicity.

 --
 View this message in context: http://apache-wicket.1842946.
 n4.nabble.com/Choice-Renderers-Display-Issue-After-Submit-tp4664225.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



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




Re: Choice Renderers Display Issue After Submit

2014-02-07 Thread Sven Meier

Sorry, I've missing that post.

AbstractSingleSelectChoice#getModelValue() still doesn't look right to me:

@Override
public String getModelValue()
{
final T object = getModelObject();
if (object != null)
{
int index = getChoices().indexOf(object); // --
return getChoiceRenderer().getIdValue(object, index);
}
else
{
return ;
}
}

It's not nice to have to implement #equals() just for this line.

Sven

On 02/07/2014 12:57 PM, Martin Grigorov wrote:

The user explains in his second mail that everything is fine once the
#equals() method is properly implemented.

Martin Grigorov
Wicket Training and Consulting


On Fri, Feb 7, 2014 at 12:50 PM, Sven Meier s...@meiers.net wrote:


I don't see a reason why this shouldn't work.

Please create a quickstart showing the problem.

Sven


On 02/06/2014 10:47 AM, MissOvenMitts wrote:


Hi guys!

I'm using a ChoiceRenderer for the first time, and am having a slight
problem with it. Any help would be *greatly* appreciated!

I have a DropDownChoice used to select a particular PeriodBean object
which
uses a ChoiceRenderer to properly display only the Description string of
the object. The issue is that once a selection is made and I submit the
form
(works properly), the DropDownChoice goes back to not having a selection
displayed (because, I'm assuming, it doesn't know how to take the item in
the property model and display it in the DropDownChoice). How do I make it
continue to properly display the selected PeriodBean Description?

Here's code (simplified version of mine):


// This is what a PeriodBean looks like:
public class PeriodBean implements Serializable {

  private String periodIndex;
  private String periodDescription;

  public String getPeriodIndex() {
  return periodIndex;
  }

  public void setPeriodIndex(String periodIndex) {
  this.periodIndex = periodIndex;
  }

  public String getPeriodDescription() {
  return periodDescription;
  }

  public void setPeriodDescription(String periodDescription) {
  this.periodDescription = periodDescription;
  }

}


// This is what my SearchCriteriaBean looks like (stores the selected
value
from the dropdown):
public class SearchCriteriaBean implements Serializable {
 private PeriodBean selectedPeriod;

  public PeriodBean getSelectedPeriod() {
  return performancePeriod;
  }

  public void setSelectedPeriod(PeriodBean periodBean ) {
  this.selectedPeriod= periodBean;
  }

}


// This is a PeriodList item that creates the list of acceptable choices
for
my dropdown
public class PeriodList extends
  AbstractReadOnlyModelListlt;? extends PeriodBean {

  public PeriodList() {
  super();
  }

  @Override
  public ListPeriodBean getObject() {
  ListPeriodBean pendings = new ArrayListPeriodBean();
 // Go to the database and do some stuff to get the
proper list of
selectable pending periods
 return pendingPeriods;
  }

  public IteratorPeriodBean iterator() {
  ListPeriodBean pendings = this.getObject();
  return pendings.iterator();
  }
  };




// And this is JAVA in the Page itself:

// Create a search criteria
SearchCriteriaBean searchCriteria = new SearchCriteriaBean(); //Defined
above

// Create a list
PeriodList periodChoices = new PeriodList(); //Defined above

// Create my dropdown and choice renderer to display the period
description
ChoiceRendererPeriodBean choiceRenderer = new
ChoiceRendererPeriodBean(
  periodDescription, periodIndex);
DropDownChoicePeriodBean periodChoice = new DropDownChoicePeriodBean(
   periodChoice,
new PropertyModelPeriodBean(searchCriteria, selectedPeriod),
periodChoices, choiceRenderer);
periodChoice.setOutputMarkupId(true);
periodChoice.setRequired(true);
form.add(periodChoice); // There is a form on this page but I am not
showing
for simplicity.

--
View this message in context: http://apache-wicket.1842946.
n4.nabble.com/Choice-Renderers-Display-Issue-After-Submit-tp4664225.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



-
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



Need to access message received on a page

2014-02-07 Thread ntomer
Hi,

I have created a page on my facebook account, and need to access messages
received on this page using restfb. I am able to retrieve the messages
received on my account, but I am not able to retrieve from the page. I am
able to retrieve the posts from the same facebook page. Here is the code
snippet -

While using the below code to get private messages from a facebook page, we
get following errors :
 
*Code  1 :
 
String strFbQuery = select name,total_count,unread_count from
mailbox_folder where viewer_id= + strPage_ID;  
ListJsonObject strFbQueryResult = facebookClient.executeQuery(strFbQuery,
JsonObject.class);*
 
throws exception :
 
Received Facebook error response (code 606): You can only fetch messages for
one user
 
com.restfb.exception.FacebookResponseStatusException: Received Facebook
error response (code 606): You can only fetch messages for one user
 at
com.restfb.BaseFacebookClient$DefaultLegacyFacebookExceptionMapper.exceptionForTypeAndMessage(BaseFacebookClient.java:143)
 at
com.restfb.BaseFacebookClient.throwLegacyFacebookResponseStatusExceptionIfNecessary(BaseFacebookClient.java:204)
 at
com.restfb.DefaultFacebookClient.throwFacebookResponseStatusExceptionIfNecessary(DefaultFacebookClient.java:595)
 at
com.restfb.DefaultFacebookClient.makeRequestAndProcessResponse(DefaultFacebookClient.java:559)
 at
com.restfb.DefaultFacebookClient.makeRequest(DefaultFacebookClient.java:522)
 at
com.restfb.DefaultFacebookClient.executeQuery(DefaultFacebookClient.java:352)
 at
com.newgen.omni.wf.fbpostcaptureutility.FBPostCaptureUtility.getNextWorkItem(FBPostCaptureUtility.java:159)
 at
com.newgen.omni.wf.util.app.ServiceFramework.executeBusinessLogic(ServiceFramework.java:105)
 at
com.newgen.omni.jts.timer.WFTimerServiceBean.ejbTimeout(WFTimerServiceBean.java:100)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at org.jboss.invocation.Invocation.performCall(Invocation.java:386)
 at
org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:233)
 at
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:156)
 at
org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
 at
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
 at
org.jboss.ejb.plugins.AbstractTxInterceptorBMT.invokeNext(AbstractTxInterceptorBMT.java:173)
 at org.jboss.ejb.plugins.TxInterceptorBMT.invoke(TxInterceptorBMT.java:77)
 at
org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:173)
 at
org.jboss.ejb.plugins.SecurityInterceptor.process(SecurityInterceptor.java:228)
 at
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:211)
 at
org.jboss.ejb.plugins.security.PreSecurityInterceptor.process(PreSecurityInterceptor.java:100)
 at
org.jboss.ejb.plugins.security.PreSecurityInterceptor.invoke(PreSecurityInterceptor.java:84)
 at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
 at
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:138)
 at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:650)
 at org.jboss.ejb.Container.invoke(Container.java:1072)
 at
org.jboss.ejb.txtimer.TimedObjectInvokerImpl.callTimeout(TimedObjectInvokerImpl.java:104)
 at org.jboss.ejb.txtimer.TimerImpl$TimerTaskImpl.run(TimerImpl.java:611)
 at java.util.TimerThread.mainLoop(Timer.java:512)
 at java.util.TimerThread.run(Timer.java:462)
 
* Code 2 :

ConnectionJsonObject conversationsConnection =
facebookClient.fetchConnection(strPage_ID + /inbox, JsonObject.class);*
 
throws exception : 
 
 Received Facebook error response of type GraphMethodException: You can only
access the inbox connection for the current user.
 
com.restfb.exception.FacebookGraphException: Received Facebook error
response of type GraphMethodException: You can only access the inbox
connection for the current user.
 at
com.restfb.DefaultFacebookClient$DefaultGraphFacebookExceptionMapper.exceptionForTypeAndMessage(DefaultFacebookClient.java:702)
 at
com.restfb.DefaultFacebookClient.throwFacebookResponseStatusExceptionIfNecessary(DefaultFacebookClient.java:617)
 at
com.restfb.DefaultFacebookClient.makeRequestAndProcessResponse(DefaultFacebookClient.java:559)
 at
com.restfb.DefaultFacebookClient.makeRequest(DefaultFacebookClient.java:522)
 at
com.restfb.DefaultFacebookClient.makeRequest(DefaultFacebookClient.java:486)
 at
com.restfb.DefaultFacebookClient.fetchConnection(DefaultFacebookClient.java:214)
 at
com.newgen.omni.wf.fbpostcaptureutility.FBPostCaptureUtility.getNextWorkItem(FBPostCaptureUtility.java:164)
 at

Best strategy for having login page without navigation

2014-02-07 Thread crestfallen
Hi,

ich have a basepage with all styles defined in it. This basepage also holds
the navigation of my application.
Now I want to add a login page. Problem is, I want to extend it from
basepage, but avoid to have a navigation there.
How to you deal with such requirement?

crestfallen

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Best-strategy-for-having-login-page-without-navigation-tp4664298.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: Need to access message received on a page

2014-02-07 Thread Martin Grigorov
Hi,

Wrong mailing list ?
I see nothing related to Wicket here.

Martin Grigorov
Wicket Training and Consulting


On Fri, Feb 7, 2014 at 9:43 AM, ntomer nto...@newgen.co.in wrote:

 Hi,

 I have created a page on my facebook account, and need to access messages
 received on this page using restfb. I am able to retrieve the messages
 received on my account, but I am not able to retrieve from the page. I am
 able to retrieve the posts from the same facebook page. Here is the code
 snippet -

 While using the below code to get private messages from a facebook page, we
 get following errors :

 *Code  1 :

 String strFbQuery = select name,total_count,unread_count from
 mailbox_folder where viewer_id= + strPage_ID;
 ListJsonObject strFbQueryResult = facebookClient.executeQuery(strFbQuery,
 JsonObject.class);*

 throws exception :

 Received Facebook error response (code 606): You can only fetch messages
 for
 one user

 com.restfb.exception.FacebookResponseStatusException: Received Facebook
 error response (code 606): You can only fetch messages for one user
  at

 com.restfb.BaseFacebookClient$DefaultLegacyFacebookExceptionMapper.exceptionForTypeAndMessage(BaseFacebookClient.java:143)
  at

 com.restfb.BaseFacebookClient.throwLegacyFacebookResponseStatusExceptionIfNecessary(BaseFacebookClient.java:204)
  at

 com.restfb.DefaultFacebookClient.throwFacebookResponseStatusExceptionIfNecessary(DefaultFacebookClient.java:595)
  at

 com.restfb.DefaultFacebookClient.makeRequestAndProcessResponse(DefaultFacebookClient.java:559)
  at

 com.restfb.DefaultFacebookClient.makeRequest(DefaultFacebookClient.java:522)
  at

 com.restfb.DefaultFacebookClient.executeQuery(DefaultFacebookClient.java:352)
  at

 com.newgen.omni.wf.fbpostcaptureutility.FBPostCaptureUtility.getNextWorkItem(FBPostCaptureUtility.java:159)
  at

 com.newgen.omni.wf.util.app.ServiceFramework.executeBusinessLogic(ServiceFramework.java:105)
  at

 com.newgen.omni.jts.timer.WFTimerServiceBean.ejbTimeout(WFTimerServiceBean.java:100)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at

 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  at

 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:597)
  at org.jboss.invocation.Invocation.performCall(Invocation.java:386)
  at

 org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:233)
  at

 org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:156)
  at

 org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
  at

 org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
  at

 org.jboss.ejb.plugins.AbstractTxInterceptorBMT.invokeNext(AbstractTxInterceptorBMT.java:173)
  at org.jboss.ejb.plugins.TxInterceptorBMT.invoke(TxInterceptorBMT.java:77)
  at

 org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:173)
  at

 org.jboss.ejb.plugins.SecurityInterceptor.process(SecurityInterceptor.java:228)
  at

 org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:211)
  at

 org.jboss.ejb.plugins.security.PreSecurityInterceptor.process(PreSecurityInterceptor.java:100)
  at

 org.jboss.ejb.plugins.security.PreSecurityInterceptor.invoke(PreSecurityInterceptor.java:84)
  at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
  at

 org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:138)
  at
 org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:650)
  at org.jboss.ejb.Container.invoke(Container.java:1072)
  at

 org.jboss.ejb.txtimer.TimedObjectInvokerImpl.callTimeout(TimedObjectInvokerImpl.java:104)
  at org.jboss.ejb.txtimer.TimerImpl$TimerTaskImpl.run(TimerImpl.java:611)
  at java.util.TimerThread.mainLoop(Timer.java:512)
  at java.util.TimerThread.run(Timer.java:462)

 * Code 2 :

 ConnectionJsonObject conversationsConnection =
 facebookClient.fetchConnection(strPage_ID + /inbox, JsonObject.class);*

 throws exception :

  Received Facebook error response of type GraphMethodException: You can
 only
 access the inbox connection for the current user.

 com.restfb.exception.FacebookGraphException: Received Facebook error
 response of type GraphMethodException: You can only access the inbox
 connection for the current user.
  at

 com.restfb.DefaultFacebookClient$DefaultGraphFacebookExceptionMapper.exceptionForTypeAndMessage(DefaultFacebookClient.java:702)
  at

 com.restfb.DefaultFacebookClient.throwFacebookResponseStatusExceptionIfNecessary(DefaultFacebookClient.java:617)
  at

 com.restfb.DefaultFacebookClient.makeRequestAndProcessResponse(DefaultFacebookClient.java:559)
  at

 com.restfb.DefaultFacebookClient.makeRequest(DefaultFacebookClient.java:522)
  at

 

Re: Best strategy for having login page without navigation

2014-02-07 Thread Martin Grigorov
Hi,

The simplest way is to make the navigation invisible:
navigation.setVisible(false)
Another way is to extract BasePageWithHeader that extends BasePage.

Martin Grigorov
Wicket Training and Consulting


On Fri, Feb 7, 2014 at 1:31 PM, crestfallen torsten.monkow...@gmail.comwrote:

 Hi,

 ich have a basepage with all styles defined in it. This basepage also holds
 the navigation of my application.
 Now I want to add a login page. Problem is, I want to extend it from
 basepage, but avoid to have a navigation there.
 How to you deal with such requirement?

 crestfallen

 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Best-strategy-for-having-login-page-without-navigation-tp4664298.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: Best strategy for having login page without navigation

2014-02-07 Thread Richter, Marvin
Or just create a BasePage which implements onRenderHead where you add your 
CSS/JS resources
Then, implement a NavigationPage which extends BasePage and has its Navigation 
and a SignInPage which extends BasePage.

Marvin Richter


-Original Message-
From: Martin Grigorov [mailto:mgrigo...@apache.org] 
Sent: Friday, February 07, 2014 2:12 PM
To: users@wicket.apache.org
Subject: Re: Best strategy for having login page without navigation

Hi,

The simplest way is to make the navigation invisible:
navigation.setVisible(false)
Another way is to extract BasePageWithHeader that extends BasePage.

Martin Grigorov
Wicket Training and Consulting


On Fri, Feb 7, 2014 at 1:31 PM, crestfallen torsten.monkow...@gmail.comwrote:

 Hi,

 ich have a basepage with all styles defined in it. This basepage also 
 holds the navigation of my application.
 Now I want to add a login page. Problem is, I want to extend it from 
 basepage, but avoid to have a navigation there.
 How to you deal with such requirement?

 crestfallen

 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Best-strategy-for-having-lo
 gin-page-without-navigation-tp4664298.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



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



Wicket Wizzard Question / Custom Overview Bars

2014-02-07 Thread Patrick Davids
Hi all,
did someone already noticed, a custom overriden overview-bar of wickets 
wizzard is displayed in a td left of the Step contents ?

I thought it would be on the top...

Or did I misunderstood the meaning of the overview bar?
Is it meant as kind of menu?!

kind regards
Patrick

What is the default size of max per session in wicket

2014-02-07 Thread Sharad Raut
What is the default size of max per session in wicket 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/What-is-the-default-size-of-max-per-session-in-wicket-tp4664307.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: What is the default size of max per session in wicket

2014-02-07 Thread francois meillet
Have a look to setMaxSizePerSession() in the IStoreSettings interface
application.getStoreSettings().setMaxSizePerSession(Bytes.megabytes(30));

François


On Fri, Feb 7, 2014 at 3:06 PM, Sharad Raut raut.sha...@gmail.com wrote:

 What is the default size of max per session in wicket

 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/What-is-the-default-size-of-max-per-session-in-wicket-tp4664307.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: The AjaxSubmitLink does not respond after migrating to wicket 6

2014-02-07 Thread Heshani
I fixed the registerPreCallHandler is not a function error. But im still
facing the issue where the  AjaxSubmitLink gets rendered with,
href=javascript:;

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/The-AjaxSubmitLink-does-not-respond-after-migrating-to-wicket-6-tp4664294p4664311.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: The AjaxSubmitLink does not respond after migrating to wicket 6

2014-02-07 Thread Timo Schmidt
On Fri 07.02.2014 08:05, Heshani wrote:

 I fixed the registerPreCallHandler is not a function
 error. But im still facing the issue where the AjaxSubmitLink
 gets rendered with, href=javascript:;

That's OK. Since Wicket 6 this is done by event listeners.

  -Timo

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



Re: tinymce textarea in a modal window not letting to type

2014-02-07 Thread jchappelle
The original issue is pretty old but tinymce in a modal window worked in 1.5
and it is not working in 6.13.0. I guess I'm going to have to redesign my
pages to not use the tinymce in a modal window.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/tinymce-textarea-in-a-modal-window-not-letting-to-type-tp1886534p4664309.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: tinymce textarea in a modal window not letting to type

2014-02-07 Thread Girts Ziemelis
I had similar problem and at the end it was easier to switch to 
ckeditor, which work fine in a modal window (so far tested only in 
development). There is no integration package for wicket AFAIK, but 
simple custom  integration for a specific use case is  simple.


On 02/07/2014 05:45 PM, jchappelle wrote:

The original issue is pretty old but tinymce in a modal window worked in 1.5
and it is not working in 6.13.0. I guess I'm going to have to redesign my
pages to not use the tinymce in a modal window.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/tinymce-textarea-in-a-modal-window-not-letting-to-type-tp1886534p4664309.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




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



Re: Best strategy for having login page without navigation

2014-02-07 Thread crestfallen
I did an overwrite for isVisible() on Navbar component.
Works for me. Thank you very much for the hint.

crestfallen

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Best-strategy-for-having-login-page-without-navigation-tp4664298p4664310.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: tinymce textarea in a modal window not letting to type

2014-02-07 Thread Gabriel Landon
I remember having the same problem on a project I've done last year.

Here's the code I'm using (I think that it's the TinyMceAjaxSubmitModifier
that is important) :

final TextAreaString textArea = new
TextAreaString(property, getModel());
textArea.add(new TinyMceBehavior(getTinyMCESettings()));
add(textArea);

// submit
add(new IndicatingAjaxButton(submit) {
/** serialVersionUID. */
private static final long serialVersionUID = 1L;

@Override
protected void onSubmit(final AjaxRequestTarget varTarget,
final Form? varForm) {
  modale.close(varTarget);
}

@Override
protected void onError(final AjaxRequestTarget varTarget,
final Form? varForm) {
varTarget.add(varForm);
}
}.add(new TinyMceAjaxSubmitModifier()));

Regards,
Gabriel.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/tinymce-textarea-in-a-modal-window-not-letting-to-type-tp1886534p4664314.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