Re: Deployment mode images all vanish

2013-09-16 Thread Brill Pappin
It could be, and I'll certainly run some tests to remove the compression and 
see if tha make any different,.
However if thats the problem then its still hanging around in 6.10 after being 
reported back in 5.* which indicates there is a much larger issue.

- Brill Pappin 




On 2013-09-16, at 3:18 AM, Sven Meier s...@meiers.net wrote:

 Perhaps an unintended compression?
 
 https://github.com/wicketstuff/core/issues/79
 
 Sven
 
 
 
 On 09/16/2013 05:34 AM, Brill Pappin wrote:
 I did see a few notes in the list about this, but not any solutions.
 
 I have a situation in Wicket 6.10 where as soon as I deploy in DEPLOYMENT 
 mode, all the images vanish from the site.
 Switch back to DEVELOPMENT, and they all show up again.
 
 The browser says that are corrupt when you ask for them directly.
 
 Anyone have any ideas why this might be happening?
 
 - Brill Pappin
   明 - زاهر -  מַברִיק - चमकदार - 鮮やか - ஒளியுள்ள - ร่วงรุ้ง - loistava
 
 
 
 
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 



Deployment mode images all vanish

2013-09-15 Thread Brill Pappin
I did see a few notes in the list about this, but not any solutions.

I have a situation in Wicket 6.10 where as soon as I deploy in DEPLOYMENT mode, 
all the images vanish from the site.
Switch back to DEVELOPMENT, and they all show up again.

The browser says that are corrupt when you ask for them directly.

Anyone have any ideas why this might be happening?

- Brill Pappin 
  明 - زاهر -  מַברִיק - चमकदार - 鮮やか - ஒளியுள்ள - ร่วงรุ้ง - loistava






HTTPS Redirection on AWS Elastic Beanstalk

2013-09-15 Thread Brill Pappin
The HttpsMapper will *not* work on AWS Beanstalk because internally you are 
actually on http  between he load balancer and the server, and not https… so 
you get into a redirect loop with the mapper constantly telling you to come 
back on the secure channel.

Fortunately, there is a solution, but it's going to take some code to implement.
So, before I go and try to write a mapper for this situation, has anyone else 
already written one?


- Brill Pappin 
  明 - زاهر -  מַברִיק - चमकदार - 鮮やか - ஒளியுள்ள - ร่วงรุ้ง - loistava






Wicket-stuff site down?

2009-10-26 Thread Brill Pappin

Is the Wicket-stuff site down for anyone else?

- Brill

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



Wicket with Shindig

2009-10-26 Thread Brill Pappin

I'm considering using Shindig for a new project
(See: http://incubator.apache.org/shindig/index.html)

Is there any Wicket/Shindig code around or has anyone been working on  
getting the two to work together?


- Brill

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



Re: Wicket with Shindig

2009-10-26 Thread Brill Pappin

I'm still reading up on Shindig and Open Social...
The I suspect the renderer (container) won't be too hard to implement  
in Wicket (although I'm not as familiar with the internals as some on  
the list).
Shindig uses a RESful interface for all its server comms though, and  
I'm not sure yet how that would work with Wicket.


I'll let the list know if I get anywhere with it.

- Brill

On 2009-10-26, at 5:51 PM, Fernando Wermus wrote:


Brill,
It would be nice to have a wicket example shiding app at least.  
What I
know is that most developers choose liferay instead. I dont know any  
who is

using shiding with wicket.


On Mon, Oct 26, 2009 at 4:59 PM, Brill Pappin br...@pappin.ca wrote:


I'm considering using Shindig for a new project
(See: http://incubator.apache.org/shindig/index.html)

Is there any Wicket/Shindig code around or has anyone been working on
getting the two to work together?

- Brill

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





--
Fernando Wermus.

www.linkedin.com/in/fernandowermus



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



Re: Wicket-stuff site down?

2009-10-26 Thread Brill Pappin
I don't think this is maintenance, unless they have an extremely long  
running SQL export or something.

I'd say broken at this point.

- Brill


On 2009-10-26, at 7:26 PM, nino martinez wael wrote:


Here aswell ? argh : http://wicketstuff.org/confluence/errors.jsp

2009/10/26 Jeremy Thomerson jer...@wickettraining.com


Yes

--
Jeremy Thomerson
http://www.wickettraining.com



On Mon, Oct 26, 2009 at 11:08 AM, Brill Pappin br...@pappin.ca  
wrote:



Is the Wicket-stuff site down for anyone else?

- Brill

-
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: intercept security check in wicket-auth-roles

2009-07-12 Thread Brill Pappin

Thanks for the heads up.

I'll have to look at the security project again, but one thing I  
really like about auth-roles is that is so amazingly simply to  
deploy... however, I don't use spring (I'm a detractors of frameworks  
that use metadata where code should be) so I don't think its going to  
be any use to me here.


- Brill



On 11-Jul-09, at 3:47 AM, Olger Warnier wrote:

The wicket-security framework has possibilities to integrate with  
SSO mechanisms. Next to that, you can integrate with spring-security  
and all authentication mechanisms supported by that.

The yahoo-bbauth sample may help you to get an idea on how that works.

Olger

On 11 jul 2009, at 08:09, Brill Pappin wrote:


I actually find it very usable and i love how simple it is...
does the new security framework have a similar simple method of  
securing a site like that?


- Brill

On 3-Jul-09, at 11:34 AM, Igor Vaynberg wrote:

wicket auth roles is an example, not a reusable framework. you  
should

copy and paste the code into your project and customize as needed.

-igor

On Fri, Feb 20, 2009 at 8:30 AM, Brill Pappinbr...@pappin.ca  
wrote:
I'm trying to integrate wicket-auth-roles with a token based SSO  
security

system.

I can't see where I can intercept the authentication sequence and
auto-login the user based on the token.
Essentially i want to catch the authentication request and  
authorize the

user based on a token before they are redirected to the login page.

Does anyone have a clue how I might go about doing that?

Unfortunately most places I've looked to over ride the sequence  
are marked
final for some reason, which makes things difficult. I'm actually  
at the
point now where I'm thinking of writing a new auth-roles based on  
the

current lib, but I thought I'd ask first.

... and no, I don't want to use the other more complex security  
lib...

auth-roles is very nice and simple to use and suitable for most
applications.

- Brill Pappin




-
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



Re: intercept security check in wicket-auth-roles

2009-07-11 Thread Brill Pappin

I actually took the wicket-auth-roles and rolled a custom solution.
I'd put it up but never went back to make sure it was properly tested  
for distribution :)



- brill

On 3-Jul-09, at 6:28 AM, fstof wrote:



Any luck with this?
I'm looking to do the same thing, but how


Brill Pappin wrote:


I'm trying to integrate wicket-auth-roles with a token based SSO
security system.

I can't see where I can intercept the authentication sequence and
auto-login the user based on the token.
Essentially i want to catch the authentication request and authorize
the user based on a token before they are redirected to the login  
page.


Does anyone have a clue how I might go about doing that?

Unfortunately most places I've looked to over ride the sequence are
marked final for some reason, which makes things difficult. I'm
actually at the point now where I'm thinking of writing a new auth-
roles based on the current lib, but I thought I'd ask first.

... and no, I don't want to use the other more complex security  
lib...

auth-roles is very nice and simple to use and suitable for most
applications.

- Brill Pappin




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





--
View this message in context: 
http://www.nabble.com/intercept-security-check-in-wicket-auth-roles-tp22122773p24320938.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: intercept security check in wicket-auth-roles

2009-07-11 Thread Brill Pappin

I actually find it very usable and i love how simple it is...
does the new security framework have a similar simple method of  
securing a site like that?


- Brill

On 3-Jul-09, at 11:34 AM, Igor Vaynberg wrote:


wicket auth roles is an example, not a reusable framework. you should
copy and paste the code into your project and customize as needed.

-igor

On Fri, Feb 20, 2009 at 8:30 AM, Brill Pappinbr...@pappin.ca wrote:
I'm trying to integrate wicket-auth-roles with a token based SSO  
security

system.

I can't see where I can intercept the authentication sequence and
auto-login the user based on the token.
Essentially i want to catch the authentication request and  
authorize the

user based on a token before they are redirected to the login page.

Does anyone have a clue how I might go about doing that?

Unfortunately most places I've looked to over ride the sequence are  
marked
final for some reason, which makes things difficult. I'm actually  
at the

point now where I'm thinking of writing a new auth-roles based on the
current lib, but I thought I'd ask first.

... and no, I don't want to use the other more complex security  
lib...

auth-roles is very nice and simple to use and suitable for most
applications.

- Brill Pappin




-
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: nested forms and locale

2009-06-07 Thread Brill Pappin
i may be wrong about this because my wicket ajax is still a bit shaky,  
but try adding the components you wanted updated to the links target.


- Brill

On 7-Jun-09, at 10:20 AM, Morten Steffensen wrote:


Hi,
I am having problems using nested forms and changing locale.

I have 2 links for changing the locale. It works until i press the  
AjaxButton in the inner form. Hereafter the txtField's getObject is  
not called anymore.


What am i doing wrong ? Any suggestions ?



public class ProblemPage extends WebPage {
  private MapString, String map = new HashMapString, String();

  public ProblemPage() {
  map.put(en, Hello);
  map.put(da, Goddag);

  getSession().setLocale(new Locale(en, EN));

  add(new Link(enLocale)
  {
  public void onClick() {
  getSession().setLocale(new Locale(en, EN));
  }
  });
  add(new Link(daLocale)
  {
  public void onClick() {
  getSession().setLocale(new Locale(da, DK));
  }
  });

  Form outerform = new Form(outerform) {
  protected void onSubmit() {
  super.onSubmit();
  }
  };
  add(outerform);

  TextField txtField = new TextField(txtfield,new Model() {
  public Object getObject() {
  return map.get(getSession().getLocale().getLanguage());
  }

  public void setObject(Object o) {
  map.put(getSession().getLocale().getLanguage(), 
(String)o);

  }
  });
  outerform.add(txtField);

  Form innerform = new Form(innerform) {
  protected void onSubmit() {
  super.onSubmit();
  }
  };
  outerform.add(innerform);

  AjaxButton editButton= new AjaxButton(pressmeButton)
  {
  protected void onSubmit(AjaxRequestTarget target, Form form)
  {
  super.onSubmit();
  }
  };
  editButton.add(new SimpleAttributeModifier(value,Press me));
//editButton.setDefaultFormProcessing(false);
  innerform.add(editButton);


  outerform.add(new AjaxButton(submitButton) {
  protected void onSubmit(AjaxRequestTarget target, Form form)
  {
  super.onSubmit();
  }
  });
  }
}


!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN
html
head/head

body

a wicket:id=enLocaleEnglish/a
a wicket:id=daLocaleDanish/a

form wicket:id=outerform
  input type=text wicket:id=txtfield/

  form wicket:id=innerform
  input type=button wicket:id=pressmeButton/
  /form

  input type=button value=Save wicket:id=submitButton/
/form

/body
/html




--
Kinds regards,
Morten Steffensen



-
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: Mix generic HTML for Wicket

2009-06-05 Thread Brill Pappin

Yes.

not to be rude, but your missing a bit of the concept of WIcket  
here... the point is that the html *is* generic.
There are options for displaying table data fairly quickly, but in no  
case (that I know of) are you going to get it for free without doing  
anything at all.


I recommend you do a spike and try out a few ways of doing it. Also  
take a look at some of the WIcketStuff examples. Heres a starting point:

http://tinyurl.com/p4v28m


- Brill Pappin

On 2-Jun-09, at 3:34 PM, sjtirtha wrote:


Hi,

I'm a newbie with wicket.
I see that all sample always require .html and .java on the same  
folder with

the same name.
When I look into the .html files. They always contain simple html.
Is there any possibility that I have a generic html and a generic  
wicket

component that can be used shows DB tables.

Regards,
Steve




Re: DropDownChoice - required, one item so preselection?

2009-06-05 Thread Brill Pappin
Set the expected value of the id part in your form model (the model  
where the dropdown will store the submitted value).
when the dropdown renders it will use the existing value to preset the  
choice.


In your code below, it looks like the model is created new every time.  
for this to work, the model has to have the preselected choice set on  
it, or it need to survive renders.
Your ChoiceRenderer simply tells the component which part is id and  
which is display.


- Brill Pappin


On 2-Jun-09, at 6:54 PM, m_salman wrote:



I have set the model. But I still don't see it preselected when the
dropDownChoice object is displayed:

form.add(new DropDownChoiceIParameterInOutType(
parameterInOutType,
new
CompoundPropertyModel 
IParameterInOutType(parameterMetaData.getParameterInOutType()),

listParameterInOutType,
new 
ChoiceRendererIParameterInOutType(name)));



Am I missing some thing?  DO I need to do something in the html?

Thanks.





Nino.Martinez wrote:


just set the model to what you want selected:)

John wrote:

hi, when using a DropDownChoice is there a way to have the value
preselected if there is only one available and the field is  
required?


i have looked through the code but cannot see any settings that  
might

control this, and am stumped trying to work out how to extend the
control in this way.

john

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




--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


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





--
View this message in context: 
http://www.nabble.com/DropDownChoice---required%2C-one-item-so-preselection--tp19198000p23842503.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: closing a ModalWindow from a forms onSubmit?

2009-05-26 Thread Brill Pappin

Tried that :)
and it always seems to be null.

I switched to AjaxButtons, but the problem is that the are fired  
*after* the form submits, not before as a normal Button is.
I'm essentially trying to set a value on the form's model depending on  
which button was pressed, and then close the ModalWindow on successful  
submit.
There needs to be an easier way to do this... at the moment I'm  
starting to think I'm going to have to try and attache some javascript  
that will trigger pre-submit to set some sort of flag... but its  
getting very dirty.


- Brill


On 25-May-09, at 10:48 AM, Jeremy Thomerson wrote:

If all you're saying is that you need to do it from your form's  
onsubmit, do this:


AjaxRequestTarget art = AjaxRequestTarget.get();
if (art != null) {
modal.close(art);
}

Jeremy Thomerson
http://www.wickettraining.com
-- sent from a wireless device


-Original Message-
From: Brill Pappin br...@pappin.ca
Sent: Sunday, May 24, 2009 5:36 PM
To: users@wicket.apache.org
Subject: Re: closing a ModalWindow from a forms onSubmit?

I likely could but am trying to avoid that, because then I have to
call it for every button in the form (there are 4 now, all set a state
and allow the event to propagate to the forms onSubmit().
Is there no way to know the current context from the component itself?


- Brill

On 24-May-09, at 5:55 PM, James Carman wrote:


Can you submit the form via ajax?

On May 24, 2009 2:08 PM, Brill Pappin br...@pappin.ca wrote:

I have a form in a model window
How do I close the ModalWindow in the form's onSubmit() method
without the
AjaxRequestTarget?

- Brill




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





smime.p7s
Description: S/MIME cryptographic signature


Re: closing a ModalWindow from a forms onSubmit?

2009-05-26 Thread Brill Pappin

Thanks Steve,

I did attempt something like that, but my real issue is that the form  
is submitted from the modalwindow, and the onSubmit of the AJaxButton  
is actually called after the form is successfully submitted, so by the  
time I know something happened, its already made the round trip to the  
server. In my case, even passing back to the parent on close would be  
too late :)


I'm actually starting to think I'm going to need to do something  
drastic like customize my own button, so I can do both... that or  
ModalWindow, which should know enough about it self to close itself  
without having a target.


- Brill

On 26-May-09, at 3:12 AM, Steve Swinsburg wrote:

Brill this is what I do for a window of mine, it has a few buttons  
and the parent page needs to know what one was clicked. Doing it in  
the button's onSubmit works.


I pass an object into the ModalWindow's constructor, which was  
initialised in the parent page, then I set a property into an object  
in the AjaxButton onSubmit, then close it via window.close(target).  
The parent can then see the property in the WindowClosedCallback  
method which fires when it closed.



cheers,
Steve


On 26/05/2009, at 7:37 AM, Brill Pappin wrote:


Tried that :)
and it always seems to be null.

I switched to AjaxButtons, but the problem is that the are fired  
*after* the form submits, not before as a normal Button is.
I'm essentially trying to set a value on the form's model depending  
on which button was pressed, and then close the ModalWindow on  
successful submit.
There needs to be an easier way to do this... at the moment I'm  
starting to think I'm going to have to try and attache some  
javascript that will trigger pre-submit to set some sort of flag...  
but its getting very dirty.


- Brill


On 25-May-09, at 10:48 AM, Jeremy Thomerson wrote:

If all you're saying is that you need to do it from your form's  
onsubmit, do this:


AjaxRequestTarget art = AjaxRequestTarget.get();
if (art != null) {
modal.close(art);
}

Jeremy Thomerson
http://www.wickettraining.com
-- sent from a wireless device


-Original Message-
From: Brill Pappin br...@pappin.ca
Sent: Sunday, May 24, 2009 5:36 PM
To: users@wicket.apache.org
Subject: Re: closing a ModalWindow from a forms onSubmit?

I likely could but am trying to avoid that, because then I have to
call it for every button in the form (there are 4 now, all set a  
state

and allow the event to propagate to the forms onSubmit().
Is there no way to know the current context from the component  
itself?



- Brill

On 24-May-09, at 5:55 PM, James Carman wrote:


Can you submit the form via ajax?

On May 24, 2009 2:08 PM, Brill Pappin br...@pappin.ca wrote:

I have a form in a model window
How do I close the ModalWindow in the form's onSubmit() method
without the
AjaxRequestTarget?

- Brill




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









smime.p7s
Description: S/MIME cryptographic signature


Re: adjusting form model on submit with AjaxButton -- Was: closing a ModalWindow from a forms onSubmit?

2009-05-26 Thread Brill Pappin
Ok, so  have resolved my issue by reorganizing and refactoring a  
complex form so as not to use submit buttons to determine final state.
However I do have one idea I didn't try (and won't at this point  
because I need to get on with things).


I remember in the bad old days of JSP, one project i was one used  
multiple buttons extensively.
When the buttons all had the same name, the one that was actually  
clicked would have its value set for the name of the input (just like  
a checkbox would).


I was thinking that you could use a Check Group (or something like it)  
to create a group of buttons, similar to what is described here:

http://wicketstuff.org/wicket13/compref/?wicket:bookmarkablePage=:org.apache.wicket.examples.compref.CheckGroupPage
A quick look at the code suggests that it would work.
You would capture the value of the buttons in your form model like any  
other input.


If i ever have time I'll write up a SubmitButtonGroup component  
(unless someone else needs it first and writes one).


- Brill

On 25-May-09, at 9:30 AM, Brill Pappin wrote:


There  has got to be a solution for this.

The problem with using an AjaxButton is that the onSubmit is called  
*after* the form is submitted, but since there are multiple submit  
buttons that change the model object just before submit, I need to  
adjust the model before the form is submitted.


If I use a normal Button, I can adjust the form model but can't  
close the ModalWindow since I have no ajax target.


- Brill

On 24-May-09, at 6:36 PM, Brill Pappin wrote:

I likely could but am trying to avoid that, because then I have to  
call it for every button in the form (there are 4 now, all set a  
state and allow the event to propagate to the forms onSubmit().
Is there no way to know the current context from the component  
itself?



- Brill

On 24-May-09, at 5:55 PM, James Carman wrote:


Can you submit the form via ajax?

On May 24, 2009 2:08 PM, Brill Pappin br...@pappin.ca wrote:

I have a form in a model window
How do I close the ModalWindow in the form's onSubmit() method  
without the

AjaxRequestTarget?

- Brill








smime.p7s
Description: S/MIME cryptographic signature


Re: adjusting form model on submit with AjaxButton -- Was: closing a ModalWindow from a forms onSubmit?

2009-05-25 Thread Brill Pappin

There  has got to be a solution for this.

The problem with using an AjaxButton is that the onSubmit is called  
*after* the form is submitted, but since there are multiple submit  
buttons that change the model object just before submit, I need to  
adjust the model before the form is submitted.


If I use a normal Button, I can adjust the form model but can't close  
the ModalWindow since I have no ajax target.


- Brill

On 24-May-09, at 6:36 PM, Brill Pappin wrote:

I likely could but am trying to avoid that, because then I have to  
call it for every button in the form (there are 4 now, all set a  
state and allow the event to propagate to the forms onSubmit().

Is there no way to know the current context from the component itself?


- Brill

On 24-May-09, at 5:55 PM, James Carman wrote:


Can you submit the form via ajax?

On May 24, 2009 2:08 PM, Brill Pappin br...@pappin.ca wrote:

I have a form in a model window
How do I close the ModalWindow in the form's onSubmit() method  
without the

AjaxRequestTarget?

- Brill






smime.p7s
Description: S/MIME cryptographic signature


Re: showstoppers -- NoSuchMethodError (again and again)

2009-05-24 Thread Brill Pappin
I'm fairly sure that when I updated sicketstuff-core a few days ago  
(hmm... maybe 4 days) i got a lot of updates.


I could be wrong, so i guess its date checking on the commits.

- Brill

On 23-May-09, at 10:55 PM, Jeremy Thomerson wrote:


Have there been that many changes since 1.4-rc4?  I just released rc4
like three weeks ago.  Are we talking about the same rc4?

--
Jeremy Thomerson
http://www.wickettraining.com




On Sat, May 23, 2009 at 9:41 PM, Brill Pappin br...@pappin.ca wrote:

I don't actually have commit to wicketstuff, but cudos for having all
modules build and all tests passing, I'm able to build without any  
trouble

and deploy into our local repo on the first try.
I don't mind help get it up though, particularly if it gets things  
working

again.

As of last night, all modules in wicketstuff-core are building and  
all tests
passing, but thats against the current wicket-1.4-SNAPSHOT so I'm  
not sure
about rc4 (I think it might not build against rc4 because of the  
mentioned

issues).

I think you might have to wait until they do a new release, then  
tag your
repo immediately and release from there, there have been a lot of  
changes in

wicketstuff-core since wicket-rc4.
You might also be able to check the date of rc4 in the wicket svn  
and tag a
revision of wicketstuff-core for that date (risky, but might just  
work).


- Brill



On 23-May-09, at 10:03 PM, Jeremy Thomerson wrote:


What we really need to do (and I haven't had time to do) is cut a
release of wicketstuff 1.4-rc4 to match wicket's recent release.   
That
was the reason I went through all the effort of getting all of the  
WS
core projects together - so that they could be numbered with  
releases

that matched Wicket's.

So, if you have time and are willing to work on something, please  
make

sure all of the projects work and build against Wicket 1.4-rc4 and
then make a tag of that moment in the repo.  I can do the release  
from
there if you send me a link.  I started to do a release a couple  
weeks

ago right after I built the core release, but some things weren't
compiling / working and I didn't have the time to fix all of those
projects.

--
Jeremy Thomerson
http://www.wickettraining.com




On Fri, May 22, 2009 at 8:26 PM, Brill Pappin br...@pappin.ca  
wrote:


Over the last week I've been running into no end of NoSuchMethod
errors, particularly between the wicket 1.4-SNAPSHOT and the  
wicketstuff

1.4-SNAPSHOT.
They both are snapshots, so this is expected now and then,  
however they

don't seem to be being fixed.
In all cases so far, the exceptions that popup during runtime  
reflection

and
a common theme is the ModalWindow classes.
For instance:
Caused by: java.lang.NoSuchMethodError:

org 
.apache 
.wicket 
.extensions 
.ajax.markup.html.modal.ModalWindow.setPageMapName(Ljava/lang/ 
String;)V

at

org 
.wicketstuff 
.calendarviews 
.LargeView.initializeDetailModalWindow(LargeView.java:103)

There is another that I don't have off the top right now, but it's
similar
(also in ModalWindow, although not the same error).
In general one of the reasons I chose to work with Wicket is the  
easy way

it
can be tested.
So, to that end I would like to recommend to the WIcket Stuff  
developers
that *aLl example apps* have unit tests. Unit testing the  
examples would
more than likely expose these problems early. To begin with, any  
library

that uses ModalWindow should have unit tests added.
I'm in the process now of checking out the wicketstuff source so  
I can

start
trying to fix some of this stuff, time permitting myself.
- Brill




-
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





smime.p7s
Description: S/MIME cryptographic signature


closing a ModalWindow from a forms onSubmit?

2009-05-24 Thread Brill Pappin

I have a form in a model window
How do I close the ModalWindow in the form's onSubmit() method without  
the AjaxRequestTarget?


- Brill

smime.p7s
Description: S/MIME cryptographic signature


Re: closing a ModalWindow from a forms onSubmit?

2009-05-24 Thread Brill Pappin
I likely could but am trying to avoid that, because then I have to  
call it for every button in the form (there are 4 now, all set a state  
and allow the event to propagate to the forms onSubmit().

Is there no way to know the current context from the component itself?


- Brill

On 24-May-09, at 5:55 PM, James Carman wrote:


Can you submit the form via ajax?

On May 24, 2009 2:08 PM, Brill Pappin br...@pappin.ca wrote:

I have a form in a model window
How do I close the ModalWindow in the form's onSubmit() method  
without the

AjaxRequestTarget?

- Brill




smime.p7s
Description: S/MIME cryptographic signature


Re: showstoppers -- NoSuchMethodError (again and again)

2009-05-23 Thread Brill Pappin
I don't actually have commit to wicketstuff, but cudos for having all  
modules build and all tests passing, I'm able to build without any  
trouble and deploy into our local repo on the first try.
I don't mind help get it up though, particularly if it gets things  
working again.


As of last night, all modules in wicketstuff-core are building and all  
tests passing, but thats against the current wicket-1.4-SNAPSHOT so  
I'm not sure about rc4 (I think it might not build against rc4 because  
of the mentioned issues).


I think you might have to wait until they do a new release, then tag  
your repo immediately and release from there, there have been a lot of  
changes in wicketstuff-core since wicket-rc4.
You might also be able to check the date of rc4 in the wicket svn and  
tag a revision of wicketstuff-core for that date (risky, but might  
just work).


- Brill



On 23-May-09, at 10:03 PM, Jeremy Thomerson wrote:


What we really need to do (and I haven't had time to do) is cut a
release of wicketstuff 1.4-rc4 to match wicket's recent release.  That
was the reason I went through all the effort of getting all of the WS
core projects together - so that they could be numbered with releases
that matched Wicket's.

So, if you have time and are willing to work on something, please make
sure all of the projects work and build against Wicket 1.4-rc4 and
then make a tag of that moment in the repo.  I can do the release from
there if you send me a link.  I started to do a release a couple weeks
ago right after I built the core release, but some things weren't
compiling / working and I didn't have the time to fix all of those
projects.

--
Jeremy Thomerson
http://www.wickettraining.com




On Fri, May 22, 2009 at 8:26 PM, Brill Pappin br...@pappin.ca wrote:

Over the last week I've been running into no end of NoSuchMethod
errors, particularly between the wicket 1.4-SNAPSHOT and the  
wicketstuff

1.4-SNAPSHOT.
They both are snapshots, so this is expected now and then, however  
they

don't seem to be being fixed.
In all cases so far, the exceptions that popup during runtime  
reflection and

a common theme is the ModalWindow classes.
For instance:
Caused by: java.lang.NoSuchMethodError:
org 
.apache 
.wicket 
.extensions.ajax.markup.html.modal.ModalWindow.setPageMapName(Ljava/ 
lang/String;)V

at
org 
.wicketstuff 
.calendarviews.LargeView.initializeDetailModalWindow(LargeView.java: 
103)
There is another that I don't have off the top right now, but it's  
similar

(also in ModalWindow, although not the same error).
In general one of the reasons I chose to work with Wicket is the  
easy way it

can be tested.
So, to that end I would like to recommend to the WIcket Stuff  
developers
that *aLl example apps* have unit tests. Unit testing the examples  
would
more than likely expose these problems early. To begin with, any  
library

that uses ModalWindow should have unit tests added.
I'm in the process now of checking out the wicketstuff source so I  
can start

trying to fix some of this stuff, time permitting myself.
- Brill




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





smime.p7s
Description: S/MIME cryptographic signature


showstoppers -- NoSuchMethodError (again and again)

2009-05-22 Thread Brill Pappin
Over the last week I've been running into no end of NoSuchMethod  
errors, particularly between the wicket 1.4-SNAPSHOT and the  
wicketstuff 1.4-SNAPSHOT.


They both are snapshots, so this is expected now and then, however  
they don't seem to be being fixed.


In all cases so far, the exceptions that popup during runtime  
reflection and a common theme is the ModalWindow classes.


For instance:
Caused by: java.lang.NoSuchMethodError:  
org 
.apache 
.wicket 
.extensions.ajax.markup.html.modal.ModalWindow.setPageMapName(Ljava/ 
lang/String;)V
	at  
org 
.wicketstuff 
.calendarviews.LargeView.initializeDetailModalWindow(LargeView.java:103)


There is another that I don't have off the top right now, but it's  
similar (also in ModalWindow, although not the same error).
In general one of the reasons I chose to work with Wicket is the easy  
way it can be tested.


So, to that end I would like to recommend to the WIcket Stuff  
developers that *aLl example apps* have unit tests. Unit testing the  
examples would more than likely expose these problems early. To begin  
with, any library that uses ModalWindow should have unit tests added.


I'm in the process now of checking out the wicketstuff source so I can  
start trying to fix some of this stuff, time permitting myself.


- Brill




smime.p7s
Description: S/MIME cryptographic signature


Re: objectautocomplete on a form with CompoundPropertyModel

2009-05-13 Thread Brill Pappin
I'd actually rather it worked as expected and simply set the object on  
the model property :)

However, it's usable so I'll live with it.

- brill

On 13-May-09, at 3:10 PM, nino martinez wael wrote:


Yeah or just another way of thinking.. :)

2009/5/11 Brill Pappin br...@pappin.ca:

Thanks that worked... although its a bit of a pain in the behind :)

- Brill Pappin

On 11-May-09, at 6:55 AM, nino martinez wael wrote:


You do something like this:

// compound model
   private final IModelString cityModel = new  
PropertyModelString(

   searchWrapper, cityId);



   builderCity
   .updateOnSelectionChange(new
ObjectAutoCompleteSelectionChangeListenerString() {
   public void
selectionChanged(AjaxRequestTarget target,

IModelString

model) {

 cityModel.setObject(model.getObject());

   }
   });
So it does not update on submit, but instead onSelectionChange of  
the

builder..

2009/5/11 Brill Pappin br...@pappin.ca:


I'm trying to use ObjectAutoComplete from wicketstuff on a form  
where the

model is a CompoundPropertyModel.

The auto compete field doesn't seem to be setting its value on  
the form

model at all during a submit.

I've looked at the examples for this component and not a single one
actually
includes the onSubmit implementation.
Is there something special i have to do with this component?

- Brill Pappin


-
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





smime.p7s
Description: S/MIME cryptographic signature


Re: org.apache.wicket.WicketRuntimeException: Exception in rendering component: [MarkupContainer [Component id = login]]

2009-05-11 Thread Brill Pappin
Looks to me as if the jvm you are deploying to has an active security  
policy that doesn't allow reflection... Which is going to make most  
java apicatipns fail because it's such a common method of doing things.


If you have control of the system, check the policy files (it could  
also be a bad java install ok the box, although I've never seen one  
fail like that).


- Brill Pappin
 Sent from my mobile.


On 11-May-09, at 4:24 AM, Anders Peterson ap...@optimatika.se wrote:


What exactly does this stacktrace (below) mean?

In development, eclipse  jetty, the application works fine. When  
deployed (tomcat) the app cannot render login page (I suppose it  
can't render anything).


/Anders

WicketMessage: Exception in rendering component: [MarkupContainer  
[Component id = login]]


Root cause:

java.security.AccessControlException: access denied  
(java.lang.reflect.ReflectPermission suppressAccessChecks)
at  
java. 
security. 
AccessControlContext.checkPermission(AccessControlContext.java:342)
at  
java.security.AccessController.checkPermission(AccessController.java: 
553)

at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
at  
java. 
lang.reflect.AccessibleObject.setAccessible(AccessibleObject.java:125)
at org.apache.wicket.util.lang.PropertyResolver 
$MethodGetAndSet.init(PropertyResolver.java:1044)
at  
org. 
apache. 
wicket. 
util.lang.PropertyResolver.getGetAndSetter(PropertyResolver.java:459)
at  
org. 
apache. 
wicket. 
util. 
lang.PropertyResolver.getObjectAndGetSetter(PropertyResolver.java:281)
at  
org. 
apache. 
wicket.util.lang.PropertyResolver.getValue(PropertyResolver.java:90)
at  
org. 
apache. 
wicket. 
model.AbstractPropertyModel.getObject(AbstractPropertyModel.java:117)
at org.apache.wicket.Component.getDefaultModelObject(Component.java: 
1653)
at  
org. 
apache.wicket.Component.getDefaultModelObjectAsString(Component.java: 
1675)
at  
org. 
apache. 
wicket. 
markup.html.form.FormComponent.getModelValue(FormComponent.java:1367)
at  
org. 
apache. 
wicket.markup.html.form.FormComponent.getValue(FormComponent.java:869)
at  
org. 
apache. 
wicket.markup.html.form.TextField.onComponentTag(TextField.java:106)

at org.apache.wicket.Component.renderComponent(Component.java:2600)
at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java: 
1525)

at org.apache.wicket.Component.render(Component.java:2454)
at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java: 
1403)
at  
org. 
apache. 
wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java: 
1590)
at  
org. 
apache. 
wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1514)
at  
org.apache.wicket.markup.html.form.Form.onComponentTagBody(Form.java: 
1897)

at org.apache.wicket.Component.renderComponent(Component.java:2629)
at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java: 
1525)

at org.apache.wicket.markup.html.form.Form.onRender(Form.java:1968)
at org.apache.wicket.Component.render(Component.java:2454)
at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java: 
1403)
at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java: 
1541)

at org.apache.wicket.Page.onRender(Page.java:1547)
at org.apache.wicket.Component.render(Component.java:2454)
at org.apache.wicket.Page.renderPage(Page.java:914)
at  
org. 
apache. 
wicket. 
request. 
target. 
component. 
BookmarkablePageRequestTarget. 
respond(BookmarkablePageRequestTarget.java:262)
at  
org. 
apache. 
wicket. 
request. 
AbstractRequestCycleProcessor. 
respond(AbstractRequestCycleProcessor.java:105)
at  
org. 
apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java: 
1248)

at org.apache.wicket.RequestCycle.step(RequestCycle.java:1319)
at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1418)
at org.apache.wicket.RequestCycle.request(RequestCycle.java:544)
at  
org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java: 
456)
at  
org. 
apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java: 
289)

at java.lang.reflect.Method.invoke(Method.java:616)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java: 
244)

at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:537)
at  
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java: 
276)
at  
org. 
apache. 
catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:218)
at  
org. 
apache. 
catalina. 
core. 
ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java: 
230)
at org.apache.catalina.core.ApplicationFilterChain.access 
$000(ApplicationFilterChain.java:56)
at org.apache.catalina.core.ApplicationFilterChain 
$1.run(ApplicationFilterChain.java:189)

at java.security.AccessController.doPrivileged(Native Method)
at  
org. 
apache. 
catalina. 
core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)
at  
org. 
apache. 
catalina.core.StandardWrapperValve.invoke

Re: objectautocomplete on a form with CompoundPropertyModel

2009-05-11 Thread Brill Pappin

Thanks that worked... although its a bit of a pain in the behind :)

- Brill Pappin

On 11-May-09, at 6:55 AM, nino martinez wael wrote:


You do something like this:

// compound model
private final IModelString cityModel = new PropertyModelString(
searchWrapper, cityId);



builderCity
.updateOnSelectionChange(new
ObjectAutoCompleteSelectionChangeListenerString() {
public void 
selectionChanged(AjaxRequestTarget target,
IModelString model) {

cityModel.setObject(model.getObject());

}
});
So it does not update on submit, but instead onSelectionChange of  
the builder..


2009/5/11 Brill Pappin br...@pappin.ca:
I'm trying to use ObjectAutoComplete from wicketstuff on a form  
where the

model is a CompoundPropertyModel.

The auto compete field doesn't seem to be setting its value on the  
form

model at all during a submit.

I've looked at the examples for this component and not a single one  
actually

includes the onSubmit implementation.
Is there something special i have to do with this component?

- Brill Pappin


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





smime.p7s
Description: S/MIME cryptographic signature


objectautocomplete on a form with CompoundPropertyModel

2009-05-10 Thread Brill Pappin
I'm trying to use ObjectAutoComplete from wicketstuff on a form where  
the model is a CompoundPropertyModel.


The auto compete field doesn't seem to be setting its value on the  
form model at all during a submit.


I've looked at the examples for this component and not a single one  
actually includes the onSubmit implementation.

Is there something special i have to do with this component?

- Brill Pappin

smime.p7s
Description: S/MIME cryptographic signature


inmethod grid generics patch

2009-05-08 Thread Brill Pappin

according to this post;

http://tinyurl.com/qlghyf

the inmethod grid it he wicketstuff modules was to get generics.

I'm finding the missing generics a real pain in the behind but I also  
have a recent checkout of the 1.4-SNAPSHOT of wicketstuff, and it does  
not yet have generics.


Does anyone know if this component has been abandoned or not?
If I have to I'll go an add the generics myself, but if there is a  
copy out there that already has them I'd rather use that version.


- Brill Pappin

smime.p7s
Description: S/MIME cryptographic signature


Re: inmethod grid generics patch

2009-05-08 Thread Brill Pappin

That would be great!

If you need an area to focus on, it's the generics that type things  
like getSelectedItems() etc. and some of the other common overrides.


- Brill Pappin


On 8-May-09, at 5:57 PM, Matej Knopp wrote:

Found the patch, will assign it to jira issue. And possibly apply  
after review.


-Matej

On Fri, May 8, 2009 at 11:54 PM, Matej Knopp matej.kn...@gmail.com  
wrote:

Hi,

it's not abandoned. There's a project created for it in wicketstuff
jira that can be used to submit patches.

-Matej

On Fri, May 8, 2009 at 11:49 PM, Brill Pappin br...@pappin.ca  
wrote:

according to this post;

http://tinyurl.com/qlghyf

the inmethod grid it he wicketstuff modules was to get generics.

I'm finding the missing generics a real pain in the behind but I  
also have a
recent checkout of the 1.4-SNAPSHOT of wicketstuff, and it does  
not yet have

generics.

Does anyone know if this component has been abandoned or not?
If I have to I'll go an add the generics myself, but if there is a  
copy out

there that already has them I'd rather use that version.

- Brill Pappin




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





smime.p7s
Description: S/MIME cryptographic signature


Re: validation message-keys differences on m3 to rc2

2009-05-07 Thread Brill Pappin

I'm having a bit of trouble with this as well.

Are the properties document any place? I can't seem to find them  
anywhere.


- brill

On 6-Apr-09, at 5:59 AM, Gianni Doe wrote:


ComponentStringResourceLoader's javadoc is very helpful here:

quote
assume a component hierarchy like page1.form1.input1 and your are  
requesting a key named 'Required'. Wicket will search the property  
in the following order:


page1.properties = form1.input1.Required
page1.properties = Required
form1.properties = input1.Required
form1.properties = Required
input1.properties = Required
myApplication.properties = page1.form1.input1.Required
myApplication.properties = Required
/quote

What it doesn't mention is that if the form component is nested in  
another container such as a border then the border id needs to be  
included in the key.


e.g. if I have page1.form1.border1.input1 then in the form's  
properties file I have to include the border component in the key -  
border1.input1.Required, it would be cleaner just to be able to use  
input1.Required.


-Gianni



On 18/mar/09, at 21:09, Gianni Doe wrote:


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

On 10/mar/09, at 15:55, Igor Vaynberg wrote:


jira, quickstart, you know the drill

-igor

On Tue, Mar 10, 2009 at 3:15 AM, gilberthuph gdoe6...@yahoo.it  
wrote:


I'm having exactly the same problem after moving from 1.4-rc1 -  
1.4-rc2


Here's the extract from my properties file TaxiBookingPage.xml.

?xml version=1.0 encoding=UTF-8?
!DOCTYPE properties SYSTEM http://java.sun.com/dtd/ 
properties.dtd

properties
 entry  
