Re: Re: Best to strategy to have a Wicket page returns a binary content by default

2008-09-23 Thread Paolo Di Tommaso
Because, I want to use Wicket to render PDF content in a trasparent way -
just extending a base page - as normally it is done for a WebPage.

-- Paolo

On Tue, Sep 23, 2008 at 6:08 PM, <[EMAIL PROTECTED]> wrote:

> Why don't you use the DownloadLink component?
>
> Just create a file in the java.tmp.dir and setDeleteAfterDownload (true);
>
>
> http://wicket.apache.org/docs/wicket-1.3.2/wicket/apidocs/org/apache/wicket/markup/html/link/DownloadLink.html
>
> Regards,
> Bruno
>
> On Sep 23, 2008 11:30am, Paolo Di Tommaso <[EMAIL PROTECTED]>
> wrote:
>
>> Interesting .. so I could extend QueryStringUrlCodingStrategy overriding
>>
> the
>
>>
>> decode() method to return my PdfRequestTarget.
>>
>>
>>
>> Cool! Thank you,
>>
>>
>>
>> -- Paolo
>>
>>
>>


Re: Wicket/Seam on Tomcat 6?

2008-09-30 Thread Paolo Di Tommaso
I've successfully run it on Tomcat 5.5 ..

-- Paolo

On Tue, Sep 30, 2008 at 1:49 PM, Martijn Lindhout
<[EMAIL PROTECTED]>wrote:

> Hi all,
>
> Has anyone a running setup of Wicket/Seam on Tomcat. No EJB's, just JPA.
>
> I get a string ClassNotFoundException on a class that is present in
> WEB-INF/classes
>
> --
> Martijn Lindhout
> JointEffort IT Services
> http://www.jointeffort.nl
> [EMAIL PROTECTED]
> +31 (0)6 18 47 25 29
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Seamless Wicket

2008-10-01 Thread Paolo Di Tommaso
A really interesting post showing how integrate Wicket in the lastest JBoss
Seam.

http://in.relation.to/Bloggers/SeamlessWicket

Enjoy, Paolo


Re: Wicket and Ext JS integration

2008-10-22 Thread Paolo Di Tommaso
I'm working on a wicket-ext integration project.

Until now I've done just really simple stuff, like simple TextField,
DateField, TimeField, ComboBox, AutoComplete field and basic (static) grid
elements.

Though my implementation is trivial I would say that is really promising and
I've not found any evident obstacle to a more complete integration.


Paolo

On Wed, Oct 22, 2008 at 1:53 PM, Richard Allen <[EMAIL PROTECTED]>wrote:

