Re: How to set the value of a Drop Down Choice

2010-07-28 Thread vov

Hi
There are mistake in your code: 
programList.setDefaultModelObject(stringObjectModel); 
...may be you  want to call programList.setDefaultModel(stringObjectModel); 
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-set-the-value-of-a-Drop-Down-Choice-tp2303973p2304514.html
Sent from the Wicket - User 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



Integrating Wicket with Dojo/Jquery/Dwr/Ext Js

2010-07-28 Thread ganeshgadde

Hi I am new to wicket.I want to integrate Wicket frame work with UI
technologies like Dojo/Jquery/Ext Js/Dwr.I am using portlets too.So which
one is the best choice whether to use JQuery/Dojo/Ext Js...which has good
support inside Wicket.Can't get much more examples in the internet.Does
wicket support Dwr...Where will be the API for Jquery/Ext Js while using
with Wicket FrameWork.Can anyone please suggest me regarding this.

-Cheers,
Ganesh Gadde
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Integrating-Wicket-with-Dojo-Jquery-Dwr-Ext-Js-tp2304474p2304474.html
Sent from the Wicket - User mailing list archive at Nabble.com.

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



AjaxPagingNavigator, when click some page link after more then 5 times , there will be on one page : 1

2010-07-28 Thread wu

Any one has the problem?
thanks a lot,

Wu

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/AjaxPagingNavigator-when-click-some-page-link-after-more-then-5-times-there-will-be-on-one-page-1-tp2304595p2304595.html
Sent from the Wicket - User 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: Forms in a base class

2010-07-28 Thread Wolfgang


Jeremy Thomerson-5 wrote:
 
 you need to be adding the components to the form.  you're currently adding
 them to the page itself.  the component hierarchy is thus broken.  on your
 child page, either do getForm().add(foo) [you'll need to expose a getForm
 method that returns the form from the parent page] or else on your parent
 page (BaseEditPage), setTransparentResolver(true) on the form and add the
 form children to the page then.
 

It's working but is far from satisfying... It breaks the encapsulation of
the sub-classes (and those of the sub-sub-classes) because they have to know
they can't use add() anymore but have to use some addToForm(). Once you have
a form somewhere in the hierarchy, trouble begins.

Also, you cannot declare the form as a transparent resolver anymore which
means that every component, not only form components, need to use that
special method. I'm currently trying to find a way to avoid changing all the
hundreds of add() calls in my project...
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Forms-in-a-base-class-tp1891692p2304644.html
Sent from the Wicket - User 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



WicketTester, navigate into tabs

2010-07-28 Thread loic

Hello,
i 'm trying to write unit tests with WicketTester (wicket-test).

I have a little problem : i'm trying to access to components into a
tabbedpanel.

My page looks like this : 

html
h2/h2
div wicket:id=tabbedPanel class=tabpanel/
/html

In this page, i have several tabs. In the first tab, i have a form. I would
like to access to this form from my test.

The first tab looks like this :

html
  wicket:panel  
  form wicket:id=form
  blabla
  /form
  /wicket:panel
/html

I've tried to write a test like :

tester.startPage(new MyPage());
tester.assertRenderedPage(MyPage.class);
FormTester formTester = tester.newFormTester(tabbedPanel:form);

No surprise, I get an error,  'tabbedPanel:form' does not exists for page
MyPage 

Do you know how i could make this kind of test?

Thanks, regards 

Loic
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/WicketTester-navigate-into-tabs-tp2304649p2304649.html
Sent from the Wicket - User 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: WicketTester, navigate into tabs

2010-07-28 Thread Martin Grigorov
I guess the path should include the tab id, i.e. something like:
tabbedPanel:1:form. Assuming that 1 is the id of the first tab. You'll
need to check the actual value.

On Wed, Jul 28, 2010 at 10:57 AM, loic loic.desco...@gmail.com wrote:


 Hello,
 i 'm trying to write unit tests with WicketTester (wicket-test).

 I have a little problem : i'm trying to access to components into a
 tabbedpanel.

 My page looks like this :

 html
h2/h2
div wicket:id=tabbedPanel class=tabpanel/
 /html

 In this page, i have several tabs. In the first tab, i have a form. I would
 like to access to this form from my test.

 The first tab looks like this :

 html
  wicket:panel
  form wicket:id=form
  blabla
  /form
  /wicket:panel
 /html

 I've tried to write a test like :

 tester.startPage(new MyPage());
 tester.assertRenderedPage(MyPage.class);
 FormTester formTester = tester.newFormTester(tabbedPanel:form);

 No surprise, I get an error,  'tabbedPanel:form' does not exists for page
 MyPage 

 Do you know how i could make this kind of test?

 Thanks, regards

 Loic
 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/WicketTester-navigate-into-tabs-tp2304649p2304649.html
 Sent from the Wicket - User 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: WicketTester, navigate into tabs

2010-07-28 Thread loic

Thanks i try this!
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/WicketTester-navigate-into-tabs-tp2304649p2304700.html
Sent from the Wicket - User mailing list archive at Nabble.com.

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



How can header contribution of Wicket js files be controlled?

2010-07-28 Thread Kjell Arne Brødreskift
I have written a little more fine-grained solution to optimize static
resources based on fifty-five-wicket and wicket-merged-resources.
But wicket-event.js and wicket-ajax.js still get added to page head. How can
I prevent that?

Regards,

kjarbr


Re: WicketTester, navigate into tabs

