custom (non wicket) modal dialog. Problem with urls.

2011-08-08 Thread brazz
Hello everyone, 

in our project i have to use our own modal dialog (application is included
in a portal). I have to open the dialog with the help of a javascript
function which is wrapped in a Behaviour. What i am doing now:

- in the constructor of my response page i call the javascript function via
a behaviour, so that immediately after the responsepage is rendered, the
javascript function gets called and the modal dialog opens.
- the javascript funtion accepts a url of the page that will be included in
the dialog.

In order to get the url i'm doing the this:

URL for Page in Modal Dialog:
ServletWebRequest servletWebRequest = (ServletWebRequest) comp
.getRequest();
HttpServletRequest request = 
servletWebRequest.getHttpServletRequest();
String path = Strings.stripJSessionId(request.getRequestURI());
CharSequence urlFor = comp.urlFor(targetPageClass, params);
String contextRelativePath = path + urlFor;


Behaviour for opening the Modal Dialog:

public class OpenModalDialogBehaviour extends AbstractDefaultAjaxBehavior {

private static final long serialVersionUID = -127624955452459934L;

private String url;

public OpenModalDialogBehaviour(String url) {
this.url = url;
}

@Override
protected void onComponentTag(ComponentTag tag) {
super.onComponentTag(tag);
ASPSession session = (ASPSession) ASPSession.get();
String js = {if( + session.isShowModalDialog() + 
){top.showForm('
+ url +  + ');}};
tag.append(onload, js ,  );
session.setShowModalDialog(false);
}

@Override
protected void respond(AjaxRequestTarget target) {
System.out.println(respond);
}
}

Now, my problem is, that the response page is the page in the background
(deactivated by the modal-dialog-javascript- function), not the page of the
modal dialog. Therefore the links in the page of my modal dialog are dead
(the onclick functions never get called). 

What i need is some trick to calculate and set the urls for my modal dialog
page manually, but i have no clue how to do this. Or maybe there is a much
simpler solution?

Thanks for any suggestions!

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/custom-non-wicket-modal-dialog-Problem-with-urls-tp3726196p3726196.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



quickstart with 1.5 build

2011-08-08 Thread Kaz C
I'm trying to get going with quickstart on a 1.5 build off of trunk. After
svn co, and mvn install, I used the form on
http://wicket.apache.org/start/quickstart.html to generate the command line:

mvn archetype:generate -DarchetypeGroupId=org.apache.wicket
-DarchetypeArtifactId=wicket-archetype-quickstart
-DarchetypeVersion=1.5-SNAPSHOT -DgroupId=com.mycompany
-DartifactId=myproject15 -DarchetypeRepository=
https://repository.apache.org/content/repositories/snapshots/-DinteractiveMode=false

which executed successfully. I then ran mvn jetty:run within 'myproject'
directory and it also seemed to start up jetty fine. However, when I try to
access http://localhost:8080/myproject15
I get *HTTP ERROR 404 *Problem accessing /myproject15. Reason:* *Not Found

have I missed a step in the setup, or is there anything else I can look into
to find possible cause of this issue?

Regards,
Kaz C.


$ mvn -version
Apache Maven 2.2.1 (r801777; 2009-08-06 12:16:01-0700)
Java version: 1.6.0_21
Java home: C:\Program Files\Java\jdk1.6.0_21\jre
Default locale: en_US, platform encoding: Cp1252
OS name: windows xp version: 5.1 arch: x86 Family: windows


C:\open-source\myproject15mvn jetty:run
[INFO] Scanning for projects...
[INFO]

[INFO] Building quickstart
[INFO]task-segment: [jetty:run]
[INFO]

[INFO] Preparing jetty:run
[INFO] [resources:resources {execution: default-resources}]
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered
resources, i.e. build is platform dependent!
[INFO] Copying 1 resource
[INFO] Copying 1 resource
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources {execution: default-testResources}]
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered
resources, i.e. build is platform dependent!
[INFO] Copying 0 resource
[INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [jetty:run {execution: default-cli}]
[INFO] Configuring Jetty for project: quickstart
[INFO] webAppSourceDirectory
C:\open-source\open-source-commits\myproject15\src\main\webapp does not
exist. Defaulting to C:\open-source\open-source-c
ommits\myproject15\src\main\webapp
[INFO] Reload Mechanic: automatic
[INFO] Classes =
C:\open-source\open-source-commits\myproject15\target\classes
[INFO] Context path = /
[INFO] Tmp directory =
C:\open-source\open-source-commits\myproject15\target\tmp
[INFO] Web defaults = org/eclipse/jetty/webapp/webdefault.xml
[INFO] Web overrides =  none
[INFO] web.xml file =
file:/C:/open-source/open-source-commits/myproject15/src/main/webapp/WEB-INF/web.xml
[INFO] Webapp directory =
C:\open-source\open-source-commits\myproject15\src\main\webapp
[INFO] Starting jetty 7.3.0.v20110203 ...
2011-08-07 23:21:06.564:INFO::jetty-7.3.0.v20110203
2011-08-07 23:21:07.908:INFO::No Transaction manager found - if your webapp
requires one, please configure one.
2011-08-07 23:21:08.408:INFO::started
o.m.j.p.JettyWebAppContext{/,file:/C:/open-source/myproject15/src/main/webapp/},file:/C:/ope
n-source/myproject15/src/main/webapp/
INFO  - WebXmlFile - web.xml: url mapping found for filter
with name wicket.myproject15: [/*]
INFO  - Application- [wicket.myproject15] init: Wicket core
library initializer
INFO  - RequestListenerInterface   - registered listener interface
[RequestListenerInterface name=IBehaviorListener, method=public abstract
void org.a
pache.wicket.behavior.IBehaviorListener.onRequest()]
INFO  - RequestListenerInterface   - registered listener interface
[RequestListenerInterface name=IBehaviorListener, method=public abstract
void org.a
pache.wicket.behavior.IBehaviorListener.onRequest()]
INFO  - RequestListenerInterface   - registered listener interface
[RequestListenerInterface name=IFormSubmitListener, method=public abstract
void org
.apache.wicket.markup.html.form.IFormSubmitListener.onFormSubmitted()]
INFO  - RequestListenerInterface   - registered listener interface
[RequestListenerInterface name=IFormSubmitListener, method=public abstract
void org
.apache.wicket.markup.html.form.IFormSubmitListener.onFormSubmitted()]
INFO  - RequestListenerInterface   - registered listener interface
[RequestListenerInterface name=ILinkListener, method=public abstract void
org.apach
e.wicket.markup.html.link.ILinkListener.onLinkClicked()]
INFO  - RequestListenerInterface   - registered listener interface
[RequestListenerInterface name=ILinkListener, method=public abstract void
org.apach
e.wicket.markup.html.link.ILinkListener.onLinkClicked()]
INFO  - RequestListenerInterface   - registered listener interface
[RequestListenerInterface name=IOnChangeListener, method=public abstract
void org.a
pache.wicket.markup.html.form.IOnChangeListener.onSelectionChanged()]
INFO  - 

Re: quickstart with 1.5 build

2011-08-08 Thread Martin Grigorov
try just http://localhost:8080

On Mon, Aug 8, 2011 at 9:38 AM, Kaz C kaz@gmail.com wrote:
 I'm trying to get going with quickstart on a 1.5 build off of trunk. After
 svn co, and mvn install, I used the form on
 http://wicket.apache.org/start/quickstart.html to generate the command line:

 mvn archetype:generate -DarchetypeGroupId=org.apache.wicket
 -DarchetypeArtifactId=wicket-archetype-quickstart
 -DarchetypeVersion=1.5-SNAPSHOT -DgroupId=com.mycompany
 -DartifactId=myproject15 -DarchetypeRepository=
 https://repository.apache.org/content/repositories/snapshots/-DinteractiveMode=false

 which executed successfully. I then ran mvn jetty:run within 'myproject'
 directory and it also seemed to start up jetty fine. However, when I try to
 access http://localhost:8080/myproject15
 I get *HTTP ERROR 404 *Problem accessing /myproject15. Reason:* *Not Found

 have I missed a step in the setup, or is there anything else I can look into
 to find possible cause of this issue?

 Regards,
 Kaz C.


 $ mvn -version
 Apache Maven 2.2.1 (r801777; 2009-08-06 12:16:01-0700)
 Java version: 1.6.0_21
 Java home: C:\Program Files\Java\jdk1.6.0_21\jre
 Default locale: en_US, platform encoding: Cp1252
 OS name: windows xp version: 5.1 arch: x86 Family: windows


 C:\open-source\myproject15mvn jetty:run
 [INFO] Scanning for projects...
 [INFO]
 
 [INFO] Building quickstart
 [INFO]    task-segment: [jetty:run]
 [INFO]
 
 [INFO] Preparing jetty:run
 [INFO] [resources:resources {execution: default-resources}]
 [WARNING] Using platform encoding (Cp1252 actually) to copy filtered
 resources, i.e. build is platform dependent!
 [INFO] Copying 1 resource
 [INFO] Copying 1 resource
 [INFO] [compiler:compile {execution: default-compile}]
 [INFO] Nothing to compile - all classes are up to date
 [INFO] [resources:testResources {execution: default-testResources}]
 [WARNING] Using platform encoding (Cp1252 actually) to copy filtered
 resources, i.e. build is platform dependent!
 [INFO] Copying 0 resource
 [INFO] [compiler:testCompile {execution: default-testCompile}]
 [INFO] Nothing to compile - all classes are up to date
 [INFO] [jetty:run {execution: default-cli}]
 [INFO] Configuring Jetty for project: quickstart
 [INFO] webAppSourceDirectory
 C:\open-source\open-source-commits\myproject15\src\main\webapp does not
 exist. Defaulting to C:\open-source\open-source-c
 ommits\myproject15\src\main\webapp
 [INFO] Reload Mechanic: automatic
 [INFO] Classes =
 C:\open-source\open-source-commits\myproject15\target\classes
 [INFO] Context path = /
 [INFO] Tmp directory =
 C:\open-source\open-source-commits\myproject15\target\tmp
 [INFO] Web defaults = org/eclipse/jetty/webapp/webdefault.xml
 [INFO] Web overrides =  none
 [INFO] web.xml file =
 file:/C:/open-source/open-source-commits/myproject15/src/main/webapp/WEB-INF/web.xml
 [INFO] Webapp directory =
 C:\open-source\open-source-commits\myproject15\src\main\webapp
 [INFO] Starting jetty 7.3.0.v20110203 ...
 2011-08-07 23:21:06.564:INFO::jetty-7.3.0.v20110203
 2011-08-07 23:21:07.908:INFO::No Transaction manager found - if your webapp
 requires one, please configure one.
 2011-08-07 23:21:08.408:INFO::started
 o.m.j.p.JettyWebAppContext{/,file:/C:/open-source/myproject15/src/main/webapp/},file:/C:/ope
 n-source/myproject15/src/main/webapp/
 INFO  - WebXmlFile                 - web.xml: url mapping found for filter
 with name wicket.myproject15: [/*]
 INFO  - Application                - [wicket.myproject15] init: Wicket core
 library initializer
 INFO  - RequestListenerInterface   - registered listener interface
 [RequestListenerInterface name=IBehaviorListener, method=public abstract
 void org.a
 pache.wicket.behavior.IBehaviorListener.onRequest()]
 INFO  - RequestListenerInterface   - registered listener interface
 [RequestListenerInterface name=IBehaviorListener, method=public abstract
 void org.a
 pache.wicket.behavior.IBehaviorListener.onRequest()]
 INFO  - RequestListenerInterface   - registered listener interface
 [RequestListenerInterface name=IFormSubmitListener, method=public abstract
 void org
 .apache.wicket.markup.html.form.IFormSubmitListener.onFormSubmitted()]
 INFO  - RequestListenerInterface   - registered listener interface
 [RequestListenerInterface name=IFormSubmitListener, method=public abstract
 void org
 .apache.wicket.markup.html.form.IFormSubmitListener.onFormSubmitted()]
 INFO  - RequestListenerInterface   - registered listener interface
 [RequestListenerInterface name=ILinkListener, method=public abstract void
 org.apach
 e.wicket.markup.html.link.ILinkListener.onLinkClicked()]
 INFO  - RequestListenerInterface   - registered listener interface
 [RequestListenerInterface name=ILinkListener, method=public abstract void
 org.apach
 e.wicket.markup.html.link.ILinkListener.onLinkClicked()]
 INFO  - RequestListenerInterface   - 

RE: Form in a form for ModalWindows

2011-08-08 Thread Chris Colman
I fixed it with this:
 
form wicket:id=wrapperForm_0 
div wicket:id=modalWindow_0/div
/form
 
and so got DateTimeFieldS working correctly in IE when using ModalX
 
Only problem is that it adds extra height to the caption area.
 


From: Chris Colman [mailto:chr...@stepaheadsoftware.com] 
Sent: Monday, 8 August 2011 2:32 PM
To: users@wicket.apache.org
Subject: Form in a form for ModalWindows
 
Having problems trying to get DateTimeField working inside a ModalWindow
in IE* (same code works fine on all other browsers). I believe it is
because, for some reason, every ModalWindow containing a form must be
enclosed within an outer form. I've tried:
 
form 
div wicket:id=modalWindow_0/div 
/form
 
But it makes no difference. The problem still occurs.
 
Is it sufficient to just 'wrap' the ModalWindow in a form or do I need
to do some extra bits to make it happy?
 
Yours sincerely,
 
Chris Colman
 
Pagebloom Team Leader,
Step Ahead Software


pagebloom - your business  your website growing together
 
Sydney:   (+61 2) 9656 1278 Canberra: (+61 2) 6100 2120 
Email: chr...@stepahead.com.au mailto://chr...@stepahead.com.au 
Website:
http://www.pagebloom.com blocked::http://www.pagebloom.com/ 
http://develop.stepaheadsoftware.com
blocked::http://develop.stepaheadsoftware.com/ 
 
 


Re: quickstart with 1.5 build

2011-08-08 Thread Kaz C
aha, thanks. worked.

On Mon, Aug 8, 2011 at 12:29 AM, Martin Grigorov mgrigo...@apache.orgwrote:

 try just http://localhost:8080

 On Mon, Aug 8, 2011 at 9:38 AM, Kaz C kaz@gmail.com wrote:
  I'm trying to get going with quickstart on a 1.5 build off of trunk.
 After
  svn co, and mvn install, I used the form on
  http://wicket.apache.org/start/quickstart.html to generate the command
 line:
 
  mvn archetype:generate -DarchetypeGroupId=org.apache.wicket
  -DarchetypeArtifactId=wicket-archetype-quickstart
  -DarchetypeVersion=1.5-SNAPSHOT -DgroupId=com.mycompany
  -DartifactId=myproject15 -DarchetypeRepository=
 
 https://repository.apache.org/content/repositories/snapshots/-DinteractiveMode=false
 
  which executed successfully. I then ran mvn jetty:run within 'myproject'
  directory and it also seemed to start up jetty fine. However, when I try
 to
  access http://localhost:8080/myproject15
  I get *HTTP ERROR 404 *Problem accessing /myproject15. Reason:* *Not
 Found
 
  have I missed a step in the setup, or is there anything else I can look
 into
  to find possible cause of this issue?
 
  Regards,
  Kaz C.
 
 
  $ mvn -version
  Apache Maven 2.2.1 (r801777; 2009-08-06 12:16:01-0700)
  Java version: 1.6.0_21
  Java home: C:\Program Files\Java\jdk1.6.0_21\jre
  Default locale: en_US, platform encoding: Cp1252
  OS name: windows xp version: 5.1 arch: x86 Family: windows
 
 
  C:\open-source\myproject15mvn jetty:run
  [INFO] Scanning for projects...
  [INFO]
  
  [INFO] Building quickstart
  [INFO]task-segment: [jetty:run]
  [INFO]
  
  [INFO] Preparing jetty:run
  [INFO] [resources:resources {execution: default-resources}]
  [WARNING] Using platform encoding (Cp1252 actually) to copy filtered
  resources, i.e. build is platform dependent!
  [INFO] Copying 1 resource
  [INFO] Copying 1 resource
  [INFO] [compiler:compile {execution: default-compile}]
  [INFO] Nothing to compile - all classes are up to date
  [INFO] [resources:testResources {execution: default-testResources}]
  [WARNING] Using platform encoding (Cp1252 actually) to copy filtered
  resources, i.e. build is platform dependent!
  [INFO] Copying 0 resource
  [INFO] [compiler:testCompile {execution: default-testCompile}]
  [INFO] Nothing to compile - all classes are up to date
  [INFO] [jetty:run {execution: default-cli}]
  [INFO] Configuring Jetty for project: quickstart
  [INFO] webAppSourceDirectory
  C:\open-source\open-source-commits\myproject15\src\main\webapp does not
  exist. Defaulting to C:\open-source\open-source-c
  ommits\myproject15\src\main\webapp
  [INFO] Reload Mechanic: automatic
  [INFO] Classes =
  C:\open-source\open-source-commits\myproject15\target\classes
  [INFO] Context path = /
  [INFO] Tmp directory =
  C:\open-source\open-source-commits\myproject15\target\tmp
  [INFO] Web defaults = org/eclipse/jetty/webapp/webdefault.xml
  [INFO] Web overrides =  none
  [INFO] web.xml file =
 
 file:/C:/open-source/open-source-commits/myproject15/src/main/webapp/WEB-INF/web.xml
  [INFO] Webapp directory =
  C:\open-source\open-source-commits\myproject15\src\main\webapp
  [INFO] Starting jetty 7.3.0.v20110203 ...
  2011-08-07 23:21:06.564:INFO::jetty-7.3.0.v20110203
  2011-08-07 23:21:07.908:INFO::No Transaction manager found - if your
 webapp
  requires one, please configure one.
  2011-08-07 23:21:08.408:INFO::started
 
 o.m.j.p.JettyWebAppContext{/,file:/C:/open-source/myproject15/src/main/webapp/},file:/C:/ope
  n-source/myproject15/src/main/webapp/
  INFO  - WebXmlFile - web.xml: url mapping found for
 filter
  with name wicket.myproject15: [/*]
  INFO  - Application- [wicket.myproject15] init: Wicket
 core
  library initializer
  INFO  - RequestListenerInterface   - registered listener interface
  [RequestListenerInterface name=IBehaviorListener, method=public abstract
  void org.a
  pache.wicket.behavior.IBehaviorListener.onRequest()]
  INFO  - RequestListenerInterface   - registered listener interface
  [RequestListenerInterface name=IBehaviorListener, method=public abstract
  void org.a
  pache.wicket.behavior.IBehaviorListener.onRequest()]
  INFO  - RequestListenerInterface   - registered listener interface
  [RequestListenerInterface name=IFormSubmitListener, method=public
 abstract
  void org
  .apache.wicket.markup.html.form.IFormSubmitListener.onFormSubmitted()]
  INFO  - RequestListenerInterface   - registered listener interface
  [RequestListenerInterface name=IFormSubmitListener, method=public
 abstract
  void org
  .apache.wicket.markup.html.form.IFormSubmitListener.onFormSubmitted()]
  INFO  - RequestListenerInterface   - registered listener interface
  [RequestListenerInterface name=ILinkListener, method=public abstract void
  org.apach
  e.wicket.markup.html.link.ILinkListener.onLinkClicked()]
  INFO  - RequestListenerInterface   

Re: 1.5 - wicket module build question

2011-08-08 Thread Martin Grigorov
To make it more clear wicket module has type 'pom' and aggregates
modules wicket-core, wicket-util and wicket-request which are all
'jar'

On Mon, Aug 8, 2011 at 1:42 AM, Pedro Santos pedros...@gmail.com wrote:
 wicket module under trunk is there just to be an agregator of the main
 dependencies needed to run Wicket for maven users.

 On Sun, Aug 7, 2011 at 5:53 PM, Kaz C kaz@gmail.com wrote:
 I checked out Wicket (all modules) from trunk and executed mvn install.
 Build was successful.
 So, if I check my local maven repository and look
 under .m2/repository/org/apache/wicket/wicket/1.5-SNAPSHOT shouldn't I see
 a wicket-1.5-SNAPSHOT.jar ?

 Currently this is what I see:
 $ ls
 maven-metadata-local.xml  wicket-1.5-SNAPSHOT.pom

 Thanks,
 - Kaz




 --
 Pedro Henrique Oliveira dos Santos

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





-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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



Re: CSS, JS resource file handle issues?

2011-08-08 Thread Peter Ertl
Well, there is no close statement for URLConnection!

Just looking at a method named 'open' makes me automatically search for the 
equivalent 'close' statement.

Am 07.08.2011 um 20:03 schrieb Peter Ertl:

 in Connection#getLastModified(String url), line 69 there's an
 
   URLConnection jarFileConnection = 
 jarFileUrl.openConnection();
 
 without a close() statement...
 
 could that be the reason?
 
 Am 06.08.2011 um 00:21 schrieb rush66:
 
 As per your suggestion I grabbed the project from SVN and compiled the
 snapshot. Sadly there was no change in my results.  Is there a bug that is
 already filed for this?   
 
 
 
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/CSS-JS-resource-file-handle-issues-tp3701938p3722413.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
 


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



Re: CSS, JS resource file handle issues?

2011-08-08 Thread Martin Grigorov
Please try to follow the development.
The first close was removed with
https://issues.apache.org/jira/browse/WICKET-3895 which will be
released with RC6, so this is not the problem here. In RC5.1 there
were two calls of close() and this caused some problems in WebLogic
container. Calling second close on
weblogic.utils.zip.SafeZipFileInputStream causes NPE.

Maybe current trunk is not correct but here is how I see it: a
Connection is opened for the URL, then a check is made whether this
Connection is JarURLConnection and then #openConnection is called in
the jar's URL. At the end only the first connection is closed which
automatically should close the inner connection.

If this is not correct then we need to close the inner (jar url's)
connection quietly. No need to dump exceptions while trying to close
the connections used only to get the last mtime.

On Mon, Aug 8, 2011 at 11:56 AM, Peter Ertl pe...@gmx.org wrote:
 Well, there is no close statement for URLConnection!

 Just looking at a method named 'open' makes me automatically search for the 
 equivalent 'close' statement.

 Am 07.08.2011 um 20:03 schrieb Peter Ertl:

 in Connection#getLastModified(String url), line 69 there's an

                               URLConnection jarFileConnection = 
 jarFileUrl.openConnection();

 without a close() statement...

 could that be the reason?

 Am 06.08.2011 um 00:21 schrieb rush66:

 As per your suggestion I grabbed the project from SVN and compiled the
 snapshot. Sadly there was no change in my results.  Is there a bug that is
 already filed for this?



 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/CSS-JS-resource-file-handle-issues-tp3701938p3722413.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



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





-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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



Re: CSS, JS resource file handle issues?

2011-08-08 Thread Peter Ertl
Well, I _did_ follow the development ;-)

Just made me wonder just from looking at 'open...' that there's no close.

Maybe we need to do this:


// otherwise open the url and proceed
URLConnection connection = url.openConnection();
// ---
connection.setDoInput(false);
// ---

final long milliseconds;

try
{
if (connection instanceof JarURLConnection)
{
JarURLConnection jarUrlConnection = 
(JarURLConnection)connection;
URL jarFileUrl = 
jarUrlConnection.getJarFileURL();
URLConnection jarFileConnection = 
jarFileUrl.openConnection();
// ---
jarFileConnection.setDoInput(false);
// ---
// get timestamp from JAR
milliseconds = 
jarFileConnection.getLastModified();
}
else
{
// get timestamp from URL
milliseconds = connection.getLastModified();
}



Am 08.08.2011 um 11:11 schrieb Martin Grigorov:

 Please try to follow the development.
 The first close was removed with
 https://issues.apache.org/jira/browse/WICKET-3895 which will be
 released with RC6, so this is not the problem here. In RC5.1 there
 were two calls of close() and this caused some problems in WebLogic
 container. Calling second close on
 weblogic.utils.zip.SafeZipFileInputStream causes NPE.
 
 Maybe current trunk is not correct but here is how I see it: a
 Connection is opened for the URL, then a check is made whether this
 Connection is JarURLConnection and then #openConnection is called in
 the jar's URL. At the end only the first connection is closed which
 automatically should close the inner connection.
 
 If this is not correct then we need to close the inner (jar url's)
 connection quietly. No need to dump exceptions while trying to close
 the connections used only to get the last mtime.
 
 On Mon, Aug 8, 2011 at 11:56 AM, Peter Ertl pe...@gmx.org wrote:
 Well, there is no close statement for URLConnection!
 
 Just looking at a method named 'open' makes me automatically search for the 
 equivalent 'close' statement.
 
 Am 07.08.2011 um 20:03 schrieb Peter Ertl:
 
 in Connection#getLastModified(String url), line 69 there's an
 
   URLConnection jarFileConnection = 
 jarFileUrl.openConnection();
 
 without a close() statement...
 
 could that be the reason?
 
 Am 06.08.2011 um 00:21 schrieb rush66:
 
 As per your suggestion I grabbed the project from SVN and compiled the
 snapshot. Sadly there was no change in my results.  Is there a bug that is
 already filed for this?
 
 
 
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/CSS-JS-resource-file-handle-issues-tp3701938p3722413.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
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 
 
 -- 
 Martin Grigorov
 jWeekend
 Training, Consulting, Development
 http://jWeekend.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: CSS, JS resource file handle issues?

2011-08-08 Thread Martin Grigorov
This wont harm. Do it.

About the problem in this thread - please create a quickstart and
attach it to Jira.

On Mon, Aug 8, 2011 at 12:54 PM, Peter Ertl pe...@gmx.org wrote:
 Well, I _did_ follow the development ;-)

 Just made me wonder just from looking at 'open...' that there's no close.

 Maybe we need to do this:


                // otherwise open the url and proceed
                URLConnection connection = url.openConnection();
 // ---
                connection.setDoInput(false);
 // ---

                final long milliseconds;

                try
                {
                        if (connection instanceof JarURLConnection)
                        {
                                JarURLConnection jarUrlConnection = 
 (JarURLConnection)connection;
                                URL jarFileUrl = 
 jarUrlConnection.getJarFileURL();
                                URLConnection jarFileConnection = 
 jarFileUrl.openConnection();
 // ---
                                jarFileConnection.setDoInput(false);
 // ---
                                // get timestamp from JAR
                                milliseconds = 
 jarFileConnection.getLastModified();
                        }
                        else
                        {
                                // get timestamp from URL
                                milliseconds = connection.getLastModified();
                        }



 Am 08.08.2011 um 11:11 schrieb Martin Grigorov:

 Please try to follow the development.
 The first close was removed with
 https://issues.apache.org/jira/browse/WICKET-3895 which will be
 released with RC6, so this is not the problem here. In RC5.1 there
 were two calls of close() and this caused some problems in WebLogic
 container. Calling second close on
 weblogic.utils.zip.SafeZipFileInputStream causes NPE.

 Maybe current trunk is not correct but here is how I see it: a
 Connection is opened for the URL, then a check is made whether this
 Connection is JarURLConnection and then #openConnection is called in
 the jar's URL. At the end only the first connection is closed which
 automatically should close the inner connection.

 If this is not correct then we need to close the inner (jar url's)
 connection quietly. No need to dump exceptions while trying to close
 the connections used only to get the last mtime.

 On Mon, Aug 8, 2011 at 11:56 AM, Peter Ertl pe...@gmx.org wrote:
 Well, there is no close statement for URLConnection!

 Just looking at a method named 'open' makes me automatically search for the 
 equivalent 'close' statement.

 Am 07.08.2011 um 20:03 schrieb Peter Ertl:

 in Connection#getLastModified(String url), line 69 there's an

                               URLConnection jarFileConnection = 
 jarFileUrl.openConnection();

 without a close() statement...

 could that be the reason?

 Am 06.08.2011 um 00:21 schrieb rush66:

 As per your suggestion I grabbed the project from SVN and compiled the
 snapshot. Sadly there was no change in my results.  Is there a bug that is
 already filed for this?



 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/CSS-JS-resource-file-handle-issues-tp3701938p3722413.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



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





 --
 Martin Grigorov
 jWeekend
 Training, Consulting, Development
 http://jWeekend.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





-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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



Stateless pagination

2011-08-08 Thread heikki
hello,

I've noticed that rather many Wicket components cause the page to become
stateful, something which I wish to avoid.

In particular I'm wondering if there is some way to use the Pagination*
components (or similar alternative ones) to create a page that has
pagination over a repeater, without making the page stateful.

Sure, I suppose some info about the collection and current page etc. must be
remembered on the server, but we still have good old HttpSession that could
maybe be used for it ?

Any hints appreciated !

thanks and kind regards
Heikki Doeleman

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Stateless-pagination-tp3726950p3726950.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: Stateless pagination

2011-08-08 Thread Vytautas R.
Hi,
 I guess you might be interested in this:

https://xaloon.googlecode.com/svn/trunk/xaloon-wicket/xaloon-wicket-components/src/main/java/org/xaloon/wicket/component/navigation/BookmarkablePagingNavigator.java

it's a bookmarkable navigator example with abitility to change items per
page and it is stateless.


On Mon, Aug 8, 2011 at 4:16 PM, heikki tropic...@gmail.com wrote:

 hello,

 I've noticed that rather many Wicket components cause the page to become
 stateful, something which I wish to avoid.

 In particular I'm wondering if there is some way to use the Pagination*
 components (or similar alternative ones) to create a page that has
 pagination over a repeater, without making the page stateful.

 Sure, I suppose some info about the collection and current page etc. must
 be
 remembered on the server, but we still have good old HttpSession that could
 maybe be used for it ?

 Any hints appreciated !

 thanks and kind regards
 Heikki Doeleman

 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Stateless-pagination-tp3726950p3726950.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




-- 
Best regards,
Vytautas R.
---
www.xaloon.org
www.allcarindex.com


How can i toggle panel visibility without javascript?

2011-08-08 Thread Mike Mander

Hi,

i have two adress panels. Invoice and shipping. Shipping is off by default.
I would like to add a button or something to my invoice panel which is
toggling the visibility of the shipping panel.

I tried to add a page parameter to my current site and redirect, but the
added parameter is not present.

Do i have other options?

Thanks
Mike

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



Re: Downloader for files outside Web Context

2011-08-08 Thread jcgarciam
Check: DownloadLink component

http://wicket.apache.org/apidocs/1.4/org/apache/wicket/markup/html/link/DownloadLink.html


On Mon, Aug 8, 2011 at 1:14 AM, Arjun Dhar [via Apache Wicket] 
ml-node+3726062-793087976-65...@n4.nabble.com wrote:

 Liek a DownloadServlet that is given some params and knows where to pick it
 from the local FS and streams it down. So the link ends up getting the
 streamed resource.
 Software documentation is like sex: when it is good, it is very, very good;
 and when it is bad, it is still better than nothing!


 --
  If you reply to this email, your message will be added to the discussion
 below:

 http://apache-wicket.1842946.n4.nabble.com/Downloader-for-files-outside-Web-Context-tp3726061p3726062.html
  To start a new topic under Apache Wicket, email
 ml-node+1842946-398011874-65...@n4.nabble.com
 To unsubscribe from Apache Wicket, click 
 herehttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=.





-- 

JC


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Downloader-for-files-outside-Web-Context-tp3726061p3727427.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



PopUp not refreshed while everything else is

2011-08-08 Thread Dawid Dudzinski
Hello,

I'm having a strange problem: In a fairly complex application I
refresh image on main page and need to pop up a dialog
[org.odlabs.wiquery.ui.dialog.Dialog] with another image.

Main page image updates without issues, dialog opens
[dialog.open(target);] but the image reference is broken. This is
really strange because when I reviewed Wicket Ajax Debug i can see the
proper image reference passed to the front end. There are no errors in
the debug window.

Could anyone shed some light why I would have such problems?

To add more to this mystery I have Next and Previous button on the
same pop up and when I click on them I can navigate to the image I'm
trying to open automatically.

Thanks,
Dawid

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



Re: Stateless pagination

2011-08-08 Thread jcgarciam
Just for the record, using HttpSession makes your application already
stateful as well.

On Mon, Aug 8, 2011 at 10:21 AM, Vytautas Racelis-2 [via Apache Wicket] 
ml-node+3726961-1182509707-65...@n4.nabble.com wrote:

 Hi,
  I guess you might be interested in this:


 https://xaloon.googlecode.com/svn/trunk/xaloon-wicket/xaloon-wicket-components/src/main/java/org/xaloon/wicket/component/navigation/BookmarkablePagingNavigator.java

 it's a bookmarkable navigator example with abitility to change items per
 page and it is stateless.


 On Mon, Aug 8, 2011 at 4:16 PM, heikki [hidden 
 email]http://user/SendEmail.jtp?type=nodenode=3726961i=0
 wrote:

  hello,
 
  I've noticed that rather many Wicket components cause the page to become
  stateful, something which I wish to avoid.
 
  In particular I'm wondering if there is some way to use the Pagination*
  components (or similar alternative ones) to create a page that has
  pagination over a repeater, without making the page stateful.
 
  Sure, I suppose some info about the collection and current page etc. must

  be
  remembered on the server, but we still have good old HttpSession that
 could
  maybe be used for it ?
 
  Any hints appreciated !
 
  thanks and kind regards
  Heikki Doeleman
 
  --
  View this message in context:
 
 http://apache-wicket.1842946.n4.nabble.com/Stateless-pagination-tp3726950p3726950.html
  Sent from the Users forum mailing list archive at Nabble.com.
 
  -
  To unsubscribe, e-mail: [hidden 
  email]http://user/SendEmail.jtp?type=nodenode=3726961i=1
  For additional commands, e-mail: [hidden 
  email]http://user/SendEmail.jtp?type=nodenode=3726961i=2
 
 


 --
 Best regards,
 Vytautas R.
 ---
 www.xaloon.org
 www.allcarindex.com


 --
  If you reply to this email, your message will be added to the discussion
 below:

 http://apache-wicket.1842946.n4.nabble.com/Stateless-pagination-tp3726950p3726961.html
  To start a new topic under Apache Wicket, email
 ml-node+1842946-398011874-65...@n4.nabble.com
 To unsubscribe from Apache Wicket, click 
 herehttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=.





-- 

JC


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Stateless-pagination-tp3726950p3727424.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 can i toggle panel visibility without javascript?

2011-08-08 Thread jcgarciam
Try using the Swap Panel technique, here is an example using Fragments

http://pawelzubkiewicz.blogspot.com/2009/06/wicket-swapping-replacing-fragments.html


On Mon, Aug 8, 2011 at 10:39 AM, Mike Mander [via Apache Wicket] 
ml-node+3727006-1582440175-65...@n4.nabble.com wrote:

 Hi,

 i have two adress panels. Invoice and shipping. Shipping is off by default.

 I would like to add a button or something to my invoice panel which is
 toggling the visibility of the shipping panel.

 I tried to add a page parameter to my current site and redirect, but the
 added parameter is not present.

 Do i have other options?

 Thanks
 Mike

 -
 To unsubscribe, e-mail: [hidden 
 email]http://user/SendEmail.jtp?type=nodenode=3727006i=0
 For additional commands, e-mail: [hidden 
 email]http://user/SendEmail.jtp?type=nodenode=3727006i=1



 --
  If you reply to this email, your message will be added to the discussion
 below:

 http://apache-wicket.1842946.n4.nabble.com/How-can-i-toggle-panel-visibility-without-javascript-tp3727006p3727006.html
  To start a new topic under Apache Wicket, email
 ml-node+1842946-398011874-65...@n4.nabble.com
 To unsubscribe from Apache Wicket, click 
 herehttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=.





-- 

JC


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-can-i-toggle-panel-visibility-without-javascript-tp3727006p3727441.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: custom (non wicket) modal dialog. Problem with urls.

2011-08-08 Thread Andrea Del Bene

Hi,

I'm not sure I have fully understood your situation. You should have:

1- a page which opens a modal dialog via Javascript
2- another page which is rendered inside modal dialog
3- in this last page (the one inside modal window) you want a link to 
the page in background (the starting page)


Is this right?

Couldn't you get the url of target page using the same code used for 
modal dialog page? i.e.:


comp.urlFor(TargetPageClass.class, params);



Hello everyone,

in our project i have to use our own modal dialog (application is included
in a portal). I have to open the dialog with the help of a javascript
function which is wrapped in a Behaviour. What i am doing now:

- in the constructor of my response page i call the javascript function via
a behaviour, so that immediately after the responsepage is rendered, the
javascript function gets called and the modal dialog opens.
- the javascript funtion accepts a url of the page that will be included in
the dialog.

In order to get the url i'm doing the this:

URL for Page in Modal Dialog:
ServletWebRequest servletWebRequest = (ServletWebRequest) comp
.getRequest();
HttpServletRequest request = 
servletWebRequest.getHttpServletRequest();
String path = Strings.stripJSessionId(request.getRequestURI());
CharSequence urlFor = comp.urlFor(targetPageClass, params);
String contextRelativePath = path + urlFor;


Behaviour for opening the Modal Dialog:

public class OpenModalDialogBehaviour extends AbstractDefaultAjaxBehavior {

private static final long serialVersionUID = -127624955452459934L;

private String url;

public OpenModalDialogBehaviour(String url) {
this.url = url;
}

@Override
protected void onComponentTag(ComponentTag tag) {
super.onComponentTag(tag);
ASPSession session = (ASPSession) ASPSession.get();
String js = {if( + session.isShowModalDialog() + 
){top.showForm('
+ url +  + ');}};
tag.append(onload, js ,  );
session.setShowModalDialog(false);
}

@Override
protected void respond(AjaxRequestTarget target) {
System.out.println(respond);
}
}

Now, my problem is, that the response page is the page in the background
(deactivated by the modal-dialog-javascript- function), not the page of the
modal dialog. Therefore the links in the page of my modal dialog are dead
(the onclick functions never get called).

What i need is some trick to calculate and set the urls for my modal dialog
page manually, but i have no clue how to do this. Or maybe there is a much
simpler solution?

Thanks for any suggestions!

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/custom-non-wicket-modal-dialog-Problem-with-urls-tp3726196p3726196.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: Stateless pagination

2011-08-08 Thread Vytautas

true, it's not 100% stateless :)removing configurable items per page would make 
it stateless.


On 08/08/2011 07:01 PM, jcgarciam wrote:

Just for the record, using HttpSession makes your application already
stateful as well.

On Mon, Aug 8, 2011 at 10:21 AM, Vytautas Racelis-2 [via Apache Wicket]
ml-node+3726961-1182509707-65...@n4.nabble.com  wrote:


Hi,
  I guess you might be interested in this:


https://xaloon.googlecode.com/svn/trunk/xaloon-wicket/xaloon-wicket-components/src/main/java/org/xaloon/wicket/component/navigation/BookmarkablePagingNavigator.java

it's a bookmarkable navigator example with abitility to change items per
page and it is stateless.


On Mon, Aug 8, 2011 at 4:16 PM, heikki[hidden 
email]http://user/SendEmail.jtp?type=nodenode=3726961i=0
wrote:


hello,

I've noticed that rather many Wicket components cause the page to become
stateful, something which I wish to avoid.

In particular I'm wondering if there is some way to use the Pagination*
components (or similar alternative ones) to create a page that has
pagination over a repeater, without making the page stateful.

Sure, I suppose some info about the collection and current page etc. must



be
remembered on the server, but we still have good old HttpSession that

could

maybe be used for it ?

Any hints appreciated !

thanks and kind regards
Heikki Doeleman

--
View this message in context:


http://apache-wicket.1842946.n4.nabble.com/Stateless-pagination-tp3726950p3726950.html

Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: [hidden 
email]http://user/SendEmail.jtp?type=nodenode=3726961i=1
For additional commands, e-mail: [hidden 
email]http://user/SendEmail.jtp?type=nodenode=3726961i=2





--
Best regards,
Vytautas R.
---
www.xaloon.org
www.allcarindex.com


--
  If you reply to this email, your message will be added to the discussion
below:

http://apache-wicket.1842946.n4.nabble.com/Stateless-pagination-tp3726950p3726961.html
  To start a new topic under Apache Wicket, email
ml-node+1842946-398011874-65...@n4.nabble.com
To unsubscribe from Apache Wicket, click 
herehttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=.








--
Regards,
Vytautas
---
www.xaloon.org
www.allcarindex.com

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



Model window issue

2011-08-08 Thread Archana
Hi All,

I need some help regarding the model window. 

My web page contains some components. On click of a icon a model window 1
opens. Model window 1 extends a panel. Model window 1 has a create button,
on click of which another model window i.e. the Model window 2 opens. On
open of Model window 2, I want to hide the Model window 1 or make it
inactive so that it will not be selected.

Can I do that any way. I have tried to close() and setVisible() for the
Model window 1. It did not work.

Thanks in advance.

-
Thanks  Regards,
Archana
--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Model-window-issue-tp3727688p3727688.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: PopUp not refreshed while everything else is

2011-08-08 Thread Dawid Dudzinski
FYI. I resorted to passing a raw JQuery to the front end and now it works.

I append JS to target similar to this: $(#imgtagname).attr(src,
/path); Of course imgtagname is dynamically constructed
[getMarkupId()]

However if anyone has solution to my problem or even suggestion I
would welcome any leads.

Thanks,
Dawid

On Mon, Aug 8, 2011 at 11:02 AM, Dawid Dudzinski dawi...@gmail.com wrote:
 Hello,

 I'm having a strange problem: In a fairly complex application I
 refresh image on main page and need to pop up a dialog
 [org.odlabs.wiquery.ui.dialog.Dialog] with another image.

 Main page image updates without issues, dialog opens
 [dialog.open(target);] but the image reference is broken. This is
 really strange because when I reviewed Wicket Ajax Debug i can see the
 proper image reference passed to the front end. There are no errors in
 the debug window.

 Could anyone shed some light why I would have such problems?

 To add more to this mystery I have Next and Previous button on the
 same pop up and when I click on them I can navigate to the image I'm
 trying to open automatically.

 Thanks,
 Dawid


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



Wicket filter chain and other servlets

2011-08-08 Thread Julian Sinai
Hi, I really could use some advice on how to solve this problem:

In our webapp, we have a wicket filter as well as a couple of other
servlets. The url pattern for the wicket filter is the usual /*. The problem
is that because of this, all urls, including those of the other servlets, go
through the wicket filter, which is causing problems. Specifically, we are
using  spring, so wicket's SpringComponentInjector wraps the beans, which
sometimes results in the exception below.

The real solution is to separate the other servlets into another webapp, but
because of time constraints we can't do that. We also can't easily change
our urls to assign a unique pattern to the wicket urls (although the other
servlets do have unique patterns), because it will adversely affect users.
Is there a way to solve this problem in web.xml? Use wicket servlet instead
of wicket filter?

org.apache.wicket.WicketRuntimeException: There is no application attached to
current thread http-8443-7
at org.apache.wicket.Application.get(Application.java:179)

...


at
WICKET_com.hytrust.arc.TrustedHostMgr$$EnhancerByCGLIB$$eded0a19.refreshAllPolicy(generated)

...


at
com.hytrust.proxy.vmware.VIMHandlerServlet.doPost(VIMHandlerServlet.java:47)


Any help is appreciated.
Julian


Re: Wicket filter chain and other servlets

2011-08-08 Thread Dan Retzlaff
Hi Julian,

I'm not quite understanding your setup. How did your non-Wicket servlet get
a Wicket-proxied Spring bean?

Dan

On Mon, Aug 8, 2011 at 12:14 PM, Julian Sinai jsi...@gmail.com wrote:

 Hi, I really could use some advice on how to solve this problem:

 In our webapp, we have a wicket filter as well as a couple of other
 servlets. The url pattern for the wicket filter is the usual /*. The
 problem
 is that because of this, all urls, including those of the other servlets,
 go
 through the wicket filter, which is causing problems. Specifically, we are
 using  spring, so wicket's SpringComponentInjector wraps the beans, which
 sometimes results in the exception below.

 The real solution is to separate the other servlets into another webapp,
 but
 because of time constraints we can't do that. We also can't easily change
 our urls to assign a unique pattern to the wicket urls (although the other
 servlets do have unique patterns), because it will adversely affect users.
 Is there a way to solve this problem in web.xml? Use wicket servlet instead
 of wicket filter?

 org.apache.wicket.WicketRuntimeException: There is no application attached
 to
 current thread http-8443-7
at org.apache.wicket.Application.get(Application.java:179)

 ...


at

 WICKET_com.hytrust.arc.TrustedHostMgr$$EnhancerByCGLIB$$eded0a19.refreshAllPolicy(generated)

 ...


at

 com.hytrust.proxy.vmware.VIMHandlerServlet.doPost(VIMHandlerServlet.java:47)


 Any help is appreciated.
 Julian



Re: Model window issue

2011-08-08 Thread rmattler
I do this in my app.  I open a modal window and when you hit save I open
another modal window to confirm your save and if you confirm I close both
modal windows.

modalConfirm.close(target);
modalSelectDate.close(target);


IndicatingAjaxLinkVoid btnConfirmSave = new
IndicatingAjaxLinkVoid(btnConfirmSave) {

@Override
protected IAjaxCallDecorator 
getAjaxCallDecorator() {
return new
AjaxPostprocessingCallDecorator(super.getAjaxCallDecorator()) {
private static final long 
serialVersionUID = 1L;

@Override
public CharSequence 
postDecorateScript(CharSequence script) {
return script + 
this.disabled = true; this.style.display =
\none\;;
}

@Override
public CharSequence 
postDecorateOnSuccessScript(CharSequence script) {
return script +  
this.disabled = false;;
}
};
}

@Override
public void onClick(AjaxRequestTarget target) {
if (target != null) {


for (Positions position : 
positions) {

position.setVolunteersByFkVolunteerScheduled(session.getVolunteers());

positionsDAO.save(position);
}

//  wmc.setVisible(false);
target.addComponent(wmc);
modalConfirm.close(target);
modalSelectDate.close(target);


}

}

};

btnConfirmSave.setOutputMarkupId(true);
btnConfirmSave.setMarkupId(buttonConfirmOK);
add(btnConfirmSave);

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Model-window-issue-tp3727688p3727987.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: Wicket filter chain and other servlets

2011-08-08 Thread Julian Sinai
Hi Dan

I don't understand the reason either, but clearly it's happening. My best
guess is what I said in my original post: the non-wicket servlets are going
through the wicket filter.
Julian
On Mon, Aug 8, 2011 at 12:23 PM, Dan Retzlaff dretzl...@gmail.com wrote:

 Hi Julian,

 I'm not quite understanding your setup. How did your non-Wicket servlet get
 a Wicket-proxied Spring bean?

 Dan


 On Mon, Aug 8, 2011 at 12:14 PM, Julian Sinai jsi...@gmail.com wrote:

 Hi, I really could use some advice on how to solve this problem:

 In our webapp, we have a wicket filter as well as a couple of other
 servlets. The url pattern for the wicket filter is the usual /*. The
 problem
 is that because of this, all urls, including those of the other servlets,
 go
 through the wicket filter, which is causing problems. Specifically, we are
 using  spring, so wicket's SpringComponentInjector wraps the beans, which
 sometimes results in the exception below.

 The real solution is to separate the other servlets into another webapp,
 but
 because of time constraints we can't do that. We also can't easily change
 our urls to assign a unique pattern to the wicket urls (although the other
 servlets do have unique patterns), because it will adversely affect users.
 Is there a way to solve this problem in web.xml? Use wicket servlet
 instead
 of wicket filter?

 org.apache.wicket.WicketRuntimeException: There is no application attached
 to
 current thread http-8443-7
at org.apache.wicket.Application.get(Application.java:179)

 ...


at

 WICKET_com.hytrust.arc.TrustedHostMgr$$EnhancerByCGLIB$$eded0a19.refreshAllPolicy(generated)

 ...


at

 com.hytrust.proxy.vmware.VIMHandlerServlet.doPost(VIMHandlerServlet.java:47)


 Any help is appreciated.
 Julian





Re: Wicket filter chain and other servlets

2011-08-08 Thread Martin Funk
the web.xml might help

Am 08.08.2011 um 21:29 schrieb Julian Sinai:

 Hi Dan
 
 I don't understand the reason either, but clearly it's happening. My best
 guess is what I said in my original post: the non-wicket servlets are going
 through the wicket filter.
 Julian
 On Mon, Aug 8, 2011 at 12:23 PM, Dan Retzlaff dretzl...@gmail.com wrote:
 
 Hi Julian,
 
 I'm not quite understanding your setup. How did your non-Wicket servlet get
 a Wicket-proxied Spring bean?
 
 Dan
 
 
 On Mon, Aug 8, 2011 at 12:14 PM, Julian Sinai jsi...@gmail.com wrote:
 
 Hi, I really could use some advice on how to solve this problem:
 
 In our webapp, we have a wicket filter as well as a couple of other
 servlets. The url pattern for the wicket filter is the usual /*. The
 problem
 is that because of this, all urls, including those of the other servlets,
 go
 through the wicket filter, which is causing problems. Specifically, we are
 using  spring, so wicket's SpringComponentInjector wraps the beans, which
 sometimes results in the exception below.
 
 The real solution is to separate the other servlets into another webapp,
 but
 because of time constraints we can't do that. We also can't easily change
 our urls to assign a unique pattern to the wicket urls (although the other
 servlets do have unique patterns), because it will adversely affect users.
 Is there a way to solve this problem in web.xml? Use wicket servlet
 instead
 of wicket filter?
 
 org.apache.wicket.WicketRuntimeException: There is no application attached
 to
 current thread http-8443-7
   at org.apache.wicket.Application.get(Application.java:179)
 
 ...
 
 
   at
 
 WICKET_com.hytrust.arc.TrustedHostMgr$$EnhancerByCGLIB$$eded0a19.refreshAllPolicy(generated)
 
 ...
 
 
   at
 
 com.hytrust.proxy.vmware.VIMHandlerServlet.doPost(VIMHandlerServlet.java:47)
 
 
 Any help is appreciated.
 Julian
 
 
 


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



Re: Wicket filter chain and other servlets

2011-08-08 Thread Dan Retzlaff
If Wicket doesn't have a mount for a given URL, the WicketFilter doesn't do
anything more than pass the request through as if it weren't even there. So
I don't think your problem is filter configuration.

Your non-Wicket servlet is probably instantiating a Wicket component or
using InjectorHolder.getInjector().inject() in your other servlet. I would
breakpoint the SpringComponentInject.inject() method to see how it's getting
called for non-Wicket requests. (Or maybe at startup.)

On Mon, Aug 8, 2011 at 12:29 PM, Julian Sinai jsi...@gmail.com wrote:

 Hi Dan

 I don't understand the reason either, but clearly it's happening. My best
 guess is what I said in my original post: the non-wicket servlets are going
 through the wicket filter.
 Julian
 On Mon, Aug 8, 2011 at 12:23 PM, Dan Retzlaff dretzl...@gmail.com wrote:

  Hi Julian,
 
  I'm not quite understanding your setup. How did your non-Wicket servlet
 get
  a Wicket-proxied Spring bean?
 
  Dan
 
 
  On Mon, Aug 8, 2011 at 12:14 PM, Julian Sinai jsi...@gmail.com wrote:
 
  Hi, I really could use some advice on how to solve this problem:
 
  In our webapp, we have a wicket filter as well as a couple of other
  servlets. The url pattern for the wicket filter is the usual /*. The
  problem
  is that because of this, all urls, including those of the other
 servlets,
  go
  through the wicket filter, which is causing problems. Specifically, we
 are
  using  spring, so wicket's SpringComponentInjector wraps the beans,
 which
  sometimes results in the exception below.
 
  The real solution is to separate the other servlets into another webapp,
  but
  because of time constraints we can't do that. We also can't easily
 change
  our urls to assign a unique pattern to the wicket urls (although the
 other
  servlets do have unique patterns), because it will adversely affect
 users.
  Is there a way to solve this problem in web.xml? Use wicket servlet
  instead
  of wicket filter?
 
  org.apache.wicket.WicketRuntimeException: There is no application
 attached
  to
  current thread http-8443-7
 at org.apache.wicket.Application.get(Application.java:179)
 
  ...
 
 
 at
 
 
 WICKET_com.hytrust.arc.TrustedHostMgr$$EnhancerByCGLIB$$eded0a19.refreshAllPolicy(generated)
 
  ...
 
 
 at
 
 
 com.hytrust.proxy.vmware.VIMHandlerServlet.doPost(VIMHandlerServlet.java:47)
 
 
  Any help is appreciated.
  Julian
 
 
 



Re: Wicket filter chain and other servlets

2011-08-08 Thread Dan Retzlaff
On second thought, both instantiating a Component and requesting injection
would blow up immediately without an Application set. So I have to think
something in your Wicket application is putting the proxy somewhere the
servlet can access it.

On Mon, Aug 8, 2011 at 12:46 PM, Dan Retzlaff dretzl...@gmail.com wrote:

 If Wicket doesn't have a mount for a given URL, the WicketFilter doesn't do
 anything more than pass the request through as if it weren't even there. So
 I don't think your problem is filter configuration.

 Your non-Wicket servlet is probably instantiating a Wicket component or
 using InjectorHolder.getInjector().inject() in your other servlet. I would
 breakpoint the SpringComponentInject.inject() method to see how it's getting
 called for non-Wicket requests. (Or maybe at startup.)


 On Mon, Aug 8, 2011 at 12:29 PM, Julian Sinai jsi...@gmail.com wrote:

 Hi Dan

 I don't understand the reason either, but clearly it's happening. My best
 guess is what I said in my original post: the non-wicket servlets are
 going
 through the wicket filter.
 Julian
 On Mon, Aug 8, 2011 at 12:23 PM, Dan Retzlaff dretzl...@gmail.com
 wrote:

  Hi Julian,
 
  I'm not quite understanding your setup. How did your non-Wicket servlet
 get
  a Wicket-proxied Spring bean?
 
  Dan
 
 
  On Mon, Aug 8, 2011 at 12:14 PM, Julian Sinai jsi...@gmail.com wrote:
 
  Hi, I really could use some advice on how to solve this problem:
 
  In our webapp, we have a wicket filter as well as a couple of other
  servlets. The url pattern for the wicket filter is the usual /*. The
  problem
  is that because of this, all urls, including those of the other
 servlets,
  go
  through the wicket filter, which is causing problems. Specifically, we
 are
  using  spring, so wicket's SpringComponentInjector wraps the beans,
 which
  sometimes results in the exception below.
 
  The real solution is to separate the other servlets into another
 webapp,
  but
  because of time constraints we can't do that. We also can't easily
 change
  our urls to assign a unique pattern to the wicket urls (although the
 other
  servlets do have unique patterns), because it will adversely affect
 users.
  Is there a way to solve this problem in web.xml? Use wicket servlet
  instead
  of wicket filter?
 
  org.apache.wicket.WicketRuntimeException: There is no application
 attached
  to
  current thread http-8443-7
 at org.apache.wicket.Application.get(Application.java:179)
 
  ...
 
 
 at
 
 
 WICKET_com.hytrust.arc.TrustedHostMgr$$EnhancerByCGLIB$$eded0a19.refreshAllPolicy(generated)
 
  ...
 
 
 at
 
 
 com.hytrust.proxy.vmware.VIMHandlerServlet.doPost(VIMHandlerServlet.java:47)
 
 
  Any help is appreciated.
  Julian
 
 
 





Re: Model window issue

2011-08-08 Thread Archana
In my application both the model windows are pretty much of same size. So
when one model window opens on the other one, it looks very odd. for that
reason I need to some how make the underneath model window inactive or
hidden, so that it will not look odd. I can not close the Model window 1 as
it is the parent one. If I close it the child i.e. Model window 2 will not
open.

Please give me some suggestions on this. 

-
Thanks  Regards,
Archana
--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Model-window-issue-tp3727688p3728161.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: Wicket filter chain and other servlets

2011-08-08 Thread Julian Sinai
Dan, thanks for your reply. You may be right, though I can't imagine what
could be putting the proxy somewhere the servlet can access it. I'll take
another look. And your suggestion to put a breakpoint in the
SpringComponentInjector is a good one.

Julian
On Mon, Aug 8, 2011 at 12:49 PM, Dan Retzlaff dretzl...@gmail.com wrote:

 On second thought, both instantiating a Component and requesting injection
 would blow up immediately without an Application set. So I have to think
 something in your Wicket application is putting the proxy somewhere the
 servlet can access it.




Re: Wicket filter chain and other servlets

2011-08-08 Thread Dan Retzlaff
You should just be able to see where that TrustedHostMgr variable is coming
from.

On Mon, Aug 8, 2011 at 1:39 PM, Julian Sinai jsi...@gmail.com wrote:

 Dan, thanks for your reply. You may be right, though I can't imagine what
 could be putting the proxy somewhere the servlet can access it. I'll take
 another look. And your suggestion to put a breakpoint in the
 SpringComponentInjector is a good one.

 Julian
 On Mon, Aug 8, 2011 at 12:49 PM, Dan Retzlaff dretzl...@gmail.com wrote:

  On second thought, both instantiating a Component and requesting
 injection
  would blow up immediately without an Application set. So I have to think
  something in your Wicket application is putting the proxy somewhere the
  servlet can access it.
 
 



wicket, hibernate, spring setup

2011-08-08 Thread msj121
I noticed there was a github setup here:
https://github.com/pflanzenmoerder/wicket-hibernate-archetype

And I added the repository and imported the project into my eclipse helios.
I can't seem to get the project to run, not sure how to finish setting up
the project.

Can anyone help?

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wicket-hibernate-spring-setup-tp3728444p3728444.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: wicket, hibernate, spring setup

2011-08-08 Thread jcgarciam
Try jWeekend LegUp

http://www.jweekend.com/dev/LegUp

On Mon, Aug 8, 2011 at 7:15 PM, msj121 [via Apache Wicket] 
ml-node+3728444-1358850638-65...@n4.nabble.com wrote:

 I noticed there was a github setup here:
 https://github.com/pflanzenmoerder/wicket-hibernate-archetype

 And I added the repository and imported the project into my eclipse helios.
 I can't seem to get the project to run, not sure how to finish setting up
 the project.

 Can anyone help?

 --
  If you reply to this email, your message will be added to the discussion
 below:

 http://apache-wicket.1842946.n4.nabble.com/wicket-hibernate-spring-setup-tp3728444p3728444.html
  To start a new topic under Apache Wicket, email
 ml-node+1842946-398011874-65...@n4.nabble.com
 To unsubscribe from Apache Wicket, click 
 herehttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=1842946code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=.





-- 

JC


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wicket-hibernate-spring-setup-tp3728444p3728572.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