Re: IE 6 - 'Wicket' is undefined

2011-06-25 Thread Sven Meier

Thanks Dave, that's a good advice.

Just out of curiosity: what did go wrong with your deployment?

Best,
Sven

On 25.06.2011 04:26, D D wrote:

For all poor souls that may run into this problem here is a sanity
check to consider.

Attempt to run the following URL:
http://yourmachinename[:port]/appRoot/resources/org.apache.wicket.ajax.WicketAjaxReference/wicket-ajax.js

Your browser should attempt downloading a file (in case of IE6 -
that's the default behavior)

If you get error the problem in all likelihood lies with broken
deployment - which is pretty interesting in our case since the app
rendered on server side without issues but failed on the front end.

I hope it helps.

Thanks,
Dave

On Fri, Jun 24, 2011 at 2:41 PM, Martin Makundi
martin.maku...@koodaripalvelut.com  wrote:

Hi!

It will probably cost you quite some time but you can debug the order
of js library references being loaded in various situations.

Wicket is a javascript reference to the wicket js methods and if
Wicket is undefined it means it is not loaded at that time... for
some reason.

**
Martin


2011/6/24 D Ddawi...@gmail.com:

Hello,

We have an issue where IE6 loads and works fine with wicket's js
during development. As soon as we moved app to community server IE6
comes up with an error:

Error: 'Wicket' is undefined

As much as we would wish to get off IE6 we have to stick with it for a
little longer. I've seen people having issues after moving from 1.4.7
to newer version. I've never seen resolution to a thread that we
running back in Nov. 2010.

Does anyone have any idea what could have gone wrong?

Thanks,
Dave

-
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





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



Re: IE 6 - 'Wicket' is undefined

2011-06-25 Thread Martin Makundi
Hi!

 For all poor souls that may run into this problem here is a sanity
 check to consider.

 Attempt to run the following URL:
 http://yourmachinename[:port]/appRoot/resources/org.apache.wicket.ajax.WicketAjaxReference/wicket-ajax.js

Interesting. It might be related to:

http://apache-wicket.1842946.n4.nabble.com/Internal-error-parsing-wicket-interface-td3610746.html

**
Martin


 Your browser should attempt downloading a file (in case of IE6 -
 that's the default behavior)

 If you get error the problem in all likelihood lies with broken
 deployment - which is pretty interesting in our case since the app
 rendered on server side without issues but failed on the front end.

 I hope it helps.

 Thanks,
 Dave

 On Fri, Jun 24, 2011 at 2:41 PM, Martin Makundi
 martin.maku...@koodaripalvelut.com wrote:
 Hi!

 It will probably cost you quite some time but you can debug the order
 of js library references being loaded in various situations.

 Wicket is a javascript reference to the wicket js methods and if
 Wicket is undefined it means it is not loaded at that time... for
 some reason.

 **
 Martin


 2011/6/24 D D dawi...@gmail.com:
 Hello,

 We have an issue where IE6 loads and works fine with wicket's js
 during development. As soon as we moved app to community server IE6
 comes up with an error:

 Error: 'Wicket' is undefined

 As much as we would wish to get off IE6 we have to stick with it for a
 little longer. I've seen people having issues after moving from 1.4.7
 to newer version. I've never seen resolution to a thread that we
 running back in Nov. 2010.

 Does anyone have any idea what could have gone wrong?

 Thanks,
 Dave

 -
 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



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



Re: IE 6 - 'Wicket' is undefined

2011-06-25 Thread D D
Sven: I'm not privy to participate in deployments and I don't have
access to server setup. One thing is certain it was a very interesting
situation because another wicket application was running just fine on
the same server. (That's how I diagnosed the deployment issue - the
other appRoot would give me the js mentioned)

Martin: I'm not sure if it's related.

I've used Chrome to determine that js was not reaching the browser -
so technically my subject line is a bit misleading - and the repeated
the steps in IE6 and got the same results.

What's worth mentioning is that the runtime is IBM WebSphere 6.1. We
had problems with filtering at the beginning. Despite of enabling a
filtering variable/setting for WAS we still had to add index.html
because filtering was hit or miss.We had random problems with ajax
processing  - we would get 404 responses. (Again it was affecting some
ajax components of the application and not all)

Thanks,
Dave

On Sat, Jun 25, 2011 at 1:28 AM, Martin Makundi
martin.maku...@koodaripalvelut.com wrote:
 Hi!

 For all poor souls that may run into this problem here is a sanity
 check to consider.

 Attempt to run the following URL:
 http://yourmachinename[:port]/appRoot/resources/org.apache.wicket.ajax.WicketAjaxReference/wicket-ajax.js

 Interesting. It might be related to:

 http://apache-wicket.1842946.n4.nabble.com/Internal-error-parsing-wicket-interface-td3610746.html

 **
 Martin


 Your browser should attempt downloading a file (in case of IE6 -
 that's the default behavior)

 If you get error the problem in all likelihood lies with broken
 deployment - which is pretty interesting in our case since the app
 rendered on server side without issues but failed on the front end.

 I hope it helps.

 Thanks,
 Dave

 On Fri, Jun 24, 2011 at 2:41 PM, Martin Makundi
 martin.maku...@koodaripalvelut.com wrote:
 Hi!

 It will probably cost you quite some time but you can debug the order
 of js library references being loaded in various situations.

 Wicket is a javascript reference to the wicket js methods and if
 Wicket is undefined it means it is not loaded at that time... for
 some reason.

 **
 Martin


 2011/6/24 D D dawi...@gmail.com:
 Hello,

 We have an issue where IE6 loads and works fine with wicket's js
 during development. As soon as we moved app to community server IE6
 comes up with an error:

 Error: 'Wicket' is undefined

 As much as we would wish to get off IE6 we have to stick with it for a
 little longer. I've seen people having issues after moving from 1.4.7
 to newer version. I've never seen resolution to a thread that we
 running back in Nov. 2010.

 Does anyone have any idea what could have gone wrong?

 Thanks,
 Dave

 -
 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



 -
 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



Referencing resources in Wicket 1.5

2011-06-25 Thread Jurek Piasek
I am in the process of migrating from Wicket 1.4 to Wicket 1.5 and I have a
question about how to access flash files and other files that I have in my
webapp directory. The structure of my app is the following
src/
 main/
  packagename/
pagename/
 CallFlash.java
 CallFlash.html
 WicketApplication.java
 webapp/
WebInf/
  web.xml
 flashstuff/
  flash.swf

CallFlash.java references flash.swf. How to get the url for flash.swf?

Thanks!


Open new Tab via form target

2011-06-25 Thread Gregor Kaczor

Hi!

I have a problem with opening a new tab via a form.

I am using Wicket 1.4.17 on Ubuntu 11.04 with java 1.6.0_24-b07 and 
Tomcat 7.0.12


On a page I have a Download Button in a form with a Link to a file or an 
image.

After clicking on that button a new Tab should be opened with that link.

Unfortunatelly the file opens in the working tab. Adding target=_blank 
to the form or the submit button does not change that behaviour.


Just for fun i removed the wicket-ajax.js from the html file and opening 
a new tab via a form WORKED!


Here is my code. What do I have to do to open a new tab when the 
AjaxFallbackButton is clicked?


code
FormVoid form = new FormVoid(downloadForm){
@Override
protected void onComponentTag(ComponentTag tag) {
// TODO Auto-generated method stub
super.onComponentTag(tag);
tag.put(target,_blank);
}
};
final ModelString buttonLabelModel = new 
ModelString(DOWNLOAD);


final Label label = new Label(downloadButtonLabel, 
buttonLabelModel);

label.setOutputMarkupId(true);
label.setOutputMarkupPlaceholderTag(true);

final AjaxFallbackButton a = new 
AjaxFallbackButton(downloadButton,

form) {

private static final long serialVersionUID = 
5109029782741176146L;


@Override
protected void onSubmit(AjaxRequestTarget target, Form? 
form) {


String url = 
solrDocument.getFieldValue(idadr).toString();
System.out.println(queryResultLine.toString() + \tDL: 
 + url

+ \tPosition:  + positionCounter);

getRequestCycle().setRequestTarget(
new RedirectRequestTarget(url));

}
};

a.add(label);
form.add(a);
/code

code
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN 
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;

...
form
  style=display: inline;
  wicket:id=downloadForm
  target=_blank

button target=_blank wicket:id=downloadButtonspan
  wicket:id=downloadButtonLabel
   //button
/form
...
/code

I am aware of the fact, that i am adding target=_blank twice over the 
onComponent methid and in the html. I tested combinations without results.


Kind Regards

Greg


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



Re: Referencing resources in Wicket 1.5

2011-06-25 Thread Igor Vaynberg
getRequestCycle().getUrlRenderer().renderContextPathRelativeUrl(flashstuff/flash.swf)

-igor

On Sat, Jun 25, 2011 at 6:35 AM, Jurek Piasek jurek.pia...@gmail.com wrote:
 I am in the process of migrating from Wicket 1.4 to Wicket 1.5 and I have a
 question about how to access flash files and other files that I have in my
 webapp directory. The structure of my app is the following
 src/
     main/
              packagename/
                                        pagename/
                                                             CallFlash.java
                                                             CallFlash.html
                                         WicketApplication.java
     webapp/
                    WebInf/
                                  web.xml
                     flashstuff/
                                      flash.swf

 CallFlash.java references flash.swf. How to get the url for flash.swf?

 Thanks!


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



Re: Open new Tab via form target

2011-06-25 Thread Igor Vaynberg
dont use an ajax button, they do not respect the target attribute.

-igor

On Sat, Jun 25, 2011 at 6:36 AM, Gregor Kaczor gkac...@gmx.de wrote:
 Hi!

 I have a problem with opening a new tab via a form.

 I am using Wicket 1.4.17 on Ubuntu 11.04 with java 1.6.0_24-b07 and Tomcat
 7.0.12

 On a page I have a Download Button in a form with a Link to a file or an
 image.
 After clicking on that button a new Tab should be opened with that link.

 Unfortunatelly the file opens in the working tab. Adding target=_blank to
 the form or the submit button does not change that behaviour.

 Just for fun i removed the wicket-ajax.js from the html file and opening a
 new tab via a form WORKED!

 Here is my code. What do I have to do to open a new tab when the
 AjaxFallbackButton is clicked?

 code
        FormVoid form = new FormVoid(downloadForm){
            @Override
            protected void onComponentTag(ComponentTag tag) {
                // TODO Auto-generated method stub
                super.onComponentTag(tag);
                tag.put(target,_blank);
            }
        };
        final ModelString buttonLabelModel = new ModelString(DOWNLOAD);

        final Label label = new Label(downloadButtonLabel,
 buttonLabelModel);
        label.setOutputMarkupId(true);
        label.setOutputMarkupPlaceholderTag(true);

        final AjaxFallbackButton a = new AjaxFallbackButton(downloadButton,
                form) {

            private static final long serialVersionUID =
 5109029782741176146L;

            @Override
            protected void onSubmit(AjaxRequestTarget target, Form? form) {

                String url = solrDocument.getFieldValue(idadr).toString();
                System.out.println(queryResultLine.toString() + \tDL:  +
 url
                        + \tPosition:  + positionCounter);

                getRequestCycle().setRequestTarget(
                        new RedirectRequestTarget(url));

            }
        };

        a.add(label);
        form.add(a);
 /code

 code
 !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
 http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
 ...
 form
      style=display: inline;
      wicket:id=downloadForm
      target=_blank

 button target=_blank wicket:id=downloadButtonspan
      wicket:id=downloadButtonLabel
   //button
 /form
 ...
 /code

 I am aware of the fact, that i am adding target=_blank twice over the
 onComponent methid and in the html. I tested combinations without results.

 Kind Regards

 Greg


 -
 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: Wicket and OSGi

2011-06-25 Thread Harald Wellmann

Am 23.06.2011 19:11, schrieb Harald Wellmann:


I'll take a look at the patches, play around with the code and find out
if I'm one the wrong track or not... If I end up with anything
interesting enough, I'll get back or attach another patch.



Ok, here is my first shot at a solution. The IClassResolver using the 
client bundle class loader works as expected. OSGi service injection 
into Wicket components along the lines of wicket-spring is also working, 
as long as the required services are unique.


All the details are explained in a Wiki page [1], and the glue code can 
be browsed online [2], or you can clone my sample repository from Google 
Code.


Any feedback welcome!

[1] http://code.google.com/p/osgi-enterprise/wiki/WicketAndOsgi
[2] 
http://code.google.com/p/osgi-enterprise/source/browse/?name=0.1.0#hg%2Faries-pde%2Fcom.googlecode.osgienterprise.wicket.osgi%2Fsrc%2Fcom%2Fgooglecode%2Fosgienterprise%2Fwicket


Regards,
Harald

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



Re: Wicket and OSGi

2011-06-25 Thread Brian Topping
It would be easier to contribute feedback to your project as well as easier to 
promote upstream if you forked the wicket-stuff project on github and added 
your project there.

On Jun 25, 2011, at 11:24 AM, Harald Wellmann wrote:

 Am 23.06.2011 19:11, schrieb Harald Wellmann:
 
 I'll take a look at the patches, play around with the code and find out
 if I'm one the wrong track or not... If I end up with anything
 interesting enough, I'll get back or attach another patch.
 
 
 Ok, here is my first shot at a solution. The IClassResolver using the client 
 bundle class loader works as expected. OSGi service injection into Wicket 
 components along the lines of wicket-spring is also working, as long as the 
 required services are unique.
 
 All the details are explained in a Wiki page [1], and the glue code can be 
 browsed online [2], or you can clone my sample repository from Google Code.
 
 Any feedback welcome!
 
 [1] http://code.google.com/p/osgi-enterprise/wiki/WicketAndOsgi
 [2] 
 http://code.google.com/p/osgi-enterprise/source/browse/?name=0.1.0#hg%2Faries-pde%2Fcom.googlecode.osgienterprise.wicket.osgi%2Fsrc%2Fcom%2Fgooglecode%2Fosgienterprise%2Fwicket
 
 Regards,
 Harald
 
 -
 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



[Announce] Wicket Stuff Core 1.5-RC5.1

2011-06-25 Thread Michael O'Cleirigh

Hello,

Following the release of wicket 1.5-RC5.1 today I am pleased to announce 
the corresponding wicketstuff-core release.


The artifacts have been promoted and should be synced into the maven 
central repository within one or to hours.


They can be retrieved like this:

dependency
groupIdorg.wicketstuff/groupId
artifactIdwicket-bundle/artifactId
version1.5-RC5.1/version
/dependency

The release tag is here: 
https://github.com/wicketstuff/core/tree/wicketstuff-core-1.5-RC5.1


Development on the next release takes place on the master branch here: 
https://github.com/wicketstuff/core


Issues can be reported here: https://github.com/wicketstuff/core/issues

The Project Wiki is available here: 
https://github.com/wicketstuff/core/wiki


New modules included in this release:
serializer-kyro

Changelog between wicketstuff-core-1.5-RC4.2 and this release:

akiraly (24 commits):
  Following an upstream change so the code compiles. In upstream 
BaseWicketTester's startComponent(Component, IMarkupFragment) was 
renamed to startComponentInPage(Component, IMarkupFragment).

  [core] Updated jetty from 7.4.0 to 7.4.1.v20110513.
  [html5] Fix a case-typo in pom.
  [core] #29 Review used maven repositories. Removed some 
repositories from core pom.xml. Did an mvn install with a clean maven 
repo. It passed. Some interesting stuff: the mvn repo eats up 300 MB 
disk fro this 190 MB are the wicketstuff artifacts.
  [core] Updating dependencies: jetty to 7.4.2 and logback to 
0.9.29 (contains fix for annoying LBCLASSIC-246). [serializer-kyro] 
Minor pom cleanup.
  [shiro-security/wicket-shiro] Following upstream Serializer 
change so code compiles again. Needs testing.

  [shiro-security/wicket-shiro] Removing unused variable.
  Cleaning up some deprecated calls (following upstream change).
  Code formatting and code cleanup. No functional change.
  Cleaning up a few findbugs warnings.
  Fixing typo.
  [wicket-servlet3] Upgrading jetty to 8.0.0.M3 (from M2).
  Cleaning up some deprecated code calls (following upstream change).
  [wasp] Changing method signature to fix compile error (following 
upstream change).

  [core] Upgrade hibernate to 3.6.5.
  [gae] PersistentPageManager - PageStoreManager, following 
upstream change.

  [minis] Adding tests for StringValidatorWithMaxLength.
  Porting shuraa's patch for issue #32 from pull request #33 to the 
1.5 branch.
  [inmethod-grid] issue #36 Relax inmethod DataGrid generics 
parameter rules.

  [serializer-kryo] correcting artifactId of parent.
  Adding plugin configuration to core so Eclipse 3.7 (Indigo) and 
m2 do not complain about some plugins being not bindable to Eclipse 
lifecycles. Also correcting some warnings that were detected by the 
new m2 plugin.
  [serializer-kryo] Adding slf4j-simple as test dependency to keep 
slf4j from complaining about missing binding.

  [inmethod-grid] Some cleanup mainly in pom.xml-s.
  [inmethod-grid] Fixing a cast that was rolled back recently 
(hopefully this time it is java 1.5 compliant).


martin-g (18 commits):
  Fix to the new API in trunk.
  WICKET-3778 Add possibility to register different page serializer
  Remove an unused code.
  Rename the project from pageserializer to more general serializer
  Add readme
  Make README a .md
  Update the name of the project.
  Add logging statements for the interesting methods
  Add a note that this serializer cannot be used on non-Oracle JDKs 
due to the usage of sun.reflect.ReflectionFactory

  Use the passed 'application' instead Application.get()
  Fix the name of the application class
  Be more exlicit in clearing the bytebuffer.
  Explicitly clear the ByteBuffer's after usage.
  Make #getBuffer() protected so it is easier to create custom 
sized buffer depending on the type of the object to serialize

  Merge branch 'master' of github.com:wicketstuff/core
  Merge branch 'master' of github.com:wicketstuff/core
  Move Kryo serializer to jdk-1.6 because Kryo itself is built with 
jdk1.6

  issue #38 Fix InMethodGrid compile error in master branch

Pedro Santos (2 commits):
  updating GaeObjectSerializer.java to implement the new 
ISerializer interface
  [gae-initializer]Changing GaeObjectSerializer to extend 
JavaSerializer


Inaiat Henrique (1 commits):
  [meiomask] custom mask

Martin Grigorov (1 commits):
  Merge pull request #35 from itoasuka/bugFix

Michael O'Cleirigh (1 commits):
  commit 1.5-RC5.1 release pom's

itoasuka (1 commits):
  Bug fix SForm component has not passed model to a super-class.

seb (1 commits):
  wicketstuff-push-core: removed obsolete parameter Event 
from IPushService.createChannel method signature


(This listing was generated using: git shortlog -n 
wicketstuff-core-1.5-RC4.2..wicketstuff-core-1.5-RC5.1).


I will plan to do the next 

How can i reset the data in TextFields?

2011-06-25 Thread HarryBakker
I'm a relative newby with Wicket and am struggling to get something to work.
Maybe somebody can help me?

I have a form with some TextFields on it, that i'm using to keep track of
some properties of a User. Some fields are required (they have the
required() attribute set to true), some not. Now i want to have a 'reset'
button on the form that let's me reset all fields to their original value. I
have the setDefaultFormProcessing() property of this resetbutton set to
false, to prevent validation of the required fields that aren't currently
filled by the user. In the onSubmit() of the button, i do the following for
every button (i'm only showing the code for this single button; the rest are
coded along the same lines):

Form form = (Form) get(form);
TextField name = (TextField) form.get(name);
name.setDefaultModelObject(originalUser.getName());
// ... rest of the fields ...

After all fields are set to their original values the page is refreshed, but
the TextFields contents retain their current value. They are not reset to
their original value, which i expected.

What am i doing wrong?

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-can-i-reset-the-data-in-TextFields-tp3625099p3625099.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 reset the data in TextFields?

2011-06-25 Thread Igor Vaynberg
Use a link and call form.clearinput()

-igor
On Jun 25, 2011 4:23 PM, HarryBakker harmengo...@gmail.com wrote:
 I'm a relative newby with Wicket and am struggling to get something to
work.
 Maybe somebody can help me?

 I have a form with some TextFields on it, that i'm using to keep track of
 some properties of a User. Some fields are required (they have the
 required() attribute set to true), some not. Now i want to have a 'reset'
 button on the form that let's me reset all fields to their original value.
I
 have the setDefaultFormProcessing() property of this resetbutton set to
 false, to prevent validation of the required fields that aren't currently
 filled by the user. In the onSubmit() of the button, i do the following
for
 every button (i'm only showing the code for this single button; the rest
are
 coded along the same lines):

 Form form = (Form) get(form);
 TextField name = (TextField) form.get(name);
 name.setDefaultModelObject(originalUser.getName());
 // ... rest of the fields ...

 After all fields are set to their original values the page is refreshed,
but
 the TextFields contents retain their current value. They are not reset to
 their original value, which i expected.

 What am i doing wrong?

 --
 View this message in context:
http://apache-wicket.1842946.n4.nabble.com/How-can-i-reset-the-data-in-TextFields-tp3625099p3625099.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: Referencing resources in Wicket 1.5

2011-06-25 Thread Jurek Piasek
Worked. Many thanks!

On Sat, Jun 25, 2011 at 11:39 AM, Igor Vaynberg igor.vaynb...@gmail.comwrote:


 getRequestCycle().getUrlRenderer().renderContextPathRelativeUrl(flashstuff/flash.swf)

 -igor

 On Sat, Jun 25, 2011 at 6:35 AM, Jurek Piasek jurek.pia...@gmail.com
 wrote:
  I am in the process of migrating from Wicket 1.4 to Wicket 1.5 and I have
 a
  question about how to access flash files and other files that I have in
 my
  webapp directory. The structure of my app is the following
  src/
  main/
   packagename/
 pagename/
 
 CallFlash.java
 
 CallFlash.html
  WicketApplication.java
  webapp/
 WebInf/
   web.xml
  flashstuff/
   flash.swf
 
  CallFlash.java references flash.swf. How to get the url for flash.swf?
 
  Thanks!
 

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




Re: Wicket and OSGi

2011-06-25 Thread Michael O'Cleirigh

Hi Harald,

Thanks for taking the time to implement your solution to the OSGi problem.

If you could create a patch (or fork and then pull request; or commit 
directly) into the
https://github.com/wicketstuff/core/tree/master/jdk-1.5-parent/wicket-bundle-parent 
module that would be ideal.   I can't tell if it should be integrated 
into the existing wicket-bundle or beside it as a new module (You can 
decide).


If you need commit access just post to the dev list with your github 
username and we can add you.


Once your changes are committed into wicketstuff the jenkins server (it 
polls github @hourly) will build them into wicketstuff-core 1.5-SNAPSHOT 
jars  and other osgi users could run it and their feedback could be 
captured as project issues.


Would it be possible to have a wicket-bundle-example project that is 
configured to launch itself using osgi to exercise the capabilities of 
the module? Maybe the maven-pax-plugin be used to accomplish this?


I think since most wicket users don't seem to use osgi (me included) if 
an example could be created that anyone could run the amount of feedback 
would be greater.


Regards,

Mike



It would be easier to contribute feedback to your project as well as easier to 
promote upstream if you forked the wicket-stuff project on github and added 
your project there.

On Jun 25, 2011, at 11:24 AM, Harald Wellmann wrote:


Am 23.06.2011 19:11, schrieb Harald Wellmann:

I'll take a look at the patches, play around with the code and find out
if I'm one the wrong track or not... If I end up with anything
interesting enough, I'll get back or attach another patch.


Ok, here is my first shot at a solution. The IClassResolver using the client 
bundle class loader works as expected. OSGi service injection into Wicket 
components along the lines of wicket-spring is also working, as long as the 
required services are unique.

All the details are explained in a Wiki page [1], and the glue code can be 
browsed online [2], or you can clone my sample repository from Google Code.

Any feedback welcome!

[1] http://code.google.com/p/osgi-enterprise/wiki/WicketAndOsgi
[2] 
http://code.google.com/p/osgi-enterprise/source/browse/?name=0.1.0#hg%2Faries-pde%2Fcom.googlecode.osgienterprise.wicket.osgi%2Fsrc%2Fcom%2Fgooglecode%2Fosgienterprise%2Fwicket

Regards,
Harald

-
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