2010-07-28 Thread Antonio Mauriello
use wicketTester.debugComponentTrees(); to dumps the component trees
during the junit test

On Wed, Jul 28, 2010 at 9:57 AM, loic loic.desco...@gmail.com wrote:

 Hello,
 i 'm trying to write unit tests with WicketTester (wicket-test).

 I have a little problem : i'm trying to access to components into a
 tabbedpanel.

 My page looks like this :

 html
        h2/h2
        div wicket:id=tabbedPanel class=tabpanel/
 /html

 In this page, i have several tabs. In the first tab, i have a form. I would
 like to access to this form from my test.

 The first tab looks like this :

 html
  wicket:panel
  form wicket:id=form
  blabla
  /form
  /wicket:panel
 /html

 I've tried to write a test like :

 tester.startPage(new MyPage());
 tester.assertRenderedPage(MyPage.class);
 FormTester formTester = tester.newFormTester(tabbedPanel:form);

 No surprise, I get an error,  'tabbedPanel:form' does not exists for page
 MyPage 

 Do you know how i could make this kind of test?

 Thanks, regards

 Loic
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/WicketTester-navigate-into-tabs-tp2304649p2304649.html
 Sent from the Wicket - User 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: Using Apache mod rewrite to fix home page parameter problem

2010-07-28 Thread fatefree

I use a crypted url strategy for security on non bookmarkable page links. If
you have a standard bookmarkable page, wicket will generate a REST style
urls like /page/id/5, which will not be encrypted. However there seems to be
an issue where if you try to mount the home page, it is generated as
/page?id=1, which then gets encrypted.

However instead of using apache mod rewrite, I found that if you set the
index page to forward the request to another page using
setResponsePage(StoriesPage.class), and do not redirect, the issue seems to
be resolved.
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Using-Apache-mod-rewrite-to-fix-home-page-parameter-problem-tp2303737p2304786.html
Sent from the Wicket - User 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: WicketTester, navigate into tabs

2010-07-28 Thread loic

I'm not sure to understand how wicketTester.debugComponentTrees() works, it
does not output anything in the console.


-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/WicketTester-navigate-into-tabs-tp2304649p2304914.html
Sent from the Wicket - User 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: WicketTester, navigate into tabs

2010-07-28 Thread Antonio Mauriello
well in your case it should be tester.debugComponentTrees();

put it at the end of the test since your tester object will contain
all the elements of the page.

Does your console show the other junit test messages?



On Wed, Jul 28, 2010 at 2:09 PM, loic loic.desco...@gmail.com wrote:

 I'm not sure to understand how wicketTester.debugComponentTrees() works, it
 does not output anything in the console.


 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/WicketTester-navigate-into-tabs-tp2304649p2304914.html
 Sent from the Wicket - User 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: IVisitorT extends Component and IFormModelUpdateListener not extending Component

2010-07-28 Thread Joseph Pachod

Johan Compagner wrote:

you can use:

public final S extends Component Object visitChildren(final Class? 
clazz,
final IVisitorS visitor)


then you have to cast yes, but you can cast safely.
  

Hi

Yet, why not having an IComponent interface that 
IFormModelUpdateListener (and lot of other I guess) would extend ?


And in fact it's quite the same for FormComponent. It would be handy to 
have an IFormComponent which could be used there and there.


For example in the ListEditor's igor did, which really is a 
FormComponent but has to extend Repeater.


++

--
Joseph Pachod
IT

THOMAS DAILY GmbH
Adlerstraße 19
79098 Freiburg
Deutschland
T  + 49 761 3 85 59 506
F  + 49 761 3 85 59 550
E  joseph.pac...@thomas-daily.de
www.thomas-daily.de

Geschäftsführer/Managing Directors:
Wendy Thomas, Susanne Larbig
Handelsregister Freiburg i.Br., HRB 3947

Registrieren Sie sich unter https://www.thomas-daily.de/user/sign-in für die TD 
Morning News, eine kostenlose Auswahl aktueller Themen aus TD Premium, morgens 
ab 9:15 in Ihrer Mailbox.

Aktuelle Presseinformationen für die TD Morning News und TD Premium nimmt 
unsere Redaktion unter redakt...@thomas-daily.de entgegen.
Redaktionsschluss für die TD Morning News ist täglich um 8:45.

Register free of charge at https://www.thomas-daily.de/user/sign-in to have the 
TD Morning News, a selection of the latest topics from TD Premium, delivered to 
your mailbox from 9:15 every morning.

Our editorial department receives the latest press releases for the TD Morning News and TD Premium at redakt...@thomas-daily.de. The editorial deadline for the TD Morning News is 8.45am daily. 



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



Re: IVisitorT extends Component and IFormModelUpdateListener not extending Component

2010-07-28 Thread Johan Compagner
having IComponent for me means that there are more then 1 Component..
(there are multiply implementations possible then)
So then we have to use IComponent everwhere instead of Component
That means again that it will be a quite large interface, and do we
also then get IMarkupContainer? (and so on and so on)

Why isnt there a javax.swing.IJComponent ?

If this is really a problem then why not drop the  extends Component
from the
public final S extends Component Object visitChildren
and
public static interface IVisitorT extends Component

Then you can give anything you want to it.

Problem is that you then have less type checking there. Because that
would make IVisitor completely generic