key=generalDetails.numberOfVehiclesRequired.RequiredYou must

enter the number of vehicles/entry
 .. snip ..
/properties

RC1

The key generalDetails.numberOfVehiclesRequired.Required is found
immediately and the appropriate message retrieved.

11:00:38.595 [http-8180-3] DEBUG org.apache.wicket.Session -  
Getting

page [path = 4:taxiBookingForm, versionNumber = 0]
11:00:38.609 [http-8180-3] DEBUG
org.apache.wicket.resource.loader.ComponentStringResourceLoader -  
Found

resource from: com/rp/webapp/taxi/TaxiBookingPage.; key:
generalDetails.numberOfVehiclesRequired.Required


RC2

Does not attempt to look up
generalDetails.numberOfVehiclesRequired.Required but the key
taxiBookingForm 
.numberOfVehiclesContainer 
.numberOfVehiclesRequiredBorder 
.generalDetails.numberOfVehiclesRequired.Required

which is not found.

10:47:47.902 [http-8180-1] DEBUG org.apache.wicket.Localizer  
- Locate
property: key: 'Required'; Component: '[MarkupContainer  
[Component id =

generalDetails.numberOfVehiclesRequired]]'
10:47:47.903 [http-8180-1] DEBUG
org.apache.wicket.resource.loader.ComponentStringResourceLoader -  
component:

'[MarkupContainer [Component id =
generalDetails.numberOfVehiclesRequired]]'; key: 'Required'
10:47:47.903 [http-8180-1] DEBUG
org.apache.wicket.resource.loader.ComponentStringResourceLoader -  
key:
'taxiBookingForm 
.numberOfVehiclesContainer 
.numberOfVehiclesRequiredBorder 
.generalDetails.numberOfVehiclesRequired.Required';
class: 'com.rp.webapp.taxi.TaxiBookingPage'; locale: 'en_GB';  
Style: 'null'

10:47:47.903 [http-8180-1] DEBUG
org.apache.wicket.resource.loader.ComponentStringResourceLoader -  
Found
properties file: 'com/rp/webapp/taxi/TaxiBookingPage.' but it  
doesn't

contain the property

So it seems the lookup algorithm hasn't changed but the message  
key.


Is this a bug or should we now be using the full form-relative  
key as shown

above?



Alexander Lohse wrote:


I could not find any reported changes concerning validation  
message

keys from version 1.4-m3 to 1.4-rc2, but I have the following
required key in my application resources that does not work  
anymore.

.. trim ..



--
View this message in context: 
http://www.nabble.com/validation-message-keys-differences-on-m3-to-rc2-tp22155986p22431244.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





-
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





smime.p7s
Description: S/MIME cryptographic signature


inmethod grid converter/formatter?

2009-05-07 Thread Brill Pappin
I'm spiking on the inmethod grid components from wicketstuff (1.4- 
SNAPSHOT)


I need to be able to format the data in columns and or modify it for  
view only columns.


the specific case is a description field that sometime needs and  
ellipsis.


I can't see any way to add converters or formatters to the column  
models.. have anyone else tried this or come up with a solution?


So far the only solution i have is to wrap my Pojo's in another pojo  
and provide read-only access to one of the fields.


- Brill Pappin

smime.p7s
Description: S/MIME cryptographic signature


Re: inmethod grid converter/formatter?

2009-05-07 Thread Brill Pappin

that would certainly work, but I'd lose the editor column I'm using ;)
All i really need is to be able to add a display formatter so i can  
truncate the content with an ellipsis. Even a method i could override  
when its outputting the label content would work. If there is such a  
method, I'm unsure where it is.


I constantly need to reformat some content into something the user can  
see. but with a inmethod grid, you actually need a display formatter  
and an editor formatter.


- Brill Pappin

On 7-May-09, at 4:21 PM, Ryan McKinley wrote:


what about just implementing AbstractLightWeightColumn#newCell?

this lets you write text directly to the output...


On May 7, 2009, at 4:15 PM, Brill Pappin wrote:

I'm spiking on the inmethod grid components from wicketstuff (1.4- 
SNAPSHOT)


I need to be able to format the data in columns and or modify it  
for view only columns.


the specific case is a description field that sometime needs and  
ellipsis.


I can't see any way to add converters or formatters to the column  
models.. have anyone else tried this or come up with a solution?


So far the only solution i have is to wrap my Pojo's in another  
pojo and provide read-only access to one of the fields.


- Brill Pappin






smime.p7s
Description: S/MIME cryptographic signature


Re: Tools for Managing a Wicket Project

2009-04-29 Thread Brill Pappin




+1 Thats almost exactly our preferred setup.



- svn (instead of cvs)
- maven (check the quickstart project on the wicket page)
- archiva (your own maven repository)
- hudson (continous integration build system)


Kind regards
Florian Sperber

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





smime.p7s
Description: S/MIME cryptographic signature


Re: Tools for Managing a Wicket Project

2009-04-29 Thread Brill Pappin

Your unable to use a repo like Archiva?
You should be able to package up your customer components and maintain  
versions by deploying to archiva... we do the same thing, and its a  
life saver, particularly when you have legacy projects that use older  
versions of a component.


Our archiva repo has become one of our backup targets.

- Brill Pappin





On 29-Apr-09, at 1:16 PM, Carlo Camerino wrote:

[...]
one thing that i'd like to have though is a way to track common custom
components.
We have developed a lot of common components but once the project  
begins to

become larger, it's hard to keep track of them.




smime.p7s
Description: S/MIME cryptographic signature


Re: Tools for Managing a Wicket Project

2009-04-29 Thread Brill Pappin

Heres another book for you.
This is actually one of my favorites, particularly if you working with  
existing code.


http://www.amazon.com/Working-Effectively-Legacy-Robert-Martin/dp/0131177052




- Brill Pappin





On 29-Apr-09, at 4:11 PM, Dane Laverty wrote:

Thanks again to everyone for all the feedback. I'm reading through  
Design
Patterns and Wicket in Action, but I've never heard of Effective  
Java. The
Amazon reviews for that book are also amazing. I've got it ordered  
now and

am excited to see what it will bring.

On Wed, Apr 29, 2009 at 12:37 PM, Scott Swank  
scott.sw...@gmail.com wrote:



I agree with Jeremy, that tech books are probably far more important
than project management books for a first Java project.

Basics
-Effective Java, Joshua Block
-Wicket in Action, Dashorst  Hillenius
-one more on jdbc or hibernate or ibatis -- your persistence api

Design (language agnostic)
-Design Patterns, gang of four
-Domain Driven Design, Eric Evans

Advanced (as needed)
-Java Concurrency in Practice, Goetz
-NIO from O'Reilly
-whatever...

Scott


On Wed, Apr 29, 2009 at 12:19 PM, Jeremy Thomerson
jer...@wickettraining.com wrote:
I would HIGHLY recommend that each of you get a copy of Joshua  
Bloch's

Effective Java, now in it's second edition.  It's not really project
management, but since your team as a whole is not mature with  
Java, it

will offer some good advice.  Of course, make sure everyone is
familiar with Wicket in Action and has gone through the exercises -
that will give them a good foundation.

As far as books on Java project management, I don't have any
recommendations.  I've perused some but never been fascinated.   
Maybe

someone else will have a good recommendation.

--
Jeremy Thomerson
http://www.wickettraining.com


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






smime.p7s
Description: S/MIME cryptographic signature


Re: Does FeedbackPanel have to be added to Page?

2009-04-27 Thread Brill Pappin
That error comes directly from this ticket in JIRA... if you want to  
know how it came to be, read the comments.


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

- Brill Pappin





On 26-Apr-09, at 7:52 PM, Jason Wang wrote:


Hi all,


I got a weird error when doing a form component validation. When it  
fails on the validation the feedback panel is not updated with the  
error message. The log shows this:


Component-targetted feedback message was left unrendered. This could  
be because you are missing a FeedbackPanel on the page.



Well, I added the FeedbackPanel on the form belonging to a webpage.  
And all the error messages sent to the panel can be properly  
displayed. Just the one triggered with a component.validate failed  
to display.


The example below can reproduce this error I got:
Java:

public class Example extends WebPage {
  public Example(){
  Form signupForm = new Form(signUpForm);
  final FeedbackPanel feedbackPanel = new  
FeedbackPanel(feedback);
   
feedbackPanel.setEscapeModelStrings(false).setOutputMarkupId(true);

  signupForm.add(feedbackPanel);

  final RequiredTextFieldString mobile = new  
RequiredTextFieldString(

  mobile);
  mobile.setLabel(new ModelString(mobile)).add(new  
PatternValidator(^[1-9]([0-9]{8,14})));


  mobile.add(new AjaxFormComponentUpdatingBehavior(onblur) {
  protected void onUpdate(AjaxRequestTarget  
ajaxRequestTarget) {

  mobile.validate();
  ajaxRequestTarget.addComponent(feedbackPanel);
  }
  });
  signupForm.add(mobile);

  add(signupForm);
  }
}

Html:

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

html
  xmlns=http://www.w3.org/1999/xhtml;
  xmlns:wicket=http://wicket.sourceforge.net/;
  xml:lang=en
  lang=en
body



  form wicket:id=signUpForm class=signUpForm
  span wicket:id=feedback[feedbackmessages will be put  
here]/span
  input wicket:id=mobile id=mobile type=text  
size=20 class=signUpForm-input/

/form

/body
/html





Cheers,
Jason

-
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: custom expired page

2009-04-27 Thread Brill Pappin

Like because your expired page requires the role.
Remove the role annotation.

- Brill Pappin





On 27-Apr-09, at 3:32 PM, alec wrote:

We have a wicket 1.3.5 application and are having trouble  
redirecting to an expired page if the user clicks on a link after  
the session expired.  in our application's init method we have the  
call

getApplicationSettings().setPageExpiredErrorPage(ExpiredPage.class);
and this works if they click on a normal link after the session has  
been expired, but we're also using the AuthorizeInstantiation  
annotations (from wicket-auth-roles) on several pages that forces a  
logged in user to have a certain role to access the page or be  
redirected to the login page.  Our problem is that if the session  
expired then the user gets redirected to the login page because of  
an unauthorized instantiation instead of being redirected to the  
expired page.
Is there some way to work around this, or is there a way to  
determine if the session had expired on the login page so we could  
display a message there?


-
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: remember me at login page feature

2009-04-24 Thread Brill Pappin
chuckle, I wasn't knocking it Martin... I don't see how you would know  
how to auto-authenticate from the framework :)
What was missing in the wicket-auth-roles framework, was actually a  
way to pre-check the users authorization and then allow the login  
page if they were not already authenticated or allow them through to  
the secure page if the were... which is what I had to hack in.



- Brill Pappin





On 20-Apr-09, at 9:16 AM, Martin Makundi wrote:


Well, real auto login works without the form so without
repopulating... but ofcourse if some auth-roles is involved, it must
be taken into account. My example code was for barebones wicket.

**
Martin

2009/4/20 Brill Pappin br...@pappin.ca:

It may not work as you expect.
What it does is store the username in a cookie and repopulates it if
possible when you hit the login page again.

What I expected it to do was  to auto login, and I had to port he
wicket-auth-roles code to support auto-signin.

- Brill Pappin





On 19-Apr-09, at 8:09 AM, Khlystov Alexandr wrote:



Good day.

Can anyone, please, give an example, or direct wicket API  
description

about remember me at login page feature.

Thanks in advance.

--
Khlystov Alexandr


-
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





smime.p7s
Description: S/MIME cryptographic signature


Re: Register - activate account - login

2009-04-24 Thread Brill Pappin

I think that might be somewhat application specific would it not?

I've written a few in wicket now, but none of them would make good  
frameworks.


- Brill Pappin





On 22-Apr-09, at 10:41 AM, Jan Torben Heuer wrote:


Hi,


Is there a component that handles user registration, email  
verification

(account activation) and login stuff?

I currently use the classes
org.apache.wicket.authentication.AuthenticatedWebApplication;
org.apache.wicket.authentication.AuthenticatedWebSession;
org.apache.wicket.authentication.panel.SignInPanel.SignInPanel
which work well in my project.

Thanks,

Jan



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





smime.p7s
Description: S/MIME cryptographic signature


Re: remember me at login page feature

2009-04-20 Thread Brill Pappin

It may not work as you expect.
What it does is store the username in a cookie and repopulates it if  
possible when you hit the login page again.


What I expected it to do was  to auto login, and I had to port he  
wicket-auth-roles code to support auto-signin.


- Brill Pappin





On 19-Apr-09, at 8:09 AM, Khlystov Alexandr wrote:



Good day.

Can anyone, please, give an example, or direct wicket API  
description about remember me at login page feature.


Thanks in advance.

--
Khlystov Alexandr


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





smime.p7s
Description: S/MIME cryptographic signature


Re: Google Analytics and Wicket

2009-04-17 Thread Brill Pappin
I'm not sure its going to work like that because as far as the browser  
is concerned (where google analytics runs) it's one seamless page.
in other words your panels are only separate as a means to easy  
development and maintenance but not as visible http requests.
That would be true of pretty much *any* ajax application, which really  
only has one (or a few) pages.


- Brill Pappin



On 18-Apr-09, at 5:57 PM, Mariana Bustamante wrote:

Is there any other method that doesn't mean many changes in my  
application??
Everything is already working fine and adding Google Analytics was  
supposed

to be one the final details..

I was thinking of something like adding the javascript manually into  
my

panels, I tried this on the panel to test it but it didn't work:

   border.add(new AjaxEventBehavior(onload){
   @Override
   protected void onEvent(AjaxRequestTarget  
target) {

   if(!tracked){
   String jsGoogle = if
(http_request.readyState == 4) { if (http_request.status ==  
200) {

alert(http_request.responseText);
pageTracker._trackPageview('+GOOGLE_NAME+' ); } else  
{ alert('Error.'); ;



target.addComponent(border);


target.appendJavascript(jsGoogle);
   tracked = true;
   }
   }

   });

any more ideas?

Thanks in advance,

Mariana

On Sat, Apr 18, 2009 at 5:28 PM, nino martinez wael 
nino.martinez.w...@gmail.com wrote:


If you use markup inheritance just drop it in the parent page.. And
there you go.. :) If not.. Well this is a good reason to start :)
Works like a snug for my applications

2009/4/17 Mariana Bustamante marian...@gmail.com:

Hello,

I'm trying to use Google Analytics with my web application made  
using

Wicket. The layout of my application is like this:

I have a global plage called homePage that contains some panels  
inside.
One of the panels is a menu which is completely made in java code  
using
Wicket, the other important panel is the content panel that  
changes to a
different panel with Ajax every time a user clicks a button on the  
menu.


I tried placing the Google Analytics script at the bottom of the  
homePage

but, as expected, in the generated report I can only see this page.

However,

I need to be able to view every panel as a different page.

There is a link in the google analytics suppport page that seems  
like

what

I'm looking for (


http://www.google.com/support/googleanalytics/bin/answer.py?hl=enanswer=55519
)
but I can't see where to put the code they give since the links in  
my

menu

are generated by Wicket in java code and not in html.

I would really appreciate any help to solve this problem,

Thanks in advance,

Mariana



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






smime.p7s
Description: S/MIME cryptographic signature


Re: OAuth in Wicket

2009-04-15 Thread Brill Pappin

yes, i means prebuilt auth session and signin pages etc.

- Brill Pappin





On 14-Apr-09, at 10:20 PM, David Leangen wrote:



Ok.

So, what exactly do you mean by Wicket specific code?

OAuth and Wicket seem to be orthogonal, IMO. Perhaps you're  
referring to something like a generic OpenID sign in page??


In any case, there are a few tricks you could use. Again, if you  
have any specific questions, I'd be happy to share my experiences.



Cheers,
=David



On Apr 15, 2009, at 11:15 AM, Brill Pappin wrote:

Yes I did see the implementation... just wondered if anyone had  
written any wicket specific code.


- Brill Pappin





On 14-Apr-09, at 6:35 PM, David Leangen wrote:



Yes.

There is a java library you can use:

 http://code.google.com/p/oauth/

Unfortunately, my stuff is not well generalized, so there's no  
point that I
make it public. However, if you have any particular problems,  
please let me

know.

I think a few others have also done this before, too.


Cheers,
=David




-Original Message-
From: Brill Pappin [mailto:br...@pappin.ca]
Sent: 15 April 2009 01:14
To: users@wicket.apache.org
Subject: OAuth in Wicket


This looks very interesting.
http://oauth.net/

Has anyone integrated OAuth with wicket?


- Brill Pappin









-
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





smime.p7s
Description: S/MIME cryptographic signature


Re: OAuth in Wicket

2009-04-15 Thread Brill Pappin
Sure, I wouldn't mind some working openId code  i didn't have to  
write ;)


Seems like a lot of folks are rolling their own in terms of  
alternative security systems...
I've been thinking of writing a wicket-sso-roles module similar to  
wicket-auth-roles. Is there enough interest from people in doing that?


currently I have a hacked version of wicket-auth-roles that I'm using  
which stores a user token (used to capture state after session  
timeout), but I could certainly see this being a more general lib.


- Brill Pappin





On 15-Apr-09, at 2:20 AM, nino martinez wael wrote:


Hi Bill

I dont have anything in regards to Oauth, but I have something thats
95% finished towards openID... I can paste it here if you like?

regards Nino

2009/4/15 David Leangen wic...@leangen.net:


Ok.

So, what exactly do you mean by Wicket specific code?

OAuth and Wicket seem to be orthogonal, IMO. Perhaps you're  
referring to

something like a generic OpenID sign in page??

In any case, there are a few tricks you could use. Again, if you  
have any

specific questions, I'd be happy to share my experiences.


Cheers,
=David



On Apr 15, 2009, at 11:15 AM, Brill Pappin wrote:

Yes I did see the implementation... just wondered if anyone had  
written

any wicket specific code.

- Brill Pappin





On 14-Apr-09, at 6:35 PM, David Leangen wrote:



Yes.

There is a java library you can use:

 http://code.google.com/p/oauth/

Unfortunately, my stuff is not well generalized, so there's no  
point that

I
make it public. However, if you have any particular problems,  
please let

me
know.

I think a few others have also done this before, too.


Cheers,
=David




-Original Message-
From: Brill Pappin [mailto:br...@pappin.ca]
Sent: 15 April 2009 01:14
To: users@wicket.apache.org
Subject: OAuth in Wicket


This looks very interesting.
http://oauth.net/

Has anyone integrated OAuth with wicket?


- Brill Pappin









-
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





smime.p7s
Description: S/MIME cryptographic signature


Re: OAuth in Wicket

2009-04-15 Thread Brill Pappin
just like wicket auth roles, which does have a page, but most of the  
work is done in the panel... easy to extends and modify the UI.


- Brill Pappin





On 15-Apr-09, at 10:56 AM, Jeremy Thomerson wrote:

Not many projects include prebuilt pages because in most apps you  
are going

to want all of your pages to extend from your base page.  You may have
prebuilt panels that can be used in your own pages, though.

--
Jeremy Thomerson
http://www.wickettraining.com



On Wed, Apr 15, 2009 at 9:52 AM, Brill Pappin br...@pappin.ca wrote:


yes, i means prebuilt auth session and signin pages etc.

- Brill Pappin






On 14-Apr-09, at 10:20 PM, David Leangen wrote:



Ok.

So, what exactly do you mean by Wicket specific code?

OAuth and Wicket seem to be orthogonal, IMO. Perhaps you're  
referring to

something like a generic OpenID sign in page??

In any case, there are a few tricks you could use. Again, if you  
have any

specific questions, I'd be happy to share my experiences.


Cheers,
=David



On Apr 15, 2009, at 11:15 AM, Brill Pappin wrote:

Yes I did see the implementation... just wondered if anyone had  
written

any wicket specific code.

- Brill Pappin





On 14-Apr-09, at 6:35 PM, David Leangen wrote:



Yes.

There is a java library you can use:

http://code.google.com/p/oauth/

Unfortunately, my stuff is not well generalized, so there's no  
point

that I
make it public. However, if you have any particular problems,  
please let

me
know.

I think a few others have also done this before, too.


Cheers,
=David



-Original Message-

From: Brill Pappin [mailto:br...@pappin.ca]
Sent: 15 April 2009 01:14
To: users@wicket.apache.org
Subject: OAuth in Wicket


