RE: ModalWindow problem

2011-09-21 Thread Sotil Bertanzetti, Matteo
Thanks for responding.

I'm using a dynamic model (PropertyModel) but it doesn't work either.
For me it's an important loss of functionality. I use it on modal
windows, to show a search page (with TabbedPanel, list with
pagination...) and select one register; could you please suggest me some
alternative?.

Thank you.

Matteo Sotil

-Missatge original-
De: Andrea Del Bene [mailto:adelb...@ciseonweb.it] 
Enviat: martes, 20 de septiembre de 2011 18:16
Per a: users@wicket.apache.org
Tema: Re: ModalWindow problem

Hi,

we dealt this topic in this issue:

https://issues.apache.org/jira/browse/WICKET-3809

Basically starting from Wicket 1.5 you can't share static models between

pages.
 Hello.



 I have a problem with ModalWindow in wicket 1.5.0.

 I create a ModalWindow from a page, and that modal window changes
 original page's model; some textfields should change their value
 according to model change, but they not; in fact seems as if model had
 not really changed. ModalWindow's content is a page, not a component;
if
 I use a component as content, it works, but I need it to be a page.
This
 worked correctly on wicket 1.4.18.



 Matteo Sotil

 935526855

 mso...@gencat.cat




-
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: ModalWindow problem

2011-09-21 Thread Sotil Bertanzetti, Matteo
Is there another option?, I would have to do a lot of changes to implement 
Panel backed ModalWindow. 

Maybe I stay on wicket 1.4 for a while.

Matteo Sotil

-Missatge original-
De: Martin Grigorov [mailto:mgrigo...@apache.org] 
Enviat: miércoles, 21 de septiembre de 2011 13:19
Per a: users@wicket.apache.org
Tema: Re: ModalWindow problem

On Wed, Sep 21, 2011 at 12:25 PM, Sotil Bertanzetti, Matteo
mso...@gencat.cat wrote:
 Thanks for responding.

 I'm using a dynamic model (PropertyModel) but it doesn't work either.
 For me it's an important loss of functionality. I use it on modal
 windows, to show a search page (with TabbedPanel, list with
 pagination...) and select one register; could you please suggest me some
 alternative?.

Use ModalWindow backed by a Panel instead of a Page. It is much more stable.
There are many tickets for ModalWindow backed by a Page.


 Thank you.

 Matteo Sotil

 -Missatge original-
 De: Andrea Del Bene [mailto:adelb...@ciseonweb.it]
 Enviat: martes, 20 de septiembre de 2011 18:16
 Per a: users@wicket.apache.org
 Tema: Re: ModalWindow problem

 Hi,

 we dealt this topic in this issue:

 https://issues.apache.org/jira/browse/WICKET-3809

 Basically starting from Wicket 1.5 you can't share static models between

 pages.
 Hello.



 I have a problem with ModalWindow in wicket 1.5.0.

 I create a ModalWindow from a page, and that modal window changes
 original page's model; some textfields should change their value
 according to model change, but they not; in fact seems as if model had
 not really changed. ModalWindow's content is a page, not a component;
 if
 I use a component as content, it works, but I need it to be a page.
 This
 worked correctly on wicket 1.4.18.



 Matteo Sotil

 935526855

 mso...@gencat.cat




 -
 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



Wicketstuff tinymce 1.5

2011-09-15 Thread Sotil Bertanzetti, Matteo
Hello,

 

I'm migrating from wicket 1.4.18 to wicket 1.5.0, but I need
wicketstuff/tinymce dependency, and I think it is not migrated to 1.5
yet; is there some prevision to do it?, or where can I find it?.

 

My dependency:

 

dependency

groupIdorg.wicketstuff/groupId

artifactIdtinymce/artifactId

  version1.4.18/version

/dependency

 

Thank you,

 

Matteo Sotil

 



RE: [Migration 1.5] Howto mount my css package resource?

2011-09-05 Thread Sotil Bertanzetti, Matteo
Hi,

Maybe

code
 @Override
 public void renderHead(IHeaderResponse response) {
 super.renderHead(response);
 response.renderCSSReference(new
PackageResourceReference(getClass(), res/css/screen.css));
 }
/code

without mountResource in application.init()

Matteo Sotil

-Mensaje original-
De: Mike Mander [mailto:wicket-m...@gmx.de] 
Enviado el: lunes, 05 de septiembre de 2011 14:21
Para: users@wicket.apache.org
Asunto: [Migration 1.5] Howto mount my css package resource?

