[Wicket-user] Is there anything like session settings

2006-09-24 Thread [EMAIL PROTECTED] Imam
Hi,I have bumped into a problem where i need to be able to configurethe settings we configure in the Application settings depending on the session.I know that modifying via getApplication().getSettings()... will cause the change to reflect at 
all the other sessions also. I want to change for only particular sessions not all.eg setAutoMultiWIndowSupport, etc. esp the PageSettings.Anyone knows what I can do ?Thanx in advance.Shams

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Xml and its Table View

2006-09-02 Thread [EMAIL PROTECTED] Imam
Inspired by the excel and table view,here's the xml and table view example.You need to include the dom4j-1.6.jarand change the web.xml in wicket-examplesservlet  servlet-nameXmlApplication/servlet-name
  servlet-classwicket.protocol.http.WicketServlet/servlet-class  init-param   param-nameapplicationClassName/param-name   param-value
wicket.examples.xml.XmlTableViewApplication/param-value  /init-param  load-on-startup1/load-on-startup /servlet servlet-mapping

  servlet-nameXmlApplication/servlet-name  url-pattern/xml/*/url-pattern /servlet-mappingHope you guyz enjoy using it.
Shams


src-xml.rar
Description: application/force-download
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Protecting Bookmarkable Pages

2006-08-30 Thread [EMAIL PROTECTED] Imam
Why dont you forward all these requests to a dummy page where you can take your decision making rather than depending on the authorization strategy solely.Inside the page you can handle requests such that the user is forwarded to a 
sign in page and after successful sign in he is taken to the original page he wanted to see.I had a similar problem I solved using a sign in form inside whose on-submiti did the validation and forwarded to the requested page
-- Shams
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Javascript for some validators

2006-08-29 Thread [EMAIL PROTECTED] Imam
Hi,I was wondering if wicket will provide _javascript_ support for some of the simple validations we use.For example required validators and length validators.I think performing some of these validations in the client side will be better than 
performing them at the server side.Shams
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Can we configure the Exception page using web.xml

2006-08-06 Thread [EMAIL PROTECTED] Imam
Hi,I just wanted to know whether anyone knows how we can configure the exception page to be shown using web.xmlI know that we can do it using WebApplication settings, but can it be done in the web.xml
 ??Thanx in advance.Shams
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Can we configure the Exception page using web.xml

2006-08-06 Thread [EMAIL PROTECTED] Imam
Ya i knew i could do that.I was just wondering if wicket does it automatically for me or not ?Thanx.Shams
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Example of using VelocityPanel

2006-07-29 Thread [EMAIL PROTECTED] Imam
Hi,I'm new to using velocity.I searched through the wicket-stuff site but didnt manage to find any example using VelocityPanel.Could someone please help me by providing an example of how to use this 
VelocityPanel component through wicket.ThanxShams
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Page Expired Error on pages containing Link and PagingNavigator

2006-07-12 Thread [EMAIL PROTECTED] Imam
Hi,i seem to get the page expired error when a user tries to go to a previous page using the 
browsers back button.This error mainly occurs in pages using 'Link's Pages containing BookMarkablePageLinks dont seem to create trouble.The error also occurs in pages using PagingNavigators.
Especially when i have moved away from the first link of the navigator and then
tries to go back.Anybody can help me resolve this issue ?Shams

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] SSL

2006-07-11 Thread [EMAIL PROTECTED] Imam
The code had a small little fix:There is an extra condition in the if condition: else if( pageClass != null  httpServletRequest.isSecure
()  !isSecurityRequired ) {Using the ONE_PASS method rendering strategy everything works fine now. 
Did you have to do the same?Yes had to use the One pass rendering strategy else there was an error saying
something about double calls. I dont remeber the actual error now.Shams 

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] SSL

2006-07-10 Thread [EMAIL PROTECTED] Imam
Hi,I had a similar problemI decided not to use that RequiredSSL method.Instead i maintain an array of page classes that require https and used the following code. It worked fine for me. Hope it helps you.
protected IResponseStrategy newResponseStrategy() {  return new IResponseStrategy() {   @SuppressWarnings(unchecked)   public void respond( RequestCycle requestCycle )
   {IRequestTarget requestTarget = requestCycle.getRequestTarget();if( requestTarget != null ) { Application.get().logResponseTarget( requestTarget );
 WebRequest webRequest = (WebRequest) requestCycle.getRequest(); WebResponse webResponse = (WebResponse) requestCycle   .getResponse();
 HttpServletRequest httpServletRequest = webRequest   .getHttpServletRequest(); Class pageClass = null; if( requestTarget instanceof IPageRequestTarget ) {
   IPageRequestTarget pageTarget = (IPageRequestTarget) requestTarget;  pageClass = pageTarget.getPage().getClass(); }
 else if( requestTarget instanceof IBookmarkablePageRequestTarget ) {  IBookmarkablePageRequestTarget bookmarkableTarget = (IBookmarkablePageRequestTarget) requestTarget;
  pageClass = bookmarkableTarget.getPageClass(); } boolean isSecurityRequired = false; if( pageClass != null ) {  for( int i = 0; i  
secureClasses.length !isSecurityRequired; i++ ) {   isSecurityRequired = secureClasses[i] .isAssignableFrom( pageClass );
  } }  if( pageClass != null  !httpServletRequest.isSecure()isSecurityRequired ) {
  StringBuffer url = "" StringBuffer( https://+ httpServletRequest.getServerName() );  url.append( : + getSslPortNumber() );
  String q = RequestCycle.get().urlFor( requestTarget ).toString();  url.append( q );  webResponse.redirect
( url.toString() ); } else if( httpServletRequest.isSecure()  !isSecurityRequired ) {  StringBuffer url = "" StringBuffer( http://
+ httpServletRequest.getServerName() );  url.append( : + getNormalPortNumber() );  String q = RequestCycle.get().urlFor( requestTarget )
.toString();  url.append( q );  webResponse.redirect( url.toString() ); } else {  
requestTarget.respond( requestCycle ); }   }  }; }Shams.On 7/10/06, 
Johan Compagner [EMAIL PROTECTED] wrote:
then you are doing the redirect wrong.How and when do you do the redirect??On 7/7/06, 
Joe Toth [EMAIL PROTECTED]
 wrote:Weird...I'm only getting the error in Jetty 6 (Beta17). 

wicket.WicketRuntimeException: Internal Error: Could not render error page class wicket.markup.html.pages.InternalErrorPage at wicket.request.compound.DefaultExceptionResponseStrategy.respond
(DefaultExceptionResponseStrategy.java:109) at wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond(AbstractCompoundRequestCycleProcessor.java:76) at wicket.RequestCycle.step(RequestCycle.java


:1000) at wicket.RequestCycle.steps(RequestCycle.java:1034) at wicket.RequestCycle.request(RequestCycle.java:453) at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:215) at javax.servlet.http.HttpServlet.service


(HttpServlet.java:747) at javax.servlet.http.HttpServlet.service(HttpServlet.java:860) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:423) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter


(ServletHandler.java:966) at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:174) at org.springframework.web.filter.OncePerRequestFilter.doFilter


(OncePerRequestFilter.java:77) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:957) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:353) at 
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:226) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:567) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java


:126) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:119) at org.mortbay.jetty.Server.handle(Server.java:248) at org.mortbay.jetty.HttpConnection.handlerRequest(HttpConnection.java


:360) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:614) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:487) at org.mortbay.jetty.HttpParser.parseAvailable


(HttpParser.java:197) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:288) at org.mortbay.jetty.nio.SelectChannelConnector$HttpChannelEndPoint.run(SelectChannelConnector.java:805) at org.mortbay.thread.BoundedThreadPool$PoolThread.run


(BoundedThreadPool.java:475)Caused by: wicket.WicketRuntimeException: Already redirecting to 'https://localhost:8443/app
'. Cannot redirect more than once at wicket.protocol.http.BufferedWebResponse.redirect
(BufferedWebResponse.java:92) at 

[Wicket-user] Any method of using PagingNavigation ....

2006-07-08 Thread [EMAIL PROTECTED] Imam
Hello users,I wanted to know if wicket has support for using a component similar to PagingNavigation to tell it to selectively bring the items it will view in a Page depending on the page link clicked.My actual problem is the list (generated froma database) i will feed to the ListView component may be very big, in the order of thousand elements.
I was wondering if there is such a component in wicket where i will feed the total number of items i want to displayand the number of items per page i will display to the Navigation component.Then depending on which page link of the Navigation is clicked i'll fetch the elements in the list.
I hope i have made my problem clear.Currently i have a solution which is by implementing my own list interface to return the size().And implement my own sublist method.But I am not sure how the ListView component retrieves the data from the list and call the populateItem().
I am not sure whether it uses the sublist method or the get() method to retrieve elements from the list.Shams.
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Any method of using PagingNavigation ....

2006-07-08 Thread [EMAIL PROTECTED] Imam
Thanx for the replyThe IDataProvider seems interesting.My problem was that i was using PagingListView that didnt use IDataProvider.Now I'll have to use DataView i guess.Currently I am implementing this feature using PageList view
along with the List implementation method i mentioned earlierOn 7/8/06, Igor Vaynberg [EMAIL PROTECTED]
 wrote:there is also DataTable if you want to show tabular data, both dataview and datatable use IDataProvider which looks like this
IDataProvider { int size(); iterator iterator(int first, int count); } == looks familiar? :)
-IgorOn 7/8/06, Matej Knopp 
[EMAIL PROTECTED] wrote:
Look at DataView from wicket-extensions.-Matej[EMAIL PROTECTED] Imam wrote: Hello users,
 I wanted to know if wicket has support for using a component similar to
 PagingNavigation to tell it to selectively bring the items it will view in a Page depending on the page link clicked. My actual problem is the list (generated froma database) i will feed to
 the ListView component may be very big, in the order of thousand elements. I was wondering if there is such a component in wicket where i will feed the total number of items i want to display
 and the number of items per page i will display to the Navigation component. Then depending on which page link of the Navigation is clicked i'll fetch the elements in the list. I hope i have made my problem clear.
 Currently i have a solution which is by implementing my own list interface to return the size(). And implement my own sublist method. But I am not sure how the ListView component retrieves the data from the
 list and call the populateItem(). I am not sure whether it uses the sublist method or the get() method to retrieve elements from the list. Shams.

  Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo 
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
  ___ Wicket-user mailing list 

Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo

http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list

Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user


Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1
 based on Apache Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user