On Wed, Jul 28, 2010 at 15:27, Joseph Pachod j...@thomas-daily.de wrote:
 Johan Compagner wrote:

 you can use:

        public final S extends Component Object visitChildren(final
 Class? clazz,
                final IVisitorS visitor)


 then you have to cast yes, but you can cast safely.


 Hi

 Yet, why not having an IComponent interface that IFormModelUpdateListener
 (and lot of other I guess) would extend ?

 And in fact it's quite the same for FormComponent. It would be handy to have
 an IFormComponent which could be used there and there.

 For example in the ListEditor's igor did, which really is a FormComponent
 but has to extend Repeater.

 ++

 --
 Joseph Pachod
 IT

 THOMAS DAILY GmbH
 Adlerstraße 19
 79098 Freiburg
 Deutschland
 T  + 49 761 3 85 59 506
 F  + 49 761 3 85 59 550
 E  joseph.pac...@thomas-daily.de
 www.thomas-daily.de

 Geschäftsführer/Managing Directors:
 Wendy Thomas, Susanne Larbig
 Handelsregister Freiburg i.Br., HRB 3947

 Registrieren Sie sich unter https://www.thomas-daily.de/user/sign-in für die
 TD Morning News, eine kostenlose Auswahl aktueller Themen aus TD Premium,
 morgens ab 9:15 in Ihrer Mailbox.

 Aktuelle Presseinformationen für die TD Morning News und TD Premium nimmt
 unsere Redaktion unter redakt...@thomas-daily.de entgegen.
 Redaktionsschluss für die TD Morning News ist täglich um 8:45.

 Register free of charge at https://www.thomas-daily.de/user/sign-in to have
 the TD Morning News, a selection of the latest topics from TD Premium,
 delivered to your mailbox from 9:15 every morning.

 Our editorial department receives the latest press releases for the TD
 Morning News and TD Premium at redakt...@thomas-daily.de. The editorial
 deadline for the TD Morning News is 8.45am daily.

 -
 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: IVisitorT extends Component and IFormModelUpdateListener not extending Component

2010-07-28 Thread Martin Grigorov
In 1.5.x (trunk) there
is org.apache.wicket.request.component.IRequestableComponent
It is implemented by :
- org.apache.wicket.request.component.IRequestableComponent
- org.apache.wicket.request.component.IRequestablePage
- org.apache.wicket.MockComponent

Not sure whether it fits the requested enhancement
for IFormModelUpdateListener


On Wed, Jul 28, 2010 at 3:35 PM, Johan Compagner jcompag...@gmail.comwrote:

 having IComponent for me means that there are more then 1 Component..
 (there are multiply implementations possible then)
 So then we have to use IComponent everwhere instead of Component
 That means again that it will be a quite large interface, and do we
 also then get IMarkupContainer? (and so on and so on)

 Why isnt there a javax.swing.IJComponent ?

 If this is really a problem then why not drop the  extends Component
 from the
 public final S extends Component Object visitChildren
 and
 public static interface IVisitorT extends Component

 Then you can give anything you want to it.

 Problem is that you then have less type checking there. Because that
 would make IVisitor completely generic



 On Wed, Jul 28, 2010 at 15:27, Joseph Pachod j...@thomas-daily.de wrote:
  Johan Compagner wrote:
 
  you can use:
 
 public final S extends Component Object visitChildren(final
  Class? clazz,
 final IVisitorS visitor)
 
 
  then you have to cast yes, but you can cast safely.
 
 
  Hi
 
  Yet, why not having an IComponent interface that IFormModelUpdateListener
  (and lot of other I guess) would extend ?
 
  And in fact it's quite the same for FormComponent. It would be handy to
 have
  an IFormComponent which could be used there and there.
 
  For example in the ListEditor's igor did, which really is a FormComponent
  but has to extend Repeater.
 
  ++
 
  --
  Joseph Pachod
  IT
 
  THOMAS DAILY GmbH
  Adlerstraße 19
  79098 Freiburg
  Deutschland
  T  + 49 761 3 85 59 506
  F  + 49 761 3 85 59 550
  E  joseph.pac...@thomas-daily.de
  www.thomas-daily.de
 
  Geschäftsführer/Managing Directors:
  Wendy Thomas, Susanne Larbig
  Handelsregister Freiburg i.Br., HRB 3947
 
  Registrieren Sie sich unter https://www.thomas-daily.de/user/sign-in für
 die
  TD Morning News, eine kostenlose Auswahl aktueller Themen aus TD Premium,
  morgens ab 9:15 in Ihrer Mailbox.
 
  Aktuelle Presseinformationen für die TD Morning News und TD Premium nimmt
  unsere Redaktion unter redakt...@thomas-daily.de entgegen.
  Redaktionsschluss für die TD Morning News ist täglich um 8:45.
 
  Register free of charge at https://www.thomas-daily.de/user/sign-in to
 have
  the TD Morning News, a selection of the latest topics from TD Premium,
  delivered to your mailbox from 9:15 every morning.
 
  Our editorial department receives the latest press releases for the TD
  Morning News and TD Premium at redakt...@thomas-daily.de. The editorial
  deadline for the TD Morning News is 8.45am daily.
 
  -
  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: Transparent FB auth from cookie?

2010-07-28 Thread Don Ferguson
Do you have a base page that the others inherit from?  That would be  
the place to do it...


On Jul 27, 2010, at 9:02 PM, Anh wrote:


Hi,

Having trouble with how this would best be done in Wicket:

I have a Facebook OAuth token, which I use to request data from FB API
and then assemble a User object.

