Re: Lightbox2 Integration

2014-07-17 Thread Martin Grigorov
Hi,

Do you want to contribute back ?
Please create a Pull Request at with the updates/fixes at
https://github.com/wicketstuff/core
Thanks!

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov


On Thu, Jul 17, 2014 at 12:14 AM, Jered Myers jer...@maplewoodsoftware.com
wrote:

 The WicketStuff version of the JavaScript file was out of date. After I
 fixed the JavaScript both the thumbnail and full image displayed.  The
 close image icon still wasn't showing, so I just rolled my own version from
 http://lokeshdhakar.com/projects/lightbox2/.  I think all that needs to
 be done to fix WicketStuff is to copy down the resource files and to add
 the data-lightbox attribute to onComponentTag in LightboxLink.

 Jered


 On 07/14/2014 10:37 AM, Jered Myers wrote:

 I am having trouble getting the wicketstuff Lightbox2 plugin integration
 working.  I am using the basic example with image resources at the bottom
 of https://github.com/wicketstuff/core/wiki/Lightbox2-Plugin-Integration.
 The thumbnail displays just fine, but when I click on the thumbnail only
 the mask for the page shows up and the image is missing.  Does anybody have
 this plugin working?  The examples don't seem to work for me either
 (6.15.0).  I tried adding data-lightbox attribute per the (
 http://lokeshdhakar.com/projects/lightbox2/) website, but it didn't seem
 to help. Here is my code where res is an instance of a class that holds the
 ResourceReferences:

 add(new LightboxLink(imageLink, res.getFullImage()) {
 private static final long serialVersionUID = 1L;

 @Override
 protected void onComponentTag(ComponentTag tag)
 {
 super.onComponentTag(tag);
 tag.put(data-lightbox, getMarkupId());
 }
 }.add(new Image(imageFile, res.getThumbnail(;



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




Re: inmethod grid - Ajaxically update child grid from Master grid

2014-07-17 Thread Martin Grigorov
Hi,



On Wed, Jul 16, 2014 at 11:12 PM, Mihir Chhaya mihir.chh...@gmail.com
wrote:

 Hello,

 I am using inMethod data grid with Wicket 1.5.

 I have a page to show master grid (MasterPanel). MasterPanel has child grid
 (ChildPanel) to display child records. ChildPanel accepts MasterBean as one
 of the arguments of the Constructor to retrieve child records using Master
 PK id.

 Now, on selection of row in Master grid, I want to ajaxically refresh child
 panel.
 I don't want to use Modal Window.

 Following is code snippet:

 public class MasterPanel extends Panel{

 public MasterPanel(String id, IModelSomeBean) {
  MasterBean masterBean = get Master Bean from service method;
  //form
 FormMasterBean form = new FormMasterBean (form, new
 CompoundPropertyModelMasterBean(masterBean));
 form.setOutputMarkupId(true);
  //Child Panel added into MasterPanel
 ChildPanel childPanel = new ChildPanel(child, form.getModel());


Here you a new reference to the form's model.
One way to solve the issue is to use a wrapped/delegating model:
new IModelMasterBean() {
  public MasterBean getObject() { return form.getModel().getObject();}
  public void setObject(MasterBean mb) { return
form.getModel().setObject(mb);}
  public void detach() { return form.getModel().detach();}
}


 childPanel.setOutputMarkupId(true);

 form.add(childPanel);
  DataGridGridListMasterBean, MasterBean grid = masterGrid(grid,
 childPanel);
 grid.setOutputMarkupId(true);
 form.add(grid);
 }

 private DataGridGridListMasterBean, MasterBean masterGrid(String
 property, final ChildPanel childPanel) {
 
 
 
 //OnRowClicked in Databgrid
 @Override
 protected void onRowClicked(AjaxRequestTarget target, IModelMasterBean
 rowModel) {
 getForm().setDefaultModel(rowModel);


Another way to solve it is to do: childPanel.setModel(rowModel);


 target.add(childPanel);
 }
 }
 }


 Above code is not refreshing the child as the ChildPanel is already created
 at the time of adding into MasterPanel. I want ChildPanel to be re-rendered
 using selected MasterBean from Master grid.

 Any help/suggestions?

 Thanks,
 -Mihir.



Re: Not able to get Wicket Session even though WicketSessionFilter has been added

2014-07-17 Thread rsi610
Any suggestions on the above issue ?


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Not-able-to-get-Wicket-Session-even-though-WicketSessionFilter-has-been-added-tp4666469p434.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



Use a href onclick to open a new wicket page

2014-07-17 Thread rsi610
I have a link having text Like 

 Do this Do that . Click here to open pdf 

Out of this i need 'Click here to be a href , on click of which opens a new
wicket page .


Can someone help me with this ? 


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Use-a-href-onclick-to-open-a-new-wicket-page-tp435.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: Not able to get Wicket Session even though WicketSessionFilter has been added

2014-07-17 Thread Martin Grigorov
I'd suggest you to upgrade to something we support (1.5.11+).
1.3.5 is very old. There is 1.3.7 but I cannot guarantee that it will solve
the issue.

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov


On Thu, Jul 17, 2014 at 10:59 AM, rsi610 rahul.i...@lntinfotech.com wrote:

 Any suggestions on the above issue ?


 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Not-able-to-get-Wicket-Session-even-though-WicketSessionFilter-has-been-added-tp4666469p434.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: Use a href onclick to open a new wicket page

2014-07-17 Thread Martin Grigorov
spanDo this Do that . Click a wicket:id=theLinkhere/a to open
pdf/span

in Java:
ResourceLink theLink = new ResourceLink(theLink, new
ByteArrayResource(pdfAsBytes));

This is Wicket 1.5+.
You will have to find out how ResourceLink works in 1.3.5.

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov


On Thu, Jul 17, 2014 at 11:01 AM, rsi610 rahul.i...@lntinfotech.com wrote:

 I have a link having text Like

  Do this Do that . Click here to open pdf 

 Out of this i need 'Click here to be a href , on click of which opens a
 new
 wicket page .


 Can someone help me with this ?


 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Use-a-href-onclick-to-open-a-new-wicket-page-tp435.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




Issues unless in compatibility view

2014-07-17 Thread ashindler
Hi,

There are certain parts of my application that will not work unless I set
internet explorer to compatibility view and I am not sure why.

Can someone give me a suggestion what to look for?

For example:
1) Feedbackpanel will claim a textfield is empty even though it is not.
2) I have a checkgroup with a groupselector and checks - when submitting the
form, even though the checks are marked the form does not process them.

If I am in compatibility view I don't experience these problems. 

Any ideas?

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Issues-unless-in-compatibility-view-tp442.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: Not able to get Wicket Session even though WicketSessionFilter has been added

2014-07-17 Thread Peter Henderson
On 17 July 2014 09:24, Martin Grigorov mgrigo...@apache.org wrote:

 I'd suggest you to upgrade to something we support (1.5.11+).
 1.3.5 is very old. There is 1.3.7 but I cannot guarantee that it will solve
 the issue.

 Martin Grigorov
 Wicket Training and Consulting
 https://twitter.com/mtgrigorov


 On Thu, Jul 17, 2014 at 10:59 AM, rsi610 rahul.i...@lntinfotech.com
 wrote:

  Any suggestions on the above issue ?
 
 
  --
  View this message in context:
 
 http://apache-wicket.1842946.n4.nabble.com/Not-able-to-get-Wicket-Session-even-though-WicketSessionFilter-has-been-added-tp4666469p434.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
 
 



​I was curious about when 1.3.5 was released. A little big of git magic.
(thanks to
http://stackoverflow.com/questions/6269927/how-can-i-list-all-tags-in-my-git-repository-by-the-date-they-were-created
)


refs/tags/wicket-1.3.5 Wed Oct 15 21:16:22 2008 +

Very old indeed.
​



-- 
Peter Henderson


Re: Issues unless in compatibility view

2014-07-17 Thread Sven Meier

Hi,

check your HTML for well-formedness:

http://validator.w3.org/

Sven

On 07/17/2014 02:26 PM, ashindler wrote:

Hi,

There are certain parts of my application that will not work unless I set
internet explorer to compatibility view and I am not sure why.

Can someone give me a suggestion what to look for?

For example:
1) Feedbackpanel will claim a textfield is empty even though it is not.
2) I have a checkgroup with a groupselector and checks - when submitting the
form, even though the checks are marked the form does not process them.

If I am in compatibility view I don't experience these problems.

Any ideas?

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Issues-unless-in-compatibility-view-tp442.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: removing table when the output list is empty in listview/dataview

2014-07-17 Thread Martin Grigorov
new DataView(...) {

 @Override public void onConfigure() { super.onConfigure();
setVisible(getDataProvider().size()  0); }
}

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov


On Wed, Jul 16, 2014 at 4:43 PM, K kondetiudayki...@gmail.com wrote:

 Hi
 I am displaying list values using listview/dataview but the problem is that
 i dont know how to eliminate the heading part when my list is empty

 My Mark Up is
 body






 p
 *Job*
 /p










 p
 Job1
 /p


 p
 Job1
 /p


 p
 Job2
 /p


 p
  Job2
 /p


 p
 Job3
 /p


 p
 Job3
 /p


 p
 Job4
 /p


 p
 Job4
 /p





 p
 Job5
 /p


 p
 Job5
 /p


 p
 Job6
 /p


 p
 Job6
 /p


 p
 Job7
 /p


 p
 Job7
 /p


 p
 Job8
 /p


 p
 Job8
 /p





 p
 Job9
 /p


 p
 Job9
 /p


 p
 Job10
 /p


 p
 Job10
 /p


 p
 Job11
 /p


 p
 Job11
 /p


 p
 Job12
 /p


 p
 Job12
 /p





 p
 Job13
 /p


 p
 Job13
 /p


 p
 Job14
 /p


 p
 Job14
 /p


 p
 Job15
 /p


 p
 Job15
 /p


 p
 Job16
  

Re: Lightbox2 Integration

2014-07-17 Thread Jered Myers
I added the pull request for lightbox2.  lightbox2-examples didn't need 
to be updated.


Jered

On 07/17/2014 12:27 AM, Martin Grigorov wrote:

Hi,

Do you want to contribute back ?
Please create a Pull Request at with the updates/fixes at
https://github.com/wicketstuff/core
Thanks!

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov


On Thu, Jul 17, 2014 at 12:14 AM, Jered Myers jer...@maplewoodsoftware.com
wrote:


The WicketStuff version of the JavaScript file was out of date. After I
fixed the JavaScript both the thumbnail and full image displayed.  The
close image icon still wasn't showing, so I just rolled my own version from
http://lokeshdhakar.com/projects/lightbox2/.  I think all that needs to
be done to fix WicketStuff is to copy down the resource files and to add
the data-lightbox attribute to onComponentTag in LightboxLink.

Jered


On 07/14/2014 10:37 AM, Jered Myers wrote:


I am having trouble getting the wicketstuff Lightbox2 plugin integration
working.  I am using the basic example with image resources at the bottom
of https://github.com/wicketstuff/core/wiki/Lightbox2-Plugin-Integration.
The thumbnail displays just fine, but when I click on the thumbnail only
the mask for the page shows up and the image is missing.  Does anybody have
this plugin working?  The examples don't seem to work for me either
(6.15.0).  I tried adding data-lightbox attribute per the (
http://lokeshdhakar.com/projects/lightbox2/) website, but it didn't seem
to help. Here is my code where res is an instance of a class that holds the
ResourceReferences:

add(new LightboxLink(imageLink, res.getFullImage()) {
 private static final long serialVersionUID = 1L;

 @Override
 protected void onComponentTag(ComponentTag tag)
 {
 super.onComponentTag(tag);
 tag.put(data-lightbox, getMarkupId());
 }
}.add(new Image(imageFile, res.getThumbnail(;



-
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



updated Wicket logo

2014-07-17 Thread Christian Wörz
I'm actually building a website and I'd like to use the Wicket logo in it. I've 
asked The Apache Support and they said that it is perfectly fine, as long as I 
follow the guidelines. But they said that I have to ask you guys how to get  
access to updated Apache Wicket logos for my website?

Thanks for any help
Chris

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