This looks very interesting.
http://oauth.net/

Has anyone integrated OAuth with wicket?


- Brill Pappin









-
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








smime.p7s
Description: S/MIME cryptographic signature


OAuth in Wicket

2009-04-14 Thread Brill Pappin

This looks very interesting.
http://oauth.net/

Has anyone integrated OAuth with wicket?


- Brill Pappin







smime.p7s
Description: S/MIME cryptographic signature


Re: OAuth in Wicket

2009-04-14 Thread Brill Pappin
Yes I did see the implementation... just wondered if anyone had  
written any wicket specific code.


- Brill Pappin





On 14-Apr-09, at 6:35 PM, David Leangen wrote:



Yes.

There is a java library you can use:

   http://code.google.com/p/oauth/

Unfortunately, my stuff is not well generalized, so there's no point  
that I
make it public. However, if you have any particular problems, please  
let me

know.

I think a few others have also done this before, too.


Cheers,
=David




-Original Message-
From: Brill Pappin [mailto:br...@pappin.ca]
Sent: 15 April 2009 01:14
To: users@wicket.apache.org
Subject: OAuth in Wicket


This looks very interesting.
http://oauth.net/

Has anyone integrated OAuth with wicket?


- Brill Pappin









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





smime.p7s
Description: S/MIME cryptographic signature


Re: serialVersionUID

2009-04-12 Thread Brill Pappin

Nice.
I think thats actually more important than we've been giving it credit  
for in this thread!


- Brill Pappin





On 12-Apr-09, at 12:51 AM, Luther Baker wrote:


I don't know much about it ... but would something like Terracotta
use/require/leverage the serialVersionUID for something not so  
obvious in

normal, singly homed deployments?

I think I understand that it helps confirm or explicitly 'version'
components that might be working together or across, say, JVM  
boundaries -
but it seems like, if not explicitly provided, a default value is  
built

automatically and, unless I want an older version to work with a newer
version, I am fine just letting that happen.

In fact, unless I am really abiding by serialVersionUID rules  
(changing it

explicitly - every time I make a relevant, corresponding change to the
containing class) - I'm not really gaining any functionality that the
runtime can't already do. In fact, unless rigorously maintained, it  
seems I
could likely end up with two different compiled versions with  
identical,
explicit serialVersionUIDs - which surely seems worse then leaving  
it alone?


-Luther


On Sat, Apr 11, 2009 at 10:56 PM, Adriano dos Santos Fernandes 
adrian...@uol.com.br wrote:


Brill Pappin wrote:

Actually i don't think a missing one will cause that to fail  
unless there

are a  lot of incompatible changes.

Just one incompatible change of class stored in the session and it  
will not

be deserialized.


However... even if it does matter, *in no way* should anyone  
depend on a
serialized session to store data if your app can't recover  
from a clean

session, you have bigger problems than not adding a serialVersionId.


Hum? What about stateful pages, which is the Wicket market?

If you can control your serial IDs, you have the chance of write  
custom
deserializers. That does not means you can't with an absent ID, but  
AFAIU

just the inclusion of one field and it will change making the
deserialization fail.



Adriano



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






smime.p7s
Description: S/MIME cryptographic signature


Re: serialVersionUID

2009-04-12 Thread Brill Pappin
It wouldn't because its not really meant as an accessible member of  
the class.
It's used at a lower level and would be accessible regardless of the  
scope.


- Brill Pappin





On 12-Apr-09, at 1:46 PM, Ben Tilford wrote:

I've always seen it done as public. Anyways I checked the javadoc  
and the

access modifier does not matter.

On Sun, Apr 12, 2009 at 1:56 AM, Eelco Hillenius
eelco.hillen...@gmail.comwrote:

The purpose of the *public* static final long serialVersionUID is  
for

long

Why do you stress *public*? private is the norm for serialVersionUID.

Eelco

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






smime.p7s
Description: S/MIME cryptographic signature


Re: Package all CSS and JS

2009-04-11 Thread Brill Pappin
Yes, I see your point... by including jquery with two different sets,  
you actually make it worse because it can't be cached anymore.
You're only going to gain a minor advantage if you bundle the whole  
possible set (for the whole site) in one download, but I doubt it  
would be worth the trouble for what you'd gain from it.


- Brill Pappin





On 10-Apr-09, at 5:16 PM, Igor Vaynberg wrote:


my point is that the just in time thing will not work

suppose

on page A you use jquery and ext
on page B you use jquery and yui

using this just-in-time composition you will get two resources:
jquery+ext and jquery+yui - so you are trading 3 hits for two hits,
but transferring jquery twice.

even worse, consider on page B you have a dynamic header contributor
that sometimes adds mootools.

so now you have jquery+ext, jquery+yui, jquery+yui+mootools, in the
case of the latter you did not actually save a request to the server
because you still have the jquery+yui+mootools combo, but because you
are doing this caching the last request which was supposed to be just
for mootols now also has to carry jquery+yui.

wicket is very dynamic, which makes these kinds of page-oriented
caching strategies difficult. in order to work correctly everything
should be oriented around a component, not a page.

-igor


On Fri, Apr 10, 2009 at 1:44 PM, Brill Pappin br...@pappin.ca wrote:
Yah, he's right about the caching... so maybe not work it...  
however the
solution someone posted was a ... hmm... Just in Time Resource kind  
of idea.

which would still optimize for whatever page you were on (instead of
bundling it all up into one giant file).


- Brill Pappin





On 10-Apr-09, at 2:55 AM, Jeremy Thomerson wrote:

I think that this response by Igor to another thread was supposed  
to be on

this one.  Either way, it fits this one.

it is much simpler and more efficient to set proper caching headers.


concatenating resources often does not work because different
components on different pages contribute different resources, so  
there

are a lot of variations of these huge files you may end up with and
would have to stream to the user over and over. yes, it would  
only be

one request per page, but it would be a huge one over and over as
opposed to being able to cache a lot of small resources and never
request them again.

-igor



--
Jeremy Thomerson
http://www.wickettraining.com



On Thu, Apr 9, 2009 at 9:06 AM, Eduardo Nunes esnu...@gmail.com  
wrote:



Hi,

Is there a way to tell wicket to package all referenced javascripts
together, the same for the css? If there isn't this solution yet,  
can

anyone tell me where should I look for to implement it?

Thanks,
Eduardo S. Nunes

-
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





smime.p7s
Description: S/MIME cryptographic signature


Re: serialVersionUID

2009-04-11 Thread Brill Pappin

Yes, its fine.

you really only need to worry about that kind of thing when you are  
passing java serialized classes between VMs (as in RMI).
In fact, you likely don't really even need to bother for Wicket, and  
you can turn off that check in Eclipse.


- Brill Pappin





On 11-Apr-09, at 9:45 AM, Luther Baker wrote:


A quick question - is it generally acceptable to use

   private static final long serialVersionUID = *1L*;

for most the anonymous inner class I create using Wicket?  
Specifically, I'm

asking about using the value (-1).

I've seen this idiom in the source but wasn't sure if there was some
rational or serialization concerns I needed to be aware of before  
generally

using (-1) everywhere.

-Luther




smime.p7s
Description: S/MIME cryptographic signature


Re: serialVersionUID

2009-04-11 Thread Brill Pappin
Yah, i used to always add it just for completeness, but I quickly  
realized its just a bunch of YAGNI junk i don't need cluttering up my  
code.

Now i just turn it off.

- Brill Pappin





On 11-Apr-09, at 11:14 PM, Jim Pinkham wrote:

I'm suprised no one has mentioned the runtime cost of computing a  
default
serialversionid which is avoided if a constant is supplied.   I used  
to make

it a habit for this reason.

This thread made me curious if that was really true, so I googled a  
bit and
found this articlehttp://www.javaworld.com/javaworld/javaqa/2003-06/02-qa-0627-mythser.html 
which

found no such benefit, and suggests we needn't bother.  I think I'll
turn off the Eclipse warning instead.

-- Jim.

On Sat, Apr 11, 2009 at 10:50 PM, John Krasnay j...@krasnay.ca  
wrote:



On Sat, Apr 11, 2009 at 05:32:51PM -0400, Ben Tilford wrote:
The purpose of the *public* static final long serialVersionUID is  
for

long

term storage or situations where you may potentially have made

modifications

to the class that make it incompatible with previous versions

(distributed

apps/clustering).


It only prevents trivial changes (e.g. adding a public method) from
breaking your serialization compatibility. You can still break the
compatibility even with a serialVersionUID, e.g. by renaming a field.
Besides, Wicket page maps are neither long-term storage nor remotely
communicated, so I don't really see the point of putting in the  
effort.



I'd say that its easier to just add it in case you ever
need it, its only 1 line of code.


Given Wicket's reliance on component inheritance, adding
serialVersionUID in every place Eclipse complains about it would  
amount
to hundreds of lines of code on my projects. Java code has enough  
noise

already.

jk

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






smime.p7s
Description: S/MIME cryptographic signature


Re: serialVersionUID

2009-04-11 Thread Brill Pappin
Actually i don't think a missing one will cause that to fail unless  
there are a  lot of incompatible changes.


However... even if it does matter, *in no way* should anyone depend on  
a serialized session to store data if your app can't recover from  
a clean session, you have bigger problems than not adding a  
serialVersionId.


- Brill Pappin





On 11-Apr-09, at 11:45 PM, Adriano dos Santos Fernandes wrote:


Brill Pappin wrote:

Yes, its fine.

you really only need to worry about that kind of thing when you are  
passing java serialized classes between VMs (as in RMI).
In fact, you likely don't really even need to bother for Wicket,  
and you can turn off that check in Eclipse.
If you care about inability to maintain your users sessions after a  
redeploy, depending on your change, you would not do it. It serves  
for this purpose as well.



Adriano


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





smime.p7s
Description: S/MIME cryptographic signature


Re: Package all CSS and JS

2009-04-10 Thread Brill Pappin
You could likely do that fairly easily, but how do you know which ones  
are need by which page?

For instance page A may not need all the CSS that page B does.

- Brill Pappin





On 10-Apr-09, at 2:49 AM, Bjoern Tietjens wrote:


Hi,
how about doing this with some kind of precompilation step? You  
could manipulate the code with maven or ant befor packing the war  
having an task combining all js and css in one.


Just an idea...

Cheers
Bjoern Tietjens


Am 10.04.2009 um 05:31 schrieb Brill Pappin br...@pappin.ca:


Funny, I was thinking that same thing...
in one quick app i was writing, I had ~20 header links!
I kept thinking that can't be good :)

although I have not done so yet, I think there must be a way to  
modify or create a resource loader that would generate a buffered  
version of css (for isntance) and change the request page to just  
load it.


Let us know if you tackle that one... I'd love to see the code.

- Brill Pappin





On 9-Apr-09, at 10:57 AM, Eduardo Nunes wrote:


I think that I didn't explain it right. What I want is that wicket
concatenate all included javascripts into one file. Something like
wicket:link
link.. javascript1.js /
link.. javascript2.js /
link.. javascript3.js /
/wicket:link

Generate just one resource with javacript1.js, javacript2.js and
javacript3.js concatenated. The reason for that is to reduce the
number of requests. I have a project that includes almost 10
javascripts files and around 7 css files, it would be faster if the
browser has to download just 2 files, one for all javascript and
another one for css.

I can do it with a servlet or something like this, but I want a
solution that works inside wicket, that i don't have to change my
source code.

Probably wicket has a piece of source code responsible for the
wicket:head tag, If I could intercept it and get all included
javascripts, remove them from the generated html and include my own
resource with all javascripts concatenated, I would be happy hehehe

Please ask me if you don't understand, I have to improve my  
english :(


Thanks,
Eduardo S. Nunes

On Thu, Apr 9, 2009 at 11:42 AM, Craig Tataryn  
crai...@tataryn.net wrote:
On Thu, Apr 9, 2009 at 9:06 AM, Eduardo Nunes esnu...@gmail.com  
wrote:



Hi,

Is there a way to tell wicket to package all referenced  
javascripts
together, the same for the css? If there isn't this solution  
yet, can

anyone tell me where should I look for to implement it?



You can put your resources, like css and javascript, directly in  
your
packages either under src/main/java or src/main/resources and  
include them

through header inclusions using a ResourceReference

Craig.



Thanks,
Eduardo S. Nunes

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





--
Craig Tataryn
site: http://www.basementcoders.com/
podcast:http://feeds.feedburner.com/TheBasementCoders
irc: ThaDon on freenode #basementcoders, ##wicket, #papernapkin
im: craiger...@hotmail.com, skype: craig.tataryn



-
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





smime.p7s
Description: S/MIME cryptographic signature


Re: Package all CSS and JS

2009-04-10 Thread Brill Pappin
Yah, he's right about the caching... so maybe not work it... however  
the solution someone posted was a ... hmm... Just in Time Resource  
kind of idea.
which would still optimize for whatever page you were on (instead of  
bundling it all up into one giant file).



- Brill Pappin





On 10-Apr-09, at 2:55 AM, Jeremy Thomerson wrote:

I think that this response by Igor to another thread was supposed to  
be on

this one.  Either way, it fits this one.

it is much simpler and more efficient to set proper caching headers.

concatenating resources often does not work because different
components on different pages contribute different resources, so  
there

are a lot of variations of these huge files you may end up with and
would have to stream to the user over and over. yes, it would only be
one request per page, but it would be a huge one over and over as
opposed to being able to cache a lot of small resources and never
request them again.

-igor



--
Jeremy Thomerson
http://www.wickettraining.com



On Thu, Apr 9, 2009 at 9:06 AM, Eduardo Nunes esnu...@gmail.com  
wrote:



Hi,

Is there a way to tell wicket to package all referenced javascripts
together, the same for the css? If there isn't this solution yet, can
anyone tell me where should I look for to implement it?

Thanks,
Eduardo S. Nunes

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






smime.p7s
Description: S/MIME cryptographic signature


Re: Package all CSS and JS

2009-04-10 Thread Brill Pappin

Ahh... forgot about that...
It will only work for CSS files that are in the same directory if you  
want to find other resources like images.


Can it be done without doubt but its starting o get more complex than  
is likely worth the trouble since as Igor pointed out, the browser  
caches them anyway.



- Brill Pappin





On 10-Apr-09, at 3:06 AM, Alex Objelean wrote:



The problem with merging css is that the backgrounds will not work  
anymore
(in case the images are referenced relatively). But there is a  
solution for
this, check web resource optimizer ( http://code.google.com/p/wro4j/  
wro4j

). It performs url rewriting. Also, resources can be located anywhere
(classpath, disk, relative or absolute url, etc.).

Alex


Bjoern Tietjens wrote:


Hi,
how about doing this with some kind of precompilation step? You could
manipulate the code with maven or ant befor packing the war having an
task combining all js and css in one.

Just an idea...

Cheers
Bjoern Tietjens


Am 10.04.2009 um 05:31 schrieb Brill Pappin br...@pappin.ca:


Funny, I was thinking that same thing...
in one quick app i was writing, I had ~20 header links!
I kept thinking that can't be good :)

although I have not done so yet, I think there must be a way to
modify or create a resource loader that would generate a buffered
version of css (for isntance) and change the request page to just
load it.

Let us know if you tackle that one... I'd love to see the code.

- Brill Pappin





On 9-Apr-09, at 10:57 AM, Eduardo Nunes wrote:


I think that I didn't explain it right. What I want is that wicket
concatenate all included javascripts into one file. Something like
wicket:link
link.. javascript1.js /
link.. javascript2.js /
link.. javascript3.js /
/wicket:link

Generate just one resource with javacript1.js, javacript2.js  
and

javacript3.js concatenated. The reason for that is to reduce the
number of requests. I have a project that includes almost 10
javascripts files and around 7 css files, it would be faster if the
browser has to download just 2 files, one for all javascript and
another one for css.

I can do it with a servlet or something like this, but I want a
solution that works inside wicket, that i don't have to change my
source code.

Probably wicket has a piece of source code responsible for the
wicket:head tag, If I could intercept it and get all included
javascripts, remove them from the generated html and include my own
resource with all javascripts concatenated, I would be happy hehehe

Please ask me if you don't understand, I have to improve my
english :(

Thanks,
Eduardo S. Nunes

On Thu, Apr 9, 2009 at 11:42 AM, Craig Tataryn
crai...@tataryn.net wrote:

On Thu, Apr 9, 2009 at 9:06 AM, Eduardo Nunes esnu...@gmail.com
wrote:


Hi,

Is there a way to tell wicket to package all referenced  
javascripts

together, the same for the css? If there isn't this solution yet,
can
anyone tell me where should I look for to implement it?



You can put your resources, like css and javascript, directly in
your
packages either under src/main/java or src/main/resources and
include them
through header inclusions using a ResourceReference

Craig.



Thanks,
Eduardo S. Nunes

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





--
Craig Tataryn
site: http://www.basementcoders.com/
podcast:http://feeds.feedburner.com/TheBasementCoders
irc: ThaDon on freenode #basementcoders, ##wicket, #papernapkin
im: craiger...@hotmail.com, skype: craig.tataryn



-
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





--
View this message in context: 
http://www.nabble.com/Package-all-CSS-and-JS-tp22971703p22984088.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





smime.p7s
Description: S/MIME cryptographic signature


Re: GWT vs. Wicket?

2009-04-09 Thread Brill Pappin

There is no real easy way, but to do it :)

I find the hardest thing about Wicket, particularly when your first  
starting out, is discarding all the old ideas about how a webapp is  
built...
Having worked in the field for a long time, servlets, JSPs, Struts,  
etc. it took me a while to get over the old patterns of doing things  
and start thinking more wicket'y


I still have trouble with WIcket now and then because there *is* quite  
a lot of complexity when your doing something non-standard, however I  
usually find that the answer is the obvious one and trying something  
usually works... and when I think about it, i realize that the same  
non-standard thing i was doing would have taken just as much time in  
any other framework to sort out.


What I love wicket for in particular, is the very good separation  
between view and controller/model. no more crap logic in my HTML!

Yay.


Anyway, i'll continue to use both GWT and Wicket.

- Brill Pappin





On 8-Apr-09, at 9:24 PM, ying rss wrote:



I played with both GWT and wicket. I was drawn to wicket by several  
reviews

and I'm disappointed.
I use maven to build gwt and ext-js and GXT which works very well.
Compilation is slow but with tuning to specific browser, the call  
stack is

straight forward. It's my feeling that GWT is closer to core java than
wicket.
* I don't know much about javascript so I like the idea of language
separation in GWT. Not very much into wicket's way to blend everything
together.
* Appreciate the fact there are samples for wicket. But Wicket's
documentation and samples are not enough. There is a lot of pain to  
do a
little bit more advanced things in wicket for beginners and there  
are many
user requests in user email list. I never had so much trouble in my  
gwt
project. Maybe I haven't found a easy way out. Appreciate any  
suggestions.


--
View this message in context: 
http://www.nabble.com/GWT-vs.-Wicket--tp22950178p22962926.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: Package all CSS and JS

2009-04-09 Thread Brill Pappin

Funny, I was thinking that same thing...
in one quick app i was writing, I had ~20 header links!
I kept thinking that can't be good :)

although I have not done so yet, I think there must be a way to modify  
or create a resource loader that would generate a buffered version of  
css (for isntance) and change the request page to just load it.


Let us know if you tackle that one... I'd love to see the code.

- Brill Pappin





On 9-Apr-09, at 10:57 AM, Eduardo Nunes wrote:


I think that I didn't explain it right. What I want is that wicket
concatenate all included javascripts into one file. Something like
wicket:link
 link.. javascript1.js /
 link.. javascript2.js /
 link.. javascript3.js /
/wicket:link

Generate just one resource with javacript1.js, javacript2.js and
javacript3.js concatenated. The reason for that is to reduce the
number of requests. I have a project that includes almost 10
javascripts files and around 7 css files, it would be faster if the
browser has to download just 2 files, one for all javascript and
another one for css.

I can do it with a servlet or something like this, but I want a
solution that works inside wicket, that i don't have to change my
source code.

Probably wicket has a piece of source code responsible for the
wicket:head tag, If I could intercept it and get all included
javascripts, remove them from the generated html and include my own
resource with all javascripts concatenated, I would be happy hehehe

Please ask me if you don't understand, I have to improve my english :(

Thanks,
Eduardo S. Nunes

On Thu, Apr 9, 2009 at 11:42 AM, Craig Tataryn crai...@tataryn.net  
wrote:
On Thu, Apr 9, 2009 at 9:06 AM, Eduardo Nunes esnu...@gmail.com  
wrote:



Hi,

 Is there a way to tell wicket to package all referenced javascripts
together, the same for the css? If there isn't this solution yet,  
can

anyone tell me where should I look for to implement it?



You can put your resources, like css and javascript, directly in your
packages either under src/main/java or src/main/resources and  
include them

through header inclusions using a ResourceReference

Craig.



Thanks,
Eduardo S. Nunes

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





--
Craig Tataryn
site: http://www.basementcoders.com/
podcast:http://feeds.feedburner.com/TheBasementCoders
irc: ThaDon on freenode #basementcoders, ##wicket, #papernapkin
im: craiger...@hotmail.com, skype: craig.tataryn



-
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: Package all CSS and JS

2009-04-09 Thread Brill Pappin

Oh nice... exactly what I was thinking... glad I don't have to write it!


- Brill Pappin





On 9-Apr-09, at 1:26 PM, Roman Zechner wrote:


Hi Eduardo!

I remember there was once a discussion here on the mailing list, I  
think part of that was


http://techblog.molindo.at/2008/08/wicket-interface-speed-up-merging-resources-for-fewer-http-requests.html

Roman


Eduardo Nunes wrote:

link href=... / for the css
and
script language=javascript src=... / for the javascripts


On Thu, Apr 9, 2009 at 11:57 AM, Eduardo Nunes esnu...@gmail.com  
wrote:



I think that I didn't explain it right. What I want is that wicket
concatenate all included javascripts into one file. Something like
wicket:link
link.. javascript1.js /
link.. javascript2.js /
link.. javascript3.js /
/wicket:link

Generate just one resource with javacript1.js, javacript2.js and
javacript3.js concatenated. The reason for that is to reduce the
number of requests. I have a project that includes almost 10
javascripts files and around 7 css files, it would be faster if the
browser has to download just 2 files, one for all javascript and
another one for css.

I can do it with a servlet or something like this, but I want a
solution that works inside wicket, that i don't have to change my
source code.

Probably wicket has a piece of source code responsible for the
wicket:head tag, If I could intercept it and get all included
javascripts, remove them from the generated html and include my own
resource with all javascripts concatenated, I would be happy hehehe

Please ask me if you don't understand, I have to improve my  
english :(


Thanks,
Eduardo S. Nunes

On Thu, Apr 9, 2009 at 11:42 AM, Craig Tataryn  
crai...@tataryn.net wrote:


On Thu, Apr 9, 2009 at 9:06 AM, Eduardo Nunes esnu...@gmail.com  
wrote:




Hi,

Is there a way to tell wicket to package all referenced  
javascripts
together, the same for the css? If there isn't this solution  
yet, can

anyone tell me where should I look for to implement it?


You can put your resources, like css and javascript, directly in  
your
packages either under src/main/java or src/main/resources and  
include them

through header inclusions using a ResourceReference

Craig.




Thanks,
Eduardo S. Nunes

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




--
Craig Tataryn
site: http://www.basementcoders.com/
podcast:http://feeds.feedburner.com/TheBasementCoders
irc: ThaDon on freenode #basementcoders, ##wicket, #papernapkin
im: craiger...@hotmail.com, skype: craig.tataryn




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




--
Liland ...does IT better

Liland IT GmbH
Creative Master
email: roman.zech...@liland.at

office: +43 (0)463 220-111  | fax: +43 (0)463 220-288 http://www.Liland.at

-
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: GWT vs. Wicket?

2009-04-08 Thread Brill Pappin
Getting to to do something specific is not usually my problem with GWT  
(its component model feels just like Wickets does)... the biggest  
problem I have is having less control over the html, which makes  
things a bit harder to deal with (Googles ui style now is partly the  
result of how you work with GWT).


GWT itself is pretty extensible, but I found that ExtJS was just the  
opposite... although it has gotten better in ExtGwt.


Anyway, I actually like them both :) and keep both in my toolkit...  
only wish they could play better together.


BTW - your article mentioned not being able to see the HTML... the  
developer tools plugin for Firefox has a View Generated Source  
command, which makes things a lot easier when your debugging GWT html  
(I've even used it on Wicket for that matter).


- Brill Pappin


On 8-Apr-09, at 12:32 PM, Peter Thomas wrote:

I thought Matt Raible had some success with getting GWT to play nice  
with

Maven:

http://raibledesigns.com/rd/entry/modularizing_gwt_applications_with_gwt

Personally I would choose GWT only when I want to keep server calls  
to a
bare minimum.  Ready made components and all may look enticing,  
but in my
experience you always fall into the trap where they do *almost* what  
you

want but not *exactly* (just like JSF).

In theory nothing stops somone from writing components as rich  
looking as

ExtJS.  I think Matej's inmethod grid is a good example.

P.S. people say my article is one sided but no-one can explain  
*why ;) -

ok, ok this has been discussed to death in the comments there ...

On Wed, Apr 8, 2009 at 10:00 AM, Brill Pappin br...@pappin.ca wrote:


Yah, its a pitty, but the Google guys are pretty down on Maven.

I once asked them to look into making it more maven friendly, and got
throughly blasted.
if I remember correctly the comment from one of the GWT developers  
was
something along the lines of we don't want to waste our time with  
garbage

like maven.
I didn't bother to argue about it, because if you know maven and  
like it,
you know why its advantageous, and if your that set against it it  
won't

matter what others say.

However there are a few maven plugins for it, and combined with the  
war
overlay feature, it not to hard to get it all working and integrate  
with

other projects.

- Brill Pappin


On 8-Apr-09, at 10:46 AM, Casper Bang wrote:

Peter Thomas did a great side by side you should checkout:




Good article, if perhaps a bit one-sided. I can understand how
separation-of-concerns/composability comes slightly more natural to
Wicket.
However the performance, flexibility and component repertoire of  
GWT along
with steadily more capable browsers leaves me with a feeling that  
I'll

get
more bang for my buck.

Until GWT has a build system that is better I'll stay away from it.


Since version 1.6 today, it uses normal Ant scripts (which I  
suppose is

easy
to mavenize).

Thanks guys,

/Casper




-
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: authorizing a tab

2009-04-07 Thread Brill Pappin
You could also use one of the two PageTabPanel components we wrote at  
wicketskunkworks.org which would allow you to secure the content of a  
tab using normal page authorization.


There is not much in the way of docs at the moment but you can check  
out both components from:

http://wicket-skunkworks.googlecode.com/svn/trunk/wicket-pagetabs/

and you can include it in your project using the maven repo. See:
http://code.google.com/p/wicket-skunkworks/wiki/MavenRepository

- Brill Pappin


On 7-Apr-09, at 6:36 AM, Marieke Vandamme wrote:



I think I had the same problem a while ago.
Look at the solution in discussion underneath:
http://www.nabble.com/TabbedPanel-%2B-authorization-strategy-td13949910.html#a13965618


Linda van der Pal wrote:


I'm trying to disable a tab in a TabbedPanel based on  
authorization. I'm
using wicket-auth-roles, and it works in other places, for example  
for
buttons. Could anybody tell me what I'm doing wrong? The tab just  
keeps
on showing, and if you click on it you go to a page that states  
that you
don't have authorization for that page. (As I have added an  
annotation

to that page as well.)