What I'd like to do is store this token in a Cookie, and whenever the
user requests any page in my Wicket app, I'd like to reassemble the
User object and put it in the WicketSession first.

This works fine if I send a user to a login page that looks up the
token, etc, but I'd rather this be transparent so that any page could
be requested, without smearing this logic into every page.


Is there a clean way to do this?


Thanks!

-
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: WicketTester, navigate into tabs

2010-07-28 Thread loic

If i write 

tester.startPage(new MyPage()); 
tester.assertRenderedPage(MyPage.class); 
tester.debugComponentTrees();

I juste have this in the console output : 

log4j:WARN No appenders could be found for logger
(org.apache.wicket.protocol.http.pagestore.FileChannelPool).
log4j:WARN Please initialize the log4j system properly.

*** WARNING: Wicket is running in DEVELOPMENT mode.  ***
***   ^^^***
*** Do NOT deploy to your live server(s) without changing this.  ***
*** See Application#getConfigurationType() for more information. ***


maybe the problem comes from log4j, maybe i must define the appender?

Regards

Loic
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/WicketTester-navigate-into-tabs-tp2304649p2305026.html
Sent from the Wicket - User 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: WicketTester, navigate into tabs

2010-07-28 Thread Martin Grigorov
Or this output is in junit's output files ...

On Wed, Jul 28, 2010 at 4:05 PM, loic loic.desco...@gmail.com wrote:


 If i write

 tester.startPage(new MyPage());
 tester.assertRenderedPage(MyPage.class);
 tester.debugComponentTrees();

 I juste have this in the console output :

 log4j:WARN No appenders could be found for logger
 (org.apache.wicket.protocol.http.pagestore.FileChannelPool).
 log4j:WARN Please initialize the log4j system properly.
 
 *** WARNING: Wicket is running in DEVELOPMENT mode.  ***
 ***   ^^^***
 *** Do NOT deploy to your live server(s) without changing this.  ***
 *** See Application#getConfigurationType() for more information. ***
 

 maybe the problem comes from log4j, maybe i must define the appender?

 Regards

 Loic
 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/WicketTester-navigate-into-tabs-tp2304649p2305026.html
 Sent from the Wicket - User 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: WicketTester, navigate into tabs

2010-07-28 Thread loic

I've added a log4j.xml file in my src/test/resources folder, it works now,
thanks a lot
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/WicketTester-navigate-into-tabs-tp2304649p2305094.html
Sent from the Wicket - User 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



Lightweight session management

2010-07-28 Thread M. Hammer

Hello,

in my application I would like to have user sessions for storing some  
data (mostly related to tracking which pages a user has visited), but  
otherwise stay stateless as long as possible to keep memory  
consumption low. Is there any provision in Wicket for such a scenario?  
I could run two session managements in parallel, but I'd rather reuse  
Wicket's facilities.


On a related note, my back-of-the-envelope-calculations somehow  
suggest that I should not bother anyway, as I'd run out of CPU time  
about the same time I run out of memory. Can someone share some  
experience? My app is rather lean, but runs a CMS that is similar to  
Brix, so it is made up from many components, but only some AJAX and  
form elements are actually stateful.


Thank you very much,
  Moritz


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



Re: Transparent FB auth from cookie?

2010-07-28 Thread Anh
Yes, though this didn't see right to me.
I can certainly try this though.

Thanks


On Wed, Jul 28, 2010 at 7:02 AM, Don Ferguson don.fergu...@gmail.com wrote:
 Do you have a base page that the others inherit from?  That would be the
 place to do it...

 On Jul 27, 2010, at 9:02 PM, Anh wrote:

 Hi,

 Having trouble with how this would best be done in Wicket:

 I have a Facebook OAuth token, which I use to request data from FB API
 and then assemble a User object.

 What I'd like to do is store this token in a Cookie, and whenever the
 user requests any page in my Wicket app, I'd like to reassemble the
 User object and put it in the WicketSession first.

 This works fine if I send a user to a login page that looks up the
 token, etc, but I'd rather this be transparent so that any page could
 be requested, without smearing this logic into every page.


 Is there a clean way to do this?


 Thanks!

 -
 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



Closing of meta tags

2010-07-28 Thread Gianni
I'm controlling the content of my meta tags with an AttributeAppender and in 
my markup they are closed with /

meta wicket:id=metaKeywords name=keywords content= /
meta wicket:id=metaDescription name=description content= /

WebComponent keywords = new WebComponent(metaKeywords);
StringResourceModel keyModel = new 
StringResourceModel(meta.standard-keywords, this, new ModelPage(this));
keywords.add(new AttributeAppender(content, keyModel,  ));
add(keywords);

On output the tags are getting closed with /meta
meta name=keywords content=my keywords /meta

Is there any way to prevent the separate closing tag and just keep the / ?
-Gianni
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Integrating Wicket with Dojo/Jquery/Dwr/Ext Js

2010-07-28 Thread Igor Vaynberg
search the archives for jquery, etc.

-igor

On Tue, Jul 27, 2010 at 10:59 PM, ganeshgadde ganeshga...@yahoo.co.in wrote:

 Hi I am new to wicket.I want to integrate Wicket frame work with UI
 technologies like Dojo/Jquery/Ext Js/Dwr.I am using portlets too.So which
 one is the best choice whether to use JQuery/Dojo/Ext Js...which has good
 support inside Wicket.Can't get much more examples in the internet.Does
 wicket support Dwr...Where will be the API for Jquery/Ext Js while using
 with Wicket FrameWork.Can anyone please suggest me regarding this.

 -Cheers,
 Ganesh Gadde
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Integrating-Wicket-with-Dojo-Jquery-Dwr-Ext-Js-tp2304474p2304474.html
 Sent from the Wicket - User 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: IVisitorT extends Component and IFormModelUpdateListener not extending Component