> We currently use Ext JS 2.2 (http://extjs.com) with Struts 1.x, and we are
> considering migrating to Wicket. I have seen on the mail archive that some
> people have integrated Wicket and Ext JS with mixed success. In particular,
> I found the wicket-tools-extjs project,
> http://www.wickettools.org/index.php/extjs-integrationm, which is version
> 0.1.0, published in February 2008.
>
> Is the wicket-tools-extjs project in active development or was that project
> abandoned? Is there any other significant work undergoing to integrate
> Wicket and Ext JS?
>
> Thanks,
> Richard Allen
>


Re: Wicket and Ext JS integration

2008-10-23 Thread Paolo Di Tommaso
I could be interested to share experience about that, but now I'm really in
early stage so I think it would be too early to share the code.


Anyway the main idea is to use the Wicket behaviour feature to "attach" an
Ext component to the associated Wicket component.

This is the easiest part. More complex integration like Data Store could be
always done using a Wicket ajax behavior.

But I' haven't yet tryed to integrate more complex stuff like editable
grids, groups and so on . .


Paolo




On Thu, Oct 23, 2008 at 1:41 PM, Richard Allen <[EMAIL PROTECTED]>wrote:

> The licensing is a pain. We started using ExtJS when it was LGPL, then they
> switched to GPL. By then we were already invested, so we bought a
> commercial
> license -- kind of feel like we got suckered into that one. If I had a
> chance to do it again I would just use YUI. We use ExtJS on top of YUI.
> However, ExtJS is a good product, even though they made a poor licensing
> decision.
>
> The licensing problem is just a fact that we have to deal with now, so I'm
> trying to find out what the easiest path is for integrating ExtJS 2.2 with
> Wicket. If someone else has already done the effort or started the effort,
> then that would help. The amount of work involved in integrating ExtJS 2.2
> with Wicket is part of our new web framework evaluation criteria.
>
> Thanks,
> Richard Allen
>
> On Wed, Oct 22, 2008 at 2:05 PM, Nino Saturnino Martinez Vazquez Wael <
> [EMAIL PROTECTED]> wrote:
>
> > I thought there were a licensing issue! Could'nt just remember if it were
> > the guy doing the wicket contrib or ext js..
> >
> > Martijn Dashorst wrote:
> >
> >> The GPL licensing of ExtJS is really a brain damage inflicting mess.
> >> Personally I would stay very far away from JS libraries that are GPL
> >> licensed (it is not clear how the viral aspect infects your server
> >> side code, possibly requiring you to ship your server side code to
> >> your users—you *are* distributing the GPL licensed code, which is
> >> linked to your product)
> >>
> >> Martijn
> >>
> >>
> >>
> >
> > --
> > -Wicket for love
> >
> > 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: Wicket and Ext JS integration

2008-10-23 Thread Paolo Di Tommaso
Yes, I'm working for a no-profit organization and it could be an interesting
option to release it as an OSS.

Do you have any suggestion where the project could be hosted?  Google code?
and any idea about the licence?


Thank you, Paolo


On Thu, Oct 23, 2008 at 2:19 PM, Richard Allen <[EMAIL PROTECTED]>wrote:

> Paolo,
>
> Is this an open source effort? What version of ExtJS are you using?
>
> If we were to choose to go with Wicket, we would be willing to contribute.
>
> Thanks,
> Richard Allen
>
> On Wed, Oct 22, 2008 at 10:20 AM, Paolo Di Tommaso <
> [EMAIL PROTECTED]> wrote:
>
> > I'm working on a wicket-ext integration project.
> >
> > Until now I've done just really simple stuff, like simple TextField,
> > DateField, TimeField, ComboBox, AutoComplete field and basic (static)
> grid
> > elements.
> >
> > Though my implementation is trivial I would say that is really promising
> > and
> > I've not found any evident obstacle to a more complete integration.
> >
> >
> > Paolo
> >
> > On Wed, Oct 22, 2008 at 1:53 PM, Richard Allen <
> [EMAIL PROTECTED]
> > >wrote:
> >
> > > We currently use Ext JS 2.2 (http://extjs.com) with Struts 1.x, and we
> > are
> > > considering migrating to Wicket. I have seen on the mail archive that
> > some
> > > people have integrated Wicket and Ext JS with mixed success. In
> > particular,
> > > I found the wicket-tools-extjs project,
> > > http://www.wickettools.org/index.php/extjs-integrationm, which is
> > version
> > > 0.1.0, published in February 2008.
> > >
> > > Is the wicket-tools-extjs project in active development or was that
> > project
> > > abandoned? Is there any other significant work undergoing to integrate
> > > Wicket and Ext JS?
> > >
> > > Thanks,
> > > Richard Allen
> > >
> >
>


Wicket session back button support

2008-12-10 Thread Paolo Di Tommaso
Dear community,

I'm facing with a really ugly problem. In my web app I need to store some
variables in the Wicket session.

But this cause some nasty side-effects when users click on the browser back
button.

The page displays the previous content correctly but some components, which
model is based on session values, do not.

Is there any best practice for Wicket session to support the browser back
button (so that coming back the session is restored to the previous state)?

Thank you,

Paolo


Re: Wicket session back button support

2008-12-11 Thread Paolo Di Tommaso
Nice question. Consider the following use case:

You have the main application menu bar. The user chooses an item from it.

What happens is that all the following pages will be related to that choice,
for example the second level menu in the page (that is contextual to the
above choice) and I would avoid to specify it as a parameter every time I
create a new page .

Possible solution, store those variables in the page also and initialize
them taking the values from the session.

When the user clicks on the back button re-sync the session variables - if
changed - overriding the onBeforeRender() method.

Other solution could be to create a custom UrlEncodingStrategy to propagate
the session vars on URL ...


What do you think ?

-- Paolo


On Thu, Dec 11, 2008 at 12:29 AM, Matej Knopp <[EMAIL PROTECTED]> wrote:

> No. You have to track the changes yourself. Or use Page as the scope.
> What's the reason to put values in session anyway?
>
> -Matej
>
> On Wed, Dec 10, 2008 at 11:18 PM, Paolo Di Tommaso
> <[EMAIL PROTECTED]> wrote:
> > Dear community,
> >
> > I'm facing with a really ugly problem. In my web app I need to store some
> > variables in the Wicket session.
> >
> > But this cause some nasty side-effects when users click on the browser
> back
> > button.
> >
> > The page displays the previous content correctly but some components,
> which
> > model is based on session values, do not.
> >
> > Is there any best practice for Wicket session to support the browser back
> > button (so that coming back the session is restored to the previous
> state)?
> >
> > Thank you,
> >
> > Paolo
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Wicket session back button support

2008-12-12 Thread Paolo Di Tommaso
Good, in this way it works.

I'm apply the onBeforeRender trick to propagate the previous state in the
session.


Thank guys, long live to Wicket

Paolo

On Thu, Dec 11, 2008 at 6:27 PM, Igor Vaynberg wrote:

> or instead of pages use panels as content. that way you use the same
> menu instance across multiple "pages" and the menu can keep its own
> state.
>
> -igor
>
> On Thu, Dec 11, 2008 at 2:37 AM, Paolo Di Tommaso
>  wrote:
> > Nice question. Consider the following use case:
> >
> > You have the main application menu bar. The user chooses an item from it.
> >
> > What happens is that all the following pages will be related to that
> choice,
> > for example the second level menu in the page (that is contextual to the
> > above choice) and I would avoid to specify it as a parameter every time I
> > create a new page .
> >
> > Possible solution, store those variables in the page also and initialize
> > them taking the values from the session.
> >
> > When the user clicks on the back button re-sync the session variables -
> if
> > changed - overriding the onBeforeRender() method.
> >
> > Other solution could be to create a custom UrlEncodingStrategy to
> propagate
> > the session vars on URL ...
> >
> >
> > What do you think ?
> >
> > -- Paolo
> >
> >
> > On Thu, Dec 11, 2008 at 12:29 AM, Matej Knopp 
> wrote:
> >
> >> No. You have to track the changes yourself. Or use Page as the scope.
> >> What's the reason to put values in session anyway?
> >>
> >> -Matej
> >>
> >> On Wed, Dec 10, 2008 at 11:18 PM, Paolo Di Tommaso
> >>  wrote:
> >> > Dear community,
> >> >
> >> > I'm facing with a really ugly problem. In my web app I need to store
> some
> >> > variables in the Wicket session.
> >> >
> >> > But this cause some nasty side-effects when users click on the browser
> >> back
> >> > button.
> >> >
> >> > The page displays the previous content correctly but some components,
> >> which
> >> > model is based on session values, do not.
> >> >
> >> > Is there any best practice for Wicket session to support the browser
> back
> >> > button (so that coming back the session is restored to the previous
> >> state)?
> >> >
> >> > Thank you,
> >> >
> >> > Paolo
> >> >
> >>
> >> -
> >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >> For additional commands, e-mail: users-h...@wicket.apache.org
> >>
> >>
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: [OT] wicket users around the world

2008-12-12 Thread Paolo Di Tommaso
Paolo Di Tommaso, Roma - IT

On Fri, Dec 12, 2008 at 3:40 PM, Steve Flasby  wrote:

> Brit (actually a Yorkshireman) working in Zürich, Switzerland.
>


Re: Wicket, FOP, Markup Inheritance and Markup Type

2008-12-16 Thread Paolo Di Tommaso
Adrian, is not a strange question, I've implemented it and works very well.

And in some use cases is a perfect choice.

In my implementation I use  a FopPage that declares page#getmarkuptype() {
return "fop"}

The nice thing is that all panel added in that page will look for an
associated markup will a suffix ".fop" (instead of .html).

This means that you can have a panel implementing a common business logic
with two "skins", one html and one fop.

When used in html page it will use the HTML panel and when added in the FOP
page will produce the FOP markup.


Paolo







On Mon, Dec 15, 2008 at 11:14 PM, Adrian Wiesmann wrote:

> Hello everybody
>
> A quick question out of curiosity. Has anybody played around or tried to
> generate XSL-FO from within your Wicket project?
>
> What I mean is this:
>
> - Add an XML file to every HTML file.
> - Tell Wicket to use the XML instead of the HTML file for the markup.
> - Have Wicket do the markup inheritance magic and "rendering" of a FO file
> (instead of plain HTML).
> - Use the resulting FO to render PDF with Apache FOP.
> - Present the PDF file instead the HTML to the client.
>
> Anyone did so? Anyone played with Wicket and did so in a Swing application
> (instead the web environment)?
>
> I know, these questions may sound strange, but I am currently thinking
> about the possibilities of Wicket's markup inheritance and if it is
> possible (and makes sense) to use Wicket as a reports generator. Not what
> it is intended to do, but just pretend everything makes sense. :)
>
> Thanks for your comments.
>
> Cheers,
> Adrian
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Avoid page re-instantiation upon browser back button pushing.