public class BookDetailsPanel extends Panel {
   ...
   public BookDetailsPanel(String id, final String isbn, boolean
showEditPanel) {
  ...
  List tabs = new ArrayList();
  ...
  tabs.add(new OwnerEditTab(new Model(edit), isbn));
  ...
   }
   @AuthorizeAction(action = Action.RENDER, roles = { OWNER })
   private class OwnerEditTab extends AbstractTab {
   private static final long serialVersionUID = 1L;
   private String isbn;

   public OwnerEditTab(IModel model, String isbn) {
   super(model);
   this.isbn = isbn;
   }

   @Override
   public Panel getPanel(String panelId) {
   return new BookDetailsEditPanel(panelId, isbn);
   }
   }
}

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





--
View this message in context: 
http://www.nabble.com/authorizing-a-tab-tp22925752p22926397.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: Wicket and (or) restlet

2009-04-04 Thread Brill Pappin

I love Jersey,
Once you get the very simple model it works like a charm with non of  
the hocus-pocus that restlets have.


I do use it with Wicket projects, but I have not yet had to integrate  
the two because usually where I have a service I want to expose I  
don't have the UI... I typically use two separate war builds.


- Brill


On 3-Apr-09, at 5:20 PM, Erik van Oosten wrote:


Jonathan,

If parameter handling is easy to do this in Jersey, then that is  
probably better then Restlet (well v1.x at least). I found that the  
hard part of Restlet. Working with all kinds of resource types is  
very powerfull in Restlet.


Regards,
  Erik.


Jonathan Locke wrote:
well, i'd be the first to admit i don't know either of these two  
products
deeply, but for the kinds of applications i have for web services,  
i found

jersey to have really easy, transparent support for request parameter
processing. you just annotate some parameters, create a jaxb schema  
and add
an @Path attribute and you've pretty much got a web service.  
although it
looks like a nice architecture that sticks to REST terminology, i  
at least
couldn't find how restlet made some of this grunt work easy (but  
then maybe

i missed that somehow).


Alexandru Objelean wrote:

Jonathan, can you elaborate? Why do you think jersey is better?  
Have you

any experience of integrating it with wicket?

Thanks!


Jonathan Locke wrote:


interesting.  yeah, igor's right.  wicket is not for web services.

i prefer jersey to restlet and jersey plays fine with wicket.


Casper Bang-3 wrote:

restlet is for building services not uis, that quote makes  
absolutely

no
sense.


While I agree the quote smells of FUD, one doesn't necessarily  
exclude

the
other. The beauty of REST is its statelessness, addressability,
representation negotiation, caching and other ways it embraces  
HTTP

rather
than run away from it (and use overloaded POST's with tiny RPC  
handlers

for
everything).

In Jersey it's also possible to serve (dynamic) HTML through a  
standard
templating engine, I'm doing this currently and achieving very  
high
scalability while keeping things simple. The caveat with this  
approach

is
that you are stuck to the classic templating model and  
components don't

really exist apart from whatever jQuery/ExtJS stuff you wire up
manually.

So probably like the OP, I can't help but wonder about the  
possebility

of
Wicket running on top as a model-view technology - or perhaps  
just a

programming model adopted after Wicket.

/Casper













--
Erik van Oosten
http://www.day-to-day-stuff.blogspot.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: maven-eclipse-plugin 2.6 will break your wicket projects

2009-04-03 Thread Brill Pappin
Maybe I misread your post, but I thought you were saying that it  
messes up where you want you meta files and forces you to use the  
maven resource pattern?


- Brill

On 2-Apr-09, at 9:42 AM, Martijn Dashorst wrote:


Why fix something that isn't broken?

Martijn

On Thu, Apr 2, 2009 at 3:36 PM, Brill Pappin br...@pappin.ca wrote:
That code is open... why not make a wicket-eclipse-plugin that puts  
the

files were you want them?

- Brill Pappin

On 2-Apr-09, at 6:27 AM, Martijn Dashorst wrote:

Some brilliant guy thought it prudent to make the maven-eclipse- 
plugin

only accept .java files from src/main/java and src/test/java in
version 2.6.

Do not upgrade to this maven-eclipse-plugin version if you intend to
keep on working with your wicket projects in the way Wicket  
Intended.


Always specify which plugin version you want to use and only  
manually

upgrade when you are sure it won't inflict havoc on your co-workers.
This is a maven best practice!

Martijn

-
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






--
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.5 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

-
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: maven-eclipse-plugin 2.6 will break your wicket projects

2009-04-03 Thread Brill Pappin

laugh


not again! ;)

- Brill

On 2-Apr-09, at 2:11 PM, Philippe Marschall wrote:




Martijn Dashorst wrote:
Some brilliant guy thought it prudent to make the maven-eclipse- 
plugin

only accept .java files from src/main/java and src/test/java in
version 2.6.


Well there's a reason these folders are called java.

Cheers
Philippe

-
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: maven-eclipse-plugin 2.6 will break your wicket projects

2009-04-03 Thread Brill Pappin

laugh

Although I think its too late to stop this thread growing, you should  
all know that we just had this argument a few weeks ago!

It seems to be a touchy subject for some :)

The old thread can be found by searching for Re: How can I share text  
resources with multiple web applications?.

http://www.nabble.com/How-can-I-share-text-resources-with-multiple-web-applications--td22549375.html

The summary is:
- Some like their resources where Maven suggests you put them, in the  
resources directory.
- Some follow the so called The Official Wicket Way which is not  
actually published anywhere. In it, the resources are in the java  
source directory.


There are good arguments for both and I'd even agree that both are  
valid (I prefer my resources in the Maven pattern, but the other  
pattern is also good practice).


I don't know about the attitudes of the Maven committers but in Wicket  
there seems to be a my way is the right way kind of thing going on  
(evident on the final methods all over the framework and failure to  
accommodate other resource usage patterns).


All that said, as long as each camp can do what they feel most  
comfortable with, I don't think it really matters.
Wicket is the most refreshing framework to be developed in years, with  
luck it doesn't go away and leave us working on something as terrible  
as Webflow.


- Brill

On 2-Apr-09, at 3:34 PM, Philippe Marschall wrote:




James Carman wrote:
On Thu, Apr 2, 2009 at 2:11 PM, Philippe Marschall kus...@gmx.net  
wrote:

Well there's a reason these folders are called java.


Yes, but it's not specifically illegal in the maven world to put
non-java files in there (didn't we have this argument a few days  
ago).


You simply relied on a bug / undocumented featured. Move your  
resources

where the belong into the resources folder.

Cheers
Philippe

-
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: maven-eclipse-plugin 2.6 will break your wicket projects

2009-04-03 Thread Brill Pappin

I think thats a good position.

I can't image that it was purposely done in order to enforce the maven  
way, there are just too many people who would have broken builds.


- Brill

On 2-Apr-09, at 3:53 PM, Igor Vaynberg wrote:


i just want to say one quick thing about this.

there are two great things about maven
1) it established a convention that eliminated a lot of boilerplate
2) it does not force the convention - everything can be overridden and
customized by configuring plugins

once the authors of maven and or plugins lose sight of (2) and try to
force the convention i think most people will simply bail. personally,
if this was forced wicket or any other projects i work on would not be
using maven.

-igor

On Thu, Apr 2, 2009 at 12:43 PM, Jeremy Thomerson
jer...@wickettraining.com wrote:

Let's not even start this discussion again, please!

--
Jeremy Thomerson
http://www.wickettraining.com



On Thu, Apr 2, 2009 at 2:34 PM, Philippe Marschall kus...@gmx.net  
wrote:


You simply relied on a bug / undocumented featured. Move your  
resources

where the belong into the resources folder.

Cheers
Philippe





-
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: maven-eclipse-plugin 2.6 will break your wicket projects

2009-04-03 Thread Brill Pappin

*sigh*

I was referring to the suggestion that there be an option in the  
archetype, and the disparaging thread that ensued.

However, I don't want to argue about this *again*.

...never mind...

- Brill

On 3-Apr-09, at 9:56 AM, Martijn Dashorst wrote:


On Fri, Apr 3, 2009 at 3:52 PM, Brill Pappin br...@pappin.ca wrote:

failure to accommodate other
resource usage patterns).


HUH?

Care to elaborate? Wicket doesn't force its patterns upon you (unlike
maven's eclipse 2.6 plugin). You are free to add your
html/properties/etc in src/main/resources without ever touching a
single configuration item in wicket-quickstart, wicket, or any other
wicket related resource.

Martijn

-
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: maven-eclipse-plugin 2.6 will break your wicket projects

2009-04-02 Thread Brill Pappin
That code is open... why not make a wicket-eclipse-plugin that puts  
the files were you want them?


- Brill Pappin

On 2-Apr-09, at 6:27 AM, Martijn Dashorst wrote:


Some brilliant guy thought it prudent to make the maven-eclipse-plugin
only accept .java files from src/main/java and src/test/java in
version 2.6.

Do not upgrade to this maven-eclipse-plugin version if you intend to
keep on working with your wicket projects in the way Wicket Intended.

Always specify which plugin version you want to use and only manually
upgrade when you are sure it won't inflict havoc on your co-workers.
This is a maven best practice!

Martijn

-
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



Extending wicket for non webapp implementations

2009-04-01 Thread Brill Pappin

I'd love to use wicket as a more general template library.
My immediate problem is that I need to build email template library.

Has anyone done an extension that would allow it to process non HTML  
files?


- Brill Pappin

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



Re: AW: Extending wicket for non webapp implementations

2009-04-01 Thread Brill Pappin

Yah, I'm digging in the source right now.

A basic email is one thing, but I was really interested in the nice  
clean 1:1 relationship between resource and code along with the nice  
basic components like list etc.
All you'd really need to do is extend page and create a new type,  
however being what it is, its very much tied to the servlet container  
and its session, which is only partly useful in the same of an  
EmailPage.


After a quick check, I'm thinking that it's not the best solution  
because of its dependency on the servlet spec... but still I dream.


- Brill



On 1-Apr-09, at 10:09 AM, Christian Helmbold wrote:



Why don't you use a template engine like FreeMarker? I think Wickets  
component model doesn't work well to create E-Mails.


Christian






-
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: VOTE: Rename Apache Wicket to Apache WicketFX

2009-04-01 Thread Brill Pappin

~0/1

I don't care... but I can't say that I think FX makes it cool...
Sounds more like a bad 90's TV show to me :)

As long as it work, I don't care what its called... um... maybe I  
should qualify that... I don't care what its called as long as I won't  
be embarrassed when talking to my clients about it :)


- brill

On 1-Apr-09, at 10:19 AM, Daan van Etten wrote:


FX sounds just way cool.

WicketFX. Where function meets form. Web development in style.

Say for yourself, would you rather want to work with a framework  
called Wicket, or a framework called WicketFX?!


Birthday parties and pub nights never are the same again:
What technologies you use?
- WicketFX, Spri..
Wow! You are so cool!

Regards,

Daan

Op 1 apr 2009, om 15:36 heeft Chenini, Mohamed het volgende  
geschreven:



Same concern here. Why the FX suffix?

-Original Message-
From: Johan Compagner [mailto:jcompag...@gmail.com]
Sent: Wednesday, April 01, 2009 9:33 AM
To: users@wicket.apache.org
Subject: Re: VOTE: Rename Apache Wicket to Apache WicketFX

Failed eXtremely



On Wed, Apr 1, 2009 at 15:08, Ames, Tim tim.a...@promedica.org  
wrote:


Please excuse my EXTREME ignorance, but what exactly does or will  
the

FX

mean from a Wicket standpoint?  What does it do or allow a developer

to do

that would designate it as FX?



-Original Message-
From: David Leangen [mailto:wic...@leangen.net]
Sent: Wednesday, April 01, 2009 4:08 AM
To: users@wicket.apache.org
Subject: Re: VOTE: Rename Apache Wicket to Apache WicketFX


Or... WTF! (Wicket The Framework)


+1



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

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _  
_ _

_ _ _


EMAIL CONFIDENTIALITY NOTICE

This Email message, and any attachments, may contain confidential
patient health information that is legally protected. This  
information
is intended only for the use of the individual or entity named  
above.

The authorized recipient of this information is prohibited from

disclosing

this information to any other party unless required to do so by law
or regulation and is required to destroy the information after its

stated

need has been fulfilled. If you are not the intended recipient, you

are
hereby notified that any disclosure, copying, distribution, or  
action

taken in reliance on the contents of this message is strictly

prohibited.


If you have received this information in error, please notify
the sender immediately by replying to this message and delete the
message from your system.


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




This email/fax message is for the sole use of the intended
recipient(s) and may contain confidential and privileged information.
Any unauthorized review, use, disclosure or distribution of this
email/fax is prohibited. If you are not the intended recipient,  
please

destroy all paper and electronic copies of the original message.


-
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: VOTE: Rename Apache Wicket to Apache WicketFX