2010-07-28 Thread Joseph Pachod

Johan Compagner wrote:

having IComponent for me means that there are more then 1 Component..
(there are multiply implementations possible then)
So then we have to use IComponent everwhere instead of Component
That means again that it will be a quite large interface, and do we
also then get IMarkupContainer? (and so on and so on)

Why isnt there a javax.swing.IJComponent ?

If this is really a problem then why not drop the  extends Component
from the
public final S extends Component Object visitChildren
and
public static interface IVisitorT extends Component

Then you can give anything you want to it.

Problem is that you then have less type checking there. Because that
would make IVisitor completely generic
  

Sure, one has to go for the right level of abstraction

I hit this IFormModelUpdateListener not being a component issue at 
almost the same time as I was needing the ListEditor (the one from igor 
= cf http://bit.ly/aSY3zl) to be a FormComponent, which is a pain to do 
because of ListEditor extending RepeatingView.


As such, having this 2 notions through some interfaces would have 
resolved by 2 issues of the time, hence this mail ;)


On top of that, IFormModelUpdateListener applies only to Component, but 
currently could be applied anywhere. Once again an interface looked like 
a good solution to tackle that.


For the MarkupContainer question (and the bigger picture), well, indeed 
it looks like the logical way to go would be to mimic the current core 
elements of wicket's components hierarchy with interfaces.


But then, the worst interface would be the one for Component, which 
based on the 1.5 Component class would at least have 103 methods (I 
took  the public ones from Component not being already part of some 
interface). MarkupContainer, on top of that and with the same rough 
methodology, would only add 22 methods. For sure, other methods, used 
internally, would have to be put as well in some interfaces I guess. On 
the other hand, some methods could be grouped on distinct interfaces, 
like the ones about feedback messages.


Overall, I feel like it would be quite some work to do but that it would 
pay off. Many interface/component could be even more open for 
customization and the like, given ever more options to the developers.


Yet it doesn't look utter crazy neither, so the overall return on 
investment is unclear. Furthermore, you and other wicket core committers 
obviously know better, so, no issue if this idea is dropped.


++


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



Re: IVisitorT extends Component and IFormModelUpdateListener not extending Component

2010-07-28 Thread Igor Vaynberg
no, irequestablecomponent is only a micro-part of what component is
and will not help in this usecase

-igor

On Wed, Jul 28, 2010 at 6:41 AM, Martin Grigorov mgrigo...@apache.org wrote:
 In 1.5.x (trunk) there
 is org.apache.wicket.request.component.IRequestableComponent
 It is implemented by :
 - org.apache.wicket.request.component.IRequestableComponent
 - org.apache.wicket.request.component.IRequestablePage
 - org.apache.wicket.MockComponent

 Not sure whether it fits the requested enhancement
 for IFormModelUpdateListener


 On Wed, Jul 28, 2010 at 3:35 PM, Johan Compagner jcompag...@gmail.comwrote:

 having IComponent for me means that there are more then 1 Component..
 (there are multiply implementations possible then)
 So then we have to use IComponent everwhere instead of Component
 That means again that it will be a quite large interface, and do we
 also then get IMarkupContainer? (and so on and so on)

 Why isnt there a javax.swing.IJComponent ?

 If this is really a problem then why not drop the  extends Component
 from the
 public final S extends Component Object visitChildren
 and
 public static interface IVisitorT extends Component

 Then you can give anything you want to it.

 Problem is that you then have less type checking there. Because that
 would make IVisitor completely generic



 On Wed, Jul 28, 2010 at 15:27, Joseph Pachod j...@thomas-daily.de wrote:
  Johan Compagner wrote:
 
  you can use:
 
         public final S extends Component Object visitChildren(final
  Class? clazz,
                 final IVisitorS visitor)
 
 
  then you have to cast yes, but you can cast safely.
 
 
  Hi
 
  Yet, why not having an IComponent interface that IFormModelUpdateListener
  (and lot of other I guess) would extend ?
 
  And in fact it's quite the same for FormComponent. It would be handy to
 have
  an IFormComponent which could be used there and there.
 
  For example in the ListEditor's igor did, which really is a FormComponent
  but has to extend Repeater.
 
  ++
 
  --
  Joseph Pachod
  IT
 
  THOMAS DAILY GmbH
  Adlerstraße 19
  79098 Freiburg
  Deutschland
  T  + 49 761 3 85 59 506
  F  + 49 761 3 85 59 550
  E  joseph.pac...@thomas-daily.de
  www.thomas-daily.de
 
  Geschäftsführer/Managing Directors:
  Wendy Thomas, Susanne Larbig
  Handelsregister Freiburg i.Br., HRB 3947
 
  Registrieren Sie sich unter https://www.thomas-daily.de/user/sign-in für
 die
  TD Morning News, eine kostenlose Auswahl aktueller Themen aus TD Premium,
  morgens ab 9:15 in Ihrer Mailbox.
 
  Aktuelle Presseinformationen für die TD Morning News und TD Premium nimmt
  unsere Redaktion unter redakt...@thomas-daily.de entgegen.
  Redaktionsschluss für die TD Morning News ist täglich um 8:45.
 
  Register free of charge at https://www.thomas-daily.de/user/sign-in to
 have
  the TD Morning News, a selection of the latest topics from TD Premium,
  delivered to your mailbox from 9:15 every morning.
 
  Our editorial department receives the latest press releases for the TD
  Morning News and TD Premium at redakt...@thomas-daily.de. The editorial
  deadline for the TD Morning News is 8.45am daily.
 
  -
  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: IVisitorT extends Component and IFormModelUpdateListener not extending Component

