You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Sven Meier <sv...@meiers.net> on 2009/10/03 13:16:34 UTC

[ANN] wicket-dnd project

Hi all,

I'm happy to announce wicket-dnd, a generic drag and drop framework for Wicket.

The API has not been fully stabilized yet but you are invited to take a first look:

	http://code.google.com/p/wicket-dnd/

Have fun

Sven


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


Re: [ANN] wicket-dnd project

Posted by Sven Meier <sv...@meiers.net>.
Well, wicket-dnd combines Wicket's standard AJAX support, prototype's 
Javascript enhancements and a few custom functions to move HTML elements 
around.

I'm glad you like it.

Sven

Pierre Goupil wrote:
> It looks great, men! Which AJAX framework do you use?
>
> Regards,
>
> Pierre
>
>
> On Tue, Oct 13, 2009 at 3:55 PM, Doug Leeper <do...@yahoo.com> wrote:
>
>   
>> Thanks Sven!
>>
>> Got it working.
>> --
>> View this message in context:
>> http://www.nabble.com/-ANN--wicket-dnd-project-tp25727819p25873355.html
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>>     
>
>
>   


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


Re: [ANN] wicket-dnd project

Posted by Pierre Goupil <go...@gmail.com>.
It looks great, men! Which AJAX framework do you use?

Regards,

Pierre


On Tue, Oct 13, 2009 at 3:55 PM, Doug Leeper <do...@yahoo.com> wrote:

>
> Thanks Sven!
>
> Got it working.
> --
> View this message in context:
> http://www.nabble.com/-ANN--wicket-dnd-project-tp25727819p25873355.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>


-- 
Sans amis était le grand maître des mondes,
Eprouvait manque, ce pour quoi il créa les esprits,
Miroirs bienveillants de sa béatitude.
Mais au vrai, il ne trouva aucun égal,
Du calice du royaume total des âmes
Ecume jusqu'à lui l'infinité.

(Schiller, "l'amitié")

Re: [ANN] wicket-dnd project

Posted by Doug Leeper <do...@yahoo.com>.
Thanks Sven!

Got it working.
-- 
View this message in context: http://www.nabble.com/-ANN--wicket-dnd-project-tp25727819p25873355.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: [ANN] wicket-dnd project

Posted by Sven Meier <sv...@meiers.net>.
Hi Doug,

you're adding a second drop target to your currentContainer:

    currentContainer.add(new DropTarget(Operation.COPY) {
      ...
    }.dropBottom("div"));

But there aren't any DIVs contained inside your currentContainer, so 
wicket-dnd isn't able to find a drop location.

If you just want to support drop operations even if no items are already 
present, you can do so with a single drop target:

        currentContainer.add(new DropTarget(Operation.MOVE, 
Operation.COPY) {
            @Override
            public void onDrop(AjaxRequestTarget target, Transfer transfer,
                    Location location) throws Reject {
                System.out.println("(tr) onDrop: " + 
transfer.getOperation());

                if (location == null) {
                   // no location supplied -> drop on whole container
                } else {
                   // location supplied -> drop on given location, see 
Location#anchor and Location#component
                }
            }
        }.dropTopAndBottom("tr"));

HTH

Sven

Doug Leeper wrote:
> Sven,
>
> I have downloaded wicket-dnd and have integrated into our project.  I had a
> few issues but got around them.  The biggest is that we are using DataView
> instead of DataTable.  While there was no exact example for DataView, I was
> able to get through and see what I needed to do:
>
> - needed a "container" apply the DataSource
> - needed to item.setOutputMarkupId( true ) in the populateItem
>
> The DropTarget is working (the UI changes when I hover over the
> target)...but when I initiate a drop, I get a PageExpiredException.
>
> Any thoughts?
>
> BTW..I have uploaded our simple test case for reference.
>
> Thanks
> - Doug
>
> http://www.nabble.com/file/p25859163/DndTestPage.java DndTestPage.java 
> http://www.nabble.com/file/p25859163/DndTestPage.html DndTestPage.html 
> http://www.nabble.com/file/p25859163/WicketApplication.java
> WicketApplication.java 
>   


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


Re: [ANN] wicket-dnd project

Posted by Doug Leeper <do...@yahoo.com>.
Sven,

I have downloaded wicket-dnd and have integrated into our project.  I had a
few issues but got around them.  The biggest is that we are using DataView
instead of DataTable.  While there was no exact example for DataView, I was
able to get through and see what I needed to do:

- needed a "container" apply the DataSource
- needed to item.setOutputMarkupId( true ) in the populateItem

The DropTarget is working (the UI changes when I hover over the
target)...but when I initiate a drop, I get a PageExpiredException.

Any thoughts?

BTW..I have uploaded our simple test case for reference.

Thanks
- Doug

http://www.nabble.com/file/p25859163/DndTestPage.java DndTestPage.java 
http://www.nabble.com/file/p25859163/DndTestPage.html DndTestPage.html 
http://www.nabble.com/file/p25859163/WicketApplication.java
WicketApplication.java 
-- 
View this message in context: http://www.nabble.com/-ANN--wicket-dnd-project-tp25727819p25859163.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: [ANN] wicket-dnd project

Posted by Duke <wa...@gmail.com>.
Thanks Sven,
I am newbe in css/html, thats why I was in doubt.

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/ANN-wicket-dnd-project-tp1889824p4664899.html
Sent from the Users forum mailing list archive at Nabble.com.

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


Re: [ANN] wicket-dnd project

Posted by Sven Meier <sv...@meiers.net>.
Hi,

yes, that should be a semicolon.

Sven

On 03/11/2014 10:19 AM, Duke wrote:
> Thanks for reply.
> Unfortunately I can't change IDE now, its not my choice.
>
> Also, I found some strange code in wicket-dnd theme.css files:
>
> div.dnd-hover-cover {
> display: none;
> }
> table.dnd-hover-table {
> border-spacing: 0px;
> *border-collapse: collapse:*
> }
>
> Maybe it is a missprint? And right will be like this:
> border-collapse: collapse*;*
> ?
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/ANN-wicket-dnd-project-tp1889824p4664895.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>


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


Re: [ANN] wicket-dnd project

Posted by Duke <wa...@gmail.com>.
Thanks for reply.
Unfortunately I can't change IDE now, its not my choice.

Also, I found some strange code in wicket-dnd theme.css files:

div.dnd-hover-cover {
display: none;
}
table.dnd-hover-table {
border-spacing: 0px;
*border-collapse: collapse:*
}

Maybe it is a missprint? And right will be like this:
border-collapse: collapse*;*
?

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/ANN-wicket-dnd-project-tp1889824p4664895.html
Sent from the Users forum mailing list archive at Nabble.com.

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


Re: [ANN] wicket-dnd project

Posted by Maxim Solodovnik <so...@gmail.com>.
We are using DND in Eclipse, it seems to work as expected


On Tue, Mar 11, 2014 at 4:04 PM, Duke <wa...@gmail.com> wrote:

> Hi all,
> I'm try to use wicket-dnd 0.6.0 in my project.
> I got a strange behavior in my NetBeans 7.4 IDE when I add wicket-dnd
> library to my project library list.
> After adding and saving project, if I close IDE and open it, it stop to
> highlight errors in code editor. It highlihgt a file in a list, that it has
> a error, but not highlight error in code text.
> I don't understand a link between highliting errors in ide and wicket-dnd
> library ((
>
> before adding wicket-dnd:
> <http://apache-wicket.1842946.n4.nabble.com/file/n4664893/netbeans1.jpg>
>
> after adding wicket-dnd:
> <http://apache-wicket.1842946.n4.nabble.com/file/n4664893/netbeans2.jpg>
>
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/ANN-wicket-dnd-project-tp1889824p4664893.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>


-- 
WBR
Maxim aka solomax

Re: [ANN] wicket-dnd project

Posted by Sven Meier <sv...@meiers.net>.
Hi,

wicket-dnd is pretty standard Java, so I don't have an idea what 
Netbeans has to complain about that code.

Sven

On 03/11/2014 10:04 AM, Duke wrote:
> Hi all,
> I'm try to use wicket-dnd 0.6.0 in my project.
> I got a strange behavior in my NetBeans 7.4 IDE when I add wicket-dnd
> library to my project library list.
> After adding and saving project, if I close IDE and open it, it stop to
> highlight errors in code editor. It highlihgt a file in a list, that it has
> a error, but not highlight error in code text.
> I don't understand a link between highliting errors in ide and wicket-dnd
> library ((
>
> before adding wicket-dnd:
> <http://apache-wicket.1842946.n4.nabble.com/file/n4664893/netbeans1.jpg>
>
> after adding wicket-dnd:
> <http://apache-wicket.1842946.n4.nabble.com/file/n4664893/netbeans2.jpg>
>
>
>
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/ANN-wicket-dnd-project-tp1889824p4664893.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>


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


Re: [ANN] wicket-dnd project

Posted by Duke <wa...@gmail.com>.
Hi all,
I'm try to use wicket-dnd 0.6.0 in my project.
I got a strange behavior in my NetBeans 7.4 IDE when I add wicket-dnd
library to my project library list.
After adding and saving project, if I close IDE and open it, it stop to
highlight errors in code editor. It highlihgt a file in a list, that it has
a error, but not highlight error in code text.
I don't understand a link between highliting errors in ide and wicket-dnd
library ((

before adding wicket-dnd:
<http://apache-wicket.1842946.n4.nabble.com/file/n4664893/netbeans1.jpg> 

after adding wicket-dnd:
<http://apache-wicket.1842946.n4.nabble.com/file/n4664893/netbeans2.jpg> 




--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/ANN-wicket-dnd-project-tp1889824p4664893.html
Sent from the Users forum mailing list archive at Nabble.com.

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


Re: [ANN] wicket-dnd project

Posted by Uwe Schäfer <us...@thomas-daily.de>.
Sven Meier schrieb:
> I'm happy to announce wicket-dnd, a generic drag and drop framework for 
> Wicket.

looks pretty slick! congrats.

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


Re: How to store/load strings shared by many (but not all) pages?

Posted by Igor Vaynberg <ig...@gmail.com>.
YourApplicationClass.properties sitting next to you
YourApplicationClass.java/class will do the trick. all
components/pages have access to properties stored there.

-igor

On Sat, Oct 3, 2009 at 8:32 PM, David Chang <da...@yahoo.com> wrote:
> I am reading <<Wicket in Action>> and have this i18n/i10n-related question :
>
> Suppose that I have a string that is used on multiple (but NOT ALL) pages. One solution is that I can put this string in the property files for each page on which the string is used.
>
> Any other better solutions?
>
> Thanks for your input!
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

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


Re: How to store/load strings shared by many (but not all) pages?

Posted by Pedro Sena <se...@gmail.com>.
I was thinking about this yesterday...

This is a very common scenario, specially for i18n messages related to
exceptions.

Thanks for the info =)


On Mon, Oct 5, 2009 at 9:52 AM, Robin Sander <ro...@gmx.net> wrote:

>
> Wicket uses a chain of resolvers, by default these are: (see Settings
> class)
>
>  ComponentStringResourceLoader, PackageStringResourceLoader,
> ClassStringResourceLoader and ValidatorStringResourceLoader.
>
> So besides the component specific resource you may define respources per
> package (e.g. 'package_de.properties') and for the
> whole application, the latter named like your application class (e.g.
> MyApp.properties)
>
>
>
>
> On Oct 4, 2009, at 05:32, David Chang wrote:
>
>  I am reading <<Wicket in Action>> and have this i18n/i10n-related question
>> :
>>
>> Suppose that I have a string that is used on multiple (but NOT ALL) pages.
>> One solution is that I can put this string in the property files for each
>> page on which the string is used.
>>
>> Any other better solutions?
>>
>> Thanks for your input!
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>


-- 
/**
* Pedro Sena
* Systems Architect
* Sun Certified Java Programmer
* Sun Certified Web Component Developer
*/

Re: How to store/load strings shared by many (but not all) pages?

Posted by Robin Sander <ro...@gmx.net>.
Wicket uses a chain of resolvers, by default these are: (see Settings  
class)

  ComponentStringResourceLoader, PackageStringResourceLoader,  
ClassStringResourceLoader and ValidatorStringResourceLoader.

So besides the component specific resource you may define respources  
per package (e.g. 'package_de.properties') and for the
whole application, the latter named like your application class (e.g.  
MyApp.properties)



On Oct 4, 2009, at 05:32, David Chang wrote:

> I am reading <<Wicket in Action>> and have this i18n/i10n-related  
> question :
>
> Suppose that I have a string that is used on multiple (but NOT ALL)  
> pages. One solution is that I can put this string in the property  
> files for each page on which the string is used.
>
> Any other better solutions?
>
> Thanks for your input!
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org


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


Re: SV: Move shared wicket components to a base page?

Posted by Martijn Dashorst <ma...@gmail.com>.
On Mon, Oct 5, 2009 at 1:36 PM, David Chang <da...@yahoo.com> wrote:
> Wicket is great!

Now you're just preaching to the choir... :)

Martijn

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


Re: SV: Move shared wicket components to a base page?

Posted by David Chang <da...@yahoo.com>.
Tor, you are right. I found a coding error in my program. Yes, this whole thing is doable. Wicket is great!

Thanks!

--- On Mon, 10/5/09, Wilhelmsen Tor Iver <To...@arrive.no> wrote:

> From: Wilhelmsen Tor Iver <To...@arrive.no>
> Subject: SV: Move shared wicket components to a base page?
> To: "users@wicket.apache.org" <us...@wicket.apache.org>
> Date: Monday, October 5, 2009, 6:24 AM
> > WicketMessage: The component(s)
> below failed to render. A common
> > problem is that you have added a component in code but
> forgot to
> > reference it in the markup (thus the component will
> never be rendered).
> 
> This indicates to me you are not using <wicket:child
> /> in the parent's markup and/or not using
> <wicket:extend>...</wicket:extend> in the child
> page's markup.
> 
> - Tor Iver
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
> 
> 


      

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


SV: Move shared wicket components to a base page?

Posted by Wilhelmsen Tor Iver <To...@arrive.no>.
> WicketMessage: The component(s) below failed to render. A common
> problem is that you have added a component in code but forgot to
> reference it in the markup (thus the component will never be rendered).

This indicates to me you are not using <wicket:child /> in the parent's markup and/or not using <wicket:extend>...</wicket:extend> in the child page's markup.

- Tor Iver

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


Re: Start a panel, border, or page with an XML declaration?

Posted by David Chang <da...@yahoo.com>.
Thanks for sharing your thought and trick with me! The wicket user community is so helpful and friendly.

Cheers!

--- On Mon, 10/5/09, Phil Housley <un...@gmail.com> wrote:

> From: Phil Housley <un...@gmail.com>
> Subject: Re: Start a panel, border, or page with an XML declaration?
> To: users@wicket.apache.org
> Date: Monday, October 5, 2009, 4:27 AM
> 2009/10/4 David Chang <da...@yahoo.com>:
> > Phil,
> >
> > Thanks very much for your reply. By XML declaration,
> you mean something like:
> >
> > <?xml version="1.0" encoding="UTF-8" ?>
> >
> > Correct? I found this piece and it may be interesting
> to all:
> 
> That's right.
> 
> > http://learningtheworld.eu/2008/farewell-xml-declaration/
> 
> Well, it might make sense to skip the xml declaration when
> the output
> is being pushed straight the user agent (as with JSP, PHP
> etc), but
> with Wicket you require a full parsing of the xhtml data on
> the server
> side, so I would go with the best practice approach and
> keep the
> declaration.  Wicket is much more able to transform
> xhtml than other
> frameworks, so the arguments aren't really the same.
> 
> >>>I prefer to include it in my source, and then
> have
> > Wicket strip it out at the last moment - at least when
> I'm forced to
> > be IE6 compatible
> >
> > I am interested in this solution. Could you please
> share with us the detailed how-to?
> 
> There's no particular secret, just call
> this.getMarkupSettings().setStripXmlDeclarationFromOutput(true);
> in
> your Application.init() method.
> 
> > Regards.
> >
> > --- On Sun, 10/4/09, Phil Housley <un...@gmail.com>
> wrote:
> >
> >> From: Phil Housley <un...@gmail.com>
> >> Subject: Re: Start a panel, border, or page with
> an XML declaration?
> >> To: users@wicket.apache.org
> >> Date: Sunday, October 4, 2009, 6:59 AM
> >> 2009/10/4 David Chang <da...@yahoo.com>:
> >> > Hello, I am reading <<Wicket in
> Action>>.
> >> The Tip on page 291 says "it is good practice to
> start your
> >> panels and  borders (possibly your pages) with an
> XML
> >> declaration to force Wicket to work with them
> using the
> >> proper encoding".
> >> >
> >> > Does this mean that starting a panel, border,
> or page
> >> with something such as the following:
> >> > ----------
> >> > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML
> 1.0
> >> Transitional//EN"
> >> > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> >> > <html xmlns="http://www.w3.org/1999/xhtml" lang="en"
> >> xml:lang="en">
> >> > <head>
> >> > <meta http-equiv="content-type"
> content="text/html;
> >> charset=utf-8" />
> >> > ...
> >> > </head>
> >> > ----------
> >>
> >> Actually, the xml declaration is the one starting
> <?xml,
> >> which
> >> includes your encoding as soon as possible in the
> file,
> >> before any
> >> actual content.  Adding the doctype is also good
> >> practice, as it makes
> >> sure wicket/the browser/anything else that reads
> the file
> >> understands
> >> it exactly as you wrote it, but is a separate
> issue.
> >>
> >> >
> >> > is better than with:
> >> > ----------
> >> > <html>
> >> > <head>
> >> > ...
> >> > </head>
> >> > ----------
> >>
> >> > If yes, why do all the examples of the WIA
> book start
> >> simply with
> <html><head>...</head>?
> >>
> >> To save space I assume.
> >>
> >> > Thanks for your help!
> >> >
> >>
> >> One final thing to note is that IE6 will screw up
> any page
> >> with an
> >> <?xml declaration.  I prefer to include it in
> my
> >> source, and then have
> >> Wicket strip it out at the last moment - at least
> when I'm
> >> forced to
> >> be IE6 compatible.
> 
> -- 
> Phil Housley
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
> 
> 


      

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


Re: Start a panel, border, or page with an XML declaration?

Posted by Phil Housley <un...@gmail.com>.
2009/10/4 David Chang <da...@yahoo.com>:
> Phil,
>
> Thanks very much for your reply. By XML declaration, you mean something like:
>
> <?xml version="1.0" encoding="UTF-8" ?>
>
> Correct? I found this piece and it may be interesting to all:

That's right.

> http://learningtheworld.eu/2008/farewell-xml-declaration/

Well, it might make sense to skip the xml declaration when the output
is being pushed straight the user agent (as with JSP, PHP etc), but
with Wicket you require a full parsing of the xhtml data on the server
side, so I would go with the best practice approach and keep the
declaration.  Wicket is much more able to transform xhtml than other
frameworks, so the arguments aren't really the same.

>>>I prefer to include it in my source, and then have
> Wicket strip it out at the last moment - at least when I'm forced to
> be IE6 compatible
>
> I am interested in this solution. Could you please share with us the detailed how-to?

There's no particular secret, just call
this.getMarkupSettings().setStripXmlDeclarationFromOutput(true); in
your Application.init() method.

> Regards.
>
> --- On Sun, 10/4/09, Phil Housley <un...@gmail.com> wrote:
>
>> From: Phil Housley <un...@gmail.com>
>> Subject: Re: Start a panel, border, or page with an XML declaration?
>> To: users@wicket.apache.org
>> Date: Sunday, October 4, 2009, 6:59 AM
>> 2009/10/4 David Chang <da...@yahoo.com>:
>> > Hello, I am reading <<Wicket in Action>>.
>> The Tip on page 291 says "it is good practice to start your
>> panels and  borders (possibly your pages) with an XML
>> declaration to force Wicket to work with them using the
>> proper encoding".
>> >
>> > Does this mean that starting a panel, border, or page
>> with something such as the following:
>> > ----------
>> > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
>> Transitional//EN"
>> > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
>> > <html xmlns="http://www.w3.org/1999/xhtml" lang="en"
>> xml:lang="en">
>> > <head>
>> > <meta http-equiv="content-type" content="text/html;
>> charset=utf-8" />
>> > ...
>> > </head>
>> > ----------
>>
>> Actually, the xml declaration is the one starting <?xml,
>> which
>> includes your encoding as soon as possible in the file,
>> before any
>> actual content.  Adding the doctype is also good
>> practice, as it makes
>> sure wicket/the browser/anything else that reads the file
>> understands
>> it exactly as you wrote it, but is a separate issue.
>>
>> >
>> > is better than with:
>> > ----------
>> > <html>
>> > <head>
>> > ...
>> > </head>
>> > ----------
>>
>> > If yes, why do all the examples of the WIA book start
>> simply with <html><head>...</head>?
>>
>> To save space I assume.
>>
>> > Thanks for your help!
>> >
>>
>> One final thing to note is that IE6 will screw up any page
>> with an
>> <?xml declaration.  I prefer to include it in my
>> source, and then have
>> Wicket strip it out at the last moment - at least when I'm
>> forced to
>> be IE6 compatible.

-- 
Phil Housley

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


Re: Start a panel, border, or page with an XML declaration?

Posted by David Chang <da...@yahoo.com>.
Phil,

Thanks very much for your reply. By XML declaration, you mean something like:

<?xml version="1.0" encoding="UTF-8" ?>

Correct? I found this piece and it may be interesting to all:

http://learningtheworld.eu/2008/farewell-xml-declaration/

>>I prefer to include it in my source, and then have
Wicket strip it out at the last moment - at least when I'm forced to
be IE6 compatible

I am interested in this solution. Could you please share with us the detailed how-to?

Regards.





--- On Sun, 10/4/09, Phil Housley <un...@gmail.com> wrote:

> From: Phil Housley <un...@gmail.com>
> Subject: Re: Start a panel, border, or page with an XML declaration?
> To: users@wicket.apache.org
> Date: Sunday, October 4, 2009, 6:59 AM
> 2009/10/4 David Chang <da...@yahoo.com>:
> > Hello, I am reading <<Wicket in Action>>.
> The Tip on page 291 says "it is good practice to start your
> panels and  borders (possibly your pages) with an XML
> declaration to force Wicket to work with them using the
> proper encoding".
> >
> > Does this mean that starting a panel, border, or page
> with something such as the following:
> > ----------
> > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
> Transitional//EN"
> > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> > <html xmlns="http://www.w3.org/1999/xhtml" lang="en"
> xml:lang="en">
> > <head>
> > <meta http-equiv="content-type" content="text/html;
> charset=utf-8" />
> > ...
> > </head>
> > ----------
> 
> Actually, the xml declaration is the one starting <?xml,
> which
> includes your encoding as soon as possible in the file,
> before any
> actual content.  Adding the doctype is also good
> practice, as it makes
> sure wicket/the browser/anything else that reads the file
> understands
> it exactly as you wrote it, but is a separate issue.
> 
> >
> > is better than with:
> > ----------
> > <html>
> > <head>
> > ...
> > </head>
> > ----------
> 
> > If yes, why do all the examples of the WIA book start
> simply with <html><head>...</head>?
> 
> To save space I assume.
> 
> > Thanks for your help!
> >
> 
> One final thing to note is that IE6 will screw up any page
> with an
> <?xml declaration.  I prefer to include it in my
> source, and then have
> Wicket strip it out at the last moment - at least when I'm
> forced to
> be IE6 compatible.
> 
> -- 
> Phil Housley
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
> 
> 


      

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


Re: Start a panel, border, or page with an XML declaration?

Posted by Phil Housley <un...@gmail.com>.
2009/10/4 David Chang <da...@yahoo.com>:
> Hello, I am reading <<Wicket in Action>>. The Tip on page 291 says "it is good practice to start your panels and  borders (possibly your pages) with an XML declaration to force Wicket to work with them using the proper encoding".
>
> Does this mean that starting a panel, border, or page with something such as the following:
> ----------
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
> <head>
> <meta http-equiv="content-type" content="text/html; charset=utf-8" />
> ...
> </head>
> ----------

Actually, the xml declaration is the one starting <?xml, which
includes your encoding as soon as possible in the file, before any
actual content.  Adding the doctype is also good practice, as it makes
sure wicket/the browser/anything else that reads the file understands
it exactly as you wrote it, but is a separate issue.

>
> is better than with:
> ----------
> <html>
> <head>
> ...
> </head>
> ----------

> If yes, why do all the examples of the WIA book start simply with <html><head>...</head>?

To save space I assume.

> Thanks for your help!
>

One final thing to note is that IE6 will screw up any page with an
<?xml declaration.  I prefer to include it in my source, and then have
Wicket strip it out at the last moment - at least when I'm forced to
be IE6 compatible.

-- 
Phil Housley

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


Re: Move shared wicket components to a base page?

Posted by Igor Vaynberg <ig...@gmail.com>.
yeah...
make a quickstart that reproduces your problem and post it somewhere.

-igor

On Sun, Oct 4, 2009 at 2:06 PM, David Chang <da...@yahoo.com> wrote:
> Hello Igor,
>
> I have quickstart installed and looked at it everywhere. It has two application clsses only: WicketApplication and HomePage. I am unable to find anything related to my question.
>
> Did I miss something?
>
> Thanks!
>
>
> --- On Sun, 10/4/09, Igor Vaynberg <ig...@gmail.com> wrote:
>
>> From: Igor Vaynberg <ig...@gmail.com>
>> Subject: Re: Move shared wicket components to a base page?
>> To: users@wicket.apache.org
>> Date: Sunday, October 4, 2009, 12:15 PM
>> quickstart would help, without it we
>> would have to slaughter a chicken
>> and wave it around and take wild guesses.
>>
>> -igor
>>
>> On Sun, Oct 4, 2009 at 8:44 AM, David Chang <da...@yahoo.com>
>> wrote:
>> > I have two wicket pages, both of which extend a base
>> page. In the first version, each page used a wicket componet
>> as follows:
>> >
>> > <span wicket:id="feedback" />
>> >
>> > In the second version, I moved the above markup to the
>> base page. However, I always got this error from wicket:
>> >
>> > WicketMessage: The component(s) below failed to
>> render. A common problem is that you have added a component
>> in code but forgot to reference it in the markup (thus the
>> component will never be rendered).
>> >
>> > I checked the base page's code and markup many times.
>> It is there.
>> >
>> > Can someone tell me whether it is doable in wicket and
>> what went wrong?
>> >
>> > Thanks for your input!
>> >
>> >
>> >
>> >
>> >
>> ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> > For additional commands, e-mail: users-help@wicket.apache.org
>> >
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

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


Re: Move shared wicket components to a base page?

Posted by David Chang <da...@yahoo.com>.
Hello Igor,

I have quickstart installed and looked at it everywhere. It has two application clsses only: WicketApplication and HomePage. I am unable to find anything related to my question.

Did I miss something?

Thanks!


--- On Sun, 10/4/09, Igor Vaynberg <ig...@gmail.com> wrote:

> From: Igor Vaynberg <ig...@gmail.com>
> Subject: Re: Move shared wicket components to a base page?
> To: users@wicket.apache.org
> Date: Sunday, October 4, 2009, 12:15 PM
> quickstart would help, without it we
> would have to slaughter a chicken
> and wave it around and take wild guesses.
> 
> -igor
> 
> On Sun, Oct 4, 2009 at 8:44 AM, David Chang <da...@yahoo.com>
> wrote:
> > I have two wicket pages, both of which extend a base
> page. In the first version, each page used a wicket componet
> as follows:
> >
> > <span wicket:id="feedback" />
> >
> > In the second version, I moved the above markup to the
> base page. However, I always got this error from wicket:
> >
> > WicketMessage: The component(s) below failed to
> render. A common problem is that you have added a component
> in code but forgot to reference it in the markup (thus the
> component will never be rendered).
> >
> > I checked the base page's code and markup many times.
> It is there.
> >
> > Can someone tell me whether it is doable in wicket and
> what went wrong?
> >
> > Thanks for your input!
> >
> >
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
> 
> 


      

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


Re: Move shared wicket components to a base page?

Posted by Igor Vaynberg <ig...@gmail.com>.
quickstart would help, without it we would have to slaughter a chicken
and wave it around and take wild guesses.

-igor

On Sun, Oct 4, 2009 at 8:44 AM, David Chang <da...@yahoo.com> wrote:
> I have two wicket pages, both of which extend a base page. In the first version, each page used a wicket componet as follows:
>
> <span wicket:id="feedback" />
>
> In the second version, I moved the above markup to the base page. However, I always got this error from wicket:
>
> WicketMessage: The component(s) below failed to render. A common problem is that you have added a component in code but forgot to reference it in the markup (thus the component will never be rendered).
>
> I checked the base page's code and markup many times. It is there.
>
> Can someone tell me whether it is doable in wicket and what went wrong?
>
> Thanks for your input!
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

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


Start a panel, border, or page with an XML declaration?

Posted by David Chang <da...@yahoo.com>.
Hello, I am reading <<Wicket in Action>>. The Tip on page 291 says "it is good practice to start your panels and  borders (possibly your pages) with an XML declaration to force Wicket to work with them using the proper encoding". 

Does this mean that starting a panel, border, or page with something such as the following:
----------
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
...
</head>
----------

is better than with:
----------
<html>
<head>
...
</head>
----------

If yes, why do all the examples of the WIA book start simply with <html><head>...</head>?

Thanks for your help!


      

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


How to list files by name in Eclipe's Package Explorer?

Posted by David Chang <da...@yahoo.com>.
Hello, 

I am using Eclipse for devleopment. The files in its Package Explorer are listed by extensions: java files first. This is good for non-wicket development. Now each page's java and markup files are in the same directory and I hope to see them naturally stay together, which means making Package Explorer to list files by name.

How to do this?

Thank you!


      

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


Move shared wicket components to a base page?

Posted by David Chang <da...@yahoo.com>.
I have two wicket pages, both of which extend a base page. In the first version, each page used a wicket componet as follows:

<span wicket:id="feedback" />

In the second version, I moved the above markup to the base page. However, I always got this error from wicket:

WicketMessage: The component(s) below failed to render. A common problem is that you have added a component in code but forgot to reference it in the markup (thus the component will never be rendered).

I checked the base page's code and markup many times. It is there. 

Can someone tell me whether it is doable in wicket and what went wrong?

Thanks for your input! 


      

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


How to store/load strings shared by many (but not all) pages?

Posted by David Chang <da...@yahoo.com>.
I am reading <<Wicket in Action>> and have this i18n/i10n-related question :

Suppose that I have a string that is used on multiple (but NOT ALL) pages. One solution is that I can put this string in the property files for each page on which the string is used. 

Any other better solutions?

Thanks for your input!


      

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


Re: [ANN] wicket-dnd project

Posted by Sven Meier <sv...@meiers.net>.
Well, google apps isn't what I call a performant hosting ;).

'In reality' (on your own server) dnd operations are as fast as any 
other AJAX roundtrip.

Regards

Sven

Martin Makundi wrote:
> BTW, Why is the demo "very slow"? Is this what it is like in reality?
>
> **
> Martin
>
> 2009/10/3 Ralf Eichinger <ra...@pixotec.de>:
>   
>> Sven Meier wrote:
>>     
>>> I'm happy to announce wicket-dnd, a generic drag and drop framework for
>>> Wicket.
>>>
>>>    http://code.google.com/p/wicket-dnd/
>>>       
>> I added it to the Wicket Wiki:
>> http://cwiki.apache.org/confluence/display/WICKET/Related+Projects
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>>     
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>   


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


Re: [ANN] wicket-dnd project

Posted by Martin Makundi <ma...@koodaripalvelut.com>.
BTW, Why is the demo "very slow"? Is this what it is like in reality?

**
Martin

2009/10/3 Ralf Eichinger <ra...@pixotec.de>:
> Sven Meier wrote:
>>
>> I'm happy to announce wicket-dnd, a generic drag and drop framework for
>> Wicket.
>>
>>    http://code.google.com/p/wicket-dnd/
>
> I added it to the Wicket Wiki:
> http://cwiki.apache.org/confluence/display/WICKET/Related+Projects
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

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


Re: [ANN] wicket-dnd project

Posted by Ralf Eichinger <ra...@pixotec.de>.
Sven Meier wrote:
> I'm happy to announce wicket-dnd, a generic drag and drop framework 
> for Wicket.
>
>     http://code.google.com/p/wicket-dnd/
I added it to the Wicket Wiki: 
http://cwiki.apache.org/confluence/display/WICKET/Related+Projects

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


Re: [ANN] wicket-dnd project

Posted by Sven Meier <sv...@meiers.net>.
Hi Alex,

I'm not sure I understand your question:
wicket-tree is an alternative to the tree classes in wicket-core and 
wicket-extensions.
DefaultNestedTree gives you almost the same functionality as LabelTree.

Regards

Sven

nestrmu wrote:
> Hi, Sven
>   I'm trying to use you wonderfull wicket-dnd, but i met with the problem -
> how can i use it with a regular wicket tree like a LabelTree, for example.
> Is it possible? 
>    
> Alex
>
>
> svenmeier wrote:
>   
>> Hi all,
>>
>> I'm happy to announce wicket-dnd, a generic drag and drop framework for
>> Wicket.
>>
>> The API has not been fully stabilized yet but you are invited to take a
>> first look:
>>
>> 	http://code.google.com/p/wicket-dnd/
>>
>> Have fun
>>
>> Sven
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>>
>>     
>
>   


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


Re: [ANN] wicket-dnd project

Posted by nestrmu <ab...@gmail.com>.
Hi, Sven
  I'm trying to use you wonderfull wicket-dnd, but i met with the problem -
how can i use it with a regular wicket tree like a LabelTree, for example.
Is it possible? 
   
Alex


svenmeier wrote:
> 
> Hi all,
> 
> I'm happy to announce wicket-dnd, a generic drag and drop framework for
> Wicket.
> 
> The API has not been fully stabilized yet but you are invited to take a
> first look:
> 
> 	http://code.google.com/p/wicket-dnd/
> 
> Have fun
> 
> Sven
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/-ANN--wicket-dnd-project-tp25727819p26063618.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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