Re: Fileupload causes internet explorer 11 to hang

2014-07-16 Thread Sven Meier

Hi,

I've experienced strange problems with later IE versions, when they are 
forced to run under previous (i.e. non-edge) compatibility - up to the 
point that Ajax wasn't working at all :/.


A X-UA-Compatible response header is always safer to use than a meta 
tag, since the latter can/will be overwritten by IE depending on its 
settings and the position in the markup.


now it works fine

Great!

Sven

On 07/16/2014 07:56 AM, ashindler wrote:

Hi Sven,

I added this to my code and now it works fine:

@Override
protected void setHeaders(WebResponse response)
{
response.setHeader(X-UA-Compatible, IE=edge);
}

Thanks for pointing me in the right direction!

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Fileupload-causes-internet-explorer-11-to-hang-tp419p422.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



Show html help page from dropdown

2014-07-16 Thread Peter Diefenthaeler
Hi,
I would like to show an external html page with help information depending 
on a choice of an DropDownChoice.
With ExternalLinks I managed to do this, but I'm missing an example like 
opening a modal window.
Regards, Peter


PETER DIEFENTHÄLER
Technology Architect
CSC

Barthstr. 4, 80339 München, Germany
Payments Solutions | p: +49.89.5908.6441 | f: +49.89.5908.6499 | m: +49 
172 8865632 | pdief...@csc.com | www.csc.com/de 


CSC • This is a PRIVATE message. If you are not the intended recipient, 
please delete without copying and kindly advise us by e-mail of the 
mistake in delivery.  NOTE: Regardless of content, this e-mail shall not 
operate to bind CSC to any order or other contract unless pursuant to 
explicit written agreement or government initiative expressly permitting 
the use of e-mail for such purpose • CSC Deutschland Solutions GmbH • 
Registered Office: Abraham-Lincoln-Park 1, 65189 Wiesbaden, Germany • 
Board of Directors: Claus Schünemann • Chairman of the Supervisory Board: 
William L. Deckelman, Jr. • Registered in Germany: HRB 22374



Re: Show html help page from dropdown

2014-07-16 Thread Ernesto Reinaldo Barreiro
Add an onchange Ajax behaviour and trigger opening of modal?
On 16 Jul 2014 14:17, Peter Diefenthaeler pdief...@csc.com wrote:

 Hi,
 I would like to show an external html page with help information depending
 on a choice of an DropDownChoice.
 With ExternalLinks I managed to do this, but I'm missing an example like
 opening a modal window.
 Regards, Peter


 PETER DIEFENTHÄLER
 Technology Architect
 CSC

 Barthstr. 4, 80339 München, Germany
 Payments Solutions | p: +49.89.5908.6441 | f: +49.89.5908.6499 | m: +49
 172 8865632 | pdief...@csc.com | www.csc.com/de


 CSC • This is a PRIVATE message. If you are not the intended recipient,
 please delete without copying and kindly advise us by e-mail of the
 mistake in delivery.  NOTE: Regardless of content, this e-mail shall not
 operate to bind CSC to any order or other contract unless pursuant to
 explicit written agreement or government initiative expressly permitting
 the use of e-mail for such purpose • CSC Deutschland Solutions GmbH •
 Registered Office: Abraham-Lincoln-Park 1, 65189 Wiesbaden, Germany •
 Board of Directors: Claus Schünemann • Chairman of the Supervisory Board:
 William L. Deckelman, Jr. • Registered in Germany: HRB 22374




Re: Show html help page from dropdown

2014-07-16 Thread PDiefent
I only want to open a html page in a new browser window or tab, no modal
popup. 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Show-html-help-page-from-dropdown-tp424p426.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: Show html help page from dropdown

2014-07-16 Thread Sven Meier

choice.add(new AjaxEventBehavior(click) {

protected void onEvent(final AjaxRequestTarget target) {
PopupSettings popup = new PopupSettings(_blank);
popup.setTarget('http://wicket.apache.org'); // note the 
single quotes!

target.appendJavaScript(popup.getPopupJavaScript());
}
});

Regards
Sven

On 07/16/2014 02:44 PM, PDiefent wrote:

I only want to open a html page in a new browser window or tab, no modal
popup.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Show-html-help-page-from-dropdown-tp424p426.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: Show html help page from dropdown

2014-07-16 Thread PDiefent
Perfect, that's what I searched for.
Thanks

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Show-html-help-page-from-dropdown-tp424p428.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



removing table when the output list is empty in listview/dataview

2014-07-16 Thread K
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
   

inmethod grid - Ajaxically update child grid from Master grid

2014-07-16 Thread Mihir Chhaya
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());
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);
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: Lightbox2 Integration

2014-07-16 Thread Jered Myers
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