2010-07-28 Thread Igor Vaynberg
On Wed, Jul 28, 2010 at 8:14 AM, Joseph Pachod j...@thomas-daily.de wrote:

 On the other hand, some
 methods could be grouped on distinct interfaces, like the ones about
 feedback messages.

that was the idea for a while. build up all the tiny interfaces and
IComponent would mostly extend a bunch of them rather then directly
specifying methods. however, no one has had time to implement the
change and see if it would work because it would involve a tremendous
amount of time.

-igor



 Overall, I feel like it would be quite some work to do but that it would pay
 off. Many interface/component could be even more open for customization and
 the like, given ever more options to the developers.

 Yet it doesn't look utter crazy neither, so the overall return on investment
 is unclear. Furthermore, you and other wicket core committers obviously know
 better, so, no issue if this idea is dropped.

 ++


 -
 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: Integrating Wicket with Dojo/Jquery/Dwr/Ext Js

2010-07-28 Thread Arjun Dhar

This is more a question than an opinion.

Wicket is a View first framework, and also has the cleanest separation
between Markups and Code that I have seen so far.

I think What Scripting technology one uses should anyway never be tightly
coupled with whats on the server. I keep seeing questions on Mobile device,
JQuery etc. In design people should just focus on bare minimal to connect
the two and avoid strong coupling. (just enough to trigger events and pass
data)

So in a way questions specific to How wicket supports mobile devices, or
XYZ Scripting framework in the markup are not really relevant.

Would that be a fair way of thinking? ..or am over philosophizing this? :)
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Integrating-Wicket-with-Dojo-Jquery-Dwr-Ext-Js-tp2304474p2305142.html
Sent from the Wicket - User 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: Lightweight session management

2010-07-28 Thread Igor Vaynberg
load test it and see if it becomes a problem before spending any
cycles on a solution.

-igor

On Wed, Jul 28, 2010 at 7:54 AM, M. Hammer nab...@hammer-tour.com wrote:
 Hello,

 in my application I would like to have user sessions for storing some data
 (mostly related to tracking which pages a user has visited), but otherwise
 stay stateless as long as possible to keep memory consumption low. Is there
 any provision in Wicket for such a scenario? I could run two session
 managements in parallel, but I'd rather reuse Wicket's facilities.

 On a related note, my back-of-the-envelope-calculations somehow suggest that
 I should not bother anyway, as I'd run out of CPU time about the same time I
 run out of memory. Can someone share some experience? My app is rather lean,
 but runs a CMS that is similar to Brix, so it is made up from many
 components, but only some AJAX and form elements are actually stateful.

 Thank you very much,
  Moritz


 -
 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: Transparent FB auth from cookie?

2010-07-28 Thread Igor Vaynberg
RequestCycle#onBeginRequest()

-igor

On Tue, Jul 27, 2010 at 9:02 PM, Anh 7za...@gmail.com wrote:
 Hi,

 Having trouble with how this would best be done in Wicket:

 I have a Facebook OAuth token, which I use to request data from FB API
 and then assemble a User object.

 What I'd like to do is store this token in a Cookie, and whenever the
 user requests any page in my Wicket app, I'd like to reassemble the
 User object and put it in the WicketSession first.

 This works fine if I send a user to a login page that looks up the
 token, etc, but I'd rather this be transparent so that any page could
 be requested, without smearing this logic into every page.


 Is there a clean way to do this?


 Thanks!

 -
 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: Closing of meta tags

2010-07-28 Thread Igor Vaynberg
is it causing you harm?

-igor

On Wed, Jul 28, 2010 at 8:09 AM, Gianni gdoe6...@yahoo.it wrote:
 I'm controlling the content of my meta tags with an AttributeAppender and 
 in my markup they are closed with /

 meta wicket:id=metaKeywords name=keywords content= /
 meta wicket:id=metaDescription name=description content= /

 WebComponent keywords = new WebComponent(metaKeywords);
 StringResourceModel keyModel = new 
 StringResourceModel(meta.standard-keywords, this, new ModelPage(this));
 keywords.add(new AttributeAppender(content, keyModel,  ));
 add(keywords);

 On output the tags are getting closed with /meta
 meta name=keywords content=my keywords /meta

 Is there any way to prevent the separate closing tag and just keep the / ?
 -Gianni
 -
 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: Closing of meta tags

2010-07-28 Thread Arjun Dhar

For some reason I'm getting what you want:

titlePage 2/title
!-- The following injected dynamically --
meta name=keywords content=This is picked from
classpath:Page2.properties/


My wicket.version1.4.8/wicket.version
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Closing-of-meta-tags-tp2305127p2305215.html
Sent from the Wicket - User 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: Lightweight session management

2010-07-28 Thread nino martinez wael
Yeah it's prone to fall under YAGNI and if not use time on it when it
becomes a problem..