2009-04-01 Thread Brill Pappin

Caught red handed :)

I never remember... and since the kids didn't pull anything on me this  
morning as a reminder, it went completely over my head :)


- Brill

On 1-Apr-09, at 11:10 AM, Daan van Etten wrote:


To make it a bit less painful:
Look at the date.

:-)

Daan

Op 1 apr 2009, om 16:25 heeft Brill Pappin het volgende geschreven:


~0/1

I don't care... but I can't say that I think FX makes it cool...
Sounds more like a bad 90's TV show to me :)

As long as it work, I don't care what its called... um... maybe I  
should qualify that... I don't care what its called as long as I  
won't be embarrassed when talking to my clients about it :)


- brill

On 1-Apr-09, at 10:19 AM, Daan van Etten wrote:


FX sounds just way cool.

WicketFX. Where function meets form. Web development in style.

Say for yourself, would you rather want to work with a framework  
called Wicket, or a framework called WicketFX?!


Birthday parties and pub nights never are the same again:
What technologies you use?
- WicketFX, Spri..
Wow! You are so cool!

Regards,

Daan

Op 1 apr 2009, om 15:36 heeft Chenini, Mohamed het volgende  
geschreven:



Same concern here. Why the FX suffix?

-Original Message-
From: Johan Compagner [mailto:jcompag...@gmail.com]
Sent: Wednesday, April 01, 2009 9:33 AM
To: users@wicket.apache.org
Subject: Re: VOTE: Rename Apache Wicket to Apache WicketFX

Failed eXtremely



On Wed, Apr 1, 2009 at 15:08, Ames, Tim tim.a...@promedica.org  
wrote:


Please excuse my EXTREME ignorance, but what exactly does or  
will the

FX
mean from a Wicket standpoint?  What does it do or allow a  
developer

to do

that would designate it as FX?



-Original Message-
From: David Leangen [mailto:wic...@leangen.net]
Sent: Wednesday, April 01, 2009 4:08 AM
To: users@wicket.apache.org
Subject: Re: VOTE: Rename Apache Wicket to Apache WicketFX


Or... WTF! (Wicket The Framework)


+1



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

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _  
_ _ _

_ _ _


EMAIL CONFIDENTIALITY NOTICE

This Email message, and any attachments, may contain confidential
patient health information that is legally protected. This  
information
is intended only for the use of the individual or entity named  
above.

The authorized recipient of this information is prohibited from

disclosing
this information to any other party unless required to do so by  
law

or regulation and is required to destroy the information after its

stated
need has been fulfilled. If you are not the intended recipient,  
you

are
hereby notified that any disclosure, copying, distribution, or  
action

taken in reliance on the contents of this message is strictly

prohibited.


If you have received this information in error, please notify
the sender immediately by replying to this message and delete the
message from your system.


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




This email/fax message is for the sole use of the intended
recipient(s) and may contain confidential and privileged  
information.

Any unauthorized review, use, disclosure or distribution of this
email/fax is prohibited. If you are not the intended recipient,  
please

destroy all paper and electronic copies of the original message.


-
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



Re: VOTE: Rename Apache Wicket to Apache WicketFX

2009-04-01 Thread Brill Pappin

chuckle.

more of a whine-buzz sound...

- brill

On 1-Apr-09, at 2:22 PM, Igor Vaynberg wrote:


did it make a swoosh sound? :)

-igor

On Wed, Apr 1, 2009 at 11:20 AM, Brill Pappin br...@pappin.ca wrote:

Caught red handed :)

I never remember... and since the kids didn't pull anything on me  
this

morning as a reminder, it went completely over my head :)

- Brill

On 1-Apr-09, at 11:10 AM, Daan van Etten wrote:


To make it a bit less painful:
Look at the date.

:-)

Daan

Op 1 apr 2009, om 16:25 heeft Brill Pappin het volgende geschreven:


~0/1

I don't care... but I can't say that I think FX makes it cool...
Sounds more like a bad 90's TV show to me :)

As long as it work, I don't care what its called... um... maybe I  
should

qualify that... I don't care what its called as long as I won't be
embarrassed when talking to my clients about it :)

- brill

On 1-Apr-09, at 10:19 AM, Daan van Etten wrote:


FX sounds just way cool.

WicketFX. Where function meets form. Web development in style.

Say for yourself, would you rather want to work with a framework  
called

Wicket, or a framework called WicketFX?!

Birthday parties and pub nights never are the same again:
What technologies you use?
- WicketFX, Spri..
Wow! You are so cool!

Regards,

Daan

Op 1 apr 2009, om 15:36 heeft Chenini, Mohamed het volgende  
geschreven:



Same concern here. Why the FX suffix?

-Original Message-
From: Johan Compagner [mailto:jcompag...@gmail.com]
Sent: Wednesday, April 01, 2009 9:33 AM
To: users@wicket.apache.org
Subject: Re: VOTE: Rename Apache Wicket to Apache WicketFX

Failed eXtremely



On Wed, Apr 1, 2009 at 15:08, Ames, Tim  
tim.a...@promedica.org wrote:


Please excuse my EXTREME ignorance, but what exactly does or  
will the


FX


mean from a Wicket standpoint?  What does it do or allow a  
developer


to do


that would designate it as FX?



-Original Message-
From: David Leangen [mailto:wic...@leangen.net]
Sent: Wednesday, April 01, 2009 4:08 AM
To: users@wicket.apache.org
Subject: Re: VOTE: Rename Apache Wicket to Apache WicketFX


Or... WTF! (Wicket The Framework)


+1



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

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _  
_ _ _ _


_ _ _


EMAIL CONFIDENTIALITY NOTICE

This Email message, and any attachments, may contain  
confidential
patient health information that is legally protected. This  
information
is intended only for the use of the individual or entity named  
above.

The authorized recipient of this information is prohibited from


disclosing


this information to any other party unless required to do so  
by law
or regulation and is required to destroy the information after  
its


stated


need has been fulfilled. If you are not the intended  
recipient, you


are


hereby notified that any disclosure, copying, distribution, or  
action

taken in reliance on the contents of this message is strictly


prohibited.


If you have received this information in error, please notify
the sender immediately by replying to this message and delete  
the

message from your system.


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




This email/fax message is for the sole use of the intended
recipient(s) and may contain confidential and privileged  
information.

Any unauthorized review, use, disclosure or distribution of this
email/fax is prohibited. If you are not the intended recipient,  
please

destroy all paper and electronic copies of the original message.


-
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




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

Re: Picket Web Framework -- PHP's answer to Java's Wicket

2009-04-01 Thread Brill Pappin

Hey man... if its got laser beams, I'm in!

- Brill

On 1-Apr-09, at 6:37 PM, Jonathan Locke wrote:




will this include SHARKS with FRICKIN' LASER BEAMS attached to their  
heads?



Otan wrote:


Are you a fan of Wicket but you can't use it because your company or
client
is tied with PHP? Have you ever wished that Wicket was available in  
the

PHP
land?

Picket to the rescue!

Picket is a project that aims to bring Wicket's awesome features and
philosophy to the PHP community. The project was started by YouSoft
Consulting (Nasdaq: YSFT) and being used internally since 2006. Now  
that
Picket 1.1 has been released, and is stable enough for prime time,  
YouSoft
opened the source code for public consumption with multi-licenses,  
namely,

GPL v2, GPL v3, BSD, Apache, MPL and CDDL.

For more information, visit its official website at
http://4thmonth.yousoft.com/1stday/picket

Have a happy day!




--
View this message in context: 
http://www.nabble.com/Picket-Web-FrameworkPHP%27s-answer-to-Java%27s-Wicket-tp22820258p22834990.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: How to secure a Wicket 1.4 application?

2009-03-26 Thread Brill Pappin
I actually find that auth-roles is very simply to use and usually all  
I need... if it is ever deprecated I assure you I'll revive it under  
another source tree.
However although for some reason it says you should use wicket- 
security (not sure why unless wicket-security has the same simple  
implementation) as far as I know its still being maintained and used  
by a large number of the people here.


I think what you use will depend on your application, if all you need  
is a principle and a few roles to protect certain pages (or even a  
single role), then auth-roles is for you. If you need something more  
complex, then wicket-security may be the way to go.


FYI - I usually find wicket-security lags behind the current  
snapshot... or at least it was when I last looked at it. The lag is  
likely because it *is* more complex.


- Brill

On 26-Mar-09, at 12:51 PM, Christian Helmbold wrote:



Hello,

what would be your prefered way to secure a Wicket 1.4 application?

Spring Security and Wicket-auth-roles seems to be outdated. This  
project suggests to use Wicket-Security. So it is presumably not the  
best idea to use it.

http://cwiki.apache.org/WICKET/spring-security-and-wicket-auth-roles.html

Wicket-Security seems also to be not up to date and supports only  
Wicket 1.3.

http://wicketstuff.org/confluence/display/STUFFWIKI/Wicket-Security
Somewhere I've read that a version of Wicket-Security for Wicket 1.4  
exists in a SVN repository. Maybe that makes Wicket-Security a  
candidate. But this framework looks quite complicated to me -  
WiComSec, WASP, Hive, SWARM sounds confusing. Is Wicket-Security  
limited to use JAAS permissions?

http://wicketstuff.org/confluence/display/STUFFWIKI/Getting+started+with+Swarm
I don't like JAAS very much ...

My first impression is, that it is easier to write custom  
authentication and authorization, than to use Wicket-Security. How  
are your experiences?


Regards
Christian





-
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: nested loop view

2009-03-26 Thread Brill Pappin

User error :)


review what element your adding the inner list to... looks like your  
adding it to the ListView instead of the Item.

Change:
this.add(projects);
to
item.add(projects);

- Brill Pappin


On 26-Mar-09, at 12:50 PM, Luther Baker wrote:


I'm trying to create a page - similar to Jira's BROWSE PROJECTS.

My initial take amounts to a loop in a loop.

The outer loop is CATEGORIES and the inner loop is PROJECTS in said
category.

| CATEGORY 1
| p1
| p2
| p3

| CATEGORY 2
| p4
| p5
| p6

...

I've attached code below but if I removed the nested loop, I can  
easily loop
over just CATEGORIES but as soon as I add the nested loop, it fails  
with the

following

WicketMessage: Error attaching this container for rendering: [Page  
class =
com.fuzzybearings.milestones.web.page.user.ProjectsPage, id = 3,  
version =

0]

Root cause:

java.lang.IllegalArgumentException: A child with id 'projects' already
exists:
[MarkupContainer [Component id = categories]]


My intuition tells me that 'wicket:id=projects' is repeating since  
it is
contained in an outer loop ... but I'm not sure how else to identify  
this
type of structure in a general way. Is there a loop container more  
suited to

this ... open to suggestions.

Thanks in advance,

-Luther



*.html snippet

   div wicket:id=categories
   table
   tr wicket:id=projects
   tda wicket:id=projectLink href=#span
wicket:id=projectLabel[project]/span/a/td
   /tr
   /table
   /div


*.java snippet

   public ProjectsPage(ResourceModel bodyTitle)
   {
   super(bodyTitle);

   ListView categories = new ListView(categories,
this.getCategories())
   {

   @Override
   protected void populateItem(ListItem item)
   {
   Category category = (Category) item.getModelObject();

   ListView projects = new ListView(projects,
ProjectsPage.this.getProjects(category))
   {

   @Override
   protected void populateItem(ListItem item)
   {
   Project project = (Project)  
item.getModelObject();
   Link link = new Link(projectLink,  
item.getModel())

   {

   @Override
   public void onClick() { ... }
   };
   link.add(new Label(projectLabel,
project.getName()));
   item.add(link);
   }
   };
   this.add(projects);
   }
   };
   this.add(categories);
   }



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



Re: handling not mounted URLs

2009-03-23 Thread Brill Pappin
Ahh... are you try to set up an RESTful type of URI where the path is  
relevant to the request being executed?


I had to do something like that for an images resource recently...  
although it may be more at the mercy of Wicket than what you need.


Hmm... how about a IRequestTargetUrlCodingStrategy?
This is on the verge of guessing now, but i think it will allow you to  
mount it and then check if you want to process the request with it.


What I used it for was some Apple javascript (Dashcode stuff) that was  
being insistent on the paths it used for its resources and which  
didn't match those used for a Wicket resource.
The coding strategy would essentially checked if the path began with  
some known value, and then used a PackageResourceStream to load the  
wicketized version of the content.


The code for the strategy is below in case it gives you the clues you  
need to resolve your issue.


- Brill

public class IPhoneImageRequestTargetUrlCodingStrategy implements
IRequestTargetUrlCodingStrategy {

@Override
public IRequestTarget decode(RequestParameters requestParameters) {
String path = requestParameters.getPath();
ResourceStreamRequestTarget target = new 
ResourceStreamRequestTarget(
new PackageResourceStream(DashboardPage.class, 
path));
return target;
}

@Override
public CharSequence encode(IRequestTarget requestTarget) {
return null;
}

@Override
public String getMountPath() {
return Images;
}

@Override
public boolean matches(IRequestTarget requestTarget) {
return false;
}

public boolean matches(String path) {
return path.startsWith(Images/)  path.endsWith(.png);
}

@Override
public boolean matches(String path, boolean arg1) {
return matches(path);
}

}






On 23-Mar-09, at 1:12 AM, Jan Kriesten wrote:



Hi Brill,

what about setting up an error page using the standard servlet  
method

that points to a wicket page?


the point is: you will still get a 404 error code for the page  
(which the

user/search engine shouldn't, since it's not an error).

Best regards, --- Jan.

-
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



YUI DateField not setting model object property?

2009-03-23 Thread Brill Pappin
I'm using the YUI DateField on a form that has a CompoundPropertyModel  
as its object, however the field doesn't seem to be setting the  
property on the base POJO.
The form components are all using the simple wicket id method of  
accessing the POJO properties via the CompoundPropertyModel.


Did I miss something on this component? does it not work the way a  
normal form field works?


If anyone can tell me what they have done to get it working, I'd be  
much obliged.


- Brill

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



Re: maven, eclipse and wicket

2009-03-23 Thread Brill Pappin
make sure your m2e knows where your user repo is... it might not have  
it set.

fyi - not all projects have source.

- brill

On 23-Mar-09, at 1:44 PM, Luther Baker wrote:


Yep - the sources came down.

The problem is in automatically attaching them to the debugger.

I have an Eclipse DEBUG configuration invoking mvn jetty:run and  
it breaks
just fine into my own source code - but when I go to step into the  
Wicket

source, it can't find it the source code.

The sources are downloaded and located in the same directories as  
the jars

in my maven repository. I can explicitly attach them via the screen I
mentioned in the first post by adding them individually as External  
Archives

... but sounds like I'm missing something. I was thinking that the
maven/jetty/m2eclipse combo would know where to look. Explicitly  
adding
every source jar to my project is a bit painful ... and so it sounds  
like

I'm doing something incorrectly.

Is this just supposed to 'work'.

-Luther



On Mon, Mar 23, 2009 at 12:31 PM, francisco treacy 
francisco.tre...@gmail.com wrote:

i'm not sure i'm using m2eclipse (but i think so). to download  
sources

just right click on your eclipse project, go to maven  download
sources. if we're using the same plugin, this should work.

francisco


On Mon, Mar 23, 2009 at 6:23 PM, Luther Baker lutherba...@gmail.com
wrote:

I am having a slight bit of trouble getting Eclipse to step into the

Wicket

source code while using the m2eclipse plugin.

The m2eclpse has successfully downloaded the Wicket 1.3.5  
distribution.

My
application fires up and works just fine in Eclipse. I have also  
enabled

the
m2eclipse plugin to download sources - I can see the source jars  
in the

m2

repository now as well.

I am trying to implement a security/authentiation/authorization  
scheme

and
while debugging, anytime I step out of my workspace source code, I  
get a
window in Eclipse that says Source not found and a button that  
says

Edit

Source Lookup Path...

If I click that button, I can choose to explicitly add:

*Archive*: a jar or zip in the workspace containing source files
*External Archive*: a jar or zip in the local file system containing

source

files
*File System Directory*: a directory in the local file system
*Java Classpath Variable*: workspace folder, local directory, or  
archive

referenced by a variable path
*Java Library*: a collection of binary archives with attached source
*Java Project*: source folders in a Java project
*Project*: a project in the workspace
*Working Set*:
*Workspace*: all projects in the workspace
*Workspace Folder*: a folder in the workspace

And I can click External Archive and explicitly add every single  
source

jar

file --- but I was wondering - shouldn't this automatically happen?

Does anyone have a suggestion? or confirmation that these source  
jars

must

be manually added to step into Wicket code while using the m2eclipse

plugin
in Eclipse? I think this is probably an m2eclipse question ... but  
hoping

someone here has dealt with this already.

Thanks much,

-Luther



-
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: Extensible wicket application

2009-03-22 Thread Brill Pappin

I'm assuming your using the 1.4 snapshot...

I think that images will be relative to the component (or at least one  
if them up the tree).


The image component uses a resource that will use the arc attribute to  
look for the images, so if the arc attribute is bogus, then one of the  
other methods of locating it better be correct.


- Brill Pappin
  Sent from my mobile.


On 21-Mar-09, at 5:29 PM, Daniel Dominik Holúbek  
dankodo...@gmail.com wrote:



Ernesto, thank you very much :)
If my application ever goes to the production, it will be thanks to  
you :)


Regarding the images problem: I think I did not explain it well. I'm  
not
asking where to place them. I placed them almost everywhere, but I  
still
can't access them - in the bundle. You see, I have an images  
directory,
and in HTML files, I am accessing them as img src=images/ 
blah.jpg, but I
still can't get this working. I am expecting only a hint - how are  
you doing

this?

And the database problem - I have the same application deployed as  
standard
webapp, and there it works. I only wanted to know if it isn't some  
specific

Wicket-Hibernate-OSGi problem you might have solved before :)

But thank you all again!

On Sat, Mar 21, 2009 at 6:06 PM, Brill Pappin br...@pappin.ca wrote:

Yah, the whole argument about where the resources should go or the  
one

before that about top posting or bottom posting.
You'd think we didn't have any actual work to do :)

- Brill


On 21-Mar-09, at 12:39 PM, Ernesto Reinaldo Barreiro wrote:

useless thread?


On Sat, Mar 21, 2009 at 4:17 PM, Brill Pappin br...@pappin.ca  
wrote:


At the risk of starting another useless thread, this is what I do  
for

images and other non HTML resources that are shared:
- if the project is small, they can just sit with the HTML.
- if the project is larger then it might be useful to keep them  
more
separate, under an images directory and use the base page to ref  
them or

even create a loader to manage them.

Ether way, you use them the same way, only prefix the resource  
name with

the subdir if you have separated them out.

As for your db error, that looks like something out side the  
scope of

wicket.

- Brill Pappin
Sent from my mobile.



On 21-Mar-09, at 9:38 AM, Daniel Dominik Holúbek dankodo...@gmail.co 
m

wrote:

Thanks a lot, it works now.

However, two more questions. Where should I place images folder  
and how

should I access it in my html files (or style.css as well)?
And the second one: when i try to insert a record with hibernate  
into my

database, i get this exception:

Batch entry 0 insert into forum.anim_forum (autor, email, title,  
text,

datum, ip, id) values (...) was aborted.

and

org.hibernate.exception.DataException: Could not execute JDBC  
batch

update

Could you (or possibly anyone else) help me with this? :)
Thanks!

On Fri, Mar 20, 2009 at 10:27 PM, Ernesto Reinaldo Barreiro 
reier...@gmail.com wrote:

One more thing. As far as I remember the servlet bridge makes a  
'work



copy'
of the plugins folder if you see you make changes, export the  
plugins,

and
changes do not 'propagate' to the application, try deleting
works/Catalina
folder.

On Fri, Mar 20, 2009 at 9:58 PM, Ernesto Reinaldo Barreiro 
reier...@gmail.com wrote:

Hi Daniel,



I found some time to get it working! The key to the problem was






http://dev.eclipse.org/newslists/news.eclipse.technology.equinox/msg04838.html



So, if you synchronize the projects

com.antilia.wstarter
com.antilia.wstarter.demo

exports them to you bridge it should work. I  attach copy of
bridge.zip,
containing a bridge folder, which is working for me. If you  
unzip it