2007-08-01 Thread Paolo Di Tommaso
Ummh .. quite interesting.

I was supposing that Wicket disable browser caching by default, for
Bookmarkable page also. Isn't it Igor?

Or is there any special API to enable/disable page caching on client side?

Paolo


On 8/1/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
>
> On 8/1/07, Fabio Fioretti <[EMAIL PROTECTED]> wrote:
> >
> >
> > This is because, when I push the back button, /mypage?user=ME url is
> > loaded, the constructor gets called and a new page is instantiated
> > instead of displaying the old instance (I presume). Is there a way to
> > avoid this page re-instantiation?
>
>
> why is that url loaded again on backbutton? it should come from browser
> cache, do you add a no-store header or something?
>
> also see HybridUrlCodingStrategy, that might help
>
> -igor
>


How discover the caller page (wicket 1.2.x)

2007-08-03 Thread Paolo Di Tommaso
Dear Wicket gurus,

Suppose I have two Wicket page, let's say page A and B,
with the following simple navigation rule A --> B using something like

A. setResponsePage( new B() )

At compiles time A know B , but B does not know A.
It there a way to get - at runtime - from page B the reference to caller A
page instance?

Basically I'm trying to implement something like the HTTP referer mechanism.


Any ideas ?



Thanks, Paolo