2010/7/28 Igor Vaynberg igor.vaynb...@gmail.com

 load test it and see if it becomes a problem before spending any
 cycles on a solution.

 -igor

 On Wed, Jul 28, 2010 at 7:54 AM, M. Hammer nab...@hammer-tour.com wrote:
  Hello,
 
  in my application I would like to have user sessions for storing some
 data
  (mostly related to tracking which pages a user has visited), but
 otherwise
  stay stateless as long as possible to keep memory consumption low. Is
 there
  any provision in Wicket for such a scenario? I could run two session
  managements in parallel, but I'd rather reuse Wicket's facilities.
 
  On a related note, my back-of-the-envelope-calculations somehow suggest
 that
  I should not bother anyway, as I'd run out of CPU time about the same
 time I
  run out of memory. Can someone share some experience? My app is rather
 lean,
  but runs a CMS that is similar to Brix, so it is made up from many
  components, but only some AJAX and form elements are actually stateful.
 
  Thank you very much,
   Moritz
 
 
  -
  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: Closing of meta tags

2010-07-28 Thread Gianni
I get an ugly error message in the Safari Web Inspector saying Unmatched 
/meta encountered. Ignoring tag

Not sure why it flags it up as an error as I'm using the XHTML 1.0 Transitional 
DTD and the closing tag must be valid, I'd just rather use the shorthand for 
neatness.


On 28/lug/2010, at 17.26, Igor Vaynberg wrote:

 is it causing you harm?
 
 -igor
 
 On Wed, Jul 28, 2010 at 8:09 AM, Gianni gdoe6...@yahoo.it wrote:
 I'm controlling the content of my meta tags with an AttributeAppender and 
 in my markup they are closed with /
 
 meta wicket:id=metaKeywords name=keywords content= /
 meta wicket:id=metaDescription name=description content= /
 
 WebComponent keywords = new WebComponent(metaKeywords);
 StringResourceModel keyModel = new 
 StringResourceModel(meta.standard-keywords, this, new ModelPage(this));
 keywords.add(new AttributeAppender(content, keyModel,  ));
 add(keywords);
 
 On output the tags are getting closed with /meta
 meta name=keywords content=my keywords /meta
 
 Is there any way to prevent the separate closing tag and just keep the / ?
 -Gianni
 -
 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: Using Apache mod rewrite to fix home page parameter problem

2010-07-28 Thread avrahamr

So there is were I don't follow.
You use crypted url strategy in order to have non bookmarkable links.
Now you want the homemage to have bookmarkable links.
So why not to stop using crypted url strategy for the homepage, you can use
it only for the pages you want non bookmarkable URLs.
Am I missing something?

Also, for the Wicket experts out there, can we do something like this on the
Application?
mount(new QueryStringUrlCodingStrategy(/, HomePage.class));

On Wed, Jul 28, 2010 at 2:18 PM, fatefree [via Apache Wicket] 
ml-node+2304786-2098886504-293...@n4.nabble.comml-node%2b2304786-2098886504-293...@n4.nabble.com
 wrote:

 I use a crypted url strategy for security on non bookmarkable page links.
 If you have a standard bookmarkable page, wicket will generate a REST style
 urls like /page/id/5, which will not be encrypted. However there seems to be
 an issue where if you try to mount the home page, it is generated as
 /page?id=1, which then gets encrypted.

 However instead of using apache mod rewrite, I found that if you set the
 index page to forward the request to another page using
 setResponsePage(StoriesPage.class), and do not redirect, the issue seems to
 be resolved.

 --
  View message @
 http://apache-wicket.1842946.n4.nabble.com/Using-Apache-mod-rewrite-to-fix-home-page-parameter-problem-tp2303737p2304786.html
 To start a new topic under Wicket - User, email
 ml-node+1842947-1647783149-293...@n4.nabble.comml-node%2b1842947-1647783149-293...@n4.nabble.com
 To unsubscribe from Wicket - User, click 
 herehttp://apache-wicket.1842946.n4.nabble.com/subscriptions/Unsubscribe.jtp?code=YXZyYWhhbXJAZ21haWwuY29tfDE4NDI5NDd8LTEwNzY0NzQ1ODc=.





-- 
[]'s
Avraham Rosenzweig
avrah...@gmail.com

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Using-Apache-mod-rewrite-to-fix-home-page-parameter-problem-tp2303737p2305504.html
Sent from the Wicket - User mailing list archive at Nabble.com.


Re: Job(s) for Wicket developers

2010-07-28 Thread Oleg Taranenko
Hi Michael,

habe ich Diene Anzeige nicht zu spät erfahren? Ist das Position schon 
geschlossen? Wenn nicht, melde Dich
bitte an.

Gruß aus Lahr/Schwarzwald,

Oleg Taranenko,


am Dienstag, 22. Juni 2010 um 10:34 schrieben Sie:
 Hi,

 The company I work at currently has two open permanent positions for 
 middleware/frontend developers in my team. A
 sound knowledge of Javascript, CSS etc. is a must-have, and Wicket experience 
 is a big plus as current and future projects are developed with Wicket.

 We are located in the southwest of Germany and it is necessary to work 
 on-site. If you are interested or know anyone
 who might be interested please feel free to get in touch with me and I will 
 tell you some more details.

 By the way, I'm one of the developers you would work with, not an HR guy or 
 something  

 Cheers,

 Michael

 -
 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: Using Apache mod rewrite to fix home page parameter problem

2010-07-28 Thread fatefree