to

your


tomcat webapps, restart tomcat and go to


http://localhost:8080/bridge/demo-app/

Then you should see the example working.

Best,

Ernesto


On Fri, Mar 20, 2009 at 6:34 AM, Daniel Dominik Holúbek 
dankodo...@gmail.com wrote:

Right click - Export - Plugin development - Deployable plug- 
ins and



fragments
Have a nice day :)

On Thu, Mar 19, 2009 at 9:32 PM, Ernesto Reinaldo Barreiro 
reier...@gmail.com wrote:

Did you exported them how? As equinox jar files or as simple  
jar




files?





Let




me see if tomorrow I find some time for trying this out  
myself...


Best,

Ernesto

On Thu, Mar 19, 2009 at 9:14 PM, Daniel Dominik Holúbek 
dankodo...@gmail.com wrote:

Yes,


that's exactly what I did :)
I checked out the bundles, then exported them from eclipse.  
And

then
installed those bundles along with javax.servlet into the  
bridge

application, bud I got the error when I tried to install

wstarter-demo.






Thanks a lot!


On Thu, Mar 19, 2009 at 8:28 PM, Ernesto Reinaldo Barreiro 
reier...@gmail.com wrote:

I couldn't try today to build the example using servlet  
bridge, to




busy





over


here;-), let me see if I can find some time tomorrow to get  
it


working.





But




normally what I would do is use eclipse for development and  
then


export





the




jar to a bridge

Re: load html according to page parameters

2009-03-22 Thread Brill Pappin
I think for that you might try setting the variation based on the  
parameter.
This would allow you to load different HTML content using the standard  
mechanism.


- Brill

On 22-Mar-09, at 7:17 AM, Vitek Tajzich wrote:


Hi,

I would like to load HTML according to page parameters. So If I get  
as page
parameter page1 a need to get page1.html or page1_en.html and so  
on...


Any guess?


thank you,

Vitek



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



Gravatar image component, help with urls

2009-03-22 Thread Brill Pappin
I'm creating a new component to access Gravatar (see: http://en.gravatar.com/) 
.


I wanted to just extend the components the make Image work, because I  
wanted it to work just like an Image and fall back to a standard image  
if the Gavatar image was not present. Unfortunately almost everything  
in Image and its supporting class LocalizedImageResource is final, so  
I ended up having to clone the source.


My problem now is that I need to generate an absolute URI for the  
image resource and I'm not sure what the best way to do that is.
Right now the code is simply using the urlFor method to get an  
application relative path for the resource.


Component.urlFor(ResourceReference)

Is there a way to get the absolute URI of the resource, as in  
including the http://hostname:port/path ??
That URI will be url encoded and passed to Gavatar so that it can fall  
back to it if it doesn't have an avatar image.


If anyone else is interested in helping to improve it, the source is at:
http://wicket-skunkworks.googlecode.com/svn/trunk/wicket-shoebox/
in the wicket skunkworks project.


- Brill 


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



eclipse and html extensions in src/main/java

2009-03-22 Thread Brill Pappin
So eclipse is having trouble with the html extension files in the java  
source directory.


I set up a demo for Wicket Skunkworks to demo the components we're  
working on, and I used the standard wicket pattern of putting the  
html alongside the java in order to make things clearer to how must  
people expect to see a wicket project, however Eclipse is complaining  
every time I open an HTML resource saying that its expecting a source  
file:


An error has occurred. See error log for more details.
Compilation unit name must end with .java, or one of the  
registered Java-like extensions


Aside form registering an HTML extension as a compilation unit, does  
anyone know how to resolve this annoying issue?


This is the first time I have run across it because up until now I  
have kept my resources in src/main/resources.


- Brill

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



Re: eclipse and html extensions in src/main/java

2009-03-22 Thread Brill Pappin
I get the HTML editor as well but I also get some dialog popping up  
when I load the HTML from the src.


I just updates to the latest this morning, so maybe there is something  
new.


- Brill Pappin
  Sent from my mobile.


On 22-Mar-09, at 12:38 PM, John Krasnay j...@krasnay.ca wrote:


Works fine for me without any special configuration. I use the Eclipse
JEE version and HTML files come up in the HTML Editor.

Check which editor is associated with *.html files under Window 
Preferences, then under General/Editors/File Associations.

Eclipse remembers the last editor you used to open a particular  
file, so

you might have to right-click the file in Package Explorer and select
Open With  HTML Editor.

jk

On Sun, Mar 22, 2009 at 12:24:38PM -0400, Brill Pappin wrote:
So eclipse is having trouble with the html extension files in the  
java

source directory.

I set up a demo for Wicket Skunkworks to demo the components we're
working on, and I used the standard wicket pattern of putting the
html alongside the java in order to make things clearer to how must
people expect to see a wicket project, however Eclipse is complaining
every time I open an HTML resource saying that its expecting a source
file:

   An error has occurred. See error log for more details.
   Compilation unit name must end with .java, or one of the
registered Java-like extensions

Aside form registering an HTML extension as a compilation unit, does
anyone know how to resolve this annoying issue?

This is the first time I have run across it because up until now I
have kept my resources in src/main/resources.

- Brill

-
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: eclipse and html extensions in src/main/java

2009-03-22 Thread Brill Pappin

Hmm, I'll have to investigate.
I *don't* get it when I have it set up with the HTML in the resourses  
folder.



- Brill Pappin
  Sent from my mobile.


On 22-Mar-09, at 1:58 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote:


if you get this error then you are screwed whether the markup fles are
in src/main/java or src/main/resources because they are both
configured as classpath folders in eclipse.

anyways, im using the latest 3.4 and dont have this problem.

-igor

On Sun, Mar 22, 2009 at 10:04 AM, Brill Pappin br...@pappin.ca  
wrote:
I get the HTML editor as well but I also get some dialog popping up  
when I

load the HTML from the src.

I just updates to the latest this morning, so maybe there is  
something new.


- Brill Pappin
 Sent from my mobile.


On 22-Mar-09, at 12:38 PM, John Krasnay j...@krasnay.ca wrote:

Works fine for me without any special configuration. I use the  
Eclipse

JEE version and HTML files come up in the HTML Editor.

Check which editor is associated with *.html files under Window 
Preferences, then under General/Editors/File Associations.

Eclipse remembers the last editor you used to open a particular  
file, so
you might have to right-click the file in Package Explorer and  
select

Open With  HTML Editor.

jk

On Sun, Mar 22, 2009 at 12:24:38PM -0400, Brill Pappin wrote:


So eclipse is having trouble with the html extension files in the  
java

source directory.

I set up a demo for Wicket Skunkworks to demo the components we're
working on, and I used the standard wicket pattern of putting the
html alongside the java in order to make things clearer to how must
people expect to see a wicket project, however Eclipse is  
complaining
every time I open an HTML resource saying that its expecting a  
source

file:

  An error has occurred. See error log for more details.
  Compilation unit name must end with .java, or one of the
registered Java-like extensions

Aside form registering an HTML extension as a compilation unit,  
does

anyone know how to resolve this annoying issue?

This is the first time I have run across it because up until now I
have kept my resources in src/main/resources.

- Brill

--- 
--

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



Re: eclipse and html extensions in src/main/java

2009-03-22 Thread Brill Pappin

Fund the culprit.
The stack trace below suggests its MoreUnit (a handy little plugin  
particularly for those that use TDD)


!ENTRY org.eclipse.ui.workbench 4 2 2009-03-22 19:08:25.463
!MESSAGE Problems occurred when invoking code from plug-in:  
org.eclipse.ui.workbench.

!STACK 0
java.lang.IllegalArgumentException: Compilation unit name must end  
with .java, or one of the registered Java-like extensions
	at  
org 
.eclipse 
.jdt 
.internal.core.PackageFragment.getCompilationUnit(PackageFragment.java: 
214)
	at  
org 
.eclipse 
.jdt 
.internal 
.core.JavaModelManager.createCompilationUnitFrom(JavaModelManager.java: 
881)
	at  
org.eclipse.jdt.core.JavaCore.createCompilationUnitFrom(JavaCore.java: 
2503)
	at  
org 
.moreunit 
.elements.EditorPartFacade.getCompilationUnit(EditorPartFacade.java:43)
	at  
org 
.moreunit 
.annotation 
.MoreUnitAnnotationModel 
.updateAnnotations(MoreUnitAnnotationModel.java:170)
	at  
org 
.moreunit 
.annotation 
.MoreUnitAnnotationModel.init(MoreUnitAnnotationModel.java:67)
	at  
org 
.moreunit 
.annotation 
.MoreUnitAnnotationModel.attach(MoreUnitAnnotationModel.java:132)
	at  
org 
.moreunit 
.annotation 
.AnnotationUpdateListener.partOpened(AnnotationUpdateListener.java:43)
	at org.eclipse.ui.internal.PartListenerList 
$5.run(PartListenerList.java:132)

at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.runtime.Platform.run(Platform.java:880)



On 22-Mar-09, at 4:29 PM, Thomas Mäder wrote:

Bill, if you have a stack trace in the log, we might take a stab at  
guessing

the culprit (it's not often the base Eclipse tooling, but some add-on
plugin).

Thomas

On Sun, Mar 22, 2009 at 9:18 PM, Brill Pappin br...@pappin.ca wrote:


Hmm, I'll have to investigate.
I *don't* get it when I have it set up with the HTML in the resourses
folder.


- Brill Pappin
Sent from my mobile.


On 22-Mar-09, at 1:58 PM, Igor Vaynberg igor.vaynb...@gmail.com  
wrote:


if you get this error then you are screwed whether the markup fles  
are

in src/main/java or src/main/resources because they are both
configured as classpath folders in eclipse.

anyways, im using the latest 3.4 and dont have this problem.

-igor

On Sun, Mar 22, 2009 at 10:04 AM, Brill Pappin br...@pappin.ca  
wrote:


I get the HTML editor as well but I also get some dialog popping  
up when

I
load the HTML from the src.

I just updates to the latest this morning, so maybe there is  
something

new.

- Brill Pappin
Sent from my mobile.


On 22-Mar-09, at 12:38 PM, John Krasnay j...@krasnay.ca wrote:

Works fine for me without any special configuration. I use the  
Eclipse

JEE version and HTML files come up in the HTML Editor.

Check which editor is associated with *.html files under Window 
Preferences, then under General/Editors/File Associations.

Eclipse remembers the last editor you used to open a particular  
file, so
you might have to right-click the file in Package Explorer and  
select

Open With  HTML Editor.

jk

On Sun, Mar 22, 2009 at 12:24:38PM -0400, Brill Pappin wrote:



So eclipse is having trouble with the html extension files in  
the java

source directory.

I set up a demo for Wicket Skunkworks to demo the components  
we're
working on, and I used the standard wicket pattern of putting  
the
html alongside the java in order to make things clearer to how  
must
people expect to see a wicket project, however Eclipse is  
complaining
every time I open an HTML resource saying that its expecting a  
source

file:

An error has occurred. See error log for more details.
Compilation unit name must end with .java, or one of the
registered Java-like extensions

Aside form registering an HTML extension as a compilation unit,  
does

anyone know how to resolve this annoying issue?

This is the first time I have run across it because up until  
now I

have kept my resources in src/main/resources.

- Brill

-
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





--
Wicket  Eclipse Consulting
www.devotek-it.ch
thomasmaeder.blogspot.com

Re: handling not mounted URLs

2009-03-22 Thread Brill Pappin
what about setting up an error page using the standard servlet  
method that points to a wicket page?


There are a few different ways you can capture errors:

in the web.xml for instance you can use a construct something like  
(check the syntax):


 error-page
exception-typejavax.servlet.ServletException/exception-type
location/mypath/location
/error-page

of to capture an HTTP error:

error-page
error-code404/error-code
location/mypath/location
/error-page

So just mount a page at that path and your page should get called when  
you get an error.




- Brill

On 23-Mar-09, at 12:20 AM, Jan Kriesten wrote:



Hi,

I've set up a Wicket application as ROOT with URL pattern /* and  
have some

mounts on it.

Now I want all unmounted stuff handled thru the Homepage-class (i.e.  
get the

path-info for a redirect). Is there a way to do this?

ATM, I get a 404 : /test/ was not found on this server. when calling
http://localhost:8080/test/

Best regards, --- Jan.


-
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: How can I share text resources with multiple web applications?

2009-03-21 Thread Brill Pappin

Laugh.

Don't start that now!

- Brill Pappin
  Sent from my mobile.


On 21-Mar-09, at 3:23 AM, Igor Vaynberg igor.vaynb...@gmail.com wrote:


the real question is, where do the ant folks keep their resources? :)

-igor

On Fri, Mar 20, 2009 at 10:58 PM, Brill Pappin br...@pappin.ca  
wrote:

Ahh... yes of course.

I was hoping for a switch that would put the html there as well,  
and not

include the extra resource config :)
Oh well... its not too big a deal.

- Brill

On 21-Mar-09, at 1:44 AM, James Carman wrote:

On Sat, Mar 21, 2009 at 1:35 AM, Brill Pappin br...@pappin.ca  
wrote:


Re: The quickstart allows both.
Does it? I missed that feature but it would be very handy!


Sure!  Take a look at a generated quickstart.  There's a
src/main/resources directory with a log4j.properties file in there
(which gets copied over to the target/classes directory).  So, it
doesn't obliterate the maven way of doing things.  It just  
augments

it.

and yes in that case it's an established project... I think this  
thread

has
gotten a bit emotional and mixed up with several different  
discussions

(which is likely my doing).


Heh, no worries.  We all seem to get worked up when discussing how
things *should* be done. :)

--- 
--

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: wicket-jasper UI

2009-03-21 Thread Brill Pappin

Oh nice!
I was just contemplating how I was going to integrate jasper.

Thanks for the heads up.

- Brill Pappin
  Sent from my mobile.


On 21-Mar-09, at 6:38 AM, freak182 eman.noll...@gmail.com wrote:



Hello,

I just wanna share this simple project called wicket-jasper. It is  
basically
jasperreports embeded in wicket. If you wanna share your idea or  
added some
features,please do so. Anyway, our company is already using it  
please see

the attached files.

Thanks. Cheers

http://www.nabble.com/file/p22634657/wicket-jasper.tar wicket- 
jasper.tar

--
View this message in context: 
http://www.nabble.com/wicket-jasper-UI-tp22634657p22634657.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: Wicketstuff Core Dependency Management...

2009-03-21 Thread Brill Pappin

Actually that might mess up the rest of us :)

If you need those lobs to be includes, simply add them to you pom and  
change their scope so they are included... The build should then  
override the provided scope in the parent.


- Brill Pappin
  Sent from my mobile.


On 21-Mar-09, at 9:01 AM, James Carman ja...@carmanconsulting.com  
wrote:



The dependencies in the main wicketstuff-core are scoped for stuff
like slf4j and jetty to be provided.  This totally screwed me up
when I was trying to write an example application (the log4j stuff
wasn't showing up because it was marked as provided by the parent
pom).  Does anyone care if I remove the scope declarations from the
dependencyManagement section in the wicketstuff-core parent pom?  It
fixed my problem when I did.

James

-
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: Extensible wicket application

2009-03-21 Thread Brill Pappin
At the risk of starting another useless thread, this is what I do for  
images and other non HTML resources that are shared:

- if the project is small, they can just sit with the HTML.
- if the project is larger then it might be useful to keep them more  
separate, under an images directory and use the base page to ref them  
or even create a loader to manage them.


Ether way, you use them the same way, only prefix the resource name  
with the subdir if you have separated them out.


As for your db error, that looks like something out side the scope of  
wicket.


- Brill Pappin
  Sent from my mobile.


On 21-Mar-09, at 9:38 AM, Daniel Dominik Holúbek  
dankodo...@gmail.com wrote:



Thanks a lot, it works now.
However, two more questions. Where should I place images folder and  
how

should I access it in my html files (or style.css as well)?
And the second one: when i try to insert a record with hibernate  
into my

database, i get this exception:

Batch entry 0 insert into forum.anim_forum (autor, email, title, text,
datum, ip, id) values (...) was aborted.

and

org.hibernate.exception.DataException: Could not execute JDBC batch  
update


Could you (or possibly anyone else) help me with this? :)
Thanks!

On Fri, Mar 20, 2009 at 10:27 PM, Ernesto Reinaldo Barreiro 
reier...@gmail.com wrote:

One more thing. As far as I remember the servlet bridge makes a  
'work copy'
of the plugins folder if you see you make changes, export the  
plugins, and
changes do not 'propagate' to the application, try deleting works/ 
Catalina

folder.

On Fri, Mar 20, 2009 at 9:58 PM, Ernesto Reinaldo Barreiro 
reier...@gmail.com wrote:


Hi Daniel,

I found some time to get it working! The key to the problem was




http://dev.eclipse.org/newslists/news.eclipse.technology.equinox/msg04838.html


So, if you synchronize the projects

com.antilia.wstarter
com.antilia.wstarter.demo

exports them to you bridge it should work. I  attach copy of  
bridge.zip,
containing a bridge folder, which is working for me. If you unzip  
it to

your

tomcat webapps, restart tomcat and go to

http://localhost:8080/bridge/demo-app/

Then you should see the example working.

Best,

Ernesto


On Fri, Mar 20, 2009 at 6:34 AM, Daniel Dominik Holúbek 
dankodo...@gmail.com wrote:

Right click - Export - Plugin development - Deployable plug- 
ins and

fragments
Have a nice day :)

On Thu, Mar 19, 2009 at 9:32 PM, Ernesto Reinaldo Barreiro 
reier...@gmail.com wrote:


Did you exported them how? As equinox jar files or as simple jar

files?

Let

me see if tomorrow I find some time for trying this out myself...

Best,

Ernesto

On Thu, Mar 19, 2009 at 9:14 PM, Daniel Dominik Holúbek 
dankodo...@gmail.com wrote:


Yes,
that's exactly what I did :)
I checked out the bundles, then exported them from eclipse. And  
then

installed those bundles along with javax.servlet into the bridge
application, bud I got the error when I tried to install

wstarter-demo.


Thanks a lot!

On Thu, Mar 19, 2009 at 8:28 PM, Ernesto Reinaldo Barreiro 
reier...@gmail.com wrote:

I couldn't try today to build the example using servlet  
bridge, to

busy

over
here;-), let me see if I can find some time tomorrow to get it

working.

But

normally what I would do is use eclipse for development and then

export

the

jar to a bridge/plugins for deployment...

Did you read this page

http://www.eclipse.org/equinox/server/http_in_container.php

Best,

Ernesto


On Thu, Mar 19, 2009 at 11:08 AM, Daniel Dominik Holúbek 
dankodo...@gmail.com wrote:


Well,
now I have tried to run it in eclipse and it is running

properly.



On Wed, Mar 18, 2009 at 7:21 PM, Ernesto Reinaldo Barreiro 
reier...@gmail.com wrote:


Hi Daniel,

Is this the output of the console? I have no idea what's going

on...

I'll

try to get bridge running myself with those bundles

(*wstarter*)...

Did

you

tried running them with eclipse and the starter demo contains?

Ernesto

On Tue, Mar 17, 2009 at 10:58 PM, Daniel Dominik Holúbek 
dankodo...@gmail.com wrote:


Ok, so I finally managed to get it working :)
I installed the http-console bundle an it works, but when I

try

to

run

your

demo application, when trying to start the demo bundle I get

this

error:

java.lang.LinkageError: loader constraints violated when

linking

javax/servlet/Servlet class

My bundles are:
idState   Bundle
0ACTIVE  org.eclipse.osgi_3.3.0.200704022148
  Fragments=12
1ACTIVE

org.eclipse.equinox.common_3.3.0.200704022148

2ACTIVE

org.eclipse.update.configurator_3.2.100.v20070322

3ACTIVE

org.eclipse.equinox.http.servletbridge_1.0.0.200704022148

4ACTIVE

org.eclipse.equinox.http.registry_1.0.0.200704022148

5ACTIVE  http_console_1.0.0
6ACTIVE  javax.servlet_2.4.0.200903171653
9ACTIVE

org.eclipse.equinox.http.servlet_1.0.0.200704022148

11ACTIVE

org.eclipse.equinox.registry_3.3.0.v20070318