Re: How discover the caller page (wicket 1.2.x)

2007-08-03 Thread Paolo Di Tommaso
Yes, but I would to avoid this, basically I'm looking for a way to discover
dinamically the calling wicket page instance (if exists ..)


Thanks, Paolo


On 8/3/07, Gerolf Seitz <[EMAIL PROTECTED]> wrote:
>
> you could have a constructor B(Page referrer)
> and pass the referrer page as a parameter like:
> this.setResponsePage(new B(this));
>
> hth,
>   gerolf
>
> On 8/3/07, Paolo Di Tommaso <[EMAIL PROTECTED]> wrote:
> >
> > Dear Wicket gurus,
> >
> > Suppose I have two Wicket page, let's say page A and B,
> > with the following simple navigation rule A --> B using something like
> >
> > A. setResponsePage( new B() )
> >
> > At compiles time A know B , but B does not know A.
> > It there a way to get - at runtime - from page B the reference to caller
> A
> > page instance?
> >
> > Basically I'm trying to implement something like the HTTP referer
> > mechanism.
> >
> >
> > Any ideas ?
> >
> >
> >
> > Thanks, Paolo
> >
>


Re: Resizing Table Columns Like Yahoo Mail

2007-08-04 Thread Paolo Di Tommaso
A light one
http://webfx.eae.net/dhtml/collist/columnlist.html

Or an advanced one
http://extjs.com/deploy/ext/examples/grid/array-grid.html


Paolo

On 8/4/07, Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote:
>
> Please does someone know of any javascript library that can be used to
> resize table columns via Drap
> or has someone implemented anything like dat here to share some knowledge
> of
> it
>
> thanks
>


Re: Resizing Table Columns Like Yahoo Mail

2007-08-05 Thread Paolo Di Tommaso
All the Extjs library is really cool. Definitively!

I'm really thinking about developing a Wicket-Extjs integration to be
released as a Wicket-stuff project.

Paolo

On 8/4/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
>
> > Or an advanced one
> > http://extjs.com/deploy/ext/examples/grid/array-grid.html
>
> That's sweet!
>
> Eelco
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: DateValidator message data customisation