Hi,

i couldn't find a working solution until now for the following usecase.

I would like to include a css file from my package structure in a page.
It sits in package-path/res/css.

I included the css in my page:

code
 @Override
 public void renderHead(IHeaderResponse response) {
 super.renderHead(response);
 response.renderCSSReference(CssHolder.SCREEN);
 }
/code

The css holder is a holder for my resourcereferences
code
public class CssHolder {
 public static final ResourceReference SCREEN = new 
SharedResourceReference(shop/screen.css);
 public static final ResourceReference PRINT = new 
SharedResourceReference(shop/print.css);
}
/code

I mounted the resource in application.init():
code
 mountResource(shop/screen.css, new 
PackageResourceReference(getClass(), res/css/screen.css));
 mountResource(shop/print.css, new 
PackageResourceReference(getClass(), res/css/print.css));
/code

But it is not referenced correctly. In html-output it is

link
rel=stylesheettype=text/csshref=wicket/resource/org.apache.wicket.A
pplication/shop/screen.css
view-source:http://localhost:8080/wicket/resource/org.apache.wicket.App
lication/shop/screen.css/

In my logs i can find some messages like these, but i don't have a glue
what i have to do now.
WARN  - ResourceReferenceRegistry  - Asked to auto-create a
ResourceReference, but
ResourceReferenceRegistry.createDefaultResourceReference() return null.
[scope: org.apache.wicket.Application; name: shop/screen.css; locale:
null; style: null; variation: null]

Can someone please point me the direction?
Thanks
Mike



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



RE: [Migration 1.5] Howto mount my css package resource?

2011-09-05 Thread Sotil Bertanzetti, Matteo
I don't know, I'm migratin to Wicket 1.5 too. 
I think PackageResourceReference and SharedResourceReference are two
different approaches, you can use one or other.

Matteo Sotil

-Mensaje original-
De: Mike Mander [mailto:wicket-m...@gmx.de] 
Enviado el: lunes, 05 de septiembre de 2011 15:16
Para: users@wicket.apache.org
Asunto: Re: [Migration 1.5] Howto mount my css package resource?

Am 05.09.2011 14:58, schrieb Sotil Bertanzetti, Matteo:
 Hi,

 Maybe

 code
   @Override
   public void renderHead(IHeaderResponse response) {
   super.renderHead(response);
   response.renderCSSReference(new
 PackageResourceReference(getClass(), res/css/screen.css));
   }
 /code

 without mountResource in application.init()

 Matteo Sotil

 -Mensaje original-
 De: Mike Mander [mailto:wicket-m...@gmx.de]
 Enviado el: lunes, 05 de septiembre de 2011 14:21
 Para: users@wicket.apache.org
 Asunto: [Migration 1.5] Howto mount my css package resource?

 Hi,

 i couldn't find a working solution until now for the following
usecase.

 I would like to include a css file from my package structure in a
page.
 It sits inpackage-path/res/css.

 I included the css in my page:

 code
   @Override
   public void renderHead(IHeaderResponse response) {
   super.renderHead(response);
   response.renderCSSReference(CssHolder.SCREEN);
   }
 /code

 The css holder is a holder for my resourcereferences
 code
 public class CssHolder {
   public static final ResourceReference SCREEN = new
 SharedResourceReference(shop/screen.css);
   public static final ResourceReference PRINT = new
 SharedResourceReference(shop/print.css);
 }
 /code

 I mounted the resource in application.init():
 code
   mountResource(shop/screen.css, new
 PackageResourceReference(getClass(), res/css/screen.css));
   mountResource(shop/print.css, new
 PackageResourceReference(getClass(), res/css/print.css));
 /code

 But it is not referenced correctly. In html-output it is

 link

rel=stylesheettype=text/csshref=wicket/resource/org.apache.wicket.A
 pplication/shop/screen.css

view-source:http://localhost:8080/wicket/resource/org.apache.wicket.App
 lication/shop/screen.css/

 In my logs i can find some messages like these, but i don't have a
glue
 what i have to do now.
 WARN  - ResourceReferenceRegistry  - Asked to auto-create a
 ResourceReference, but
 ResourceReferenceRegistry.createDefaultResourceReference() return
null.
 [scope: org.apache.wicket.Application; name: shop/screen.css; locale:
 null; style: null; variation: null]

 Can someone please point me the direction?
 Thanks
 Mike



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


Thanks Matteo,