Yeah I think you are missing something. Bookmarkable page links with
query parameters behave differently for the application home page.

For example, for any random bookmarkable page mounted to /stories,
with a parameter 'page' and value '1', the url is displayed as
/stories/page/1. This can be used in conjunction with the crypted url
strategy with no problems, nothing will be encrypted and the url is
bookmarkable.

If you mount the designated application home page to /stories however,
the url is displayed as /stories/?page=1, which unfortunately does get
encrypted.

So i suppose it would be possible to limit the crypted url strategy to
everything but the home page, but as I mentioned an easier solution
was to just set the responsePage of the application home page to
another bookmarkable page.

On Wed, Jul 28, 2010 at 3:40 PM, avrahamr [via Apache Wicket]
ml-node+2305504-1441931081-229...@n4.nabble.com wrote:
 So there is were I don't follow.
 You use crypted url strategy in order to have non bookmarkable links.
 Now you want the homemage to have bookmarkable links.
 So why not to stop using crypted url strategy for the homepage, you can use
 it only for the pages you want non bookmarkable URLs.
 Am I missing something?
 Also, for the Wicket experts out there, can we do something like this on the
 Application?
 mount(new QueryStringUrlCodingStrategy(/, HomePage.class));
 On Wed, Jul 28, 2010 at 2:18 PM, fatefree [via Apache Wicket] [hidden
 email] wrote:

 I use a crypted url strategy for security on non bookmarkable page links.
 If you have a standard bookmarkable page, wicket will generate a REST style
 urls like /page/id/5, which will not be encrypted. However there seems to be
 an issue where if you try to mount the home page, it is generated as
 /page?id=1, which then gets encrypted.

 However instead of using apache mod rewrite, I found that if you set the
 index page to forward the request to another page using
 setResponsePage(StoriesPage.class), and do not redirect, the issue seems to
 be resolved.

 
 View message @
 http://apache-wicket.1842946.n4.nabble.com/Using-Apache-mod-rewrite-to-fix-home-page-parameter-problem-tp2303737p2304786.html
 To start a new topic under Wicket - User, email [hidden email]
 To unsubscribe from Wicket - User, click here.



 --
 []'s
 Avraham Rosenzweig
 [hidden email]


 
 View message @
 http://apache-wicket.1842946.n4.nabble.com/Using-Apache-mod-rewrite-to-fix-home-page-parameter-problem-tp2303737p2305504.html
 To unsubscribe from Re: Using Apache mod rewrite to fix home page parameter
 problem, click here.


-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Using-Apache-mod-rewrite-to-fix-home-page-parameter-problem-tp2303737p2305560.html
Sent from the Wicket - User mailing list archive at Nabble.com.


Error adding CSS HeaderContributor

2010-07-28 Thread Douglas Phillips
Good Day all!

I'm having a strange problem that's probably going to be something
really stupidly simple that I'm missing...

I have a new webapp that I created using Maven's wicket quickstart
archetype.  It defaulted to version 1.3.2, and I changed the version to
use 1.4.9.

Now, the following code won't compile:

import org.apache.wicket.markup.html.*;

public class TemplatePage extends WebPage {
public TemplatePage() { 
add(CSSPackageResource.getHeaderContribution(TemplatePage.class,
css/style.css));
}
}

The error I'm getting is this:

TemplatePage.java:[8,8] cannot find symbol
symbol  : method add(org.apache.wicket.behavior.HeaderContributor)
location: class acmis.helpdesktools.TemplatePage

I'm really not sure what I'm doing wrong here.  Everything I've looked
at when I searched for the issue shows the same code as I've got here,
so I'm scratching my head.

Any help would be much appreciated.

Thanks
-Doug


smime.p7s
Description: S/MIME cryptographic signature


[SOLVED] Re: Error adding CSS HeaderContributor

2010-07-28 Thread Douglas Phillips
As I said, it was something stupidly simple.

I found that I was missing a directive for maven to compile for Java 1.5
compatibility, and thus the problem.

Sorry for bothering the list -- everyone can go back to trying to solve
real problems now... :)

Thanks,
-Doug

On Wed, 2010-07-28 at 16:08 -0500, Douglas Phillips wrote:
 Good Day all!
 
 I'm having a strange problem that's probably going to be something
 really stupidly simple that I'm missing...
 
 I have a new webapp that I created using Maven's wicket quickstart
 archetype.  It defaulted to version 1.3.2, and I changed the version to
 use 1.4.9.
 
 Now, the following code won't compile:
 
 import org.apache.wicket.markup.html.*;
 
 public class TemplatePage extends WebPage {
 public TemplatePage() { 
 add(CSSPackageResource.getHeaderContribution(TemplatePage.class,
 css/style.css));
 }
 }
 
 The error I'm getting is this:
 
 TemplatePage.java:[8,8] cannot find symbol
 symbol  : method add(org.apache.wicket.behavior.HeaderContributor)
 location: class acmis.helpdesktools.TemplatePage
 
 I'm really not sure what I'm doing wrong here.  Everything I've looked
 at when I searched for the issue shows the same code as I've got here,
 so I'm scratching my head.
 
 Any help would be much appreciated.
 
 Thanks
 -Doug

-- 
Douglas PhillipsCybergroup, Inc.
Web Programmer/DBA  1450 S Rolling Rd
(217) 924-4690  Baltimore MD 21227
http://www.cybergroup.com


smime.p7s
Description: S/MIME cryptographic signature