2007-08-05 Thread Paolo Di Tommaso
I've found a workaround to this problem, using as  "min" and "max" date
values not a java.util.Date instance but a MyDate class that overrides the
toString() with my custom date format.

- Paolo

On 8/3/07, Mael Sicsic <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I have 2 problems with DateValidator' error messages.
> I understand how to configure the text message for validation error (eg :
> "xxx must be between {min} and {max}"), but my problems are with the value
> of dates "minimum" and "maximum", that are allways displayed in the EN
> locale style and are too verbose.
> For example it displays "must be between Sun Dec 31 18:59:48 CET 1979 and
> ...", and I would like to display "must be between 31/12/1979 and ..."
>
> Is it possible to change the format of values in the IValidators messages
> ?
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Resizing Table Columns Like Yahoo Mail

2007-08-05 Thread Paolo Di Tommaso
Really?! Strange .. from their home page:

Browser Compatibility

Build rich web applications that work across all major web browsers
including:

   - Internet Explorer 6+
   - FireFox 1.5+ (PC, Mac, *nix)
   - Safari 2+
   - Opera 9+ (Mac, PC)



Cheers.

- Paolo



On 8/5/07, Jan Kriesten <[EMAIL PROTECTED]> wrote:
>
>
> hi,
>
> >> Or an advanced one
> >> http://extjs.com/deploy/ext/examples/grid/array-grid.html
> >
> > That's sweet!
>
> only that it doesn't work in every browser (opera to be one)... :-/
>
> --- jan.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Uploading files without page reload

2007-08-09 Thread Paolo Di Tommaso
I've done that having the upload form specifying an hidden iframe as target
and - above all - having the following code in the Form#onSubmit() method

// Tell Wicket we're going to do the redirect ourselves.
getRequestCycle().setRedirect(false);
// Make sure no output for the current cycle is ever sent.
getRequestCycle().setRequestTarget(
EmptyRequestTarget.getInstance());



Paolo

On 8/9/07, Al Maw <[EMAIL PROTECTED]> wrote:
>
> legol wrote:
> > Hi all,
> >
> > I have problem with uploading files. My uploading file form is placed in
> > modal window and after submitting comunicate appears that modal window
> will
> > be closed. What I want is situation when after submitting modal window
> is
> > still visible. The best solution would be not reloading page but i read
> > somewhere that it is impossible  to upload file via ajax. I tried to do
> > something with PageParameters but to show modal window AjaxRequstTarget.
> >
> > Pls help.
>
> The only way to do this, I think, is to embed your file upload inside an
> iframe. That way, you're doing a proper page submit.
>
> Regards,
>
> Al
> --
> Alastair Maw
> Wicket-biased blog at http://herebebeasties.com
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: How Can I Implement a Dynamic Table?

2007-08-10 Thread Paolo Di Tommaso
There are many ways ..

For example you can have two nested ListView, for example:



   value 



The first iterate over the row as usual, and the second over the columns.

The problem can be reduced to have a valid model to specify the columns.
This could be done, with a simple array of bean attribute names or using
reflection to extract bean getter ... or some other complex way ..


- Paolo (at fao.org)




On 8/10/07, Pantaleoni, Andrea (KCTU) <[EMAIL PROTECTED]> wrote:
>
> Hello,
> I have to implement a dynamic table: depending on user choices or values
> of
> fields in database, the number of columns could change.
> e.g. In same case I can have 3 columns containing Labels or in other cases
> 5
> containing Labels and form components(and so on).
> To do that I'm using a ListView inside a WebMarkupContainer(I need to
> implements some ajax behavior too)
> The problems is that wicket require a exact match between components added
> to
> the form object or page and markup items inside the relative html page
> Someone of you has already faced that problems?
> Any suggestion?
>
> Many Thanks
> Andrea
>
>


Re: Layout Panel

2007-08-23 Thread Paolo Di Tommaso
Umh .. I think the best things are simple ..

Why don't just handle the components position using html or css in your
panel?


Bye, Paolo



