Re: TinyMCE in ModalWindow

2010-11-02 Thread
i know that TinyMCE can only work in page , can this help you.

2010/10/19 Brad Grier brad.gr...@salusnovus.com

 I've implemented TinyMCE in my app and all is well with one exception. I
 can't get it to work in a ModalWindow (TinyMCE works the first time but
 subsequently opens in an blank, uneditable state). Someone suggested using
 the TinyMCE javascript functions mceRemoveControl and mceAddControl to
 work around this issue. If that's the answer, I can't get it to work (likely
 because I'm missing something).

 Has anyone found a workaround to this problem?


about linkTree

2010-07-26 Thread
hi,i have a problem ,  is there any way for changing the icon of the
linkTree, is there any complete sample, thank you .


Re: about treeLink

2010-07-09 Thread
thank you.

2010/7/9 Jeremy Thomerson jer...@wickettraining.com

 http://www.wicket-library.com/wicket-examples/nested/

 On Thu, Jul 8, 2010 at 9:09 PM, 蔡茂昌 caimaochang.c...@gmail.com wrote:

  is there any complete sample or demo of the  treeLink
 
  thank you.
 
  -
 



 --
 Jeremy Thomerson
 http://www.wickettraining.com



about treeLink

2010-07-08 Thread
is there any complete sample or demo of the  treeLink

thank you.

-


modalWindow can't be closed

2010-06-17 Thread
hi, i have a problem , i have a modalWindow, there is a button in the
modalWindow,when i click the button ,i want the modalWindow be closed ,but
now it can not be be closed , below is my code ,
AjaxButton saveBtn = new AjaxButton(save) {
   @Override
   protected void onSubmit(AjaxRequestTarget target, Form? form) {

ListPeople list3 =
peopleService.fetchBySearchCondition(searchCondition);
ListPeopleForExport resultList = doTransLate(list3);
File file = peopleService.exportExcelFile(resultList,formModel);
IResourceStream is = new FileResourceStream(file);
try {
 if (((WebRequest) getRequest()).getHttpServletRequest()
   .getHeader(User-Agent).toLowerCase().indexOf(
 firefox)  0) {
  getRequestCycle()
.setRequestTarget(
  new ResourceStreamRequestTarget(is)
.setFileName(new String(file
  .getName().getBytes(
UTF-8),
  ISO8859_1)));
 } else {
  getRequestCycle().setRequestTarget(
new ResourceStreamRequestTarget(is)
  .setFileName(URLEncoder.encode(
file.getName(), UTF-8)
.replace(+, %20)));
 }
} catch (UnsupportedEncodingException e) {
 e.printStackTrace();
}
getRequestCycle().setRequestTarget(null);
modalWindow.close(target);
   }
   @Override
   protected void onError(AjaxRequestTarget target, Form? form) {
target.addComponent(feedbackPanel);
   }
  };
  form.add(saveBtn);

thanks

--jans


modalWindow can not be closed

2010-06-17 Thread
there is some error in the last email i send, here is real code

AjaxButton saveBtn = new AjaxButton(save) {
   @Override
   protected void onSubmit(AjaxRequestTarget target, Form? form) {

ListPeople list3 =
peopleService.fetchBySearchCondition(searchCondition);
ListPeopleForExport resultList = doTransLate(list3);
File file = peopleService.exportExcelFile(resultList,formModel);
IResourceStream is = new FileResourceStream(file);
try {
 if (((WebRequest) getRequest()).getHttpServletRequest()
   .getHeader(User-Agent).toLowerCase().indexOf(
 firefox)  0) {
  getRequestCycle()
.setRequestTarget(
  new ResourceStreamRequestTarget(is)
.setFileName(new String(file
  .getName().getBytes(
UTF-8),
  ISO8859_1)));
 } else {
  getRequestCycle().setRequestTarget(
new ResourceStreamRequestTarget(is)
  .setFileName(URLEncoder.encode(
file.getName(), UTF-8)
.replace(+, %20)));
 }
} catch (UnsupportedEncodingException e) {
 e.printStackTrace();
}
modalWindow.close(target);
   }
   @Override
   protected void onError(AjaxRequestTarget target, Form? form) {
target.addComponent(feedbackPanel);
   }
  };
  form.add(saveBtn);

thanks

--jans


Re: modalWindow can not be closed

2010-06-17 Thread
i have set a breakpoint on modalWindow.close(target)  ,, it reached ,but
modalWindow still could not be closed ,is there any other
suggestion?

2010/6/18 aaron.w...@oocl.com

 Hi,

 Not sure if there is any kind of exception thrown within your code, if any
 other than UnsupportedEncodingException, the  modalWindow.close(target) is
 not reachable.
 You can try to place it into the final block.

 Best Regards,
 Aaron Wang
 OLL DCS - OCHL/ZHA
 *(86-756)3396170 *aaron.w...@oocl.com


 -Original Message-
 From: 蔡茂昌 [mailto:caimaochang.c...@gmail.com]
 Sent: Thursday, June 17, 2010 3:24 PM
 To: users@wicket.apache.org
 Subject: modalWindow can not be closed

 there is some error in the last email i send, here is real code

 AjaxButton saveBtn = new AjaxButton(save) {
   @Override
   protected void onSubmit(AjaxRequestTarget target, Form? form) {

ListPeople list3 =
 peopleService.fetchBySearchCondition(searchCondition);
ListPeopleForExport resultList = doTransLate(list3);
File file = peopleService.exportExcelFile(resultList,formModel);
IResourceStream is = new FileResourceStream(file);
try {
 if (((WebRequest) getRequest()).getHttpServletRequest()
   .getHeader(User-Agent).toLowerCase().indexOf(
 firefox)  0) {
  getRequestCycle()
.setRequestTarget(
  new ResourceStreamRequestTarget(is)
.setFileName(new String(file
  .getName().getBytes(
UTF-8),
  ISO8859_1)));
 } else {
  getRequestCycle().setRequestTarget(
new ResourceStreamRequestTarget(is)
  .setFileName(URLEncoder.encode(
file.getName(), UTF-8)
.replace(+, %20)));
 }
} catch (UnsupportedEncodingException e) {
 e.printStackTrace();
}
modalWindow.close(target);
   }
   @Override
   protected void onError(AjaxRequestTarget target, Form? form) {
target.addComponent(feedbackPanel);
   }
  };
  form.add(saveBtn);

 thanks

 --jans

 IMPORTANT NOTICE
 Email from OOCL is confidential and may be legally privileged.  If it is
 not
 intended for you, please delete it immediately unread.  The internet
 cannot guarantee that this communication is free of viruses, interception
 or interference and anyone who communicates with us by email is taken
 to accept the risks in doing so.  Without limitation, OOCL and its
 affiliates
 accept no liability whatsoever and howsoever arising in connection with
 the use of this email.  Under no circumstances shall this email constitute
 a binding agreement to carry or for provision of carriage services by OOCL,
 which is subject to the availability of carrier's equipment and vessels and
 the terms and conditions of OOCL's standard bill of lading which is also
 available at http://www.oocl.com.

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