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: Fileupload causes internet explorer 11 to hang

2014-07-15 Thread ashindler
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



Re: Fileupload causes internet explorer 11 to hang

2014-07-15 Thread ashindler
Hi Sven,

I am using 6.16.0.

Which X-UA-Compatible meta tag do you believe I should be using?

I tried with:



and



in the header but I still experienced the hanging.

Like I mentioned in chrome I experience no problems at all so I don't
believe it is a problem with my java code.

Regards,

Alex

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



Fileupload causes internet explorer 11 to hang

2014-07-15 Thread ashindler
Hi,

I have the following code - with google chrome I experience no problems but
in internet explorer 11 the page hangs and gets stuck. I am using the latest
version of wicket. 

Any ideas?

Code summary:

Form uploadForm = new Form("uploadForm");   
uploadForm.setMultiPart(true);
uploadForm.setMaxSize(Bytes.kilobytes(100));
uploadForm.add(fileUpload = new FileUploadField("fileUpload"));

uploadForm.add(new AjaxButton("upload", uploadForm){

@Override
public void onSubmit(AjaxRequestTarget target, Form 
uploadForm) {


final FileUpload uploadedFile = 
fileUpload.getFileUpload();
if (uploadedFile != null) {
 
// write to a new file
File newFile = new File(UPLOAD_FOLDER
+ 
uploadedFile.getClientFileName());
 
if (newFile.exists()) {
newFile.delete();
}
 
try {
newFile.createNewFile();
uploadedFile.writeTo(newFile);
 
} 
catch (Exception e) {throw new 
IllegalStateException("Error");}
}


//Upload file to folder in my application
String dataFileName = ((WebApplication)
Application.get()).getServletContext().getRealPath("/")+"WEB-INF\\classes\\ums\\app\\TransitMemshak\\memshak.txt";

//Check if there is a file for upload
File myFile = new File(dataFileName);
if(!myFile.exists()){   
informationDialog.setMessage("There is 
no file to upload!");
informationDialog.show(target);
}

BufferedReader bReader;
try {

bReader = new BufferedReader(new 
FileReader(dataFileName));

String line;
while ((line = bReader.readLine()) != 
null) {

//upload file code and logic
etc here
}

bReader.close();

//Delete file
if(myFile.exists())
myFile.delete();

} 

catch (FileNotFoundException e) 
{e.printStackTrace();}
catch (IOException e) {e.printStackTrace();}
catch (ClassNotFoundException e) 
{e.printStackTrace();}
catch (SQLException e) {e.printStackTrace();}

}
@Override
protected void onError(AjaxRequestTarget target, Form 
uploadForm) {

errorDialog.setErrors(CommonTasks.errorDisplay(target, uploadForm));
errorDialog.show(target);
}

});

add(uploadForm);

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



Lots of Images slowing rendering in DataView?

2014-05-16 Thread ashindler
Hi,

I have a page with a fairly large DataView table ~2000 rows of information.
In each row I have 5 small icons (images) - a total of around 92kb each row.
The icons are also links.

There is some significant delay in rendering the page and I believe it must
be to do with the icons. 

If the icons are the cause - could anyone suggest a smarter way perhaps to
add the images to the page?
I currently simply do the following:

final DataView dataView = new DataView("rows", new
ListDataProvider(displayList)){
@Override
public void populateItem(final Item item) {

final Invoice i = (Invoice) 
item.getModelObject();

if(i.getStatus().equals("CANCELLED") || 
i.getStatus().equals("STORNO")){
item.add(new AttributeModifier("class", 
"red"));
}
else{
if(odd){
   item.add(new 
AttributeModifier("class",
"odd"));
   odd = false;
}
else{
  item.add(new 
AttributeModifier("class",
"even"));
  odd = true;
}
}



AjaxFallbackLink lnk = new
AjaxFallbackLink("email"){
@Override
public void onClick(AjaxRequestTarget 
target){
 setSelectedInvoice(i);
 emailScreen.show(target);
}
};
lnk.add(new Image("emailIcon", new
Model("images/email.png")));
item.add(lnk);




  }
};
dataView.setOutputMarkupId(true);
wmc.add(dataView);
wmc.setOutputMarkupId(true);

Thanks,

Alex

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Lots-of-Images-slowing-rendering-in-DataView-tp4665733.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: Lots of Images slowing rendering in DataView?

2014-05-15 Thread ashindler
Thanks a lot Serban for taking the time to help me out - I'll give your
suggestions a go!

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Lots-of-Images-slowing-rendering-in-DataView-tp4665733p4665741.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: Check inside enclosure not submitted when visible(false)

2013-09-16 Thread ashindler
Thanks for the reply.

Can you suggest a workaround for it?

If I set the arraylist that the checkgroup manages (when the enclosure is
invisible) when the AjaxCheckBox is selected, this is obviously refreshed
and cleared when the form is submitted because as you say the checks are not
in the markup... 



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Check-inside-enclosure-not-submitted-when-visible-false-tp4661334p4661338.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



Check inside enclosure not submitted when visible(false)

2013-09-16 Thread ashindler
Hi,

I have a screen (DataView1) that displays rows of information. Each row
(DataView2)  can be expanded (DataView3) using wicket:enclosure using a
AjaxCheckBox. This nested DataView3 contains rows with "Check"s. This nested
DataView3 (wicket:enclosure) I can hide and show. When the AjaxCheckBox is
selected it selects/deselects all the Checks in DataView3.
When I submit the form when the DataView3 (enclosure) is visible the checked
Checks are submitted correctly but when the enclosure is not visible the
Checks are not submitted. 

Can anyone offer suggestions why this happens and how to overcome it? 

DataView1{
  DataView2{

  AjaxCheckBox{ When selected the arraylist managed by the
checkgroup is updated with thecontents in the enclosure}

  DataView3 (enclosure){

   Check  
   

 }
  }
}



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Check-inside-enclosure-not-submitted-when-visible-false-tp4661334.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



InvalidBehaviorIdException when closing modal windows

2012-07-17 Thread ashindler
Hi,

Can someone help me figure out what would be the cause why I am suddenly
getting the following error when I close one of my modal windows?

Cannot find behavior with id '0' on component
'org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow:srScreen'
in page '[Page class = ums.app.NewSalesReport, id = 2, render count = 3]'.
Perhaps the behavior did not properly implement getStatelessHint() and
returned 'true' to indicate that it is stateless instead of returning
'false' to indicate that it is stateful.

I have a class NewSalesReport where I add the modal window:

srScreen = new ModalWindow("srScreen");
srScreen.setTitle("Sales Report Preview");
srScreen.setInitialHeight(500);
srScreen.setInitialWidth(800);
srScreen.setResizable(false);
srScreen.setCssClassName(ModalWindow.CSS_CLASS_BLUE);
srScreen.setPageCreator(new ModalWindow.PageCreator(){

  private static final long serialVersionUID = 1L;

  public Page createPage(){
 try {
srPreviewWindow = new SRPreviewWindow(srScreen,
shipmentID,   grower.getDefaultModelObjectAsString());
}
catch (ClassNotFoundException e) {e.printStackTrace();}
catch (SQLException e) {e.printStackTrace();}

return srPreviewWindow;
 } });
srScreen.setWindowClosedCallback(new ModalWindow.WindowClosedCallback() 
{
public void onClose(AjaxRequestTarget target) {
try {

scp.setContainers(DbQueries.getGrowerUnreportedContainers(dataBase,
grower.getDefaultModelObjectAsString()));
target.add(scp);
}
catch (ClassNotFoundException e) 
{e.printStackTrace();}
catch (SQLException e) 
{e.printStackTrace();}
}
});
srScreen.setOutputMarkupId(true);
add(srScreen);

And the window itself SRPreviewWindow:

public SRPreviewWindow(final ModalWindow window, final int shipmentID, final
String grower) throws ClassNotFoundException, SQLException{

...

add(new AjaxLink("cancel"){
 public void onClick(AjaxRequestTarget target) {
window.close(target);
 }
});

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/InvalidBehaviorIdException-when-closing-modal-windows-tp4650560.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: Nested Modal Window Problem - IE8 - 404 Error

2012-01-22 Thread ashindler
Thanks for you reply - I cleared the cache and I still get the same error.

Any other suggestions?

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Nested-Modal-Window-Problem-IE8-404-Error-tp4311638p4318507.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



Nested Modal Window Problem - IE8 - 404 Error

2012-01-19 Thread ashindler
Since I upgraded from wicket version 1.4 to wicket version 1.5.3 I get a Http
status 404 error in IE8 when I open a modal window within a modal window -
this is not a problem I had with the 1.4 versions of wicket.

I tried using the 1.5.4 version that is about to be released and I still
have this problem.

Can someone tell me if this is a known bug or if there is a way to solve the
problem - it is really frustrating me?

Thanks.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Nested-Modal-Window-Problem-IE8-404-Error-tp4311638p4311638.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: Modal Window respond 404 with Internet Explorer.

2011-12-26 Thread ashindler
Hi,

I am having the same issue. I went to ticket 4241 and saw that there was a
fix - do I just replace my wicket-extensions-1.5.3.jar file with the
wicket-extensions-mybuild.jar file that I download from the patch zip? I do
this but the problem still remains - modal windows that were working fine in
internet explorer with version 1.4 give me the 404 error when I open them
with 1.5.3

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Modal-Window-respond-404-with-Internet-Explorer-tp4082620p4235276.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