On 8/23/07, andrea pantaleoni <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
> I have a little problem with Panel
> In a table I added a Panel
> Now in this Panel I want to add two different components, let's say, a
> dropdownchoice up and a textfield down.
> If I remember well, in swing it could be possible to add a layout to a
> panel
> and then for example add a component in north or in the south.
> Is there in wicket something similar?
> If I want to add the dropdownchoice component in the north of the panel
> and
> the textfield in the south is that possible
> Thanks for any help
> Andrea
> --
> View this message in context:
> http://www.nabble.com/Layout-Panel-tf4317423.html#a12293248
> 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: Layout Panel

2007-08-23 Thread Paolo Di Tommaso
I'm still thinking that's a pure html problem, Try with a table like this:



wicketcomponentup 
wicketcomponentdown 



Paolo



On 8/23/07, andrea pantaleoni <[EMAIL PROTECTED]> wrote:
>
>
> the reason is that I need to consider the panel as a single component
> which
> is used inside a listview
> Anyway you could be right I saw that in wicket you can create a html
> markup
> for each single component naming the file in this way:
> pagename$componentname.html
>
> So maybe I can add the  drodownchoice and textfield to the panel component
> and fix the layout in the  html file pagename$panelname.html
>
> 
> 
> wicketcomponentup
> 
> wicketcomponentdown
> 
> 
> 
> What do you think about? could that work?
>
> Thanks Paolo
>
>
>
>
> paolo di tommaso wrote:
> >
> > Umh .. I think the best things are simple ..
> >
> > Why don't just handle the components position using html or css in your
> > panel?
> >
> >
> > Bye, Paolo
> >
> >
> >
> > On 8/23/07, andrea pantaleoni <[EMAIL PROTECTED]> wrote:
> >>
> >>
> >> Hi,
> >> I have a little problem with Panel
> >> In a table I added a Panel
> >> Now in this Panel I want to add two different components, let's say, a
> >> dropdownchoice up and a textfield down.
> >> If I remember well, in swing it could be possible to add a layout to a
> >> panel
> >> and then for example add a component in north or in the south.
> >> Is there in wicket something similar?
> >> If I want to add the dropdownchoice component in the north of the panel
> >> and
> >> the textfield in the south is that possible
> >> Thanks for any help
> >> Andrea
> >> --
> >> View this message in context:
> >> http://www.nabble.com/Layout-Panel-tf4317423.html#a12293248
> >> Sent from the Wicket - User mailing list archive at Nabble.com.
> >>
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Layout-Panel-tf4317423.html#a12293520
> 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: Alternative to Wicket data binding

2007-08-24 Thread Paolo Di Tommaso
I agree. If you make the PropertyModel access private getter and setter I
don't see any reason because it cannot access the attribute field directly
(when the getter and setter are omitted) .

- Paolo

On 8/24/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
>
> > Just to be pedantic they are not ignored:
> > with "public getXXX" and "private setXXX" the property is read only
> > with "public getXXX" and "no setXXX" the property is read only
> > with "no getXXX" and "public setXXX" property is read and write
>
> I would say that if the field exists, it should always use that. I
> think we should improve it.
>
> WDYT?
>
> Eelco
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Twice Behavior on the same event handler (wicket 1.2.x)

2007-09-05 Thread Paolo Di Tommaso
Dear Community,

what happens if two or event behavior are added on the save event handler.

I mean something like that

Button b = new Button("the-button");l
b.add(new AjaxEventBehavior("onclick") {
protected void onEvent(AjaxRequestTarget target)
{
//DO THIS
}
});


b.add(new AjaxEventBehavior("onclick") {
protected void onEvent(AjaxRequestTarget target)
{
//DO THAT
}
});


Will be fired both? just the first? just the last?

Thank to all.

- P


Re: Twice Behavior on the same event handler (wicket 1.2.x)

2007-09-06 Thread Paolo Di Tommaso
Carlos,

Can you provide an example of your custom implementation of chained
behaviour?


Thanks, Paolo


On 9/6/07, Carlos Pita <[EMAIL PROTECTED]> wrote:
>
> > Currently people will have to build it in themselves like you did. We
> > can investigate whether this can be improved for future versions, but
>
> From my own experience I wouldn't say that wicket should support this.
> It's too easy to write it yourself just to fit your specific needs,
> and otoh seems difficult to predict and support a significant number
> of possible use cases in a general way that keeps everyone happy, as
> you remarked.
>
> Regards,
> Carlos
>
> >
> > Eelco
> >
> > -
> > 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]
>
>


<    1   2