CSS for subpanel tabs

2012-12-26 Thread appwicket
Hi,
I'm using panels contains tabbed panels and each tab contains few
sub-tabbedpanels.
I load my css in my page and it works fine for the tabs and the sub tabs in
first tab.
However the CSS doesn't work for other subtabs in other tabs.
(I got CSS from   Wicket - jQuery UI
  )
 
anyone can tell me how can i make it work for subtabs?
Thanks!



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/CSS-for-subpanel-tabs-tp4655061.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



AjaxPagingNavigator stateless issues in tabs

2012-12-19 Thread appwicket
hi all,

I have a page contains tabs. each tab contains a panel.
In each panel I have AjaxPagingNavigator for a PageableListView
I got following error when I click on navigator:

Root cause:

org.apache.wicket.behavior.InvalidBehaviorIdException: Cannot find behavior
with id '1' on component
'org.apache.wicket.ajax.markup.html.navigation.paging.AjaxPagingNavigationLink:myPanel:tabs:panels:2:lazy:dataTable:navigatorTop:navigation:1:pageLink'
in page '[Page class = com.myCompany.webApp.myPage, id = 18, render count =
1]'. 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.
at org.apache.wicket.Behaviors.getBehaviorById(Behaviors.java:303)
at org.apache.wicket.Component.getBehaviorById(Component.java:4479)
at
org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.invokeListener(ListenerInterfaceRequestHandler.java:246)
at
org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:226)
at
org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:814)
at
org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
at
org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:253)
at
org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:210)
at
org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:281)
at
org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:188)
at
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:245)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:662)



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/AjaxPagingNavigator-stateless-issues-in-tabs-tp4654953.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



AjaxTab#getLazyPanel not loading data

2012-12-19 Thread appwicket
Hi all, 
I am using AjaxTab instead of AbstractTab.
The following is my code:
tabs.add(new AjaxTab(new Model(myString)) {
 private static final long serialVersionUID = 1L;
 @Override
 public WebMarkupContainer getLazyPanel(String panelId)
 {
 try
 {
 Thread.sleep(500);
 }
 catch (InterruptedException e)
 {
 error(e.getMessage());
 }
return new MyPanel(panelId,pageParameters,myString);
 }
 });
when I load the tab, the program is not reading any data from database and I
only able to see the spinner.
What do I miss?
Thanks



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/AjaxTab-getLazyPanel-not-loading-data-tp4654947.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



url problem of resourceLink popup page

2012-12-12 Thread appwicket
Hi 
I am using resourceLink for a grammatically generated pdf resource:
PopupSettings popupSettings = new PopupSettings("resourcePage",
PopupSettings.RESIZABLE
| 
PopupSettings.SCROLLBARS).setHeight(500).setWidth(700);
ResourceLink resourceLink = (ResourceLink) new
ResourceLink("resourceLink",getMyResource());
resourceLink.setPopupSettings(popupSettings);
myForm.add(resourceLink);

when the popup window opens the name is "Page(application/pdf object)"
instead of "resourcePage", 
and the link is
http://localhost:8080/myCompany/previewPDf?3-IResourceListener-myForm-resourceLink

The resource is generated when user comes to this page by using page
parameters sent from previous page.

I notice there are few ways to mount url in application.java but how can I
mount this dynamic resource?
another question, sometimes when I open the popup from resourceLink, the
contents (pdf) are not updating. is there any cache in resourceLink?

Thanks






--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/url-problem-of-resourceLink-popup-page-tp4654750.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



table header not rendered correctly

2012-12-07 Thread appwicket
Hi all,
I have a List of String for my table:
final List title2 =
Arrays.asList("1","2","3","4","5","6","7","8","9","10","11","12","13","14");
WebMarkupContainer datacontainer = new WebMarkupContainer("data");
datacontainer.add(new ListView("title2", title2 ) {
private static final long serialVersionUID = 1L;
@Override
protected void populateItem(ListItem item) {
item.add(new Label("tl", 
String.valueOf(item.getModelObject(;
system.out.println("item object =
"+String.valueOf(item.getModelObject()));
}
});

in my html:









 


problem is, when populate item, i got output:
item object = 1
item object = 2
item object = 3
item object = 4
item object = 5
item object = 
item object = 6
item object = 7
item object = 8
item object = 
item object = 9
item object = 10
item object =11
item object = 
item object = 12
item object = 13
item object = 14
title2.size() is 14 but why it has more objects when populating items?
please help! thanks!



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/table-header-not-rendered-correctly-tp4654596.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: How to display PDF in wicket 6.0?

2012-12-04 Thread appwicket
Hi,
thanks for reply.
I want to open it in a new window.




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-display-PDF-in-wicket-6-0-tp4654471p4654476.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



How to display PDF in wicket 6.0?

2012-12-04 Thread appwicket
Hi all,
I have been trying all the ways to display PDF through wicket.
I have my pdf resource in Byte[].
I tried the following methods in my AjaxButton's onSubmit method:
1. this gives me exception:
Header was already written to response!
Wicket.Ajax.Call.failure: Error while parsing response: Error: Invalid XML:
%PDF-1.4

WebResponse r = (WebResponse)getRequestCycle().getResponse();
r.setContentType("application/pdf");
r.setHeader("Content-Disposition", "inline; filename=\"data.pdf\"");
r.write(reportService.generatePDF());
getRequestCycle().setResponsePage(DownloadPopup.class);
-
2.this gives me exception:
Wicket.Ajax.Call.failure: Error while parsing response: Error: Invalid XML:
%PDF-1.4

ByteArrayResource bar = new ByteArrayResource("application/pdf",
reportService.generatePDF());
RequestCycle.get().scheduleRequestHandlerAfterCurrent(new
ResourceRequestHandler(bar, null));
-
3. I also tried example from AJAX update and file download in one blow
https://cwiki.apache.org/WICKET/ajax-update-and-file-download-in-one-blow.html

  
but Im not able to convert Byte array to IResourceStream.

Anyone knows how to do this?

appreciated!





--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-display-PDF-in-wicket-6-0-tp4654471.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