Re: [Wicket 1.2.6] How to get Wizard's form from inside a WizardStep?

2008-01-07 Thread Paolo Di Tommaso
Emh .. not really because that source IS the patch ;)


On Jan 8, 2008 4:52 AM, Timo Rantalaiho <[EMAIL PROTECTED]> wrote:

> On Mon, 07 Jan 2008, Paolo Di Tommaso wrote:
> > I would propose the following patch to AjaxFormSubmitBehavior.
> >
> > Basically adding a form-less constructor so that when the form obejct is
> not
> > specified it will discovered using the findParent(Form.class) method.
>
> Could you get the same event by
>
>  AjaxFormSubmitBehavior behavior =
>  new AjaxFormSubmitBehavior(null, "onchange") {
>  @Override
>  protected Form getForm() {
>  return findParent(Form.class);
>  }
>  ...
>  }
>
> as stated in the source code:
>
> > /* form component cannot be null */
> > if( form == null ) {
> > throw new IllegalStateException("Unable to discover
> parent
> > form object. Try to override getForm() method with different deferred
> > strategy");
>
> Best wishes,
> Timo
>
> --
> Timo Rantalaiho
> Reaktor Innovations Oyhttp://www.ri.fi/ >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Is wicketstuff-scriptaculous still active?

2008-01-07 Thread Lan Boon Ping
Hi Ryan,

I like the fact that I can drop components that the target doesn't
know about them, I think it is very useful especially when you have
many planes need to collaborate without knowing each other.

Is it possible to use component.getPath()? and the onDrop() method
could get the component via

   Component component = ajaxRequestTarget.getPage().get(path);

In regard SortableListView, you can use ListItem instead.

What do you think?

Regards
Boon Ping.

On Jan 8, 2008 12:40 PM, Ryan Sonnek <[EMAIL PROTECTED]> wrote:
> hmmm
>
> this change doesn't really work when dealing with a SortableListView.
> With the SortableListView, there's no "Component" for the
> DraggableTarget to work with.  It really only has the markupId.  Maybe
> another wicket dev has an idea for how to do this?
>
>
> On Jan 7, 2008 9:44 PM, Ryan Sonnek <[EMAIL PROTECTED]> wrote:
> > I'm open to suggestions.  The markupId is required for the
> > scriptaculous library to do it's "magic", but how about something like
> > this?
> >
> > When you call the DraggableTarget.accepts(Component) method, it could
> > store a reference to that component, and the onDrop() method could
> > take the string markupId and lookup the correct component.
> >
> > The one downside to this is that you *must* call
> > DraggableTarget.accepts(Component) for any/all Components that may be
> > dropped on the target.  Right now it's very loosely enforced and you
> > can technically drop components that the target doesn't know about.
> >
> >
> > On Jan 7, 2008 8:54 PM, Lan Boon Ping <[EMAIL PROTECTED]> wrote:
> > > Hi Nino and Ryan
> > >
> > > Thanks for the reply.
> > >
> > > Regard the DraggableTarget.onDrop(...) method, it has a String
> > > (markupId) and AjaxRequestTarget as parameters, I found out that in
> > > some circumstances, markupId is not desirable. For instance, I have a
> > > FruitPanel and two subsclasses-ApplePanel and OrangePanel.  If I put
> > > the markupId in FruitPanel, markupId parameter in
> > > DraggableTarget.onDrop method will no longer useful.
> > >
> > > public abstract class FruitPanel extends Panel
> > > {
> > > public FruitPanel(FruitModel model)
> > > {
> > >super("fruitPanel", model);l
> > > }
> > >
> > > public class OrangePanel extends FruitPanel
> > > {
> > > public OrangePanel(OrangeModel  model)
> > > {
> > >super(model);
> > > }
> > > }
> > >
> > > public class ApplePanel extends FruitPanel
> > > {
> > > public ApplePanel(AppleModel  model)
> > > {
> > >super(model);
> > > }
> > > }
> > >
> > > Instead of using markupId, it is possible for the parameter to be a
> > > Component for DraggableTarget.onDrop?
> > >
> > > Thanks in advance.
> > >
> > > Regards
> > > Boon Ping.
> > >
> > >
> > > On Jan 7, 2008 11:05 PM, Ryan Sonnek <[EMAIL PROTECTED]> wrote:
> > > > It sure is still active.  I recently upgraded to version 1.8.0 and
> > > > haven't heard of any issues.
> > > > http://www.jroller.com/wireframe/entry/scriptaculous_1_8_release
> > > >
> > > > 1.8.1 was just released, but i haven't had time to upgrade to it yet.
> > > >
> > > > On Jan 7, 2008 5:17 AM, Nino Saturnino Martinez Vazquez Wael
> > > >
> > > > <[EMAIL PROTECTED]> wrote:
> > > > > Hi Lan
> > > > >
> > > > > There was a discussion about it being a couple of versions behind, im
> > > > > not sure if Ryan's active? Whats the problem?
> > > > >
> > > > >
> > > > > Lan Boon Ping wrote:
> > > > > > Hi,
> > > > > >
> > > > > > Is wicketstuff-scriptaculous still active?
> > > > > >
> > > > > > Regards
> > > > > > Boon Ping.
> > > > > >
> > > > > > -
> > > > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > > --
> > > > > Nino Martinez Wael
> > > > > Java Specialist @ Jayway DK
> > > > > http://www.jayway.dk
> > > > > +45 2936 7684
> > > > >
> > > > >
> > > > >
> > > > > -
> > > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > > >
> > > > >
> > > >
> > > > -
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Changing the year of a DatePicker

2008-01-07 Thread Martijn Lindhout
Hi all,

I use a YUI DatePicker with a DateTextField (from wicket-datetime). By
default, I can only scroll by month. Is it possible to have a dopdown list
for the year?

Thanx,

-- 
Martijn Lindhout
JointEffort IT Services
http://www.jointeffort.nl
[EMAIL PROTECTED]
+31 (0)6 18 47 25 29


Re: UploadProgessBar in a WizardStep?

2008-01-07 Thread Igor Vaynberg
it will require refactoring and api breaks. please add an issue and we
will address at 1.4 timeframe

-igor


On Jan 7, 2008 7:31 PM, mfs <[EMAIL PROTECTED]> wrote:
>
> Guys,
>
> Any solution to using the UploadProgressBar within a WizardStep..? the
> ProgressBar constructor requires a Form and getForm() for the wizardstep
> returns null...
>
> Please refer this thread for the context
>
> http://www.nabble.com/File-Upload-inside-a-Wizard--td10272971.html#a10272971
>
> Regards.
> --
> View this message in context: 
> http://www.nabble.com/UploadProgessBar-in-a-WizardStep--tp14681748p14681748.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Is wicketstuff-scriptaculous still active?

2008-01-07 Thread Ryan Sonnek
hmmm

this change doesn't really work when dealing with a SortableListView.
With the SortableListView, there's no "Component" for the
DraggableTarget to work with.  It really only has the markupId.  Maybe
another wicket dev has an idea for how to do this?

On Jan 7, 2008 9:44 PM, Ryan Sonnek <[EMAIL PROTECTED]> wrote:
> I'm open to suggestions.  The markupId is required for the
> scriptaculous library to do it's "magic", but how about something like
> this?
>
> When you call the DraggableTarget.accepts(Component) method, it could
> store a reference to that component, and the onDrop() method could
> take the string markupId and lookup the correct component.
>
> The one downside to this is that you *must* call
> DraggableTarget.accepts(Component) for any/all Components that may be
> dropped on the target.  Right now it's very loosely enforced and you
> can technically drop components that the target doesn't know about.
>
>
> On Jan 7, 2008 8:54 PM, Lan Boon Ping <[EMAIL PROTECTED]> wrote:
> > Hi Nino and Ryan
> >
> > Thanks for the reply.
> >
> > Regard the DraggableTarget.onDrop(...) method, it has a String
> > (markupId) and AjaxRequestTarget as parameters, I found out that in
> > some circumstances, markupId is not desirable. For instance, I have a
> > FruitPanel and two subsclasses-ApplePanel and OrangePanel.  If I put
> > the markupId in FruitPanel, markupId parameter in
> > DraggableTarget.onDrop method will no longer useful.
> >
> > public abstract class FruitPanel extends Panel
> > {
> > public FruitPanel(FruitModel model)
> > {
> >super("fruitPanel", model);l
> > }
> >
> > public class OrangePanel extends FruitPanel
> > {
> > public OrangePanel(OrangeModel  model)
> > {
> >super(model);
> > }
> > }
> >
> > public class ApplePanel extends FruitPanel
> > {
> > public ApplePanel(AppleModel  model)
> > {
> >super(model);
> > }
> > }
> >
> > Instead of using markupId, it is possible for the parameter to be a
> > Component for DraggableTarget.onDrop?
> >
> > Thanks in advance.
> >
> > Regards
> > Boon Ping.
> >
> >
> > On Jan 7, 2008 11:05 PM, Ryan Sonnek <[EMAIL PROTECTED]> wrote:
> > > It sure is still active.  I recently upgraded to version 1.8.0 and
> > > haven't heard of any issues.
> > > http://www.jroller.com/wireframe/entry/scriptaculous_1_8_release
> > >
> > > 1.8.1 was just released, but i haven't had time to upgrade to it yet.
> > >
> > > On Jan 7, 2008 5:17 AM, Nino Saturnino Martinez Vazquez Wael
> > >
> > > <[EMAIL PROTECTED]> wrote:
> > > > Hi Lan
> > > >
> > > > There was a discussion about it being a couple of versions behind, im
> > > > not sure if Ryan's active? Whats the problem?
> > > >
> > > >
> > > > Lan Boon Ping wrote:
> > > > > Hi,
> > > > >
> > > > > Is wicketstuff-scriptaculous still active?
> > > > >
> > > > > Regards
> > > > > Boon Ping.
> > > > >
> > > > > -
> > > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > > >
> > > > >
> > > > >
> > > >
> > > > --
> > > > Nino Martinez Wael
> > > > Java Specialist @ Jayway DK
> > > > http://www.jayway.dk
> > > > +45 2936 7684
> > > >
> > > >
> > > >
> > > > -
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [Wicket 1.2.6] How to get Wizard's form from inside a WizardStep?

2008-01-07 Thread Timo Rantalaiho
On Mon, 07 Jan 2008, Paolo Di Tommaso wrote:
> I would propose the following patch to AjaxFormSubmitBehavior.
> 
> Basically adding a form-less constructor so that when the form obejct is not
> specified it will discovered using the findParent(Form.class) method.

Could you get the same event by

  AjaxFormSubmitBehavior behavior = 
  new AjaxFormSubmitBehavior(null, "onchange") {
  @Override
  protected Form getForm() {
  return findParent(Form.class);
  }
  ...
  }

as stated in the source code:

> /* form component cannot be null */
> if( form == null ) {
> throw new IllegalStateException("Unable to discover parent
> form object. Try to override getForm() method with different deferred
> strategy");

Best wishes,
Timo

-- 
Timo Rantalaiho   
Reaktor Innovations Oyhttp://www.ri.fi/ >

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Is wicketstuff-scriptaculous still active?

2008-01-07 Thread Ryan Sonnek
I'm open to suggestions.  The markupId is required for the
scriptaculous library to do it's "magic", but how about something like
this?

When you call the DraggableTarget.accepts(Component) method, it could
store a reference to that component, and the onDrop() method could
take the string markupId and lookup the correct component.

The one downside to this is that you *must* call
DraggableTarget.accepts(Component) for any/all Components that may be
dropped on the target.  Right now it's very loosely enforced and you
can technically drop components that the target doesn't know about.

On Jan 7, 2008 8:54 PM, Lan Boon Ping <[EMAIL PROTECTED]> wrote:
> Hi Nino and Ryan
>
> Thanks for the reply.
>
> Regard the DraggableTarget.onDrop(...) method, it has a String
> (markupId) and AjaxRequestTarget as parameters, I found out that in
> some circumstances, markupId is not desirable. For instance, I have a
> FruitPanel and two subsclasses-ApplePanel and OrangePanel.  If I put
> the markupId in FruitPanel, markupId parameter in
> DraggableTarget.onDrop method will no longer useful.
>
> public abstract class FruitPanel extends Panel
> {
> public FruitPanel(FruitModel model)
> {
>super("fruitPanel", model);l
> }
>
> public class OrangePanel extends FruitPanel
> {
> public OrangePanel(OrangeModel  model)
> {
>super(model);
> }
> }
>
> public class ApplePanel extends FruitPanel
> {
> public ApplePanel(AppleModel  model)
> {
>super(model);
> }
> }
>
> Instead of using markupId, it is possible for the parameter to be a
> Component for DraggableTarget.onDrop?
>
> Thanks in advance.
>
> Regards
> Boon Ping.
>
>
> On Jan 7, 2008 11:05 PM, Ryan Sonnek <[EMAIL PROTECTED]> wrote:
> > It sure is still active.  I recently upgraded to version 1.8.0 and
> > haven't heard of any issues.
> > http://www.jroller.com/wireframe/entry/scriptaculous_1_8_release
> >
> > 1.8.1 was just released, but i haven't had time to upgrade to it yet.
> >
> > On Jan 7, 2008 5:17 AM, Nino Saturnino Martinez Vazquez Wael
> >
> > <[EMAIL PROTECTED]> wrote:
> > > Hi Lan
> > >
> > > There was a discussion about it being a couple of versions behind, im
> > > not sure if Ryan's active? Whats the problem?
> > >
> > >
> > > Lan Boon Ping wrote:
> > > > Hi,
> > > >
> > > > Is wicketstuff-scriptaculous still active?
> > > >
> > > > Regards
> > > > Boon Ping.
> > > >
> > > > -
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > > >
> > > >
> > >
> > > --
> > > Nino Martinez Wael
> > > Java Specialist @ Jayway DK
> > > http://www.jayway.dk
> > > +45 2936 7684
> > >
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



UploadProgessBar in a WizardStep?

2008-01-07 Thread mfs

Guys,

Any solution to using the UploadProgressBar within a WizardStep..? the
ProgressBar constructor requires a Form and getForm() for the wizardstep
returns null...

Please refer this thread for the context 

http://www.nabble.com/File-Upload-inside-a-Wizard--td10272971.html#a10272971

Regards.
-- 
View this message in context: 
http://www.nabble.com/UploadProgessBar-in-a-WizardStep--tp14681748p14681748.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Is wicketstuff-scriptaculous still active?

2008-01-07 Thread Lan Boon Ping
Hi Nino and Ryan

Thanks for the reply.

Regard the DraggableTarget.onDrop(...) method, it has a String
(markupId) and AjaxRequestTarget as parameters, I found out that in
some circumstances, markupId is not desirable. For instance, I have a
FruitPanel and two subsclasses-ApplePanel and OrangePanel.  If I put
the markupId in FruitPanel, markupId parameter in
DraggableTarget.onDrop method will no longer useful.

public abstract class FruitPanel extends Panel
{
public FruitPanel(FruitModel model)
{
   super("fruitPanel", model);l
}

public class OrangePanel extends FruitPanel
{
public OrangePanel(OrangeModel  model)
{
   super(model);
}
}

public class ApplePanel extends FruitPanel
{
public ApplePanel(AppleModel  model)
{
   super(model);
}
}

Instead of using markupId, it is possible for the parameter to be a
Component for DraggableTarget.onDrop?

Thanks in advance.

Regards
Boon Ping.

On Jan 7, 2008 11:05 PM, Ryan Sonnek <[EMAIL PROTECTED]> wrote:
> It sure is still active.  I recently upgraded to version 1.8.0 and
> haven't heard of any issues.
> http://www.jroller.com/wireframe/entry/scriptaculous_1_8_release
>
> 1.8.1 was just released, but i haven't had time to upgrade to it yet.
>
> On Jan 7, 2008 5:17 AM, Nino Saturnino Martinez Vazquez Wael
>
> <[EMAIL PROTECTED]> wrote:
> > Hi Lan
> >
> > There was a discussion about it being a couple of versions behind, im
> > not sure if Ryan's active? Whats the problem?
> >
> >
> > Lan Boon Ping wrote:
> > > Hi,
> > >
> > > Is wicketstuff-scriptaculous still active?
> > >
> > > Regards
> > > Boon Ping.
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> > >
> >
> > --
> > Nino Martinez Wael
> > Java Specialist @ Jayway DK
> > http://www.jayway.dk
> > +45 2936 7684
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Input Text Boxes are frozen after ajax update

2008-01-07 Thread Karen Schaper
Hi,

I solved my problem.  I just added focus to one of the text field components
and now all the text fields can be focused on.

-Karen.

> -Original Message-
> From: Karen Schaper [mailto:[EMAIL PROTECTED]
> Sent: Monday, January 07, 2008 7:32 PM
> To: [EMAIL PROTECTED] Apache. Org
> Subject: Input Text Boxes are frozen after ajax update
>
>
> Hi,
>
> I am a pretty new wicket user and I am encountering a strange
> behavior on a
> web page.
>
> My page has many inputs consisting of checkboxes, drop downs and simple
> input text boxes.
>
> On one area of my page, the user can open a modal window, enter data and a
> row is added to the main page via an ajax call.
>
> After this window closes and I am at the mainb pageI can't edit any of
> the text boxes.  I can click the checkboxes, dropdowns and click
> on the date
> picker but my cursor will not enter into the text box.
>
> Very strange.
>
> Any ideas what would cause this?
>
> Thanks
>
> Karen.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: "required" for Checkbox

2008-01-07 Thread Kent Tong



Dan Kaplan-3 wrote:
> 
> But another way to look at it is this: When a checkbox is unchecked, it
> has
> a value of "unchecked".  Therefore, if you setRequired=true on a checkbox,
> it's always satisfied.  In otherwords, a checkbox always has a value so
> setRequired=true has no effect on a checkbox.  
> 

Yeah, that's exactly the correct behavior in my mind.


-
--
Kent Tong
Wicket tutorials freely available at http://www.agileskills2.org/EWDW
Axis2 tutorials freely available at http://www.agileskills2.org/DWSAA
-- 
View this message in context: 
http://www.nabble.com/%22required%22-for-Checkbox-tp14662131p14680214.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Something about Design

2008-01-07 Thread Curtis Cooley
Ahmed Al-Obaidy wrote:
> On Java world we can learn from Eclipse guys... if anyone of you have written 
> an eclipse based application, he should notice how clean and powerful it is.
>
>   
I've built Eclipse based applications and of all the feelings about that
'framework' I came away from that experience with, clean was not amongst
them. Powerful? Yes. Clean? Beg to differ.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Input Text Boxes are frozen after ajax update

2008-01-07 Thread Karen Schaper
Hi,

I am a pretty new wicket user and I am encountering a strange behavior on a
web page.

My page has many inputs consisting of checkboxes, drop downs and simple
input text boxes.

On one area of my page, the user can open a modal window, enter data and a
row is added to the main page via an ajax call.

After this window closes and I am at the mainb pageI can't edit any of
the text boxes.  I can click the checkboxes, dropdowns and click on the date
picker but my cursor will not enter into the text box.

Very strange.

Any ideas what would cause this?

Thanks

Karen.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Is it possible to use wicket without having any html page?

2008-01-07 Thread Dan Kaplan
Am I having déjà vu?  Didn't someone already post this?

-Original Message-
From: Jon Laidler [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 07, 2008 3:54 PM
To: users@wicket.apache.org
Subject: Re: Is it possible to use wicket without having any html page?


+1.

If Echo (never used myself) fits use it. You could also use Java servlets to
create dynamic HTML from the server. Personally, this is a backward trend
and a pain to manage - all HTML modifications made in the servlet, harder
for web designers to do their creative stuff etc. 

The beauty of Wicket is it separates the process from the presentation
layer. 

Just my 2cents



Martijn Dashorst wrote:
> 
> then just use Echo2. Why make Wicket into Echo2 when you can use that?
> 
> Wicket has a particular niche and Echo2 has its niche. There is no
> sense into turning one into the other.
> 
> Martijn
> 
> On Jan 4, 2008 12:32 PM, legolas <[EMAIL PROTECTED]> wrote:
>>
>> I am simple looking to know whether we can get rid of any markup files
>> and
>> just use java files to define and design our pages, something like echo2?
>>
>> Thanks.
>>
>>
>>
>>
>> Nino.Martinez wrote:
>> >
>> > Hi legolas
>> >
>> > im not sure how familiar you are with wicket. But i'd go for having the
>> > html and just using the approach specified here:
>> >
>> >
>>
http://www.nabble.com/Ways-of-making-components-in-a-page-optional--tp143993
90p14399390.html
>> >
>> > It's possible that I've misunderstood you, do you want to redirect to
>> > some old legacy jsp page or?
>> >
>> > legolas wrote:
>> >> A web page, but it is completely dynamic and all components will be
>> >> created
>> >> based on user request content.
>> >>
>> >> Thanks
>> >>
>> >> igor.vaynberg wrote:
>> >>
>> >>> what would you like it to display? a web page or contents of some
>> >>> file/dynamic content?
>> >>>
>> >>> -igor
>> >>>
>> >>>
>> >>> On Jan 3, 2008 3:01 PM, legolas <[EMAIL PROTECTED]> wrote:
>> >>>
>>  Hi
>>  Is it possible to use wicket without having any html page?
>>  Just writing java code and pointing the browser to some url and it
>> goes
>>  forward?
>> 
>>  Thanks
>>  --
>>  View this message in context:
>> 
>>
http://www.nabble.com/Is-it-possible-to-use-wicket-without-having-any-html-p
age--tp14607438p14607438.html
>>  Sent from the Wicket - User mailing list archive at Nabble.com.
>> 
>> 
>> 
>> -
>>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>>  For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>> 
>> 
>> >>> -
>> >>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >>> For additional commands, e-mail: [EMAIL PROTECTED]
>> >>>
>> >>>
>> >>>
>> >>>
>> >>
>> >>
>> >
>> > --
>> > Nino Martinez Wael
>> > Java Specialist @ Jayway DK
>> > http://www.jayway.dk
>> > +45 2936 7684
>> >
>> >
>> > -
>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >
>> >
>> >
>>
>> --
>> View this message in context:
>>
http://www.nabble.com/Is-it-possible-to-use-wicket-without-having-any-html-p
age--tp14607438p14614650.html
>>
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> 
> -- 
> Buy Wicket in Action: http://manning.com/dashorst
> Apache Wicket 1.3.0 is released
> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context:
http://www.nabble.com/Is-it-possible-to-use-wicket-without-having-any-html-p
age--tp14607438p14679175.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Is it possible to use wicket without having any html page?

2008-01-07 Thread Jon Laidler

+1.

If Echo (never used myself) fits use it. You could also use Java servlets to
create dynamic HTML from the server. Personally, this is a backward trend
and a pain to manage - all HTML modifications made in the servlet, harder
for web designers to do their creative stuff etc. 

The beauty of Wicket is it separates the process from the presentation
layer. 

Just my 2cents



Martijn Dashorst wrote:
> 
> then just use Echo2. Why make Wicket into Echo2 when you can use that?
> 
> Wicket has a particular niche and Echo2 has its niche. There is no
> sense into turning one into the other.
> 
> Martijn
> 
> On Jan 4, 2008 12:32 PM, legolas <[EMAIL PROTECTED]> wrote:
>>
>> I am simple looking to know whether we can get rid of any markup files
>> and
>> just use java files to define and design our pages, something like echo2?
>>
>> Thanks.
>>
>>
>>
>>
>> Nino.Martinez wrote:
>> >
>> > Hi legolas
>> >
>> > im not sure how familiar you are with wicket. But i'd go for having the
>> > html and just using the approach specified here:
>> >
>> >
>> http://www.nabble.com/Ways-of-making-components-in-a-page-optional--tp14399390p14399390.html
>> >
>> > It's possible that I've misunderstood you, do you want to redirect to
>> > some old legacy jsp page or?
>> >
>> > legolas wrote:
>> >> A web page, but it is completely dynamic and all components will be
>> >> created
>> >> based on user request content.
>> >>
>> >> Thanks
>> >>
>> >> igor.vaynberg wrote:
>> >>
>> >>> what would you like it to display? a web page or contents of some
>> >>> file/dynamic content?
>> >>>
>> >>> -igor
>> >>>
>> >>>
>> >>> On Jan 3, 2008 3:01 PM, legolas <[EMAIL PROTECTED]> wrote:
>> >>>
>>  Hi
>>  Is it possible to use wicket without having any html page?
>>  Just writing java code and pointing the browser to some url and it
>> goes
>>  forward?
>> 
>>  Thanks
>>  --
>>  View this message in context:
>> 
>> http://www.nabble.com/Is-it-possible-to-use-wicket-without-having-any-html-page--tp14607438p14607438.html
>>  Sent from the Wicket - User mailing list archive at Nabble.com.
>> 
>> 
>> 
>> -
>>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>>  For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>> 
>> 
>> >>> -
>> >>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >>> For additional commands, e-mail: [EMAIL PROTECTED]
>> >>>
>> >>>
>> >>>
>> >>>
>> >>
>> >>
>> >
>> > --
>> > Nino Martinez Wael
>> > Java Specialist @ Jayway DK
>> > http://www.jayway.dk
>> > +45 2936 7684
>> >
>> >
>> > -
>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Is-it-possible-to-use-wicket-without-having-any-html-page--tp14607438p14614650.html
>>
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> 
> -- 
> Buy Wicket in Action: http://manning.com/dashorst
> Apache Wicket 1.3.0 is released
> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Is-it-possible-to-use-wicket-without-having-any-html-page--tp14607438p14679175.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Websphere Portal 6 + Wicket Portlet Experience

2008-01-07 Thread Ate Douma

Fernando,

I don't use Websphere Portal 6 (mainly Jetspeed-2), but I googled a bit for their support of the Apache Bridges SerlvetContextProvider and 
PortletResourceURLFactory functionality.

It looks like it is now possible to use Websphere and Websphere Portal specific 
APIs to implement these interfaces.

To support the ServletContextProvider, they have just released Fix Pack 13 for 
Websphere 6.1 which now provides an implementation [1].
LOL, finally someone got them to allow using the Struts Bridge I wrote 3 years 
ago besides their own Struts Bridge implementation ;)

For the PortletResourceURLFactory, AFAIK there isn't formal (IBM) support for yet, but I think it should be possible to write an implementation yourself now by 
looking at the new "Single Portlet Refresh" API in Websphere Portal 6.0.1 [2]

It will require some experimenting and coding yourself, but looking at the 
examples given it definitely seems doable.

If you do manage to get this working, please keep us informed.
Would be very nice to add Websphere Portal 6 (.0.1) to the list of supported 
portals.

NB: As the JSR-286 and the RI at Pluto is nearing its completion [3,4], I plan 
to start working on formal JSR-286 compliant Wicket Portlet support real soon.
Then none of these "proprietary" interfaces will be needed as JSR-286 supports 
these features natively.

Regards,

Ate


[1] http://www-1.ibm.com/support/docview.wss?rs=180&uid=swg1PK52044
[2] 
http://www.ibm.com/developerworks/websphere/library/techarticles/0712_behl/0712_behl.html?S_TACT=105AGX10&S_CMP=LP
[3] http://hnsp.inf-bb.uni-jena.de/spec/ (temporarily JSR-286 drafts)
[4] http://svn.apache.org/viewvc/portals/pluto/branches/1.1-286-trunk-merge/

Martijn Dashorst wrote:

Ate or Janne may be the ones to provide feedback. As it has been a vacation
in the Netherlands, it may take a while for them to catch up.
Martijn

On Jan 7, 2008 12:13 PM, fapereira <[EMAIL PROTECTED]> wrote:


Any feedback please?

Thanks!


fapereira wrote:

Hello everyone,
i'm currently research the best way to use framework that can do "clean

as

possible" development for normal web apps and portlets.

What i understand the way that wicket do that, its using Apache Portals
Bridges, but that require that the portal server implements the current
interfaces bellow:

a) Apache Portals Bridges ServletContextProvider interface
b) Apache Portals Bridges PortletResourceURLFactory interface

My problem here its the fact i use webfear, ops.. websphere
application/portal 6.0.
I want to know all kind of feedback related with the experience using
wicket in this specific portal/version.

Thanks very much for your attention.
Best Regards,
Fernando.


--
View this message in context:
http://www.nabble.com/Websphere-Portal-6-%2B-Wicket-Portlet-Experience-tp14597270p14663144.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]








-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: rendering a panel

2008-01-07 Thread Beyonder Unknown

Hi Igor,

Thanks a bunch! This actually work! All the while, I thought of rendering the 
Panel, where all I could have done is to add a tab. Well, we learn new things 
everyday. 

Regards,
Wen Tong
 
--
The only constant in life is change.

- Original Message 
From: Igor Vaynberg <[EMAIL PROTECTED]>
To: users@wicket.apache.org
Sent: Monday, January 7, 2008 2:54:13 PM
Subject: Re: rendering a panel


tabbedpanel.gettabs().add(new tab(.));

-igor


On Jan 7, 2008 2:50 PM, Beyonder Unknown <[EMAIL PROTECTED]> wrote:
>
> Hi there. No. I just use plane tabbedPanel. But the Button:onSubmit()
 of Panel1, i can reference to the tabbedPanel, and I thought
 originally, if I add something in the database, I only have to call
 tabbedPanel.render() and it will render the page.
>
> --
> The only constant in life is change.
>
> - Original Message 
> From: Uwe Schäfer <[EMAIL PROTECTED]>
> To: users@wicket.apache.org
> Sent: Monday, January 7, 2008 2:59:14 PM
> Subject: Re: rendering a panel
>
>
>
> Beyonder Unknown wrote:
> > The Panels use detachableModels already. Sorry for not being clear.
>  What I want to achieve is, when Panel1 save something in the
 database,
>  the tabbedPanel should refresh and add additional tab (based on the
 data
>  saved by Panel1 ). Thoughts?
> >
> you added the tabbedPanel to the AjaxRequestTarget when responding
 the
> request, didn´t you ?
>
> cu uwe
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>
>
>  
 

> Never miss a thing.  Make Yahoo your home page.
> http://www.yahoo.com/r/hs
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: rendering a panel

2008-01-07 Thread Igor Vaynberg
tabbedpanel.gettabs().add(new tab(.));

-igor


On Jan 7, 2008 2:50 PM, Beyonder Unknown <[EMAIL PROTECTED]> wrote:
>
> Hi there. No. I just use plane tabbedPanel. But the Button:onSubmit() of 
> Panel1, i can reference to the tabbedPanel, and I thought originally, if I 
> add something in the database, I only have to call tabbedPanel.render() and 
> it will render the page.
>
> --
> The only constant in life is change.
>
> - Original Message 
> From: Uwe Schäfer <[EMAIL PROTECTED]>
> To: users@wicket.apache.org
> Sent: Monday, January 7, 2008 2:59:14 PM
> Subject: Re: rendering a panel
>
>
>
> Beyonder Unknown wrote:
> > The Panels use detachableModels already. Sorry for not being clear.
>  What I want to achieve is, when Panel1 save something in the database,
>  the tabbedPanel should refresh and add additional tab (based on the data
>  saved by Panel1 ). Thoughts?
> >
> you added the tabbedPanel to the AjaxRequestTarget when responding the
> request, didn´t you ?
>
> cu uwe
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>
>
>   
> 
> Never miss a thing.  Make Yahoo your home page.
> http://www.yahoo.com/r/hs
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: rendering a panel

2008-01-07 Thread Beyonder Unknown

Hi there. No. I just use plane tabbedPanel. But the Button:onSubmit() of 
Panel1, i can reference to the tabbedPanel, and I thought originally, if I add 
something in the database, I only have to call tabbedPanel.render() and it will 
render the page. 
 
--
The only constant in life is change.

- Original Message 
From: Uwe Schäfer <[EMAIL PROTECTED]>
To: users@wicket.apache.org
Sent: Monday, January 7, 2008 2:59:14 PM
Subject: Re: rendering a panel


Beyonder Unknown wrote:
> The Panels use detachableModels already. Sorry for not being clear.
 What I want to achieve is, when Panel1 save something in the database,
 the tabbedPanel should refresh and add additional tab (based on the data
 saved by Panel1 ). Thoughts?
>   
you added the tabbedPanel to the AjaxRequestTarget when responding the 
request, didn´t you ?

cu uwe


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: rendering a panel

2008-01-07 Thread Uwe Schäfer

Beyonder Unknown wrote:

The Panels use detachableModels already. Sorry for not being clear. What I want 
to achieve is, when Panel1 save something in the database, the tabbedPanel 
should refresh and add additional tab (based on the data saved by Panel1 ). 
Thoughts?
  
you added the tabbedPanel to the AjaxRequestTarget when responding the 
request, didn´t you ?


cu uwe


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: rendering a panel

2008-01-07 Thread Beyonder Unknown

Hi Igor,

The Panels use detachableModels already. Sorry for not being clear. What I want 
to achieve is, when Panel1 save something in the database, the tabbedPanel 
should refresh and add additional tab (based on the data saved by Panel1 ). 
Thoughts?

Thanks,
WT
 
--
The only constant in life is change.

- Original Message 
From: Igor Vaynberg <[EMAIL PROTECTED]>
To: users@wicket.apache.org
Sent: Monday, January 7, 2008 2:30:32 PM
Subject: Re: rendering a panel


the panel that is returned form abstracttab.getpanel() is the one that
should use detachable models.

-igor


On Jan 7, 2008 2:27 PM, Beyonder Unknown <[EMAIL PROTECTED]> wrote:
>
> Hi Igor,
>
> Thank you Igor! I appreciate the reply. How do I implement
 DetachableModel in  AjaxTabbedPanel? If the button it click, it should update 
the
 tabs. I build a DetachableModel that returns a Collection in its
 load() method. Should I use this instead of List when I
 instantiate AjaxTabbedPanel() ?
>
> Thanks,
> WT
>
> --
> The only constant in life is change.
>
>
> - Original Message 
> From: Igor Vaynberg <[EMAIL PROTECTED]>
> To: users@wicket.apache.org
> Sent: Monday, January 7, 2008 1:55:16 PM
> Subject: Re: rendering a panel
>
>
> panel2 should use a detachable model, that way it automatically
> updates when rerendered. no need to call render() or anything else.
> see the wiki page on detachable models.
>
> -igor
>
>
> On Jan 7, 2008 1:33 PM, Beyonder Unknown <[EMAIL PROTECTED]>
 wrote:
> >
> > Hi All,
> >
> > Greetings! I was wondering if any of you here encountered this
>  situation. I have a 2 Panels. Panel1 writes something in the
 database, and it
>  should update Panel2. I tried adding Panel2.render() inside an
>  onSubmit() button of Panel1 but it doesn't work. I also tried
>  Panel2.renderComponents() but  with no luck. To fix this, what I did
 is just to
>  instantiate a new instance of Panel2.
> > Is there a better approach to this? Does Panel.render() does
>  cascading render?
> >
> > Thanks,
> > Wen Tong
> >
> > The only constant in life is change.
> >
> >
> >
> >
> >
>
  

> > Looking for last minute shopping deals?
> > Find them fast with Yahoo! Search.
>  
 http://tools.search.yahoo.com/newsearch/category.php?category=shopping
> >
> >
 -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>
>
>  
 

> Be a better friend, newshound, and
> know-it-all with Yahoo! Mobile.  Try it now.
  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: rendering a panel

2008-01-07 Thread Igor Vaynberg
the panel that is returned form abstracttab.getpanel() is the one that
should use detachable models.

-igor


On Jan 7, 2008 2:27 PM, Beyonder Unknown <[EMAIL PROTECTED]> wrote:
>
> Hi Igor,
>
> Thank you Igor! I appreciate the reply. How do I implement DetachableModel in 
>  AjaxTabbedPanel? If the button it click, it should update the tabs. I build 
> a DetachableModel that returns a Collection in its load() method. Should I 
> use this instead of List when I instantiate AjaxTabbedPanel() ?
>
> Thanks,
> WT
>
> --
> The only constant in life is change.
>
>
> - Original Message 
> From: Igor Vaynberg <[EMAIL PROTECTED]>
> To: users@wicket.apache.org
> Sent: Monday, January 7, 2008 1:55:16 PM
> Subject: Re: rendering a panel
>
>
> panel2 should use a detachable model, that way it automatically
> updates when rerendered. no need to call render() or anything else.
> see the wiki page on detachable models.
>
> -igor
>
>
> On Jan 7, 2008 1:33 PM, Beyonder Unknown <[EMAIL PROTECTED]> wrote:
> >
> > Hi All,
> >
> > Greetings! I was wondering if any of you here encountered this
>  situation. I have a 2 Panels. Panel1 writes something in the database, and it
>  should update Panel2. I tried adding Panel2.render() inside an
>  onSubmit() button of Panel1 but it doesn't work. I also tried
>  Panel2.renderComponents() but  with no luck. To fix this, what I did is just 
> to
>  instantiate a new instance of Panel2.
> > Is there a better approach to this? Does Panel.render() does
>  cascading render?
> >
> > Thanks,
> > Wen Tong
> >
> > The only constant in life is change.
> >
> >
> >
> >
> >
>  
> 
> > Looking for last minute shopping deals?
> > Find them fast with Yahoo! Search.
>   http://tools.search.yahoo.com/newsearch/category.php?category=shopping
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>
>
>   
> 
> Be a better friend, newshound, and
> know-it-all with Yahoo! Mobile.  Try it now.  
> http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: rendering a panel

2008-01-07 Thread Beyonder Unknown

Hi Igor,

Thank you Igor! I appreciate the reply. How do I implement DetachableModel in  
AjaxTabbedPanel? If the button it click, it should update the tabs. I build a 
DetachableModel that returns a Collection in its load() method. Should I use 
this instead of List when I instantiate AjaxTabbedPanel() ?

Thanks,
WT
 
--
The only constant in life is change.

- Original Message 
From: Igor Vaynberg <[EMAIL PROTECTED]>
To: users@wicket.apache.org
Sent: Monday, January 7, 2008 1:55:16 PM
Subject: Re: rendering a panel


panel2 should use a detachable model, that way it automatically
updates when rerendered. no need to call render() or anything else.
see the wiki page on detachable models.

-igor


On Jan 7, 2008 1:33 PM, Beyonder Unknown <[EMAIL PROTECTED]> wrote:
>
> Hi All,
>
> Greetings! I was wondering if any of you here encountered this
 situation. I have a 2 Panels. Panel1 writes something in the database, and it
 should update Panel2. I tried adding Panel2.render() inside an
 onSubmit() button of Panel1 but it doesn't work. I also tried
 Panel2.renderComponents() but  with no luck. To fix this, what I did is just to
 instantiate a new instance of Panel2.
> Is there a better approach to this? Does Panel.render() does
 cascading render?
>
> Thanks,
> Wen Tong
>
> The only constant in life is change.
>
>
>
>
>  
 

> Looking for last minute shopping deals?
> Find them fast with Yahoo! Search.
  http://tools.search.yahoo.com/newsearch/category.php?category=shopping
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Is it possible to use wicket without having any html page?

2008-01-07 Thread Sam Hough

Thanks Johan,

I have in mind using them mainly in repeaters or adding a different form
control etc so thing it will be a bit time saving. No simple way to override
onComponentTag etc for an AjaxFallbackButton that will let me use html
fragment directly? 


Johan Compagner wrote:
> 
> If you want default html for those things use panels. Make for all
> those components a panel part that has its own markup (so do that
> once)
> Then reuse those components everywhere.
> Not that you gain much in my eyes because you still need to have a
> span that places the panel at the right place
> 
> On 1/7/08, Sam Hough <[EMAIL PROTECTED]> wrote:
>>
>>
>>
>> Nino.Martinez wrote:
>> >
>> >
>> > Using markup inheritance:
>> > one super class with a corresponding html and a sub class with
>> > corrosponding html, extending the super class to the special need. And
>> > maybe a mounted page that redirects to the wanted sub based on
>> parameters.
>> >
>> >
>>
>> Dear Nino,
>>
>> Can you do this for components that don't extend
>> http://wicketstuff.org/wicket13doc/org/apache/wicket/markup/html/WebMarkupContainerWithAssociatedMarkup.html
>> ?
>>
>> So say have an AjaxFallbackButton that you can just add to a Repeater? So
>> can have all the goodness of large swathe of HTML managed by the HTML
>> monkey
>> but still let me, Java monkey, add components (without specific HTML)? I
>> can
>> only see how I would do that by wrapping the Button in a Panel but that
>> seems like a lot of overhead and the object I would be returning would
>> look
>> like a Panel not a Button
>>
>> Re: "Why not just use Echo" - could be that 80% of app is perfect fit for
>> Wicket but 20% would be nicer if just had default HTML for Button, Link,
>> TextField etc...?
>>
>> Cheers
>>
>> Sam
>> --
>> View this message in context:
>> http://www.nabble.com/Is-it-possible-to-use-wicket-without-having-any-html-page--tp14607438p14668784.html
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Is-it-possible-to-use-wicket-without-having-any-html-page--tp14607438p14677518.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Wicket Session and threading

2008-01-07 Thread Igor Vaynberg
the problem with keeping a reference to a hibernate object in session
is that hibernate sessions are usually threadlocal, so there is a
chance you will get an object from a different hiberante session, etc.

since hibernate caches by-id-lookup it isnt expensive to simply always
load the object in getuser().

if you are not using hibernate you can either store the object in a
threadlocal var in session or as a field in request cycle since
request cycle is threadlocal itself.

-igor


On Jan 7, 2008 1:58 PM, Dan Kaplan <[EMAIL PROTECTED]> wrote:
> Ok, so you're saying make getUser return the object from the DAO (directly
> or indirectly), synchronize the getters and setters and I don't have to
> worry about any of this stuff?
>
> IMO, threading is never a simple issue.  I just want a brain-dead solution
> to this issue so I don't run into problems 1/100 times caused by code in my
> websession implementation.
>
> -Original Message-
> From: Igor Vaynberg [mailto:[EMAIL PROTECTED]
>
> Sent: Monday, January 07, 2008 1:54 PM
> To: users@wicket.apache.org
> Subject: Re: Wicket Session and threading
>
> and anyways, who cares, dont even need to cache it. let getuser()
> always load it. hibernate caches for-id lookups anywho...
>
> -igor
>
>
> On Jan 7, 2008 1:53 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> > gah, i meant to put it into a threadlocal but forgot, oh well, use
> > your imagination :)
> >
> > -igor
> >
> >
> >
> > On Jan 7, 2008 1:30 PM, Johan Compagner <[EMAIL PROTECTED]> wrote:
> > > Igor! Thats a bad example. The user object should be in the websession
> > > but the user object should be in the requestcycle. Because the
> > > websession object can be hit by multiple request (threads)
> > >
> > >
> > > On 1/7/08, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> > > > class MySession extends WebSession {
> > > >   private Long userId;
> > > >   private transient User user;
> > > >
> > > >   public SYNCHRONIZED void setUser(User user) {
> > > > user=user;
> > > > userId=(user==null)?null:user.getId();
> > > >   }
> > > >
> > > >   public SYNCHRONIZED void getUser() {
> > > >   if (user==null) {
> > > > if (userId!=null) {
> > > >   user=getHibernateSession().load(User.class, userId);
> > > >  }
> > > >   }
> > > >   return user;
> > > >}
> > > >
> > > >protected void onDetach() {
> > > > user=null;
> > > >}
> > > > }
> > > >
> > > > -igor
> > > >
> > > > On Jan 7, 2008 11:11 AM, Dan Kaplan <[EMAIL PROTECTED]> wrote:
> > > > > Is there an example somewhere that shows how to do this?  Or can
> someone
> > > > > paste a snippet here of how to do this?  I assume a lot of webapps
> have
> > > > the
> > > > > concept of a User object.
> > > > >
> > > > > -Original Message-
> > > > > From: Martijn Dashorst [mailto:[EMAIL PROTECTED]
> > > > > Sent: Saturday, January 05, 2008 5:17 AM
> > > > > To: users@wicket.apache.org
> > > > > Subject: Re: Wicket Session and threading
> > > > >
> > > > >
> > > > > If you use hibernate, this is not recommended... An entity can only
> be
> > > > > part of one Hibernate Session, and storing the instance in the
> wicket
> > > > > session will share it across threads, and hence you'll get hibernate
> > > > > exceptions.
> > > > >
> > > > > Note that this may not be only a problem in Hibernate, but can also
> be
> > > > > a problem in other db frameworks.
> > > > >
> > > > > So do what Johan described and you will be safe...
> > > > >
> > > > > Martijn
> > > > >
> > > > > On Jan 5, 2008 3:54 AM, Eelco Hillenius <[EMAIL PROTECTED]>
> wrote:
> > > > > > On Jan 5, 2008 5:15 AM, Dan Kaplan <[EMAIL PROTECTED]>
> wrote:
> > > > > > > Yeah that makes sense.  Since we're sorta on the topic, I
> thought I
> > > > > would
> > > > > > > ask this question.  As the User object goes from being initially
> > > > > registered
> > > > > > > to its profile being edited, how does one update the User in the
> > > > session
> > > > > and
> > > > > > > the db simultaneously?
> > > > > > >
> > > > > > > Here's a scenario:  A user registers with your website and later
> adds
> > > > a
> > > > > > > signature that is to show up on every post he makes.
> > > > > > >
> > > > > > > Do you add an instance of a UserService to your WebSession and
> then
> > > > have
> > > > > > > this in it:
> > > > > > >
> > > > > > > private User user;
> > > > > > >
> > > > > > > public synchronized void setUser(User updatedUser) {
> > > > > > >   userService.updateUser(updatedUser);
> > > > > > >   this.user = updatedUser;
> > > > > > > }
> > > > > > >
> > > > > > > public synchronized User getUser() {
> > > > > > >   return this.user;
> > > > > > > }
> > > > > > >
> > > > > > > ?  Cause I've been doing something like that.  Is there a better
> way
> > > > to
> > > > > go
> > > > > > > about this?
> > > > > >
> > > > > >
> > > > > > Looks fine to me.
> > > > > >
> > > > > > Eelco
> > > > > >
> > > > > >
> > > > > >
> 

RE: Wicket Session and threading

2008-01-07 Thread Dan Kaplan
Ok, so you're saying make getUser return the object from the DAO (directly
or indirectly), synchronize the getters and setters and I don't have to
worry about any of this stuff?

IMO, threading is never a simple issue.  I just want a brain-dead solution
to this issue so I don't run into problems 1/100 times caused by code in my
websession implementation.

-Original Message-
From: Igor Vaynberg [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 07, 2008 1:54 PM
To: users@wicket.apache.org
Subject: Re: Wicket Session and threading

and anyways, who cares, dont even need to cache it. let getuser()
always load it. hibernate caches for-id lookups anywho...

-igor


On Jan 7, 2008 1:53 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> gah, i meant to put it into a threadlocal but forgot, oh well, use
> your imagination :)
>
> -igor
>
>
>
> On Jan 7, 2008 1:30 PM, Johan Compagner <[EMAIL PROTECTED]> wrote:
> > Igor! Thats a bad example. The user object should be in the websession
> > but the user object should be in the requestcycle. Because the
> > websession object can be hit by multiple request (threads)
> >
> >
> > On 1/7/08, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> > > class MySession extends WebSession {
> > >   private Long userId;
> > >   private transient User user;
> > >
> > >   public SYNCHRONIZED void setUser(User user) {
> > > user=user;
> > > userId=(user==null)?null:user.getId();
> > >   }
> > >
> > >   public SYNCHRONIZED void getUser() {
> > >   if (user==null) {
> > > if (userId!=null) {
> > >   user=getHibernateSession().load(User.class, userId);
> > >  }
> > >   }
> > >   return user;
> > >}
> > >
> > >protected void onDetach() {
> > > user=null;
> > >}
> > > }
> > >
> > > -igor
> > >
> > > On Jan 7, 2008 11:11 AM, Dan Kaplan <[EMAIL PROTECTED]> wrote:
> > > > Is there an example somewhere that shows how to do this?  Or can
someone
> > > > paste a snippet here of how to do this?  I assume a lot of webapps
have
> > > the
> > > > concept of a User object.
> > > >
> > > > -Original Message-
> > > > From: Martijn Dashorst [mailto:[EMAIL PROTECTED]
> > > > Sent: Saturday, January 05, 2008 5:17 AM
> > > > To: users@wicket.apache.org
> > > > Subject: Re: Wicket Session and threading
> > > >
> > > >
> > > > If you use hibernate, this is not recommended... An entity can only
be
> > > > part of one Hibernate Session, and storing the instance in the
wicket
> > > > session will share it across threads, and hence you'll get hibernate
> > > > exceptions.
> > > >
> > > > Note that this may not be only a problem in Hibernate, but can also
be
> > > > a problem in other db frameworks.
> > > >
> > > > So do what Johan described and you will be safe...
> > > >
> > > > Martijn
> > > >
> > > > On Jan 5, 2008 3:54 AM, Eelco Hillenius <[EMAIL PROTECTED]>
wrote:
> > > > > On Jan 5, 2008 5:15 AM, Dan Kaplan <[EMAIL PROTECTED]>
wrote:
> > > > > > Yeah that makes sense.  Since we're sorta on the topic, I
thought I
> > > > would
> > > > > > ask this question.  As the User object goes from being initially
> > > > registered
> > > > > > to its profile being edited, how does one update the User in the
> > > session
> > > > and
> > > > > > the db simultaneously?
> > > > > >
> > > > > > Here's a scenario:  A user registers with your website and later
adds
> > > a
> > > > > > signature that is to show up on every post he makes.
> > > > > >
> > > > > > Do you add an instance of a UserService to your WebSession and
then
> > > have
> > > > > > this in it:
> > > > > >
> > > > > > private User user;
> > > > > >
> > > > > > public synchronized void setUser(User updatedUser) {
> > > > > >   userService.updateUser(updatedUser);
> > > > > >   this.user = updatedUser;
> > > > > > }
> > > > > >
> > > > > > public synchronized User getUser() {
> > > > > >   return this.user;
> > > > > > }
> > > > > >
> > > > > > ?  Cause I've been doing something like that.  Is there a better
way
> > > to
> > > > go
> > > > > > about this?
> > > > >
> > > > >
> > > > > Looks fine to me.
> > > > >
> > > > > Eelco
> > > > >
> > > > >
> > > > >
-
> > > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Buy Wicket in Action: http://manning.com/dashorst
> > > > Apache Wicket 1.3.0 is released
> > > > Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0
> > > >
> > > >
-
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > > >
> > > >
-
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > > >
> > >
> > > ---

Re: rendering a panel

2008-01-07 Thread Igor Vaynberg
panel2 should use a detachable model, that way it automatically
updates when rerendered. no need to call render() or anything else.
see the wiki page on detachable models.

-igor


On Jan 7, 2008 1:33 PM, Beyonder Unknown <[EMAIL PROTECTED]> wrote:
>
> Hi All,
>
> Greetings! I was wondering if any of you here encountered this situation. I 
> have a 2 Panels. Panel1 writes something in the database, and it should 
> update Panel2. I tried adding Panel2.render() inside an onSubmit() button of 
> Panel1 but it doesn't work. I also tried Panel2.renderComponents() but  with 
> no luck. To fix this, what I did is just to instantiate a new instance of 
> Panel2.
> Is there a better approach to this? Does Panel.render() does cascading render?
>
> Thanks,
> Wen Tong
>
> The only constant in life is change.
>
>
>
>
>   
> 
> Looking for last minute shopping deals?
> Find them fast with Yahoo! Search.  
> http://tools.search.yahoo.com/newsearch/category.php?category=shopping
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Wicket Session and threading

2008-01-07 Thread Igor Vaynberg
and anyways, who cares, dont even need to cache it. let getuser()
always load it. hibernate caches for-id lookups anywho...

-igor


On Jan 7, 2008 1:53 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> gah, i meant to put it into a threadlocal but forgot, oh well, use
> your imagination :)
>
> -igor
>
>
>
> On Jan 7, 2008 1:30 PM, Johan Compagner <[EMAIL PROTECTED]> wrote:
> > Igor! Thats a bad example. The user object should be in the websession
> > but the user object should be in the requestcycle. Because the
> > websession object can be hit by multiple request (threads)
> >
> >
> > On 1/7/08, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> > > class MySession extends WebSession {
> > >   private Long userId;
> > >   private transient User user;
> > >
> > >   public SYNCHRONIZED void setUser(User user) {
> > > user=user;
> > > userId=(user==null)?null:user.getId();
> > >   }
> > >
> > >   public SYNCHRONIZED void getUser() {
> > >   if (user==null) {
> > > if (userId!=null) {
> > >   user=getHibernateSession().load(User.class, userId);
> > >  }
> > >   }
> > >   return user;
> > >}
> > >
> > >protected void onDetach() {
> > > user=null;
> > >}
> > > }
> > >
> > > -igor
> > >
> > > On Jan 7, 2008 11:11 AM, Dan Kaplan <[EMAIL PROTECTED]> wrote:
> > > > Is there an example somewhere that shows how to do this?  Or can someone
> > > > paste a snippet here of how to do this?  I assume a lot of webapps have
> > > the
> > > > concept of a User object.
> > > >
> > > > -Original Message-
> > > > From: Martijn Dashorst [mailto:[EMAIL PROTECTED]
> > > > Sent: Saturday, January 05, 2008 5:17 AM
> > > > To: users@wicket.apache.org
> > > > Subject: Re: Wicket Session and threading
> > > >
> > > >
> > > > If you use hibernate, this is not recommended... An entity can only be
> > > > part of one Hibernate Session, and storing the instance in the wicket
> > > > session will share it across threads, and hence you'll get hibernate
> > > > exceptions.
> > > >
> > > > Note that this may not be only a problem in Hibernate, but can also be
> > > > a problem in other db frameworks.
> > > >
> > > > So do what Johan described and you will be safe...
> > > >
> > > > Martijn
> > > >
> > > > On Jan 5, 2008 3:54 AM, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> > > > > On Jan 5, 2008 5:15 AM, Dan Kaplan <[EMAIL PROTECTED]> wrote:
> > > > > > Yeah that makes sense.  Since we're sorta on the topic, I thought I
> > > > would
> > > > > > ask this question.  As the User object goes from being initially
> > > > registered
> > > > > > to its profile being edited, how does one update the User in the
> > > session
> > > > and
> > > > > > the db simultaneously?
> > > > > >
> > > > > > Here's a scenario:  A user registers with your website and later 
> > > > > > adds
> > > a
> > > > > > signature that is to show up on every post he makes.
> > > > > >
> > > > > > Do you add an instance of a UserService to your WebSession and then
> > > have
> > > > > > this in it:
> > > > > >
> > > > > > private User user;
> > > > > >
> > > > > > public synchronized void setUser(User updatedUser) {
> > > > > >   userService.updateUser(updatedUser);
> > > > > >   this.user = updatedUser;
> > > > > > }
> > > > > >
> > > > > > public synchronized User getUser() {
> > > > > >   return this.user;
> > > > > > }
> > > > > >
> > > > > > ?  Cause I've been doing something like that.  Is there a better way
> > > to
> > > > go
> > > > > > about this?
> > > > >
> > > > >
> > > > > Looks fine to me.
> > > > >
> > > > > Eelco
> > > > >
> > > > >
> > > > > -
> > > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Buy Wicket in Action: http://manning.com/dashorst
> > > > Apache Wicket 1.3.0 is released
> > > > Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0
> > > >
> > > > -
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > > >
> > > > -
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Wicket Session and threading

2008-01-07 Thread Igor Vaynberg
gah, i meant to put it into a threadlocal but forgot, oh well, use
your imagination :)

-igor


On Jan 7, 2008 1:30 PM, Johan Compagner <[EMAIL PROTECTED]> wrote:
> Igor! Thats a bad example. The user object should be in the websession
> but the user object should be in the requestcycle. Because the
> websession object can be hit by multiple request (threads)
>
>
> On 1/7/08, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> > class MySession extends WebSession {
> >   private Long userId;
> >   private transient User user;
> >
> >   public SYNCHRONIZED void setUser(User user) {
> > user=user;
> > userId=(user==null)?null:user.getId();
> >   }
> >
> >   public SYNCHRONIZED void getUser() {
> >   if (user==null) {
> > if (userId!=null) {
> >   user=getHibernateSession().load(User.class, userId);
> >  }
> >   }
> >   return user;
> >}
> >
> >protected void onDetach() {
> > user=null;
> >}
> > }
> >
> > -igor
> >
> > On Jan 7, 2008 11:11 AM, Dan Kaplan <[EMAIL PROTECTED]> wrote:
> > > Is there an example somewhere that shows how to do this?  Or can someone
> > > paste a snippet here of how to do this?  I assume a lot of webapps have
> > the
> > > concept of a User object.
> > >
> > > -Original Message-
> > > From: Martijn Dashorst [mailto:[EMAIL PROTECTED]
> > > Sent: Saturday, January 05, 2008 5:17 AM
> > > To: users@wicket.apache.org
> > > Subject: Re: Wicket Session and threading
> > >
> > >
> > > If you use hibernate, this is not recommended... An entity can only be
> > > part of one Hibernate Session, and storing the instance in the wicket
> > > session will share it across threads, and hence you'll get hibernate
> > > exceptions.
> > >
> > > Note that this may not be only a problem in Hibernate, but can also be
> > > a problem in other db frameworks.
> > >
> > > So do what Johan described and you will be safe...
> > >
> > > Martijn
> > >
> > > On Jan 5, 2008 3:54 AM, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> > > > On Jan 5, 2008 5:15 AM, Dan Kaplan <[EMAIL PROTECTED]> wrote:
> > > > > Yeah that makes sense.  Since we're sorta on the topic, I thought I
> > > would
> > > > > ask this question.  As the User object goes from being initially
> > > registered
> > > > > to its profile being edited, how does one update the User in the
> > session
> > > and
> > > > > the db simultaneously?
> > > > >
> > > > > Here's a scenario:  A user registers with your website and later adds
> > a
> > > > > signature that is to show up on every post he makes.
> > > > >
> > > > > Do you add an instance of a UserService to your WebSession and then
> > have
> > > > > this in it:
> > > > >
> > > > > private User user;
> > > > >
> > > > > public synchronized void setUser(User updatedUser) {
> > > > >   userService.updateUser(updatedUser);
> > > > >   this.user = updatedUser;
> > > > > }
> > > > >
> > > > > public synchronized User getUser() {
> > > > >   return this.user;
> > > > > }
> > > > >
> > > > > ?  Cause I've been doing something like that.  Is there a better way
> > to
> > > go
> > > > > about this?
> > > >
> > > >
> > > > Looks fine to me.
> > > >
> > > > Eelco
> > > >
> > > >
> > > > -
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > > >
> > >
> > >
> > >
> > > --
> > > Buy Wicket in Action: http://manning.com/dashorst
> > > Apache Wicket 1.3.0 is released
> > > Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Is it possible to use wicket without having any html page?

2008-01-07 Thread Johan Compagner
If you want default html for those things use panels. Make for all
those components a panel part that has its own markup (so do that
once)
Then reuse those components everywhere.
Not that you gain much in my eyes because you still need to have a
span that places the panel at the right place

On 1/7/08, Sam Hough <[EMAIL PROTECTED]> wrote:
>
>
>
> Nino.Martinez wrote:
> >
> >
> > Using markup inheritance:
> > one super class with a corresponding html and a sub class with
> > corrosponding html, extending the super class to the special need. And
> > maybe a mounted page that redirects to the wanted sub based on parameters.
> >
> >
>
> Dear Nino,
>
> Can you do this for components that don't extend
> http://wicketstuff.org/wicket13doc/org/apache/wicket/markup/html/WebMarkupContainerWithAssociatedMarkup.html
> ?
>
> So say have an AjaxFallbackButton that you can just add to a Repeater? So
> can have all the goodness of large swathe of HTML managed by the HTML monkey
> but still let me, Java monkey, add components (without specific HTML)? I can
> only see how I would do that by wrapping the Button in a Panel but that
> seems like a lot of overhead and the object I would be returning would look
> like a Panel not a Button
>
> Re: "Why not just use Echo" - could be that 80% of app is perfect fit for
> Wicket but 20% would be nicer if just had default HTML for Button, Link,
> TextField etc...?
>
> Cheers
>
> Sam
> --
> View this message in context:
> http://www.nabble.com/Is-it-possible-to-use-wicket-without-having-any-html-page--tp14607438p14668784.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: "required" for Checkbox

2008-01-07 Thread Johan Compagner
The problem is that this setRequired is only really valid for a try
state checkbox. I agree that required shouldnt mean it has to be true
thats weird in my eyes

On 1/7/08, Kent Tong <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I observed that if "required" is set to true for a Checkbox, Wicket will
> ensure that the Checkbox is checked. If it is cleared by the user, it
> will be treated as an error. See
> https://issues.apache.org/jira/browse/WICKET-1221 and
> https://issues.apache.org/jira/browse/WICKET-1260 for some
> background.
>
> For me, "required" means that a value must be provided. For a
> check box, if it is checked, it has a value of true. if it is unchecked, it
> has a value of false. So it always satisfy "required". Treating "required"
> as "having a value of true" doesn't sound correct to me.
>
> If we consider the error message that should be used, for the case of
> forcing the user to check the box (eg, [x] I have read the agreement),
> it should say "you must check xxx", which is quite different from the
> error message for "required": "you must provide xxx".
>
> For the use case of forcing a checked check box, I think an CheckedValidator
> should be used, which can provide a much better default error message.
>
> Not that it's an important, but just to see what others think.
>
> -
> --
> Kent Tong
> Wicket tutorials freely available at http://www.agileskills2.org/EWDW
> Axis2 tutorials freely available at http://www.agileskills2.org/DWSAA
> --
> View this message in context:
> http://www.nabble.com/%22required%22-for-Checkbox-tp14662131p14662131.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



rendering a panel

2008-01-07 Thread Beyonder Unknown

Hi All,

Greetings! I was wondering if any of you here encountered this situation. I 
have a 2 Panels. Panel1 writes something in the database, and it should update 
Panel2. I tried adding Panel2.render() inside an onSubmit() button of Panel1 
but it doesn't work. I also tried Panel2.renderComponents() but  with no luck. 
To fix this, what I did is just to instantiate a new instance of Panel2.
Is there a better approach to this? Does Panel.render() does cascading render?

Thanks,
Wen Tong

The only constant in life is change.




  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Wicket Session and threading

2008-01-07 Thread Johan Compagner
Igor! Thats a bad example. The user object should be in the websession
but the user object should be in the requestcycle. Because the
websession object can be hit by multiple request (threads)

On 1/7/08, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> class MySession extends WebSession {
>   private Long userId;
>   private transient User user;
>
>   public SYNCHRONIZED void setUser(User user) {
> user=user;
> userId=(user==null)?null:user.getId();
>   }
>
>   public SYNCHRONIZED void getUser() {
>   if (user==null) {
> if (userId!=null) {
>   user=getHibernateSession().load(User.class, userId);
>  }
>   }
>   return user;
>}
>
>protected void onDetach() {
> user=null;
>}
> }
>
> -igor
>
> On Jan 7, 2008 11:11 AM, Dan Kaplan <[EMAIL PROTECTED]> wrote:
> > Is there an example somewhere that shows how to do this?  Or can someone
> > paste a snippet here of how to do this?  I assume a lot of webapps have
> the
> > concept of a User object.
> >
> > -Original Message-
> > From: Martijn Dashorst [mailto:[EMAIL PROTECTED]
> > Sent: Saturday, January 05, 2008 5:17 AM
> > To: users@wicket.apache.org
> > Subject: Re: Wicket Session and threading
> >
> >
> > If you use hibernate, this is not recommended... An entity can only be
> > part of one Hibernate Session, and storing the instance in the wicket
> > session will share it across threads, and hence you'll get hibernate
> > exceptions.
> >
> > Note that this may not be only a problem in Hibernate, but can also be
> > a problem in other db frameworks.
> >
> > So do what Johan described and you will be safe...
> >
> > Martijn
> >
> > On Jan 5, 2008 3:54 AM, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> > > On Jan 5, 2008 5:15 AM, Dan Kaplan <[EMAIL PROTECTED]> wrote:
> > > > Yeah that makes sense.  Since we're sorta on the topic, I thought I
> > would
> > > > ask this question.  As the User object goes from being initially
> > registered
> > > > to its profile being edited, how does one update the User in the
> session
> > and
> > > > the db simultaneously?
> > > >
> > > > Here's a scenario:  A user registers with your website and later adds
> a
> > > > signature that is to show up on every post he makes.
> > > >
> > > > Do you add an instance of a UserService to your WebSession and then
> have
> > > > this in it:
> > > >
> > > > private User user;
> > > >
> > > > public synchronized void setUser(User updatedUser) {
> > > >   userService.updateUser(updatedUser);
> > > >   this.user = updatedUser;
> > > > }
> > > >
> > > > public synchronized User getUser() {
> > > >   return this.user;
> > > > }
> > > >
> > > > ?  Cause I've been doing something like that.  Is there a better way
> to
> > go
> > > > about this?
> > >
> > >
> > > Looks fine to me.
> > >
> > > Eelco
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
> >
> > --
> > Buy Wicket in Action: http://manning.com/dashorst
> > Apache Wicket 1.3.0 is released
> > Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [wicket-security] LDAP integration?

2008-01-07 Thread Maurice Marrink
No, only those you need.
Secure(web)Page is supposed to be a general purpose base class so it
has to provide all constructors, your class does not.

Maurice

On Jan 7, 2008 8:46 PM, William Hoover <[EMAIL PROTECTED]> wrote:
> One other question... Is it necessary to increase visibility of all the 
> WebPage constructors (protected -> public) for SecureWebPage impls?
>
> -Original Message-
> From: William Hoover [mailto:[EMAIL PROTECTED]
>
> Sent: Monday, January 07, 2008 2:24 PM
> To: users@wicket.apache.org
> Subject: RE: [wicket-security] LDAP integration?
>
>
> My only worry about copying the onliners from Secure(Web)Page into 
> MySecurePage is if they change. Every new wicket-security release we would 
> have to check to make sure that nothing changed in Secure(Web)Page to prevent 
> possible issues. I understand that the code is trivial and probably will not 
> change significantly in the future, but the only true guarantee is only what 
> is defined in the interface contract. I think a mount solution is worth 
> further investigation. When I have time I will look into how to implement it 
> (if possible). For now, I will live with the copy and paste and use your 
> proposed solution. Thanks for your help! I will let you know how thinks turn 
> out with ldap :o)
>
> -Original Message-
> From: Maurice Marrink [mailto:[EMAIL PROTECTED]
> Sent: Monday, January 07, 2008 11:06 AM
> To: users@wicket.apache.org
> Subject: Re: [wicket-security] LDAP integration?
>
>
> Do you mean that little bit of insignificant code in the Secure(Web)Page ?
> All that does is redirect to the SecureComponentHelper so i would not
> call that code duplication.
> Even more all SecureComponents i create use the same oneliners to
> redirect to SecureComponentHelper.
>
> Regarding the mount, i am not sure if you can get the mount path if
> all you have is a page class (you probably can somehow but i don't
> know how)
> In that case you can extend SwarmStrategy and use the mount path to
> check for instantiation permission.
> But i would not recommend that just to avoid "code duplication", if it
> really bothers you you can go ahead with option 2 and use a custom
> interface for instantiation checking.
> Or you could try and ignore the fact that the login page should not be
> a SecurePage and try it anyway, i am not a 100% sure it will work but
> i did make some exceptions that bypass the instantiation check if the
> page class in question is the login page, so give it a try.
> The reason the documentation says you should not have your login page
> extend SecurePage is because it just doesn't feel right to do so.
>
> Maurice
>
> On Jan 7, 2008 3:24 PM, William Hoover <[EMAIL PROTECTED]> wrote:
> > oops!!!
> >
> > *definitely*
> >
> > -Original Message-
> > From: William Hoover
> > Sent: Monday, January 07, 2008 9:23 AM
> > To: 'users@wicket.apache.org'
> >
> > Subject: RE: [wicket-security] LDAP integration?
> >
> >
> > The only issue I have with proposed solution 1 is that there is duplication 
> > of code, but I cannot see a simple way around it. Is it plausible to adopt 
> > the same strategy that we mount pages? I was thinking that doing something 
> > like:
> >
> > mountSecurePage(MySecureWebPage.class)
> >
> > ...may be a nice alternative to actually extending SecureWebPage.
> >
> > I will defiantly contribute any ldap integration code once I am able to get 
> > it working properly ;o)
> >
> > -Original Message-
> > From: Maurice Marrink [mailto:[EMAIL PROTECTED]
> > Sent: Saturday, January 05, 2008 12:16 PM
> > To: users@wicket.apache.org
> > Subject: Re: [wicket-security] LDAP integration?
> >
> >
> > You could do LoginPage extends AbstractBasePage
> > MySecurePage extends AbstractBasePage implements ISecurePage
> > OtherPage extends MySecurePage
> >
> > Or alternatively
> > MyInterface extends ISecurePage
> > AbstractBasePage extends SecureWebPage
> > LoginPage extends AbstractBasePage
> > OtherPage extends AbstractBasePage implements MyInterface
> > The important part here is the MyInterface
> > By default Swarm only does an instantiation check on components with
> > the ISecurePage interface (which is implemented by SecureWebPage).
> > But you can change this to any interface you like as long as the
> > interface extends ISecureComponent.
> > To do this you need to overwrite the setupStrategyFactory method of
> > SwarmWebApplication to do
> > setStrategyFactory(new 
> > SwarmStrategyFactory(MyInterface.class,getHiveKey()));
> >
> > Personally i would go for option 1 as you can simply copy the
> > implementation for ISecurePage from SecureWebPage
> >
> > BTW once you have the ldap part up and running and if it is setup in a
> > generic way i would be interested in including it with swarm or a
> > subproject if thats alright with you.
> >
> > Maurice
> >
> > On Jan 4, 2008 8:39 PM, William Hoover <[EMAIL PROTECTED]> wrote:
> > > I do have another question...
> > >
> > > According to the docu

AjaxEditableLabel in 1.3.0

2008-01-07 Thread givp

Hello,

I'm having some problems with AjaxEditableLabel that seem to happen in
Wicket 1.3.0 only. When I roll back to rc1, everything works fine. I have
used the example code from:
http://www.wicket-library.com/wicket-examples/ajax/editable-label.1

setModel(new CompoundPropertyModel(this));
add(new AjaxEditableLabel("userStatus"));

I can edit the field but it fails to save. According to Tomcat it's
"setModel" that is causing the errors. 

java.lang.IllegalAccessError: tried to access method
org.apache.wicket.Component.onModelChanging()V from class
org.apache.wicket.extensions.ajax.markup.html.AjaxEditableLabel$1

Can anyone please point me to the right direction as to how I can fix this
without having to use rc1?

Thanks,
g
-- 
View this message in context: 
http://www.nabble.com/AjaxEditableLabel-in-1.3.0-tp14675483p14675483.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Wicket Session and threading

2008-01-07 Thread Dan Kaplan
Ok, thanks

-Original Message-
From: Igor Vaynberg [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 07, 2008 11:32 AM
To: users@wicket.apache.org
Subject: Re: Wicket Session and threading

class MySession extends WebSession {
  private Long userId;
  private transient User user;

  public SYNCHRONIZED void setUser(User user) {
user=user;
userId=(user==null)?null:user.getId();
  }

  public SYNCHRONIZED void getUser() {
  if (user==null) {
if (userId!=null) {
  user=getHibernateSession().load(User.class, userId);
 }
  }
  return user;
   }

   protected void onDetach() {
user=null;
   }
}

-igor

On Jan 7, 2008 11:11 AM, Dan Kaplan <[EMAIL PROTECTED]> wrote:
> Is there an example somewhere that shows how to do this?  Or can someone
> paste a snippet here of how to do this?  I assume a lot of webapps have
the
> concept of a User object.
>
> -Original Message-
> From: Martijn Dashorst [mailto:[EMAIL PROTECTED]
> Sent: Saturday, January 05, 2008 5:17 AM
> To: users@wicket.apache.org
> Subject: Re: Wicket Session and threading
>
>
> If you use hibernate, this is not recommended... An entity can only be
> part of one Hibernate Session, and storing the instance in the wicket
> session will share it across threads, and hence you'll get hibernate
> exceptions.
>
> Note that this may not be only a problem in Hibernate, but can also be
> a problem in other db frameworks.
>
> So do what Johan described and you will be safe...
>
> Martijn
>
> On Jan 5, 2008 3:54 AM, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> > On Jan 5, 2008 5:15 AM, Dan Kaplan <[EMAIL PROTECTED]> wrote:
> > > Yeah that makes sense.  Since we're sorta on the topic, I thought I
> would
> > > ask this question.  As the User object goes from being initially
> registered
> > > to its profile being edited, how does one update the User in the
session
> and
> > > the db simultaneously?
> > >
> > > Here's a scenario:  A user registers with your website and later adds
a
> > > signature that is to show up on every post he makes.
> > >
> > > Do you add an instance of a UserService to your WebSession and then
have
> > > this in it:
> > >
> > > private User user;
> > >
> > > public synchronized void setUser(User updatedUser) {
> > >   userService.updateUser(updatedUser);
> > >   this.user = updatedUser;
> > > }
> > >
> > > public synchronized User getUser() {
> > >   return this.user;
> > > }
> > >
> > > ?  Cause I've been doing something like that.  Is there a better way
to
> go
> > > about this?
> >
> >
> > Looks fine to me.
> >
> > Eelco
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
>
> --
> Buy Wicket in Action: http://manning.com/dashorst
> Apache Wicket 1.3.0 is released
> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [wicket-security] LDAP integration?

2008-01-07 Thread William Hoover
One other question... Is it necessary to increase visibility of all the WebPage 
constructors (protected -> public) for SecureWebPage impls?

-Original Message-
From: William Hoover [mailto:[EMAIL PROTECTED]
Sent: Monday, January 07, 2008 2:24 PM
To: users@wicket.apache.org
Subject: RE: [wicket-security] LDAP integration?


My only worry about copying the onliners from Secure(Web)Page into MySecurePage 
is if they change. Every new wicket-security release we would have to check to 
make sure that nothing changed in Secure(Web)Page to prevent possible issues. I 
understand that the code is trivial and probably will not change significantly 
in the future, but the only true guarantee is only what is defined in the 
interface contract. I think a mount solution is worth further investigation. 
When I have time I will look into how to implement it (if possible). For now, I 
will live with the copy and paste and use your proposed solution. Thanks for 
your help! I will let you know how thinks turn out with ldap :o) 

-Original Message-
From: Maurice Marrink [mailto:[EMAIL PROTECTED]
Sent: Monday, January 07, 2008 11:06 AM
To: users@wicket.apache.org
Subject: Re: [wicket-security] LDAP integration?


Do you mean that little bit of insignificant code in the Secure(Web)Page ?
All that does is redirect to the SecureComponentHelper so i would not
call that code duplication.
Even more all SecureComponents i create use the same oneliners to
redirect to SecureComponentHelper.

Regarding the mount, i am not sure if you can get the mount path if
all you have is a page class (you probably can somehow but i don't
know how)
In that case you can extend SwarmStrategy and use the mount path to
check for instantiation permission.
But i would not recommend that just to avoid "code duplication", if it
really bothers you you can go ahead with option 2 and use a custom
interface for instantiation checking.
Or you could try and ignore the fact that the login page should not be
a SecurePage and try it anyway, i am not a 100% sure it will work but
i did make some exceptions that bypass the instantiation check if the
page class in question is the login page, so give it a try.
The reason the documentation says you should not have your login page
extend SecurePage is because it just doesn't feel right to do so.

Maurice

On Jan 7, 2008 3:24 PM, William Hoover <[EMAIL PROTECTED]> wrote:
> oops!!!
>
> *definitely*
>
> -Original Message-
> From: William Hoover
> Sent: Monday, January 07, 2008 9:23 AM
> To: 'users@wicket.apache.org'
>
> Subject: RE: [wicket-security] LDAP integration?
>
>
> The only issue I have with proposed solution 1 is that there is duplication 
> of code, but I cannot see a simple way around it. Is it plausible to adopt 
> the same strategy that we mount pages? I was thinking that doing something 
> like:
>
> mountSecurePage(MySecureWebPage.class)
>
> ...may be a nice alternative to actually extending SecureWebPage.
>
> I will defiantly contribute any ldap integration code once I am able to get 
> it working properly ;o)
>
> -Original Message-
> From: Maurice Marrink [mailto:[EMAIL PROTECTED]
> Sent: Saturday, January 05, 2008 12:16 PM
> To: users@wicket.apache.org
> Subject: Re: [wicket-security] LDAP integration?
>
>
> You could do LoginPage extends AbstractBasePage
> MySecurePage extends AbstractBasePage implements ISecurePage
> OtherPage extends MySecurePage
>
> Or alternatively
> MyInterface extends ISecurePage
> AbstractBasePage extends SecureWebPage
> LoginPage extends AbstractBasePage
> OtherPage extends AbstractBasePage implements MyInterface
> The important part here is the MyInterface
> By default Swarm only does an instantiation check on components with
> the ISecurePage interface (which is implemented by SecureWebPage).
> But you can change this to any interface you like as long as the
> interface extends ISecureComponent.
> To do this you need to overwrite the setupStrategyFactory method of
> SwarmWebApplication to do
> setStrategyFactory(new SwarmStrategyFactory(MyInterface.class,getHiveKey()));
>
> Personally i would go for option 1 as you can simply copy the
> implementation for ISecurePage from SecureWebPage
>
> BTW once you have the ldap part up and running and if it is setup in a
> generic way i would be interested in including it with swarm or a
> subproject if thats alright with you.
>
> Maurice
>
> On Jan 4, 2008 8:39 PM, William Hoover <[EMAIL PROTECTED]> wrote:
> > I do have another question...
> >
> > According to the documentation one should not extend SecureWebPage for the 
> > login page (makes sense), but if you have a decorator that is used on all 
> > of your pages (including the login page) how can you accomplish this? For 
> > example:
> >
> > Example 1:
> > AbstractBasePage extends SecureWebPage (wrapper)
> >
> > LoginPage extends AbstractBasePage (will not work)
> > OtherPage1 extends AbstractBasePage
> > OtherPage2 extends AbstractBasePage
> > ...
> >
>

RE: "required" for Checkbox

2008-01-07 Thread Dan Kaplan
But another way to look at it is this: When a checkbox is unchecked, it has
a value of "unchecked".  Therefore, if you setRequired=true on a checkbox,
it's always satisfied.  In otherwords, a checkbox always has a value so
setRequired=true has no effect on a checkbox.  

-Original Message-
From: Kent Tong [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 07, 2008 2:07 AM
To: users@wicket.apache.org
Subject: "required" for Checkbox


Hi,

I observed that if "required" is set to true for a Checkbox, Wicket will
ensure that the Checkbox is checked. If it is cleared by the user, it
will be treated as an error. See 
https://issues.apache.org/jira/browse/WICKET-1221 and
https://issues.apache.org/jira/browse/WICKET-1260 for some
background.

For me, "required" means that a value must be provided. For a 
check box, if it is checked, it has a value of true. if it is unchecked, it 
has a value of false. So it always satisfy "required". Treating "required" 
as "having a value of true" doesn't sound correct to me.

If we consider the error message that should be used, for the case of
forcing the user to check the box (eg, [x] I have read the agreement), 
it should say "you must check xxx", which is quite different from the 
error message for "required": "you must provide xxx".

For the use case of forcing a checked check box, I think an CheckedValidator

should be used, which can provide a much better default error message.

Not that it's an important, but just to see what others think.

-
--
Kent Tong
Wicket tutorials freely available at http://www.agileskills2.org/EWDW
Axis2 tutorials freely available at http://www.agileskills2.org/DWSAA
-- 
View this message in context:
http://www.nabble.com/%22required%22-for-Checkbox-tp14662131p14662131.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Wicket Session and threading

2008-01-07 Thread Igor Vaynberg
class MySession extends WebSession {
  private Long userId;
  private transient User user;

  public SYNCHRONIZED void setUser(User user) {
user=user;
userId=(user==null)?null:user.getId();
  }

  public SYNCHRONIZED void getUser() {
  if (user==null) {
if (userId!=null) {
  user=getHibernateSession().load(User.class, userId);
 }
  }
  return user;
   }

   protected void onDetach() {
user=null;
   }
}

-igor

On Jan 7, 2008 11:11 AM, Dan Kaplan <[EMAIL PROTECTED]> wrote:
> Is there an example somewhere that shows how to do this?  Or can someone
> paste a snippet here of how to do this?  I assume a lot of webapps have the
> concept of a User object.
>
> -Original Message-
> From: Martijn Dashorst [mailto:[EMAIL PROTECTED]
> Sent: Saturday, January 05, 2008 5:17 AM
> To: users@wicket.apache.org
> Subject: Re: Wicket Session and threading
>
>
> If you use hibernate, this is not recommended... An entity can only be
> part of one Hibernate Session, and storing the instance in the wicket
> session will share it across threads, and hence you'll get hibernate
> exceptions.
>
> Note that this may not be only a problem in Hibernate, but can also be
> a problem in other db frameworks.
>
> So do what Johan described and you will be safe...
>
> Martijn
>
> On Jan 5, 2008 3:54 AM, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> > On Jan 5, 2008 5:15 AM, Dan Kaplan <[EMAIL PROTECTED]> wrote:
> > > Yeah that makes sense.  Since we're sorta on the topic, I thought I
> would
> > > ask this question.  As the User object goes from being initially
> registered
> > > to its profile being edited, how does one update the User in the session
> and
> > > the db simultaneously?
> > >
> > > Here's a scenario:  A user registers with your website and later adds a
> > > signature that is to show up on every post he makes.
> > >
> > > Do you add an instance of a UserService to your WebSession and then have
> > > this in it:
> > >
> > > private User user;
> > >
> > > public synchronized void setUser(User updatedUser) {
> > >   userService.updateUser(updatedUser);
> > >   this.user = updatedUser;
> > > }
> > >
> > > public synchronized User getUser() {
> > >   return this.user;
> > > }
> > >
> > > ?  Cause I've been doing something like that.  Is there a better way to
> go
> > > about this?
> >
> >
> > Looks fine to me.
> >
> > Eelco
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
>
> --
> Buy Wicket in Action: http://manning.com/dashorst
> Apache Wicket 1.3.0 is released
> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [wicket-security] LDAP integration?

2008-01-07 Thread William Hoover
My only worry about copying the onliners from Secure(Web)Page into MySecurePage 
is if they change. Every new wicket-security release we would have to check to 
make sure that nothing changed in Secure(Web)Page to prevent possible issues. I 
understand that the code is trivial and probably will not change significantly 
in the future, but the only true guarantee is only what is defined in the 
interface contract. I think a mount solution is worth further investigation. 
When I have time I will look into how to implement it (if possible). For now, I 
will live with the copy and paste and use your proposed solution. Thanks for 
your help! I will let you know how thinks turn out with ldap :o) 

-Original Message-
From: Maurice Marrink [mailto:[EMAIL PROTECTED]
Sent: Monday, January 07, 2008 11:06 AM
To: users@wicket.apache.org
Subject: Re: [wicket-security] LDAP integration?


Do you mean that little bit of insignificant code in the Secure(Web)Page ?
All that does is redirect to the SecureComponentHelper so i would not
call that code duplication.
Even more all SecureComponents i create use the same oneliners to
redirect to SecureComponentHelper.

Regarding the mount, i am not sure if you can get the mount path if
all you have is a page class (you probably can somehow but i don't
know how)
In that case you can extend SwarmStrategy and use the mount path to
check for instantiation permission.
But i would not recommend that just to avoid "code duplication", if it
really bothers you you can go ahead with option 2 and use a custom
interface for instantiation checking.
Or you could try and ignore the fact that the login page should not be
a SecurePage and try it anyway, i am not a 100% sure it will work but
i did make some exceptions that bypass the instantiation check if the
page class in question is the login page, so give it a try.
The reason the documentation says you should not have your login page
extend SecurePage is because it just doesn't feel right to do so.

Maurice

On Jan 7, 2008 3:24 PM, William Hoover <[EMAIL PROTECTED]> wrote:
> oops!!!
>
> *definitely*
>
> -Original Message-
> From: William Hoover
> Sent: Monday, January 07, 2008 9:23 AM
> To: 'users@wicket.apache.org'
>
> Subject: RE: [wicket-security] LDAP integration?
>
>
> The only issue I have with proposed solution 1 is that there is duplication 
> of code, but I cannot see a simple way around it. Is it plausible to adopt 
> the same strategy that we mount pages? I was thinking that doing something 
> like:
>
> mountSecurePage(MySecureWebPage.class)
>
> ...may be a nice alternative to actually extending SecureWebPage.
>
> I will defiantly contribute any ldap integration code once I am able to get 
> it working properly ;o)
>
> -Original Message-
> From: Maurice Marrink [mailto:[EMAIL PROTECTED]
> Sent: Saturday, January 05, 2008 12:16 PM
> To: users@wicket.apache.org
> Subject: Re: [wicket-security] LDAP integration?
>
>
> You could do LoginPage extends AbstractBasePage
> MySecurePage extends AbstractBasePage implements ISecurePage
> OtherPage extends MySecurePage
>
> Or alternatively
> MyInterface extends ISecurePage
> AbstractBasePage extends SecureWebPage
> LoginPage extends AbstractBasePage
> OtherPage extends AbstractBasePage implements MyInterface
> The important part here is the MyInterface
> By default Swarm only does an instantiation check on components with
> the ISecurePage interface (which is implemented by SecureWebPage).
> But you can change this to any interface you like as long as the
> interface extends ISecureComponent.
> To do this you need to overwrite the setupStrategyFactory method of
> SwarmWebApplication to do
> setStrategyFactory(new SwarmStrategyFactory(MyInterface.class,getHiveKey()));
>
> Personally i would go for option 1 as you can simply copy the
> implementation for ISecurePage from SecureWebPage
>
> BTW once you have the ldap part up and running and if it is setup in a
> generic way i would be interested in including it with swarm or a
> subproject if thats alright with you.
>
> Maurice
>
> On Jan 4, 2008 8:39 PM, William Hoover <[EMAIL PROTECTED]> wrote:
> > I do have another question...
> >
> > According to the documentation one should not extend SecureWebPage for the 
> > login page (makes sense), but if you have a decorator that is used on all 
> > of your pages (including the login page) how can you accomplish this? For 
> > example:
> >
> > Example 1:
> > AbstractBasePage extends SecureWebPage (wrapper)
> >
> > LoginPage extends AbstractBasePage (will not work)
> > OtherPage1 extends AbstractBasePage
> > OtherPage2 extends AbstractBasePage
> > ...
> >
> > Example 2:
> > AbstractBasePage extends WebPage (wrapper)
> >
> > LoginPage extends AbstractBasePage
> > OtherPage1 extends ? (cannot extend both AbstractBasePage and SecureWebPage)
> > OtherPage2 extends ? (cannot extend both AbstractBasePage and SecureWebPage)
> > ...
> >
> > -Original Message-
> > From: William Hoover 

RE: Wicket Session and threading

2008-01-07 Thread Dan Kaplan
Is there an example somewhere that shows how to do this?  Or can someone
paste a snippet here of how to do this?  I assume a lot of webapps have the
concept of a User object.

-Original Message-
From: Martijn Dashorst [mailto:[EMAIL PROTECTED] 
Sent: Saturday, January 05, 2008 5:17 AM
To: users@wicket.apache.org
Subject: Re: Wicket Session and threading

If you use hibernate, this is not recommended... An entity can only be
part of one Hibernate Session, and storing the instance in the wicket
session will share it across threads, and hence you'll get hibernate
exceptions.

Note that this may not be only a problem in Hibernate, but can also be
a problem in other db frameworks.

So do what Johan described and you will be safe...

Martijn

On Jan 5, 2008 3:54 AM, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> On Jan 5, 2008 5:15 AM, Dan Kaplan <[EMAIL PROTECTED]> wrote:
> > Yeah that makes sense.  Since we're sorta on the topic, I thought I
would
> > ask this question.  As the User object goes from being initially
registered
> > to its profile being edited, how does one update the User in the session
and
> > the db simultaneously?
> >
> > Here's a scenario:  A user registers with your website and later adds a
> > signature that is to show up on every post he makes.
> >
> > Do you add an instance of a UserService to your WebSession and then have
> > this in it:
> >
> > private User user;
> >
> > public synchronized void setUser(User updatedUser) {
> >   userService.updateUser(updatedUser);
> >   this.user = updatedUser;
> > }
> >
> > public synchronized User getUser() {
> >   return this.user;
> > }
> >
> > ?  Cause I've been doing something like that.  Is there a better way to
go
> > about this?
>
>
> Looks fine to me.
>
> Eelco
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.0 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Referring Page links to a deployed context

2008-01-07 Thread Igor Vaynberg
ExternalLink is used to generate links to nonwicket resources, so
there you have full control of the url. if you want to generate a link
to the page you should do

add(new BookmarkablePageLink("firstPage", FirstPage.class));

-igor


On Jan 7, 2008 8:52 AM, mbelarbi <[EMAIL PROTECTED]> wrote:
>
> It's ok i solved the problem.
>
> It had nothing to do with the mount code. It was more specific to what calls
> this links, for example firstPage is called from another page in the
> following way:
>
> add(new ExternalLink("firstPage", "/firstPage"));
>
>
> the solution is exactly what Erik Van saidremove the "/" infront of
> firstPage from the the line of code above, not from:
>
> mount(new IndexedParamUrlCodingStrategy("/firstPage", FirstPage.class,
> null));
>
> thanks everyone.
>
>
> mbelarbi wrote:
> >
> > Hi,
> >
> > If my app (MyTest) is the root context everything runs smoothly. This is
> > because in my "MyTestApplication" class, in the constructor i have
> >
> > mount(new IndexedParamUrlCodingStrategy("/firstPage", FirstPage.class,
> > null));
> > mount(new IndexedParamUrlCodingStrategy("/secondPage", SecondPage.class,
> > null));
> > mount(new IndexedParamUrlCodingStrategy("/thirdPage", ThirdPage.class,
> > null));
> >
> > This means that if i deployed this on saywww.MyTest.com and clicked on
> > a link which took me to the frstPage the url will be
> > www.MyTest.com/firstPage
> >
> > Now, this is when i get a problemwhen the deployed context isn't the
> > root, for example if the root is www.anotherApp.com and my app runs on
> > www.anotherApp.com/MyTest, when i click on first page now it will try and
> > look for www.anotherApp.com/firstPage not
> > www.anotherapp.com/MyTest/firstPage.
> >
> > in a nutshell the problem is that all the links in the app refer to the
> > root context and not the deployed context.
> >
> > so basically what i'm looking for is something like this
> > mount(new IndexedParamUrlCodingStrategy([WHAT EVER THE DEPLOYED CONTEXT
> > IS]+"/firstPage", FirstPage.class, null));
> >
> > How can i fix this?
> >
>
> --
> View this message in context: 
> http://www.nabble.com/Referring-Page-links-to-a-deployed-context-tp14668169p14670116.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Referring Page links to a deployed context

2008-01-07 Thread mbelarbi

It's ok i solved the problem.

It had nothing to do with the mount code. It was more specific to what calls
this links, for example firstPage is called from another page in the
following way:

add(new ExternalLink("firstPage", "/firstPage"));


the solution is exactly what Erik Van saidremove the "/" infront of
first page from the that line of code not from:
mount(new IndexedParamUrlCodingStrategy("/firstPage", FirstPage.class,
null));

thanks everyone.


mbelarbi wrote:
> 
> Hi,
> 
> If my app (MyTest) is the root context everything runs smoothly. This is
> because in my "MyTestApplication" class, in the constructor i have
> 
> mount(new IndexedParamUrlCodingStrategy("/firstPage", FirstPage.class,
> null));
> mount(new IndexedParamUrlCodingStrategy("/secondPage", SecondPage.class,
> null));
> mount(new IndexedParamUrlCodingStrategy("/thirdPage", ThirdPage.class,
> null));
> 
> This means that if i deployed this on saywww.MyTest.com and clicked on
> a link which took me to the frstPage the url will be
> www.MyTest.com/firstPage
> 
> Now, this is when i get a problemwhen the deployed context isn't the
> root, for example if the root is www.anotherApp.com and my app runs on
> www.anotherApp.com/MyTest, when i click on first page now it will try and
> look for www.anotherApp.com/firstPage not
> www.anotherapp.com/MyTest/firstPage. 
> 
> in a nutshell the problem is that all the links in the app refer to the
> root context and not the deployed context.
> 
> so basically what i'm looking for is something like this
> mount(new IndexedParamUrlCodingStrategy([WHAT EVER THE DEPLOYED CONTEXT
> IS]+"/firstPage", FirstPage.class, null));
> 
> How can i fix this?
> 

-- 
View this message in context: 
http://www.nabble.com/Referring-Page-links-to-a-deployed-context-tp14668169p14670116.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Wicket copies my object!

2008-01-07 Thread Matej Knopp
On Jan 7, 2008 5:34 PM, Johan Compagner <[EMAIL PROTECTED]> wrote:
> This is exactly what i explained above!!
> Why tell that i was wrong?
Sorry, i might not have read your response properly :)
>
> again you cant have 1 instance of something (lets say a model)
> share that between 2 pages and then expect that to always be the same
> instance
> when 1 or both pages are serialized.
>
> Again this will NOT work and can't easily be fixed because a page no matter
> how it is saved
> (by itself or as a reference of another page) is always saved as a single
> entity.
> Or matej has really changed that again, but i don't think so..
>
> Because currently we have almost have the exact behavior you would have if
> it was 1 global memory, except for that 1 issue of sharing an instance over
> multiply pages and really expect
> that that will always is that case.
The proper way is not to share the object itself. But you can pass
another page reference and used that to get the object. That way it
works.

-Matej
>
> johan
>
>
>
>
> On 1/7/08, Matej Knopp <[EMAIL PROTECTED]> wrote:
> >
> > That's too bad, as it works as it's supposed for me now. I would
> > really need to see some code.
> > Do you pass object reference from pageA to pageB, or the entire pageA?
> >
> > because if you have situation like this:
> >
> > pageA holds reference to objectX
> > pageA passes reference to objectX to pageB
> > pageB modifies objectX and returns to pageA
> >
> > it will not work.
> >
> > but if you pass the pageA reference to pageB, so that pageB holds
> > reference to pageA as well as objectX, it should work.
> >
> > -Matej
> >
> > On Jan 7, 2008 1:01 AM, Edvin Syse <[EMAIL PROTECTED]> wrote:
> > > >> Wow. Page.readResolve is not called, at least not on JDK6. When I
> > > >> modify the access modifier to public instead of private, suddenly
> > it's
> > > >> called. But the serialization specification says it can have any
> > > >> access modifier.
> > > >>
> > > >> I've commited the fix to current trunk, any chance you can build
> > > >> wicket from svn and test it with your project?
> > > >
> > > > Done! It solved the problem! Thank you so much, this made my day!
> > (Which
> > > > was over many hours ago, time to get some sleep :))
> > >
> > > I was too fast.. Now I got the error again, just had to try more times..
> > :(
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Referring Page links to a deployed context

2008-01-07 Thread mbelarbi

Tried itno luck:-(


Erik van Oosten wrote:
> 
> Try this first:
> 
> mount(new IndexedParamUrlCodingStrategy("firstPage", FirstPage.class,
> null));
> (no slash in front of firstPage)
> 
> Regards,
> Erik.
> 
> 
> mbelarbi wrote:
>> Hi,
>>
>> If my app (MyTest) is the root context everything runs smoothly. This is
>> because in my "MyTestApplication" class, in the constructor i have
>>
>> mount(new IndexedParamUrlCodingStrategy("/firstPage", FirstPage.class,
>> null));
>> mount(new IndexedParamUrlCodingStrategy("/secondPage", SecondPage.class,
>> null));
>> mount(new IndexedParamUrlCodingStrategy("/thirdPage", ThirdPage.class,
>> null));
>>
>> This means that if i deployed this on saywww.MyTest.com and clicked
>> on a
>> link which took me to the frstPage the url will be
>> www.MyTest.com/firstPage
>>
>> Now, this is when i get a problemwhen the deployed context isn't the
>> root, for example if the root is www.anotherApp.com and my app runs on
>> www.anotherApp.com/MyTest, when i click on first page now it will try and
>> look for www.anotherApp.com/firstPage not
>> www.anotherapp.com/MyTest/firstPage. 
>>
>> in a nutshell the problem is that all the links in the app refer to the
>> root
>> context and not the deployed context.
>>
>> so basically what i'm looking for is something like this
>> mount(new IndexedParamUrlCodingStrategy([WHAT EVER THE DEPLOYED CONTEXT
>> IS]+"/firstPage", FirstPage.class, null));
>>
>> How can i fix this?
>>   
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Referring-Page-links-to-a-deployed-context-tp14668169p14670103.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Referring Page links to a deployed context

2008-01-07 Thread mbelarbi

Yes MyTest is a context filter is mounted on /*.


igor.vaynberg wrote:
> 
> when you say www.anotherapp.com/MyTest is mytest a context and your
> filter is mounted on /* or is mytest the filter mapping and you are
> running in the root context?
> 
> -igor
> 
> 
> On Jan 7, 2008 7:23 AM, mbelarbi <[EMAIL PROTECTED]> wrote:
>>
>> Hi,
>>
>> If my app (MyTest) is the root context everything runs smoothly. This is
>> because in my "MyTestApplication" class, in the constructor i have
>>
>> mount(new IndexedParamUrlCodingStrategy("/firstPage", FirstPage.class,
>> null));
>> mount(new IndexedParamUrlCodingStrategy("/secondPage", SecondPage.class,
>> null));
>> mount(new IndexedParamUrlCodingStrategy("/thirdPage", ThirdPage.class,
>> null));
>>
>> This means that if i deployed this on saywww.MyTest.com and clicked
>> on a
>> link which took me to the frstPage the url will be
>> www.MyTest.com/firstPage
>>
>> Now, this is when i get a problemwhen the deployed context isn't the
>> root, for example if the root is
>> www.anotherapp.com and my app is on www.anotherapp.com/MyTest, when i
>> click
>> on first page now it will try and look for www.anotherapp.com/firstPage
>> not
>> www.anotherapp.com/MyTest/firstPage.
>>
>> in a nutshell the problem is that all the links in the app refer to the
>> root
>> context and not the deployed context.
>>
>> How can i fix this?
>> --
>> View this message in context:
>> http://www.nabble.com/Referring-Page-links-to-a-deployed-context-tp14668169p14668169.html
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Referring-Page-links-to-a-deployed-context-tp14668169p14670101.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Wicket copies my object!

2008-01-07 Thread Johan Compagner
This is exactly what i explained above!!
Why tell that i was wrong?

again you cant have 1 instance of something (lets say a model)
share that between 2 pages and then expect that to always be the same
instance
when 1 or both pages are serialized.

Again this will NOT work and can't easily be fixed because a page no matter
how it is saved
(by itself or as a reference of another page) is always saved as a single
entity.
Or matej has really changed that again, but i don't think so..

Because currently we have almost have the exact behavior you would have if
it was 1 global memory, except for that 1 issue of sharing an instance over
multiply pages and really expect
that that will always is that case.

johan



On 1/7/08, Matej Knopp <[EMAIL PROTECTED]> wrote:
>
> That's too bad, as it works as it's supposed for me now. I would
> really need to see some code.
> Do you pass object reference from pageA to pageB, or the entire pageA?
>
> because if you have situation like this:
>
> pageA holds reference to objectX
> pageA passes reference to objectX to pageB
> pageB modifies objectX and returns to pageA
>
> it will not work.
>
> but if you pass the pageA reference to pageB, so that pageB holds
> reference to pageA as well as objectX, it should work.
>
> -Matej
>
> On Jan 7, 2008 1:01 AM, Edvin Syse <[EMAIL PROTECTED]> wrote:
> > >> Wow. Page.readResolve is not called, at least not on JDK6. When I
> > >> modify the access modifier to public instead of private, suddenly
> it's
> > >> called. But the serialization specification says it can have any
> > >> access modifier.
> > >>
> > >> I've commited the fix to current trunk, any chance you can build
> > >> wicket from svn and test it with your project?
> > >
> > > Done! It solved the problem! Thank you so much, this made my day!
> (Which
> > > was over many hours ago, time to get some sleep :))
> >
> > I was too fast.. Now I got the error again, just had to try more times..
> :(
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Referring Page links to a deployed context

2008-01-07 Thread Igor Vaynberg
when you say www.anotherapp.com/MyTest is mytest a context and your
filter is mounted on /* or is mytest the filter mapping and you are
running in the root context?

-igor


On Jan 7, 2008 7:23 AM, mbelarbi <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> If my app (MyTest) is the root context everything runs smoothly. This is
> because in my "MyTestApplication" class, in the constructor i have
>
> mount(new IndexedParamUrlCodingStrategy("/firstPage", FirstPage.class,
> null));
> mount(new IndexedParamUrlCodingStrategy("/secondPage", SecondPage.class,
> null));
> mount(new IndexedParamUrlCodingStrategy("/thirdPage", ThirdPage.class,
> null));
>
> This means that if i deployed this on saywww.MyTest.com and clicked on a
> link which took me to the frstPage the url will be www.MyTest.com/firstPage
>
> Now, this is when i get a problemwhen the deployed context isn't the
> root, for example if the root is
> www.anotherapp.com and my app is on www.anotherapp.com/MyTest, when i click
> on first page now it will try and look for www.anotherapp.com/firstPage not
> www.anotherapp.com/MyTest/firstPage.
>
> in a nutshell the problem is that all the links in the app refer to the root
> context and not the deployed context.
>
> How can i fix this?
> --
> View this message in context: 
> http://www.nabble.com/Referring-Page-links-to-a-deployed-context-tp14668169p14668169.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: DropDownChoice always on the top

2008-01-07 Thread dariusz.holda

I'm trying to hide it with javascript. But I'll check the css solutions as
well
Thx,
Dariusz

igor.vaynberg wrote:
> 
> you should probably try a css mailing list...
> 
> -igor
> 
> On Jan 7, 2008 12:48 AM, dariusz.holda <[EMAIL PROTECTED]> wrote:
>>
>> With Modal window it's actualy ok. sorry for confusion. I've noticed that
>> if
>> you show modal window the dropdowns disappear.
>> With the list from the AutoCompleteTextField it's not but only if the
>> last
>> row in the list overlaps the dropdownchoice.
>> I discovered that if I detach a column from a table (freeze it, so it
>> always
>> stays on the left even if you scroll) and scroll with the column over the
>> dropdown it's going under the dropdownchoice. Is there some way to change
>> this behavior so my "detached" column will always be on top? I've tried
>> with
>> z-index and it doesn't work.
>>
>> Regards,
>> Dariusz
>>
>>
>> dariusz.holda wrote:
>> >
>> > Hi,
>> > I've noticed that no matter what z-index I set for dropdownchoice
>> > component it stays on the top. I needed it hidden under ModalWindow and
>> > under list displayed by AutoCompleteTextField.
>> > Did someone have similar problem?
>> >
>> > Regards,
>> > Dariusz
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/DropDownChoice-always-on-the-top-tp14600922p14660395.html
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/DropDownChoice-always-on-the-top-tp14600922p14669950.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Disable compression for CSS and JS files

2008-01-07 Thread Igor Vaynberg
application.init() { getresourcesettings().setdisablegzipcompression(true); }

-igor

On Jan 7, 2008 7:26 AM, marcus dickerhof <[EMAIL PROTECTED]> wrote:
> Hi,
> how can I turn of the compression for CSS and JS files?
>
> Best regards
> Marcus
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: HTTP header + javascript problem in IE 6

2008-01-07 Thread Igor Vaynberg
override webpage.setheaders()

-igor


On Jan 7, 2008 6:11 AM, marcus dickerhof <[EMAIL PROTECTED]> wrote:
> Hi,
> I have AJAX-javascript problems (ModalWindow and Datepicker) that might be
> linked to the HTTP Headers.
> Somehow the Internet Explorer does not execute the Javascript, and I think
> this is because he does not save the .js files properly.
> I want to force IE by setting the Headers
>
> response.setHeader("Cache-Control","public, must-revalidate");
> response.setHeader("Pragma", "");
>
>
> At the moment the files headers are:
> Pragma: no-cache
> Cache-Control: no-cache, max-age=0, must-revalidate
>
> Is there a way to do this? Where can I do this?
>
> Thanks!
>
> Best regards
> Marcus
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [Wicket 1.2.6] How to get Wizard's form from inside a WizardStep?

2008-01-07 Thread Igor Vaynberg
jira is a better place for this...

-igor


On Jan 7, 2008 1:32 AM, Paolo Di Tommaso <[EMAIL PROTECTED]> wrote:
> I would propose the following patch to AjaxFormSubmitBehavior.
>
> Basically adding a form-less constructor so that when the form obejct is not
> specified it will discovered using the findParent(Form.class) method.
>
>
> Core developers what do you think about it ?
>
> Paolo
>
>
> abstract public class AjaxFormSubmitBehavior extends AjaxEventBehavior{
>
> private Form form;
>
>
> public LazyFormSubmitBehavior(String event) {
> super(event);
> }
>
> public LazyFormSubmitBehavior( Form form, String event ) {
> super(event);
> this.form = form;
> }
>
> protected Form getForm() {
> if( form == null ) {
> form = (Form) getComponent().findParent(Form.class);
> /* form component cannot be null */
> if( form == null ) {
> throw new IllegalStateException("Unable to discover parent
> form object. Try to override getForm() method with different deferred
> strategy");
> }
> }
>
> return form;
> }
>
> @Override
> protected CharSequence getEventHandler()
> {
> final String formId = getForm().getMarkupId();
> final CharSequence url = getCallbackUrl();
>
>
> AppendingStringBuffer call = new
> AppendingStringBuffer("wicketSubmitFormById('").append(formId).append("',
> '").append(url).append("', ");
>
> if (getComponent() instanceof Button)
> {
> 
> call.append("'").append(((FormComponent)getComponent()).getInputName()).append("'
> ");
> }
> else
> {
> call.append("null");
> }
>
> return getCallbackScript(call, null, null) + ";";
> }
>
> @Override
> protected void onEvent(AjaxRequestTarget target)
> {
> getForm().onFormSubmitted();
> if (!getForm().hasError())
> {
> onSubmit(target);
> }
> else
> {
> onError(target);
> }
> }
>
> protected abstract void onSubmit(AjaxRequestTarget target);
>
> protected void onError(AjaxRequestTarget target)
> {
>
>
> }
>
> }
>
> On Jan 7, 2008 9:45 AM, Fabio Fioretti <[EMAIL PROTECTED]> wrote:
>
> > Thanks everybody for the precious help, a custom lazy
> > AjaxFormSubmitBehavior was the way to go.
> >
> >
> > Fabio Fioretti - WindoM
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: DropDownChoice always on the top

2008-01-07 Thread Igor Vaynberg
you should probably try a css mailing list...

-igor

On Jan 7, 2008 12:48 AM, dariusz.holda <[EMAIL PROTECTED]> wrote:
>
> With Modal window it's actualy ok. sorry for confusion. I've noticed that if
> you show modal window the dropdowns disappear.
> With the list from the AutoCompleteTextField it's not but only if the last
> row in the list overlaps the dropdownchoice.
> I discovered that if I detach a column from a table (freeze it, so it always
> stays on the left even if you scroll) and scroll with the column over the
> dropdown it's going under the dropdownchoice. Is there some way to change
> this behavior so my "detached" column will always be on top? I've tried with
> z-index and it doesn't work.
>
> Regards,
> Dariusz
>
>
> dariusz.holda wrote:
> >
> > Hi,
> > I've noticed that no matter what z-index I set for dropdownchoice
> > component it stays on the top. I needed it hidden under ModalWindow and
> > under list displayed by AutoCompleteTextField.
> > Did someone have similar problem?
> >
> > Regards,
> > Dariusz
> >
>
> --
> View this message in context: 
> http://www.nabble.com/DropDownChoice-always-on-the-top-tp14600922p14660395.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [wicket-security] LDAP integration?

2008-01-07 Thread Maurice Marrink
Do you mean that little bit of insignificant code in the Secure(Web)Page ?
All that does is redirect to the SecureComponentHelper so i would not
call that code duplication.
Even more all SecureComponents i create use the same oneliners to
redirect to SecureComponentHelper.

Regarding the mount, i am not sure if you can get the mount path if
all you have is a page class (you probably can somehow but i don't
know how)
In that case you can extend SwarmStrategy and use the mount path to
check for instantiation permission.
But i would not recommend that just to avoid "code duplication", if it
really bothers you you can go ahead with option 2 and use a custom
interface for instantiation checking.
Or you could try and ignore the fact that the login page should not be
a SecurePage and try it anyway, i am not a 100% sure it will work but
i did make some exceptions that bypass the instantiation check if the
page class in question is the login page, so give it a try.
The reason the documentation says you should not have your login page
extend SecurePage is because it just doesn't feel right to do so.

Maurice

On Jan 7, 2008 3:24 PM, William Hoover <[EMAIL PROTECTED]> wrote:
> oops!!!
>
> *definitely*
>
> -Original Message-
> From: William Hoover
> Sent: Monday, January 07, 2008 9:23 AM
> To: 'users@wicket.apache.org'
>
> Subject: RE: [wicket-security] LDAP integration?
>
>
> The only issue I have with proposed solution 1 is that there is duplication 
> of code, but I cannot see a simple way around it. Is it plausible to adopt 
> the same strategy that we mount pages? I was thinking that doing something 
> like:
>
> mountSecurePage(MySecureWebPage.class)
>
> ...may be a nice alternative to actually extending SecureWebPage.
>
> I will defiantly contribute any ldap integration code once I am able to get 
> it working properly ;o)
>
> -Original Message-
> From: Maurice Marrink [mailto:[EMAIL PROTECTED]
> Sent: Saturday, January 05, 2008 12:16 PM
> To: users@wicket.apache.org
> Subject: Re: [wicket-security] LDAP integration?
>
>
> You could do LoginPage extends AbstractBasePage
> MySecurePage extends AbstractBasePage implements ISecurePage
> OtherPage extends MySecurePage
>
> Or alternatively
> MyInterface extends ISecurePage
> AbstractBasePage extends SecureWebPage
> LoginPage extends AbstractBasePage
> OtherPage extends AbstractBasePage implements MyInterface
> The important part here is the MyInterface
> By default Swarm only does an instantiation check on components with
> the ISecurePage interface (which is implemented by SecureWebPage).
> But you can change this to any interface you like as long as the
> interface extends ISecureComponent.
> To do this you need to overwrite the setupStrategyFactory method of
> SwarmWebApplication to do
> setStrategyFactory(new SwarmStrategyFactory(MyInterface.class,getHiveKey()));
>
> Personally i would go for option 1 as you can simply copy the
> implementation for ISecurePage from SecureWebPage
>
> BTW once you have the ldap part up and running and if it is setup in a
> generic way i would be interested in including it with swarm or a
> subproject if thats alright with you.
>
> Maurice
>
> On Jan 4, 2008 8:39 PM, William Hoover <[EMAIL PROTECTED]> wrote:
> > I do have another question...
> >
> > According to the documentation one should not extend SecureWebPage for the 
> > login page (makes sense), but if you have a decorator that is used on all 
> > of your pages (including the login page) how can you accomplish this? For 
> > example:
> >
> > Example 1:
> > AbstractBasePage extends SecureWebPage (wrapper)
> >
> > LoginPage extends AbstractBasePage (will not work)
> > OtherPage1 extends AbstractBasePage
> > OtherPage2 extends AbstractBasePage
> > ...
> >
> > Example 2:
> > AbstractBasePage extends WebPage (wrapper)
> >
> > LoginPage extends AbstractBasePage
> > OtherPage1 extends ? (cannot extend both AbstractBasePage and SecureWebPage)
> > OtherPage2 extends ? (cannot extend both AbstractBasePage and SecureWebPage)
> > ...
> >
> > -Original Message-
> > From: William Hoover [mailto:[EMAIL PROTECTED]
> >
> > Sent: Friday, January 04, 2008 1:24 PM
> > To: users@wicket.apache.org
> > Subject: RE: [wicket-security] LDAP integration?
> >
> >
> > Never mind... I wasn't calling super.init() when I was overriding init() in 
> > SwarmWebApplication impl
> >
> > -Original Message-
> > From: William Hoover [mailto:[EMAIL PROTECTED]
> > Sent: Friday, January 04, 2008 1:14 PM
> > To: users@wicket.apache.org
> > Subject: RE: [wicket-security] LDAP integration?
> >
> >
> > I'm with you... it doesn't seem to be too difficult to get the mapping 
> > between ldap/swarm working. I am attempting to try it out in a simple 
> > application. However, I am receiving a NullPointerException in WaspSession 
> > because the StrategyFactory is not instantiated. Is there something else 
> > that needs to be down in the SwarmWebApplication (following the 
> > instructions fr

Re: Referring Page links to a deployed context

2008-01-07 Thread Erik van Oosten
Try this first:

mount(new IndexedParamUrlCodingStrategy("firstPage", FirstPage.class,
null));
(no slash in front of firstPage)

Regards,
Erik.


mbelarbi wrote:
> Hi,
>
> If my app (MyTest) is the root context everything runs smoothly. This is
> because in my "MyTestApplication" class, in the constructor i have
>
> mount(new IndexedParamUrlCodingStrategy("/firstPage", FirstPage.class,
> null));
> mount(new IndexedParamUrlCodingStrategy("/secondPage", SecondPage.class,
> null));
> mount(new IndexedParamUrlCodingStrategy("/thirdPage", ThirdPage.class,
> null));
>
> This means that if i deployed this on saywww.MyTest.com and clicked on a
> link which took me to the frstPage the url will be www.MyTest.com/firstPage
>
> Now, this is when i get a problemwhen the deployed context isn't the
> root, for example if the root is www.anotherApp.com and my app runs on
> www.anotherApp.com/MyTest, when i click on first page now it will try and
> look for www.anotherApp.com/firstPage not
> www.anotherapp.com/MyTest/firstPage. 
>
> in a nutshell the problem is that all the links in the app refer to the root
> context and not the deployed context.
>
> so basically what i'm looking for is something like this
> mount(new IndexedParamUrlCodingStrategy([WHAT EVER THE DEPLOYED CONTEXT
> IS]+"/firstPage", FirstPage.class, null));
>
> How can i fix this?
>   

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Is it possible to use wicket without having any html page?

2008-01-07 Thread Sam Hough



Nino.Martinez wrote:
> 
> 
> Using markup inheritance:
> one super class with a corresponding html and a sub class with 
> corrosponding html, extending the super class to the special need. And 
> maybe a mounted page that redirects to the wanted sub based on parameters.
> 
> 

Dear Nino,

Can you do this for components that don't extend 
http://wicketstuff.org/wicket13doc/org/apache/wicket/markup/html/WebMarkupContainerWithAssociatedMarkup.html
?

So say have an AjaxFallbackButton that you can just add to a Repeater? So
can have all the goodness of large swathe of HTML managed by the HTML monkey
but still let me, Java monkey, add components (without specific HTML)? I can
only see how I would do that by wrapping the Button in a Panel but that
seems like a lot of overhead and the object I would be returning would look
like a Panel not a Button

Re: "Why not just use Echo" - could be that 80% of app is perfect fit for
Wicket but 20% would be nicer if just had default HTML for Button, Link,
TextField etc...?

Cheers

Sam
-- 
View this message in context: 
http://www.nabble.com/Is-it-possible-to-use-wicket-without-having-any-html-page--tp14607438p14668784.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: consistent layout ( layout manager )

2008-01-07 Thread Eelco Hillenius
On Jan 7, 2008 7:01 PM, Danilo Barsotti <[EMAIL PROTECTED]> wrote:
> Exist other method do make this, Without using *inheritance of objects.*
> Like tiles, sitemash or other method.

Yeah, using panels. See the template example.

Other than that... you can use sitemash if you want, but it is not how
we think you could best use the framework.

Eelco

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Disable compression for CSS and JS files

2008-01-07 Thread marcus dickerhof
Hi,
how can I turn of the compression for CSS and JS files?

Best regards
Marcus


Referring Page links to a deployed context

2008-01-07 Thread mbelarbi

Hi,

If my app (MyTest) is the root context everything runs smoothly. This is
because in my "MyTestApplication" class, in the constructor i have

mount(new IndexedParamUrlCodingStrategy("/firstPage", FirstPage.class,
null));
mount(new IndexedParamUrlCodingStrategy("/secondPage", SecondPage.class,
null));
mount(new IndexedParamUrlCodingStrategy("/thirdPage", ThirdPage.class,
null));

This means that if i deployed this on saywww.MyTest.com and clicked on a
link which took me to the frstPage the url will be www.MyTest.com/firstPage

Now, this is when i get a problemwhen the deployed context isn't the
root, for example if the root is
www.anotherapp.com and my app is on www.anotherapp.com/MyTest, when i click
on first page now it will try and look for www.anotherapp.com/firstPage not
www.anotherapp.com/MyTest/firstPage. 

in a nutshell the problem is that all the links in the app refer to the root
context and not the deployed context.

How can i fix this?
-- 
View this message in context: 
http://www.nabble.com/Referring-Page-links-to-a-deployed-context-tp14668169p14668169.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Is wicketstuff-scriptaculous still active?

2008-01-07 Thread Ryan Sonnek
It sure is still active.  I recently upgraded to version 1.8.0 and
haven't heard of any issues.
http://www.jroller.com/wireframe/entry/scriptaculous_1_8_release

1.8.1 was just released, but i haven't had time to upgrade to it yet.

On Jan 7, 2008 5:17 AM, Nino Saturnino Martinez Vazquez Wael
<[EMAIL PROTECTED]> wrote:
> Hi Lan
>
> There was a discussion about it being a couple of versions behind, im
> not sure if Ryan's active? Whats the problem?
>
>
> Lan Boon Ping wrote:
> > Hi,
> >
> > Is wicketstuff-scriptaculous still active?
> >
> > Regards
> > Boon Ping.
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
> --
> Nino Martinez Wael
> Java Specialist @ Jayway DK
> http://www.jayway.dk
> +45 2936 7684
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [wicket-security] LDAP integration?

2008-01-07 Thread William Hoover
oops!!! 

*definitely*

-Original Message-
From: William Hoover 
Sent: Monday, January 07, 2008 9:23 AM
To: 'users@wicket.apache.org'
Subject: RE: [wicket-security] LDAP integration?


The only issue I have with proposed solution 1 is that there is duplication of 
code, but I cannot see a simple way around it. Is it plausible to adopt the 
same strategy that we mount pages? I was thinking that doing something like:

mountSecurePage(MySecureWebPage.class)

...may be a nice alternative to actually extending SecureWebPage.

I will defiantly contribute any ldap integration code once I am able to get it 
working properly ;o)

-Original Message-
From: Maurice Marrink [mailto:[EMAIL PROTECTED]
Sent: Saturday, January 05, 2008 12:16 PM
To: users@wicket.apache.org
Subject: Re: [wicket-security] LDAP integration?


You could do LoginPage extends AbstractBasePage
MySecurePage extends AbstractBasePage implements ISecurePage
OtherPage extends MySecurePage

Or alternatively
MyInterface extends ISecurePage
AbstractBasePage extends SecureWebPage
LoginPage extends AbstractBasePage
OtherPage extends AbstractBasePage implements MyInterface
The important part here is the MyInterface
By default Swarm only does an instantiation check on components with
the ISecurePage interface (which is implemented by SecureWebPage).
But you can change this to any interface you like as long as the
interface extends ISecureComponent.
To do this you need to overwrite the setupStrategyFactory method of
SwarmWebApplication to do
setStrategyFactory(new SwarmStrategyFactory(MyInterface.class,getHiveKey()));

Personally i would go for option 1 as you can simply copy the
implementation for ISecurePage from SecureWebPage

BTW once you have the ldap part up and running and if it is setup in a
generic way i would be interested in including it with swarm or a
subproject if thats alright with you.

Maurice

On Jan 4, 2008 8:39 PM, William Hoover <[EMAIL PROTECTED]> wrote:
> I do have another question...
>
> According to the documentation one should not extend SecureWebPage for the 
> login page (makes sense), but if you have a decorator that is used on all of 
> your pages (including the login page) how can you accomplish this? For 
> example:
>
> Example 1:
> AbstractBasePage extends SecureWebPage (wrapper)
>
> LoginPage extends AbstractBasePage (will not work)
> OtherPage1 extends AbstractBasePage
> OtherPage2 extends AbstractBasePage
> ...
>
> Example 2:
> AbstractBasePage extends WebPage (wrapper)
>
> LoginPage extends AbstractBasePage
> OtherPage1 extends ? (cannot extend both AbstractBasePage and SecureWebPage)
> OtherPage2 extends ? (cannot extend both AbstractBasePage and SecureWebPage)
> ...
>
> -Original Message-
> From: William Hoover [mailto:[EMAIL PROTECTED]
>
> Sent: Friday, January 04, 2008 1:24 PM
> To: users@wicket.apache.org
> Subject: RE: [wicket-security] LDAP integration?
>
>
> Never mind... I wasn't calling super.init() when I was overriding init() in 
> SwarmWebApplication impl
>
> -Original Message-
> From: William Hoover [mailto:[EMAIL PROTECTED]
> Sent: Friday, January 04, 2008 1:14 PM
> To: users@wicket.apache.org
> Subject: RE: [wicket-security] LDAP integration?
>
>
> I'm with you... it doesn't seem to be too difficult to get the mapping 
> between ldap/swarm working. I am attempting to try it out in a simple 
> application. However, I am receiving a NullPointerException in WaspSession 
> because the StrategyFactory is not instantiated. Is there something else that 
> needs to be down in the SwarmWebApplication (following the instructions from 
> http://wicketstuff.org/confluence/display/STUFFWIKI/Getting+started+with+Swarm)?
>
> public WaspSession(WaspApplication application, Request request)
> {
> super(request);
> securityStrategy = 
> application.getStrategyFactory().newStrategy(); // throws npe
> }
>
> -Original Message-
> From: Maurice Marrink [mailto:[EMAIL PROTECTED]
> Sent: Friday, January 04, 2008 11:16 AM
> To: users@wicket.apache.org
> Subject: Re: [wicket-security] LDAP integration?
>
>
> I think there will be one more beta before we do the final.
> I recently made some changes to boost performance and a public beta
> for that will be better. Even though we are already using it in our
> apps without problems through the snapshot release.
> With any luck the 2nd beta will be released this weekend and the final
> will probably follow soon after.
>
> Well the slightly more complex route is connecting to ldap yourself
> (option number 1 in my previous mail).
> Personally i think the mapping between ldap and swarm will be a
> breeze. because a swarm principal is basically just a name.
>
> Maurice
>
> On Jan 4, 2008 3:43 PM, William Hoover <[EMAIL PROTECTED]> wrote:
> > Thanks for the info. We are not using Spring (opted for Plexus) so I'm not 
> > sure how plausible it will be to implement the easiest solution in our 
> > cas

RE: [wicket-security] LDAP integration?

2008-01-07 Thread William Hoover
The only issue I have with proposed solution 1 is that there is duplication of 
code, but I cannot see a simple way around it. Is it plausible to adopt the 
same strategy that we mount pages? I was thinking that doing something like:

mountSecurePage(MySecureWebPage.class)

...may be a nice alternative to actually extending SecureWebPage.

I will defiantly contribute any ldap integration code once I am able to get it 
working properly ;o)

-Original Message-
From: Maurice Marrink [mailto:[EMAIL PROTECTED]
Sent: Saturday, January 05, 2008 12:16 PM
To: users@wicket.apache.org
Subject: Re: [wicket-security] LDAP integration?


You could do LoginPage extends AbstractBasePage
MySecurePage extends AbstractBasePage implements ISecurePage
OtherPage extends MySecurePage

Or alternatively
MyInterface extends ISecurePage
AbstractBasePage extends SecureWebPage
LoginPage extends AbstractBasePage
OtherPage extends AbstractBasePage implements MyInterface
The important part here is the MyInterface
By default Swarm only does an instantiation check on components with
the ISecurePage interface (which is implemented by SecureWebPage).
But you can change this to any interface you like as long as the
interface extends ISecureComponent.
To do this you need to overwrite the setupStrategyFactory method of
SwarmWebApplication to do
setStrategyFactory(new SwarmStrategyFactory(MyInterface.class,getHiveKey()));

Personally i would go for option 1 as you can simply copy the
implementation for ISecurePage from SecureWebPage

BTW once you have the ldap part up and running and if it is setup in a
generic way i would be interested in including it with swarm or a
subproject if thats alright with you.

Maurice

On Jan 4, 2008 8:39 PM, William Hoover <[EMAIL PROTECTED]> wrote:
> I do have another question...
>
> According to the documentation one should not extend SecureWebPage for the 
> login page (makes sense), but if you have a decorator that is used on all of 
> your pages (including the login page) how can you accomplish this? For 
> example:
>
> Example 1:
> AbstractBasePage extends SecureWebPage (wrapper)
>
> LoginPage extends AbstractBasePage (will not work)
> OtherPage1 extends AbstractBasePage
> OtherPage2 extends AbstractBasePage
> ...
>
> Example 2:
> AbstractBasePage extends WebPage (wrapper)
>
> LoginPage extends AbstractBasePage
> OtherPage1 extends ? (cannot extend both AbstractBasePage and SecureWebPage)
> OtherPage2 extends ? (cannot extend both AbstractBasePage and SecureWebPage)
> ...
>
> -Original Message-
> From: William Hoover [mailto:[EMAIL PROTECTED]
>
> Sent: Friday, January 04, 2008 1:24 PM
> To: users@wicket.apache.org
> Subject: RE: [wicket-security] LDAP integration?
>
>
> Never mind... I wasn't calling super.init() when I was overriding init() in 
> SwarmWebApplication impl
>
> -Original Message-
> From: William Hoover [mailto:[EMAIL PROTECTED]
> Sent: Friday, January 04, 2008 1:14 PM
> To: users@wicket.apache.org
> Subject: RE: [wicket-security] LDAP integration?
>
>
> I'm with you... it doesn't seem to be too difficult to get the mapping 
> between ldap/swarm working. I am attempting to try it out in a simple 
> application. However, I am receiving a NullPointerException in WaspSession 
> because the StrategyFactory is not instantiated. Is there something else that 
> needs to be down in the SwarmWebApplication (following the instructions from 
> http://wicketstuff.org/confluence/display/STUFFWIKI/Getting+started+with+Swarm)?
>
> public WaspSession(WaspApplication application, Request request)
> {
> super(request);
> securityStrategy = 
> application.getStrategyFactory().newStrategy(); // throws npe
> }
>
> -Original Message-
> From: Maurice Marrink [mailto:[EMAIL PROTECTED]
> Sent: Friday, January 04, 2008 11:16 AM
> To: users@wicket.apache.org
> Subject: Re: [wicket-security] LDAP integration?
>
>
> I think there will be one more beta before we do the final.
> I recently made some changes to boost performance and a public beta
> for that will be better. Even though we are already using it in our
> apps without problems through the snapshot release.
> With any luck the 2nd beta will be released this weekend and the final
> will probably follow soon after.
>
> Well the slightly more complex route is connecting to ldap yourself
> (option number 1 in my previous mail).
> Personally i think the mapping between ldap and swarm will be a
> breeze. because a swarm principal is basically just a name.
>
> Maurice
>
> On Jan 4, 2008 3:43 PM, William Hoover <[EMAIL PROTECTED]> wrote:
> > Thanks for the info. We are not using Spring (opted for Plexus) so I'm not 
> > sure how plausible it will be to implement the easiest solution in our 
> > case. The application in question is still in the preliminary evaluation 
> > stage so we may have to look for another route.
> >
> > Do you have a roadmap/timeline on a release date for wicket-se

HTTP header + javascript problem in IE 6

2008-01-07 Thread marcus dickerhof
Hi,
I have AJAX-javascript problems (ModalWindow and Datepicker) that might be
linked to the HTTP Headers.
Somehow the Internet Explorer does not execute the Javascript, and I think
this is because he does not save the .js files properly.
I want to force IE by setting the Headers

response.setHeader("Cache-Control","public, must-revalidate");
response.setHeader("Pragma", "");


At the moment the files headers are:
Pragma: no-cache
Cache-Control: no-cache, max-age=0, must-revalidate

Is there a way to do this? Where can I do this?

Thanks!

Best regards
Marcus


Re: PagingNavigation and submit to save state

2008-01-07 Thread Martijn Dashorst
The paging navigator is one of those components I plan to revise next
release, as it is a 1.0 component.
I think we should take a closer look at our component hierarchy and try to
make it more consistent. At the very least make an inventory of the
inconsistencies and see what we can do about it in the next release or a
later one.

Martijn

On Jan 7, 2008 2:02 PM, Maurice Marrink <[EMAIL PROTECTED]> wrote:

> I would also like to see the method return type change to
> AbstractLink, that way both can be used.
>
> Maurice
>
> On Jan 7, 2008 12:20 PM, Alan Romaniuc <[EMAIL PROTECTED]> wrote:
> >
> > Hi all,
> >
> > I have a tipical scenario with pagination, combobox in a dataview and
> > submit buttons. I would like to save the state of the checkbox when I
> > change pages, but PagingNavigator does not "submit".
> >
> > I have found people with similar problems that changed PagingNavigator
> > to use submit links
> > (
> http://www.mail-archive.com/[EMAIL PROTECTED]/msg08737.html
> )
> > and a old Bug reporter..that i can not open
> >
> http://www.mail-archive.com/[EMAIL PROTECTED]/msg04967.html
> >
> >
> > Loking in code, PagingNavigator.java, there is a function that could be
> > extended:
> >
> > protected Link newPagingNavigationIncrementLink(String id, IPageable
> > pageable, int increment)
> > {
> > return new PagingNavigationIncrementLink(id, pageable,
> > increment);
> > }
> >
> > But SubmitLink is not a subclass of Link.
> >
> > There is another way to do that instead replacing almost all the code?
> >
> > Thx.
> >
> >
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.0 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0


Re: PagingNavigation and submit to save state

2008-01-07 Thread Maurice Marrink
I would also like to see the method return type change to
AbstractLink, that way both can be used.

Maurice

On Jan 7, 2008 12:20 PM, Alan Romaniuc <[EMAIL PROTECTED]> wrote:
>
> Hi all,
>
> I have a tipical scenario with pagination, combobox in a dataview and
> submit buttons. I would like to save the state of the checkbox when I
> change pages, but PagingNavigator does not "submit".
>
> I have found people with similar problems that changed PagingNavigator
> to use submit links
> (http://www.mail-archive.com/[EMAIL PROTECTED]/msg08737.html)
> and a old Bug reporter..that i can not open
> http://www.mail-archive.com/[EMAIL PROTECTED]/msg04967.html
>
>
> Loking in code, PagingNavigator.java, there is a function that could be
> extended:
>
> protected Link newPagingNavigationIncrementLink(String id, IPageable
> pageable, int increment)
> {
> return new PagingNavigationIncrementLink(id, pageable,
> increment);
> }
>
> But SubmitLink is not a subclass of Link.
>
> There is another way to do that instead replacing almost all the code?
>
> Thx.
>
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: consistent layout ( layout manager )

2008-01-07 Thread Danilo Barsotti
Exist other method do make this, Without using *inheritance of objects.*
Like tiles, sitemash or other method.

thanks!




2008/1/7, Frank Bille <[EMAIL PROTECTED]>:
>
> Hi,
>
> Try to take a look at this example:
>
> http://wicket.apache.org/examplemarkupinheritance.html
>
> Frank
>
>
> On Jan 7, 2008 4:05 AM, Danilo Barsotti <[EMAIL PROTECTED]> wrote:
>
> > Hi all!
> >
> > I have a question about how to create a consistent layout with wicket.
> >
> > now I have a index class and all other classes extends it.
> >
> > 
> > public class Index extends WebPage {
> >
> >private static final long serialVersionUID = 1L;
> >
> >
> >protected String getName(){
> >return "Title here";
> >}
> >
> >
> >/**
> > * Constructor that is invoked when page is invoked without a
> session.
> > *
> > * @param parameters
> > *Page parameters
> > */
> >public Index(final PageParameters parameters) {
> >add(new Label("title",new Model(getName(;
> >
> >add(new BookmarkablePageLink("page1", Page1.class));
> >add(new BookmarkablePageLink("page2", Page2.class));
> >add(new BookmarkablePageLink("login", Login.class));
> >
> >add(new Label("footer","it is a footer"));
> >}
> > }
> >
> >
> >
> > public class Page1 extends Index{
> >
> >private static final long serialVersionUID = 1L;
> >
> >public Page1(PageParameters parameters) {
> >super(parameters);
> >add(new Label("label1", "This is in the subclass Page1"));
> >}
> >
> > }
> > 
> >
> > HTML:
> >
> > 
> >
> > http://wicket.sourceforge.net/";>
> > 
> > 
> > 
> >
> >
> >
> >Page1
> >Page2
> >Login
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > 
> >
> > 
> >
> > my question is, this code is correct?
> > other better method to make this? suggestion, tip ...
> >
> > thanks and sorry my english poor!
> >
>


Re: Old Wicket QuickStart

2008-01-07 Thread Nino Saturnino Martinez Vazquez Wael

there you are:

http://cwiki.apache.org/confluence/display/WICKET/Blog+Tutorial

Nino Saturnino Martinez Vazquez Wael wrote:

i'll create a page for it on the wiki... and post the link here...

Kjetil Paulsen wrote:

Where can I find this blog? :)

On Jan 3, 2008 11:17 AM, Nino Saturnino Martinez Vazquez Wael
<[EMAIL PROTECTED]> wrote:
 

Yes I think so, dates anyone? Currently im free, although in the start
of next week our car has to go to the mechanic..

And what about topics? Should we have one about testing with wicket, 
and

while some where exploring testing with wicket others could fix bugs
with the wicket tester?

brtw:I have a nice blog tutorial for wicket, using JPA-SPRING and
hibernate for new comers...

regards Nino


Flemming Boller wrote:
   

dammit :-)

Cheers

/FLemming

ps:  Should we arrange on a wicket meeting in copenhagen, now that 
1.3.0 is

released  -> Nino, Frank ?

On Jan 2, 2008 10:11 PM, Flemming Boller 
<[EMAIL PROTECTED]> wrote:



 

Hi

First of all, congrats with the new release, great work!

I am behind a corporate firewall that "infect" downloading of 
jarfiles, so

I like the "old" wicket quickstart  :-)

I have updated the old "Wicket QuickStart" zip file for use with 
1.3.0.


I have only set it up with Eclipse and with JDK 1.4, so the jar 
file for

jmx is
excluded in the classpath together with wicke-velocity.

You can download it from my homepage, if you need it

http://boller.dk/wicket-quickstart-1.3.0.zip

Cheers and









  

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


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







  




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


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



PagingNavigation and submit to save state

2008-01-07 Thread Alan Romaniuc


Hi all,

I have a tipical scenario with pagination, combobox in a dataview and 
submit buttons. I would like to save the state of the checkbox when I 
change pages, but PagingNavigator does not "submit".


I have found people with similar problems that changed PagingNavigator 
to use submit links 
(http://www.mail-archive.com/[EMAIL PROTECTED]/msg08737.html) 
and a old Bug reporter..that i can not open 
http://www.mail-archive.com/[EMAIL PROTECTED]/msg04967.html



Loking in code, PagingNavigator.java, there is a function that could be 
extended:


protected Link newPagingNavigationIncrementLink(String id, IPageable 
pageable, int increment)

   {
   return new PagingNavigationIncrementLink(id, pageable, 
increment);

   }

But SubmitLink is not a subclass of Link.

There is another way to do that instead replacing almost all the code?

Thx.





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Old Wicket QuickStart

2008-01-07 Thread Nino Saturnino Martinez Vazquez Wael

i'll create a page for it on the wiki... and post the link here...

Kjetil Paulsen wrote:

Where can I find this blog? :)

On Jan 3, 2008 11:17 AM, Nino Saturnino Martinez Vazquez Wael
<[EMAIL PROTECTED]> wrote:
  

Yes I think so, dates anyone? Currently im free, although in the start
of next week our car has to go to the mechanic..

And what about topics? Should we have one about testing with wicket, and
while some where exploring testing with wicket others could fix bugs
with the wicket tester?

brtw:I have a nice blog tutorial for wicket, using JPA-SPRING and
hibernate for new comers...

regards Nino


Flemming Boller wrote:


dammit :-)

Cheers

/FLemming

ps:  Should we arrange on a wicket meeting in copenhagen, now that 1.3.0 is
released  -> Nino, Frank ?

On Jan 2, 2008 10:11 PM, Flemming Boller <[EMAIL PROTECTED]> wrote:


  

Hi

First of all, congrats with the new release, great work!

I am behind a corporate firewall that "infect" downloading of jarfiles, so
I like the "old" wicket quickstart  :-)

I have updated the old "Wicket QuickStart" zip file for use with 1.3.0.

I have only set it up with Eclipse and with JDK 1.4, so the jar file for
jmx is
excluded in the classpath together with wicke-velocity.

You can download it from my homepage, if you need it

http://boller.dk/wicket-quickstart-1.3.0.zip

Cheers and









  

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


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







  


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


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Websphere Portal 6 + Wicket Portlet Experience

2008-01-07 Thread Martijn Dashorst
Ate or Janne may be the ones to provide feedback. As it has been a vacation
in the Netherlands, it may take a while for them to catch up.
Martijn

On Jan 7, 2008 12:13 PM, fapereira <[EMAIL PROTECTED]> wrote:

>
> Any feedback please?
>
> Thanks!
>
>
> fapereira wrote:
> >
> > Hello everyone,
> > i'm currently research the best way to use framework that can do "clean
> as
> > possible" development for normal web apps and portlets.
> >
> > What i understand the way that wicket do that, its using Apache Portals
> > Bridges, but that require that the portal server implements the current
> > interfaces bellow:
> >
> > a) Apache Portals Bridges ServletContextProvider interface
> > b) Apache Portals Bridges PortletResourceURLFactory interface
> >
> > My problem here its the fact i use webfear, ops.. websphere
> > application/portal 6.0.
> > I want to know all kind of feedback related with the experience using
> > wicket in this specific portal/version.
> >
> > Thanks very much for your attention.
> > Best Regards,
> > Fernando.
> >
>
> --
> View this message in context:
> http://www.nabble.com/Websphere-Portal-6-%2B-Wicket-Portlet-Experience-tp14597270p14663144.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.0 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0


Re: Is wicketstuff-scriptaculous still active?

2008-01-07 Thread Nino Saturnino Martinez Vazquez Wael

Hi Lan

There was a discussion about it being a couple of versions behind, im 
not sure if Ryan's active? Whats the problem?


Lan Boon Ping wrote:

Hi,

Is wicketstuff-scriptaculous still active?

Regards
Boon Ping.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  


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


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Websphere Portal 6 + Wicket Portlet Experience

2008-01-07 Thread fapereira

Any feedback please?

Thanks!


fapereira wrote:
> 
> Hello everyone,
> i'm currently research the best way to use framework that can do "clean as
> possible" development for normal web apps and portlets.
> 
> What i understand the way that wicket do that, its using Apache Portals
> Bridges, but that require that the portal server implements the current
> interfaces bellow:
> 
> a) Apache Portals Bridges ServletContextProvider interface
> b) Apache Portals Bridges PortletResourceURLFactory interface
> 
> My problem here its the fact i use webfear, ops.. websphere
> application/portal 6.0.
> I want to know all kind of feedback related with the experience using
> wicket in this specific portal/version.
> 
> Thanks very much for your attention.
> Best Regards,
> Fernando.
> 

-- 
View this message in context: 
http://www.nabble.com/Websphere-Portal-6-%2B-Wicket-Portlet-Experience-tp14597270p14663144.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: consistent layout ( layout manager )

2008-01-07 Thread Frank Bille
Hi,

Try to take a look at this example:

http://wicket.apache.org/examplemarkupinheritance.html

Frank


On Jan 7, 2008 4:05 AM, Danilo Barsotti <[EMAIL PROTECTED]> wrote:

> Hi all!
>
> I have a question about how to create a consistent layout with wicket.
>
> now I have a index class and all other classes extends it.
>
> 
> public class Index extends WebPage {
>
>private static final long serialVersionUID = 1L;
>
>
>protected String getName(){
>return "Title here";
>}
>
>
>/**
> * Constructor that is invoked when page is invoked without a session.
> *
> * @param parameters
> *Page parameters
> */
>public Index(final PageParameters parameters) {
>add(new Label("title",new Model(getName(;
>
>add(new BookmarkablePageLink("page1", Page1.class));
>add(new BookmarkablePageLink("page2", Page2.class));
>add(new BookmarkablePageLink("login", Login.class));
>
>add(new Label("footer","it is a footer"));
>}
> }
>
>
>
> public class Page1 extends Index{
>
>private static final long serialVersionUID = 1L;
>
>public Page1(PageParameters parameters) {
>super(parameters);
>add(new Label("label1", "This is in the subclass Page1"));
>}
>
> }
> 
>
> HTML:
>
> 
>
> http://wicket.sourceforge.net/";>
> 
> 
> 
>
>
>
>Page1
>Page2
>Login
>
>
>
>
>
>
>
>
>
>
>
>
> 
>
> 
>
> my question is, this code is correct?
> other better method to make this? suggestion, tip ...
>
> thanks and sorry my english poor!
>


Re: Jetty, images and 404 http

2008-01-07 Thread Peter Thomas
On 1/7/08, Al Maw <[EMAIL PROTECTED]> wrote:
>
> Wicket special-cases URLs that start with /resources/*. You therefore
> can't use that as a directory for your images.
>
> Regards,
>
> Al
>

Al: can you provide more details / links / rationale on this?  I keep
images, css, js etc. under "/resources" relative to the context root but it
seems to all work.  So in my case the resources are served by the web-server
the old-fashioned way (not by Wicket) - right?

Okay just after typing the above I remember that in my case the Wicket
filter is mapped to "/app/*" not "/*" so that makes the difference right?

Anyway do provide some info or tell me where to look.  Just for
understanding.

- Peter

On 04/01/2008, Fernando Wermus <[EMAIL PROTECTED]> wrote:
> > Michael,
> >   I have changed the images to another directory and it is
> working
> > right now. I don't know the reason of this behavior but It is solved.
> >
> > Thanks a lot.
> >
> > On Jan 4, 2008 4:43 PM, Fernando Wermus <[EMAIL PROTECTED]>
> wrote:
> >
> > > I don't have any code. The css files are pointing to some images. If I
> > > perform a
> > >
> > >  GET http://localhost:8081/misPartidos/resources
> > >
> > > I got the file list in the directory,
> > >
> > > .svn
> > > bg-ad-top.png
> > > bg-body.png
> > > bg-feed.gif
> > > bg-footer.jpg
> > > bg-header.jpg
> > > bg-menu.png
> > > bg-menu-hover.png
> > > bg-sidebar-bottom.gif
> > > bg-sidebar-top.gif
> > > button-feed.png
> > > icon-comment.png
> > > images
> > >
> > > But when I try to perform a
> > >
> > >  GET http://localhost:8081/misPartidos/resources/bg-menu-hover.png
> > >
> > > I got nothing. Beside, the console throws a
> > >
> > > 838661 [btpool0-2 - /misPartidos/resources/bg-menu-hover.png] DEBUG
> > > org.mortbay.log  - RESPONSE /misPartidos/resources/bg-menu-hover.png
>   404
> > >
> > > If I move up all that ima ges,  I have access to all of them.
> > >
> > >
> > > On Jan 4, 2008 9:41 AM, Michael Sparer < [EMAIL PROTECTED] >
> wrote:
> > >
> > > >
> > > > that's not a permission problem, jetty just can't find the stuff,
> please
> > > >
> > > > provide some code that generates the 404 error
> > > >
> > > >
> > > >
> > > > Fernando Wermus-2 wrote:
> > > > >
> > > > > Jetty is not allowing to download the resources of my pages. It
> dumps
> > > > this
> > > > > into the log,
> > > > >
> > > > > 42150 [btpool0-1 - /misPartidos/resources/bg-header.jpg] DEBUG
> > > > > org.mortbay.log  - RESPONSE /misPartidos/resources/bg-header.jpg
>   404
> > > > > 42150 [btpool0-1 - /misPartidos/resources/bg- header.jpg] DEBUG
> > > > > org.mortbay.log  - RESPONSE /misPartidos/resources/bg-header.jpg
>   404
> > > > > 42150 [btpool0-1 - /misPartidos/resources/bg-header.jpg] DEBUG
> > > > > org.mortbay.log  - RESPONSE /misPartidos/resources/bg- header.jpg
>   404
> > > > >
> > > > > I was trying to figure it out if it is a linux permission problem
> or a
> > > > > problem from jetty itself.
> > > > >
> > > > > Thanks a lot!
> > > > >
> > > > > --
> > > > > Fernando Wermus.
> > > > >
> > > > >
> > > >
> > > >
> > > > -
> > > > Michael Sparer
> > > > http://talk-on-tech.blogspot.com
> > > > --
> > > > View this message in context:
> > > >
> http://www.nabble.com/Jetty%2C-images-and-404-http-tp14605929p14614654.html
> > > > Sent from the Wicket - User mailing list archive at Nabble.com.
> > > >
> > > >
> > > >
> -
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > > >
> > >
> > >
> > > --
> > > Fernando Wermus.
> >
> >
> >
> >
> > --
> > Fernando Wermus.
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


"required" for Checkbox

2008-01-07 Thread Kent Tong

Hi,

I observed that if "required" is set to true for a Checkbox, Wicket will
ensure that the Checkbox is checked. If it is cleared by the user, it
will be treated as an error. See 
https://issues.apache.org/jira/browse/WICKET-1221 and
https://issues.apache.org/jira/browse/WICKET-1260 for some
background.

For me, "required" means that a value must be provided. For a 
check box, if it is checked, it has a value of true. if it is unchecked, it 
has a value of false. So it always satisfy "required". Treating "required" 
as "having a value of true" doesn't sound correct to me.

If we consider the error message that should be used, for the case of
forcing the user to check the box (eg, [x] I have read the agreement), 
it should say "you must check xxx", which is quite different from the 
error message for "required": "you must provide xxx".

For the use case of forcing a checked check box, I think an CheckedValidator 
should be used, which can provide a much better default error message.

Not that it's an important, but just to see what others think.

-
--
Kent Tong
Wicket tutorials freely available at http://www.agileskills2.org/EWDW
Axis2 tutorials freely available at http://www.agileskills2.org/DWSAA
-- 
View this message in context: 
http://www.nabble.com/%22required%22-for-Checkbox-tp14662131p14662131.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Old Wicket QuickStart

2008-01-07 Thread Kjetil Paulsen
Where can I find this blog? :)

On Jan 3, 2008 11:17 AM, Nino Saturnino Martinez Vazquez Wael
<[EMAIL PROTECTED]> wrote:
> Yes I think so, dates anyone? Currently im free, although in the start
> of next week our car has to go to the mechanic..
>
> And what about topics? Should we have one about testing with wicket, and
> while some where exploring testing with wicket others could fix bugs
> with the wicket tester?
>
> brtw:I have a nice blog tutorial for wicket, using JPA-SPRING and
> hibernate for new comers...
>
> regards Nino
>
>
> Flemming Boller wrote:
> > dammit :-)
> >
> > Cheers
> >
> > /FLemming
> >
> > ps:  Should we arrange on a wicket meeting in copenhagen, now that 1.3.0 is
> > released  -> Nino, Frank ?
> >
> > On Jan 2, 2008 10:11 PM, Flemming Boller <[EMAIL PROTECTED]> wrote:
> >
> >
> >> Hi
> >>
> >> First of all, congrats with the new release, great work!
> >>
> >> I am behind a corporate firewall that "infect" downloading of jarfiles, so
> >> I like the "old" wicket quickstart  :-)
> >>
> >> I have updated the old "Wicket QuickStart" zip file for use with 1.3.0.
> >>
> >> I have only set it up with Eclipse and with JDK 1.4, so the jar file for
> >> jmx is
> >> excluded in the classpath together with wicke-velocity.
> >>
> >> You can download it from my homepage, if you need it
> >>
> >> http://boller.dk/wicket-quickstart-1.3.0.zip
> >>
> >> Cheers and
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >
> >
>
> --
> Nino Martinez Wael
> Java Specialist @ Jayway DK
> http://www.jayway.dk
> +45 2936 7684
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
/**
 kjetil
 */
-
Kjetil H.Paulsen
[EMAIL PROTECTED]
[EMAIL PROTECTED] | http://gofaster.no
-
-Many secrets of art and nature
   are thought by the unlearned to be magical-

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [Wicket 1.2.6] How to get Wizard's form from inside a WizardStep?

2008-01-07 Thread Paolo Di Tommaso
I would propose the following patch to AjaxFormSubmitBehavior.

Basically adding a form-less constructor so that when the form obejct is not
specified it will discovered using the findParent(Form.class) method.


Core developers what do you think about it ?

Paolo


abstract public class AjaxFormSubmitBehavior extends AjaxEventBehavior{

private Form form;


public LazyFormSubmitBehavior(String event) {
super(event);
}

public LazyFormSubmitBehavior( Form form, String event ) {
super(event);
this.form = form;
}

protected Form getForm() {
if( form == null ) {
form = (Form) getComponent().findParent(Form.class);
/* form component cannot be null */
if( form == null ) {
throw new IllegalStateException("Unable to discover parent
form object. Try to override getForm() method with different deferred
strategy");
}
}

return form;
}

@Override
protected CharSequence getEventHandler()
{
final String formId = getForm().getMarkupId();
final CharSequence url = getCallbackUrl();


AppendingStringBuffer call = new
AppendingStringBuffer("wicketSubmitFormById('").append(formId).append("',
'").append(url).append("', ");

if (getComponent() instanceof Button)
{

call.append("'").append(((FormComponent)getComponent()).getInputName()).append("'
");
}
else
{
call.append("null");
}

return getCallbackScript(call, null, null) + ";";
}

@Override
protected void onEvent(AjaxRequestTarget target)
{
getForm().onFormSubmitted();
if (!getForm().hasError())
{
onSubmit(target);
}
else
{
onError(target);
}
}

protected abstract void onSubmit(AjaxRequestTarget target);

protected void onError(AjaxRequestTarget target)
{

}

}

On Jan 7, 2008 9:45 AM, Fabio Fioretti <[EMAIL PROTECTED]> wrote:

> Thanks everybody for the precious help, a custom lazy
> AjaxFormSubmitBehavior was the way to go.
>
>
> Fabio Fioretti - WindoM
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Jetty, images and 404 http

2008-01-07 Thread Al Maw
Wicket special-cases URLs that start with /resources/*. You therefore
can't use that as a directory for your images.

Regards,

Al

On 04/01/2008, Fernando Wermus <[EMAIL PROTECTED]> wrote:
> Michael,
>   I have changed the images to another directory and it is working
> right now. I don't know the reason of this behavior but It is solved.
>
> Thanks a lot.
>
> On Jan 4, 2008 4:43 PM, Fernando Wermus <[EMAIL PROTECTED]> wrote:
>
> > I don't have any code. The css files are pointing to some images. If I
> > perform a
> >
> >  GET http://localhost:8081/misPartidos/resources
> >
> > I got the file list in the directory,
> >
> > .svn
> > bg-ad-top.png
> > bg-body.png
> > bg-feed.gif
> > bg-footer.jpg
> > bg-header.jpg
> > bg-menu.png
> > bg-menu-hover.png
> > bg-sidebar-bottom.gif
> > bg-sidebar-top.gif
> > button-feed.png
> > icon-comment.png
> > images
> >
> > But when I try to perform a
> >
> >  GET http://localhost:8081/misPartidos/resources/bg-menu-hover.png
> >
> > I got nothing. Beside, the console throws a
> >
> > 838661 [btpool0-2 - /misPartidos/resources/bg-menu-hover.png] DEBUG
> > org.mortbay.log  - RESPONSE /misPartidos/resources/bg-menu-hover.png  404
> >
> > If I move up all that ima ges,  I have access to all of them.
> >
> >
> > On Jan 4, 2008 9:41 AM, Michael Sparer < [EMAIL PROTECTED] > wrote:
> >
> > >
> > > that's not a permission problem, jetty just can't find the stuff, please
> > >
> > > provide some code that generates the 404 error
> > >
> > >
> > >
> > > Fernando Wermus-2 wrote:
> > > >
> > > > Jetty is not allowing to download the resources of my pages. It dumps
> > > this
> > > > into the log,
> > > >
> > > > 42150 [btpool0-1 - /misPartidos/resources/bg-header.jpg] DEBUG
> > > > org.mortbay.log  - RESPONSE /misPartidos/resources/bg-header.jpg  404
> > > > 42150 [btpool0-1 - /misPartidos/resources/bg- header.jpg] DEBUG
> > > > org.mortbay.log  - RESPONSE /misPartidos/resources/bg-header.jpg  404
> > > > 42150 [btpool0-1 - /misPartidos/resources/bg-header.jpg] DEBUG
> > > > org.mortbay.log  - RESPONSE /misPartidos/resources/bg- header.jpg  404
> > > >
> > > > I was trying to figure it out if it is a linux permission problem or a
> > > > problem from jetty itself.
> > > >
> > > > Thanks a lot!
> > > >
> > > > --
> > > > Fernando Wermus.
> > > >
> > > >
> > >
> > >
> > > -
> > > Michael Sparer
> > > http://talk-on-tech.blogspot.com
> > > --
> > > View this message in context:
> > > http://www.nabble.com/Jetty%2C-images-and-404-http-tp14605929p14614654.html
> > > Sent from the Wicket - User mailing list archive at Nabble.com.
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
> > --
> > Fernando Wermus.
>
>
>
>
> --
> Fernando Wermus.
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Is it possible to use wicket without having any html page?

2008-01-07 Thread Nino Saturnino Martinez Vazquez Wael

Hi Martijn

First of all I did not want to start a discussion.

get rid of markup files, could be interpreted in serveral ways. One 
could be that he was wondering on having excess html pages, and I just 
wanted to tell him of panels and markup inheritance. And as I stated I 
do not know echo 2.


I agree if people wants something that fits another framework they 
should use that. Unless they're ready for a mental change and do it the 
wicket way:)


-Nino

Martijn Dashorst wrote:

How do you explain this *after* people have pointed him to Panels and stuff?
He explicitly states: get rid of markup files, and wants an Echo2 model:
  

I am simple looking to know whether we can get rid of any markup files and
just use java files to define and design our pages, something like echo2?



Don't be afraid to tell people that Wicket is not for everybody. What
legolas is asking goes against the very core Wicket has to offer. Wanting to
turn wicket into something it is not is wrong for the framework and the
result will be horrible. It would be like writing web applications with
Wicket trying to emulate struts. What he is asking for is a programming
model that fits Echo2 really well. And Wings or even GWT.

Martijn

On Jan 7, 2008 8:07 AM, Nino Saturnino Martinez Vazquez Wael <
[EMAIL PROTECTED]> wrote:

  

I agree on what you guys say, but theres also the chance legolas dont
know every tip of the framework. And just wanted to know about panels or
markup inheritance...

People doesnt always know how to ask a question if they arent familiar
with the framework. An so sometimes questions just come out awkwardly
and offending.

-regards Nino

Eelco Hillenius wrote:


On Jan 4, 2008 7:35 PM, Martijn Dashorst <[EMAIL PROTECTED]>
  

wrote:


then just use Echo2. Why make Wicket into Echo2 when you can use that?

Wicket has a particular niche and Echo2 has its niche. There is no
sense into turning one into the other.



+1!

Eelco

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



  

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


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






  


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


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: DropDownChoice always on the top

2008-01-07 Thread dariusz.holda

With Modal window it's actualy ok. sorry for confusion. I've noticed that if
you show modal window the dropdowns disappear.
With the list from the AutoCompleteTextField it's not but only if the last
row in the list overlaps the dropdownchoice.
I discovered that if I detach a column from a table (freeze it, so it always
stays on the left even if you scroll) and scroll with the column over the
dropdown it's going under the dropdownchoice. Is there some way to change
this behavior so my "detached" column will always be on top? I've tried with
z-index and it doesn't work. 

Regards,
Dariusz


dariusz.holda wrote:
> 
> Hi,
> I've noticed that no matter what z-index I set for dropdownchoice
> component it stays on the top. I needed it hidden under ModalWindow and
> under list displayed by AutoCompleteTextField.
> Did someone have similar problem?
> 
> Regards,
> Dariusz
> 

-- 
View this message in context: 
http://www.nabble.com/DropDownChoice-always-on-the-top-tp14600922p14660395.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [Wicket 1.2.6] How to get Wizard's form from inside a WizardStep?

2008-01-07 Thread Fabio Fioretti
Thanks everybody for the precious help, a custom lazy
AjaxFormSubmitBehavior was the way to go.


Fabio Fioretti - WindoM

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: how to send ajax request & handle it

2008-01-07 Thread Michael Sparer

take a look at: http://www.wicketstuff.org/wicket13/ajax/


Kevin Liu-4 wrote:
> 
>   Hi guys,
>
>Could you tell me how to send ajax request , e.g.
>
>   Ext.Ajax.request({
> url: 'what to input here??',
> method : 'get'
> 
>  });
>
>   and then  how to handle it in wicket server-side to produce
> wicket-response.
>
>   Thanks.
> 
> 
> 
> -Kevin Liu
>
> -
> Looking for last minute shopping deals?  Find them fast with Yahoo!
> Search.
> 


-
Michael Sparer
http://talk-on-tech.blogspot.com
-- 
View this message in context: 
http://www.nabble.com/how-to-send-ajax-request---handle-it-tp14659581p14660376.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Is wicketstuff-scriptaculous still active?

2008-01-07 Thread Lan Boon Ping
Hi,

Is wicketstuff-scriptaculous still active?

Regards
Boon Ping.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]