12RESOLVED

org.eclipse.equinox.servletbridge.extensionbundle_1.0.0

Re: Wicketstuff Core Dependency Management...

2009-03-21 Thread Brill Pappin
I thought you were talking about the the jetty dependencies (which I  
think slf4j is part of)?
If they are not marked as provided, then won't everyone have to  
override them in order to exclude them?


- Brill

On 21-Mar-09, at 11:11 AM, James Carman wrote:


But, I shouldn't *have* to do that, Brill.  That's the whole point.
Breaking transitive dependency resolution is a bad thing in the maven
world.  We're handing dependencies the wrong way if we're breaking
stuff.

On Sat, Mar 21, 2009 at 11:07 AM, Brill Pappin br...@pappin.ca  
wrote:

Actually that might mess up the rest of us :)

If you need those lobs to be includes, simply add them to you pom  
and change
their scope so they are included... The build should then override  
the

provided scope in the parent.

- Brill Pappin
 Sent from my mobile.


On 21-Mar-09, at 9:01 AM, James Carman ja...@carmanconsulting.com  
wrote:



The dependencies in the main wicketstuff-core are scoped for stuff
like slf4j and jetty to be provided.  This totally screwed me up
when I was trying to write an example application (the log4j stuff
wasn't showing up because it was marked as provided by the parent
pom).  Does anyone care if I remove the scope declarations from the
dependencyManagement section in the wicketstuff-core parent  
pom?  It

fixed my problem when I did.

James

-
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: Extensible wicket application

2009-03-21 Thread Brill Pappin
Yah, the whole argument about where the resources should go or the one  
before that about top posting or bottom posting.

You'd think we didn't have any actual work to do :)

- Brill

On 21-Mar-09, at 12:39 PM, Ernesto Reinaldo Barreiro wrote:


useless thread?

On Sat, Mar 21, 2009 at 4:17 PM, Brill Pappin br...@pappin.ca wrote:


At the risk of starting another useless thread, this is what I do for
images and other non HTML resources that are shared:
- if the project is small, they can just sit with the HTML.
- if the project is larger then it might be useful to keep them more
separate, under an images directory and use the base page to ref  
them or

even create a loader to manage them.

Ether way, you use them the same way, only prefix the resource name  
with

the subdir if you have separated them out.

As for your db error, that looks like something out side the scope of
wicket.

- Brill Pappin
Sent from my mobile.



On 21-Mar-09, at 9:38 AM, Daniel Dominik Holúbek dankodo...@gmail.com 


wrote:

Thanks a lot, it works now.
However, two more questions. Where should I place images folder  
and how

should I access it in my html files (or style.css as well)?
And the second one: when i try to insert a record with hibernate  
into my

database, i get this exception:

Batch entry 0 insert into forum.anim_forum (autor, email, title,  
text,

datum, ip, id) values (...) was aborted.

and

org.hibernate.exception.DataException: Could not execute JDBC  
batch update


Could you (or possibly anyone else) help me with this? :)
Thanks!

On Fri, Mar 20, 2009 at 10:27 PM, Ernesto Reinaldo Barreiro 
reier...@gmail.com wrote:

One more thing. As far as I remember the servlet bridge makes a  
'work

copy'
of the plugins folder if you see you make changes, export the  
plugins,

and
changes do not 'propagate' to the application, try deleting
works/Catalina
folder.

On Fri, Mar 20, 2009 at 9:58 PM, Ernesto Reinaldo Barreiro 
reier...@gmail.com wrote:

Hi Daniel,


I found some time to get it working! The key to the problem was





http://dev.eclipse.org/newslists/news.eclipse.technology.equinox/msg04838.html



So, if you synchronize the projects

com.antilia.wstarter
com.antilia.wstarter.demo

exports them to you bridge it should work. I  attach copy of  
bridge.zip,
containing a bridge folder, which is working for me. If you  
unzip it to



your


tomcat webapps, restart tomcat and go to

http://localhost:8080/bridge/demo-app/

Then you should see the example working.

Best,

Ernesto


On Fri, Mar 20, 2009 at 6:34 AM, Daniel Dominik Holúbek 
dankodo...@gmail.com wrote:

Right click - Export - Plugin development - Deployable plug- 
ins and

fragments
Have a nice day :)

On Thu, Mar 19, 2009 at 9:32 PM, Ernesto Reinaldo Barreiro 
reier...@gmail.com wrote:

Did you exported them how? As equinox jar files or as simple jar



files?



Let


me see if tomorrow I find some time for trying this out  
myself...


Best,

Ernesto

On Thu, Mar 19, 2009 at 9:14 PM, Daniel Dominik Holúbek 
dankodo...@gmail.com wrote:

Yes,

that's exactly what I did :)
I checked out the bundles, then exported them from eclipse.  
And then
installed those bundles along with javax.servlet into the  
bridge

application, bud I got the error when I tried to install


wstarter-demo.





Thanks a lot!

On Thu, Mar 19, 2009 at 8:28 PM, Ernesto Reinaldo Barreiro 
reier...@gmail.com wrote:

I couldn't try today to build the example using servlet  
bridge, to



busy



over

here;-), let me see if I can find some time tomorrow to get it


working.



But


normally what I would do is use eclipse for development and  
then



export



the



jar to a bridge/plugins for deployment...

Did you read this page

http://www.eclipse.org/equinox/server/http_in_container.php

Best,

Ernesto


On Thu, Mar 19, 2009 at 11:08 AM, Daniel Dominik Holúbek 
dankodo...@gmail.com wrote:

Well,

now I have tried to run it in eclipse and it is running


properly.






On Wed, Mar 18, 2009 at 7:21 PM, Ernesto Reinaldo Barreiro 
reier...@gmail.com wrote:

Hi Daniel,


Is this the output of the console? I have no idea what's  
going



on...



I'll



try to get bridge running myself with those bundles



(*wstarter*)...



Did



you


tried running them with eclipse and the starter demo  
contains?


Ernesto

On Tue, Mar 17, 2009 at 10:58 PM, Daniel Dominik Holúbek 
dankodo...@gmail.com wrote:

Ok, so I finally managed to get it working :)

I installed the http-console bundle an it works, but when I


try



to


run



your


demo application, when trying to start the demo bundle I  
get



this



error:



java.lang.LinkageError: loader constraints violated when



linking



javax/servlet/Servlet class


My bundles are:
idState   Bundle
0ACTIVE  org.eclipse.osgi_3.3.0.200704022148
Fragments=12
1ACTIVE


org.eclipse.equinox.common_3.3.0.200704022148



2ACTIVE



org.eclipse.update.configurator_3.2.100.v20070322



3ACTIVE

Re: How can I share text resources with multiple web applications?

2009-03-20 Thread Brill Pappin

chuckle,
semantics :)

However as a long time maven user, I expect it to do one thing and it  
does another.
I prefer my content separate and so I don't use the archetype because  
it takes too long to fix the module and remove all the un-needed  
additions than it does to just create the module by hand.


As I said before, maybe it should be optional.

- Brill

On 19-Mar-09, at 11:52 PM, Jeremy Thomerson wrote:


It's a *wicket* archetype that uses Maven as a build tool.

--
Jeremy Thomerson
http://www.wickettraining.com



On Thu, Mar 19, 2009 at 8:30 PM, Brill Pappin br...@pappin.ca wrote:


It's a Maven archetype is it not?

- Brill


On 19-Mar-09, at 3:22 PM, Jeremy Thomerson wrote:




On the subject of the archetype though, it *should* be doing the  
maven
standard thing by default... maybe offering you a choice but the  
default

should be into the resources directory.


Why should the *wicket* archetype be doing the *maven* standard  
thing?

This
is the wicket standard way of doing things, which means that for the
wicket
archetype, it is the correct way.




-
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: How can I share text resources with multiple web applications?

2009-03-20 Thread Brill Pappin

I love the use of the package structure to keep the file together,
However I don't think we're talking about moving the HTML to a  
different structure, they are all still in the same package (although  
I've come across cases where I *do* need it outside the package  
structure for political and/or functional reasons).


What we're talking about is putting the resource where a Maven user  
*expects* them.


As I said several posts ago, I don't think its wrong that they be in  
src/main/java even if they are not java, but it's not standard Maven  
and I don't want them there for that reason and other sane reasons  
that have already been mentioned (and likely a few not mentioned).


The archetype is a Maven archetype for generating a Wicket project  
stub in a Maven build environment.
It's default operation should be to put resources where a Maven user  
expects them to be.


It should not be adding a bunch of crap to my build just so it can  
place its resources in src/main/java instead of src/main/resources...  
at least not without me telling it that I want to use a non-standard  
project structure.


Heck, I'd be happy if the option was at least there even if it was not  
the default option!


- Brill

On 20-Mar-09, at 10:06 AM, Martijn Dashorst wrote:


There is no sane reason why anyone would put the html, js, css and
properties resources in any place except *next* to the
corresponding.java file. Your .java file can not function without the
.html file. Your component will fail if the .properties file is not
available. When the js file can't be found your component is useless.

Wicket goes beyond the call of duty to provide developers with the
means to encapsulate your components, bringing Object Oriented design
and programming to the web tier. Moving the necessary resources
outside the package folder into a separate directory structure breaks
this encapsulation is definitely not the Wicket Way (tm).

The Wicket archetype is to make building Wicket applications easier,
not to make the life of maven easier.

Martijn

On Fri, Mar 20, 2009 at 2:35 PM, Wilhelmsen Tor Iver toriv...@arrive.no 
 wrote:

It's a *wicket* archetype that uses Maven as a build tool.


But if it *breaks* the assumptions made by all other plugins used by
Maven as a build tool, is it then not an archetype that *abuses*  
Maven

as a build tool? :)

What other contexts would you want to use this *wicket* archetype  
that

does not involve Maven? If none, why should it not create a project
structure that Maven likes? Yes, you can override *anything* in  
Maven if

you want to, but *do* you really want to?

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






--
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.5 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

-
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: How can I share text resources with multiple web applications?

2009-03-20 Thread Brill Pappin

But thats not a fix, thats adding crap to my build I don't want or need.
Maven allows you to do things like that, because frankly no one would  
use it if it didn't... have you ever tried to port a legacy app to  
Maven?


There is no assumption here. See:
http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html

Anyway, I didn't mean to start a war here... the poor guy asked a  
simple question which I responded to with a standard answer for how  
Maven works.

 (hmm... did the archetype confuse some new Wicket user again?)

- Brill

On 20-Mar-09, at 10:27 AM, James Carman wrote:

On Fri, Mar 20, 2009 at 9:35 AM, Wilhelmsen Tor Iver toriv...@arrive.no 
 wrote:

But if it *breaks* the assumptions made by all other plugins used by
Maven as a build tool, is it then not an archetype that *abuses*  
Maven

as a build tool? :)


It also *fixes* it by using a resource declaration.  If the maven
community didn't want to allow folks to change where their resources
were located, they wouldn't have put that feature into the POM.  If
the other plugins are *assuming* rather than referring to the
resources settings in the pom, then they're written poorly.

-
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: How can I share text resources with multiple web applications?

2009-03-20 Thread Brill Pappin


On 20-Mar-09, at 11:51 AM, Martijn Dashorst wrote:


I don't want that. If someone is anal about what maven is expecting,
then it is their problem. I am in the business of making the best
wicket development experience, from a Wicket perspective. We're using
maven as a tool, we're not in the business of supplying maven with new
users.


I'm using Wicket as a tool as well, there is no difference in the  
semantics and Maven is not in the business of supplying Wicket with  
new users, so what exactly is your point in the above paragraph?



Putting all resources that belong to a component in the same physical
folder as the component .java file is a best practice for Wicket
users, even newbies. Doing it in any other way is opening the door to
the nine hells of Maven usage and resource location.



I don't disagree that its a useful pattern, however what are the nine  
hells of Maven usage and resource location? The whole point of src/ 
main/resoruces is that you always know where the resources are!
Like I said, there is no reason to get upset about it, I don't use the  
archetype because I don't want it to do all the extra stuff it does,  
that I then have to clean up.


In fact there have been several instances where having the resources  
and java separate has been helpful to me and the folks I work with. If  
an example is needed, the case were the HTML must be delivered to non  
programmers and then reintegrated is a good one. Most of us don't work  
alone and the fact of the matter is that you very often have different  
people that have to work separately on the same project. Having the  
separate folders for the parts made that situation easy to handle.


It really doesn't matter much in a modern development environment like  
Eclipse... the view to the project is that they are in the same place,  
because they are in the same package. Even the Wicket Bench plugin  
(when it worked) didn't care if they were physically separated in the  
filesystem.



I really don't want the archetype to do anything else than it
currently does, nor document such a way. The Official Wicket Way (tm)
is to put all source files relating to a single unit of work in one
package, in the same physical folder. If you decide to do it
otherwise, it is not The Official Wicket Way. Feel free to disagree,
but do it somewhere else, and in your own private projects.



Cut the crap Martijin. What kind of a silly thing is that to say?
Times and technology change... how are the users of wicket going to  
decide how it should be changed to make it better unless they can talk  
about it, or even argue about it?
I have the right to discuss or argue a point in the public user list,  
and in the spirit that this software is developed and released, even  
if you don't like it.


Now,  lets be clear in what I have said:
- At no point did I ask that it be changed. If I had there would be an  
issue in Jira to go with it.
- I did say that I didn't want to use it that way and thought the way  
it worked was backward (and took longer to fix than it was worth).
- I said I though the default should be the other way, and that the  
archetype could do with the option to do the maven standard thing or  
the wicket thing.

- I also said that my statements where my opinion.
- and i said that I did not think that having the html and source in  
the same physical place was necessarily wrong and that it is a useful  
pattern that i use myself.



- Brill


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



Re: How can I share text resources with multiple web applications?

2009-03-20 Thread Brill Pappin

Now there is a sensible argument!

I've been thinking of doing that exact thing for clarity as the  
project gets big, where the integral HTML files that have a 1:1  
relationship to the code stay in the src/main/java and the other  
resources that are *not* required for operation (like the property  
files) to be in the src/main/resources directory.
I'm thinking that it is a bit more true to the component per package  
type of pattern rather than the function per package that is common in  
Java.
However I have found it useful sometimes to have the html in a  
separate place, such as in passing it around outside the scope of the  
code to non-programmers.


I won't lose any sleep over it though, its six of one and half a dozen  
of the other.


- Brill

BTW - I don't think we need to vote on anything ;)
at least I wasn't calling for a vote...





On 20-Mar-09, at 12:17 PM, John Krasnay wrote:


+1. Wicket IMHO does it the right way for its particular situation.

Wicket differs from most Java project by the sheer number of resources
and by their 1:1 correspondence with Java classes. Maven, I think, is
optimized more for the more common case where a project has only a
handful of resources that are not tightly bound to particular classes.

jk

On Fri, Mar 20, 2009 at 04:51:38PM +0100, Martijn Dashorst wrote:

I don't want that. If someone is anal about what maven is expecting,
then it is their problem. I am in the business of making the best
wicket development experience, from a Wicket perspective. We're using
maven as a tool, we're not in the business of supplying maven with  
new

users.

Putting all resources that belong to a component in the same physical
folder as the component .java file is a best practice for Wicket
users, even newbies. Doing it in any other way is opening the door to
the nine hells of Maven usage and resource location.

I really don't want the archetype to do anything else than it
currently does, nor document such a way. The Official Wicket Way (tm)
is to put all source files relating to a single unit of work in one
package, in the same physical folder. If you decide to do it
otherwise, it is not The Official Wicket Way. Feel free to disagree,
but do it somewhere else, and in your own private projects.

Martijn

-
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: Making wicket work with Dynamically created html

2009-03-20 Thread Brill Pappin
Hmm... what about a custom locator/loader that simply gave back the  
html version of the XML when wicket asked for it?
You could even insert the wicket id attributes into the stream if your  
XML knew about them, then allow Wicket to go through its normal process.


I don't think anything here will be exactly what you need but take a  
look at:

http://cwiki.apache.org/WICKET/control-where-html-files-are-loaded-from.html
http://cwiki.apache.org/WICKET/custom-resource-paths.html

There are a few pointers that will help you understand what's going on  
under the covers, and give you ideas on how your issue might be handled.


- Brill

On 20-Mar-09, at 4:56 PM, Vasu Srinivasan wrote:

I see this question has been posted before and searched around but I  
have

not seen any conclusive solution.

I am totally new to Wicket... We have a dynamic xml that contains UI  
and
data elements (text, radio, checkbox etc) which we need to convert  
to html

and then submit users selections etc. Basically a survey type of xml.

I understood that I have to use Panels, Repeaters and also implement
IMarkupResourceStreamProvider to provide my own html converted from  
xml via

xsl.

How do I then map my html to panels which wicket wants ? If there is a
template/example that would help.

I also read about wicket-qti which exactly addresses this kind of  
issue - is

that available ?

Appreciate help!
vasya



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



Re: How can I share text resources with multiple web applications?

2009-03-20 Thread Brill Pappin

Re: The quickstart allows both.
Does it? I missed that feature but it would be very handy!

The only doc I see is the one at:
http://wicket.apache.org/quickstart.html

What options do i pass to get it to do that?


and yes in that case it's an established project... I think this  
thread has gotten a bit emotional and mixed up with several different  
discussions (which is likely my doing).


- Brill

On 21-Mar-09, at 1:29 AM, James Carman wrote:


On Sat, Mar 21, 2009 at 1:15 AM, Brill Pappin br...@pappin.ca wrote:
In fact there have been several instances where having the  
resources and

java separate has been helpful to me and the folks I work with. If an
example is needed, the case were the HTML must be delivered to non
programmers and then reintegrated is a good one. Most of us don't  
work alone
and the fact of the matter is that you very often have different  
people that
have to work separately on the same project. Having the separate  
folders for

the parts made that situation easy to handle.


In that situation, you're probably a little too advanced to be using a
quickstart for your project anyway (you may have started with one,
but you seem to have evolved).  The quickstart is intended to get
folks up and running quickly.  In your situation, you would be dealing
with a well-established project if you're passing HTML templates back
and forth between designers and coders.  That's not a situation where
you'd likely to be still using a quickstart.  Hopefully you've got
someone on staff (which I believe you do, considering your experience)
who could guide the other folks on how your project is to be
structured (where things go and what not).

Again, I understand where you come from when you say that it's
confusing that the resources aren't in the default location.  Maven
folks like things done the maven way (and I'm a maven folk).  I'm
not trying to argue really.  It really doesn't make one hill of beans
to me either way.  I like the fact that the quickstart allows me to
put my resources beside my java code or in the src/main/resources
directory.  For those that don't, they can put their resources in the
normal place.  The quickstart allows both.

-
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: Diference between model's

2009-03-20 Thread Brill Pappin
I'm likely not the correct person to answer this clearly, but I'm sure  
someone will correct me if I get it wrong :)


Essentially the Loadable version has the load() method which is called  
when the model must be initialized from some other source (as in from  
a database when you always want the data refreshed).


so, a  LoadableDetachableModel is just an implementation of a  
DetachableModel that makes reinitializing the data easier.



- Brill


On 20-Mar-09, at 1:03 PM, Matías Tito wrote:


I'm starting on wicket and I don't underdestand diferences between
LoadableDetachableModel and DetachableModel.


-
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: How can I share text resources with multiple web applications?

2009-03-20 Thread Brill Pappin

Ahh... yes of course.

I was hoping for a switch that would put the html there as well, and  
not include the extra resource config :)

Oh well... its not too big a deal.

- Brill

On 21-Mar-09, at 1:44 AM, James Carman wrote:


On Sat, Mar 21, 2009 at 1:35 AM, Brill Pappin br...@pappin.ca wrote:

Re: The quickstart allows both.
Does it? I missed that feature but it would be very handy!


Sure!  Take a look at a generated quickstart.  There's a
src/main/resources directory with a log4j.properties file in there
(which gets copied over to the target/classes directory).  So, it
doesn't obliterate the maven way of doing things.  It just augments
it.

and yes in that case it's an established project... I think this  
thread has
gotten a bit emotional and mixed up with several different  
discussions

(which is likely my doing).


Heh, no worries.  We all seem to get worked up when discussing how
things *should* be done. :)

-
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



  1   2   3   >