i did it that way.

 App.init
 mountResource(shop/screen.css, new 
PackageResourceReference(getClass(), res/css/screen.css));
 Page.renderHead
 response.renderCSSReference(shop/screen.css, screen);

But is that still using the resource sharing behavior? Is 
SharedResourceReference useless now?

Thanks
Mike

-
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



Reference to css outside classpath on wicket 1.5RC7

2011-09-02 Thread Sotil Bertanzetti, Matteo
Hello.
 
I'm tying to migrate a project from wicket 1.4.18 to 1.5rc7.
I have a problem trying to add css and javascript links to my html code;
css and javascript files are located outside classpath (outside
WEB-INF). 
 
 
In wicket 1.4.18 I do:
 
add(CSSPackageResource.getHeaderContribution(css/main.css));
 
and in html appears a relative css link like this:
 
link rel=stylesheet type=text/css href=../../css/main.css
view-source:http://10.128.28.213:8000/plash/css/main.css  /
 
wich is correct.
 
 
I want to do the same in wicket 1.5. I try
 
@Override
public void renderHead(final IHeaderResponse aResponse) {
super.renderHead(aResponse);
 
aResponse.renderCSSReference(RequestCycle.get().getUrlRenderer().renderC
ontextRelativeUrl(css/main.css));
}
 
It works in some url, but in others it puts too much .. to the url; in
the same example I wrote before, now writes:
 
link rel=stylesheet type=text/css
href=../../../css/main.css view-source:http://localhost/css/main.css
 /
 
Debugging I see that
RequestCycle.get().getUrlRenderer().renderContextRelativeUrl(css/main.c
ss)returns the correct url, but function renderCSSReference adds more
.. to the url. More precisely, it's in line 231 of
org.apache.wicket.request.UrlRenderer, called from renderCSSReference,
where extra .. are added.
 
I'm using:
 
Wicket 1.5RC7
Windows xp
Jdk 1.5
Weblogic 9.2
 
Please help.
 
Matteo Sotil


RE: Reference to css outside classpath on wicket 1.5RC7

2011-09-02 Thread Sotil Bertanzetti, Matteo
Thank you, it worked.

I'll try to create a quickstart...

Matteo Sotil

-Mensaje original-
De: Martin Grigorov [mailto:mgrigo...@apache.org] 
Enviado el: viernes, 02 de septiembre de 2011 10:37
Para: users@wicket.apache.org
Asunto: Re: Reference to css outside classpath on wicket 1.5RC7

Quick solution for your case:
Implement a new ResourceReference which returns
org.apache.wicket.request.resource.ContextRelativeResource in its
#getResource().
I think we should add such ResourceReference in wicket-core.

I am not sure at the moment what's the problem with the wrongly
produced Url with your approach.
Please create a quickstart and attach it to a ticket.

On Fri, Sep 2, 2011 at 10:27 AM, Sotil Bertanzetti, Matteo
mso...@gencat.cat wrote:
 Hello.

 I'm tying to migrate a project from wicket 1.4.18 to 1.5rc7.
 I have a problem trying to add css and javascript links to my html code;
 css and javascript files are located outside classpath (outside
 WEB-INF).


 In wicket 1.4.18 I do:

 add(CSSPackageResource.getHeaderContribution(css/main.css));

 and in html appears a relative css link like this:

        link rel=stylesheet type=text/css href=../../css/main.css
 view-source:http://10.128.28.213:8000/plash/css/main.css  /

 wich is correct.


 I want to do the same in wicket 1.5. I try

    @Override
    public void renderHead(final IHeaderResponse aResponse) {
        super.renderHead(aResponse);

 aResponse.renderCSSReference(RequestCycle.get().getUrlRenderer().renderC
 ontextRelativeUrl(css/main.css));
    }

 It works in some url, but in others it puts too much .. to the url; in
 the same example I wrote before, now writes:

        link rel=stylesheet type=text/css
 href=../../../css/main.css view-source:http://localhost/css/main.css
  /

 Debugging I see that
 RequestCycle.get().getUrlRenderer().renderContextRelativeUrl(css/main.c
 ss)returns the correct url, but function renderCSSReference adds more
 .. to the url. More precisely, it's in line 231 of
 org.apache.wicket.request.UrlRenderer, called from renderCSSReference,
 where extra .. are added.

 I'm using:

 Wicket 1.5RC7
 Windows xp
 Jdk 1.5
 Weblogic 9.2

 Please help.

 Matteo Sotil




-- 
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