You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Toscano <ko...@gmail.com> on 2008/03/27 08:37:20 UTC
Place HTML files inside one 'html' folder relative to java file
Hello,
I have been looking at messages, examples and wiki, but I couldn't make this
to work...
I have one file: home.java, and around 26 language dependant html files
(home.html, home_es.html, home_ja.html...). What I want to do is create a
folder called 'html' and put the html files there.
For example:
Application/Registration/Register.java
Application/Registration/html/Register.html
Application/Registration/html/Register_es.html
...
I tried this solution:
http://cwiki.apache.org/confluence/display/WICKET/Control+where+HTML+files+are+loaded+from
And added "/html" as resourceFinder, but still is not working.
Any ideas?
Thank you so much for your time and help,
Oskar
--
View this message in context: http://www.nabble.com/Place-HTML-files-inside-one-%27html%27-folder-relative-to-java-file-tp16323316p16323316.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: Place HTML files inside one 'html' folder relative to java file
Posted by Igor Vaynberg <ig...@gmail.com>.
seems rather arbitrary to me to have the default file next to
component and then additional files in a folder. but whatever, i dont
much care if you add something like that.
-igor
On Thu, Mar 27, 2008 at 8:19 PM, Jonathan Locke
<jo...@gmail.com> wrote:
>
>
> of course. i'm just saying this could be in core rather than having
> end-users implement it. it seems like a very reasonable pattern to add in
> wicket 1.5.
>
>
>
>
> igor.vaynberg wrote:
> >
> > why would it change the api? write the iresourcestreamlocator and add
> > it to our compound one...
> >
> > -igor
> >
> > On Thu, Mar 27, 2008 at 6:45 PM, Jonathan Locke
> > <jo...@gmail.com> wrote:
> >>
> >>
> >> you know, i've kindof wanted this feature for quite a while. does
> >> anyone
> >> else out there care? we could maybe add it to the wish list. i don't
> >> think
> >> it would add anything to the API. the default markup location mechanism
> >> would just search a subfolder named after the markup type. might be
> >> nice to
> >> do the same thing with properties so we could put all those
> >> Application_xx.properties files in a folder.
> >>
> >> jon
> >>
> >>
> >>
> >> Toscano wrote:
> >> >
> >> > Hello,
> >> >
> >> > I have been looking at messages, examples and wiki, but I couldn't
> >> make
> >> > this to work...
> >> >
> >> > I have one file: home.java, and around 26 language dependant html
> >> files
> >> > (home.html, home_es.html, home_ja.html...). What I want to do is
> >> create a
> >> > folder called 'html' and put the html files there.
> >> >
> >> > For example:
> >> >
> >> > Application/Registration/Register.java
> >> > Application/Registration/html/Register.html
> >> > Application/Registration/html/Register_es.html
> >> > ...
> >> >
> >> > I tried this solution:
> >> >
> >> http://cwiki.apache.org/confluence/display/WICKET/Control+where+HTML+files+are+loaded+from
> >> >
> >> > And added "/html" as resourceFinder, but still is not working.
> >> >
> >> > Any ideas?
> >> >
> >> > Thank you so much for your time and help,
> >> > Oskar
> >> >
> >> >
> >> >
> >> >
> >> >
> >> >
> >> >
> >>
> >> --
> >> View this message in context:
> >> http://www.nabble.com/Place-HTML-files-inside-one-%27html%27-folder-relative-to-java-file-tp16323316p16344153.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
> >
> >
> >
>
> --
> View this message in context: http://www.nabble.com/Place-HTML-files-inside-one-%27html%27-folder-relative-to-java-file-tp16323316p16345103.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: Place HTML files inside one 'html' folder relative to java file
Posted by Nino Saturnino Martinez Vazquez Wael <ni...@jayway.dk>.
Then I thing that someone should write one and put it in wicket
extensions..:)
Jonathan Locke wrote:
> of course. i'm just saying this could be in core rather than having
> end-users implement it. it seems like a very reasonable pattern to add in
> wicket 1.5.
>
>
> igor.vaynberg wrote:
>
>> why would it change the api? write the iresourcestreamlocator and add
>> it to our compound one...
>>
>> -igor
>>
>> On Thu, Mar 27, 2008 at 6:45 PM, Jonathan Locke
>> <jo...@gmail.com> wrote:
>>
>>> you know, i've kindof wanted this feature for quite a while. does
>>> anyone
>>> else out there care? we could maybe add it to the wish list. i don't
>>> think
>>> it would add anything to the API. the default markup location mechanism
>>> would just search a subfolder named after the markup type. might be
>>> nice to
>>> do the same thing with properties so we could put all those
>>> Application_xx.properties files in a folder.
>>>
>>> jon
>>>
>>>
>>>
>>> Toscano wrote:
>>> >
>>> > Hello,
>>> >
>>> > I have been looking at messages, examples and wiki, but I couldn't
>>> make
>>> > this to work...
>>> >
>>> > I have one file: home.java, and around 26 language dependant html
>>> files
>>> > (home.html, home_es.html, home_ja.html...). What I want to do is
>>> create a
>>> > folder called 'html' and put the html files there.
>>> >
>>> > For example:
>>> >
>>> > Application/Registration/Register.java
>>> > Application/Registration/html/Register.html
>>> > Application/Registration/html/Register_es.html
>>> > ...
>>> >
>>> > I tried this solution:
>>> >
>>> http://cwiki.apache.org/confluence/display/WICKET/Control+where+HTML+files+are+loaded+from
>>> >
>>> > And added "/html" as resourceFinder, but still is not working.
>>> >
>>> > Any ideas?
>>> >
>>> > Thank you so much for your time and help,
>>> > Oskar
>>> >
>>> >
>>> >
>>> >
>>> >
>>> >
>>> >
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Place-HTML-files-inside-one-%27html%27-folder-relative-to-java-file-tp16323316p16344153.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
>>
>>
>>
>>
>
>
--
-Wicket for love
Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Place HTML files inside one 'html' folder relative to java file
Posted by Jonathan Locke <jo...@gmail.com>.
of course. i'm just saying this could be in core rather than having
end-users implement it. it seems like a very reasonable pattern to add in
wicket 1.5.
igor.vaynberg wrote:
>
> why would it change the api? write the iresourcestreamlocator and add
> it to our compound one...
>
> -igor
>
> On Thu, Mar 27, 2008 at 6:45 PM, Jonathan Locke
> <jo...@gmail.com> wrote:
>>
>>
>> you know, i've kindof wanted this feature for quite a while. does
>> anyone
>> else out there care? we could maybe add it to the wish list. i don't
>> think
>> it would add anything to the API. the default markup location mechanism
>> would just search a subfolder named after the markup type. might be
>> nice to
>> do the same thing with properties so we could put all those
>> Application_xx.properties files in a folder.
>>
>> jon
>>
>>
>>
>> Toscano wrote:
>> >
>> > Hello,
>> >
>> > I have been looking at messages, examples and wiki, but I couldn't
>> make
>> > this to work...
>> >
>> > I have one file: home.java, and around 26 language dependant html
>> files
>> > (home.html, home_es.html, home_ja.html...). What I want to do is
>> create a
>> > folder called 'html' and put the html files there.
>> >
>> > For example:
>> >
>> > Application/Registration/Register.java
>> > Application/Registration/html/Register.html
>> > Application/Registration/html/Register_es.html
>> > ...
>> >
>> > I tried this solution:
>> >
>> http://cwiki.apache.org/confluence/display/WICKET/Control+where+HTML+files+are+loaded+from
>> >
>> > And added "/html" as resourceFinder, but still is not working.
>> >
>> > Any ideas?
>> >
>> > Thank you so much for your time and help,
>> > Oskar
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Place-HTML-files-inside-one-%27html%27-folder-relative-to-java-file-tp16323316p16344153.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
>
>
>
--
View this message in context: http://www.nabble.com/Place-HTML-files-inside-one-%27html%27-folder-relative-to-java-file-tp16323316p16345103.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: Place HTML files inside one 'html' folder relative to java file
Posted by Igor Vaynberg <ig...@gmail.com>.
why would it change the api? write the iresourcestreamlocator and add
it to our compound one...
-igor
On Thu, Mar 27, 2008 at 6:45 PM, Jonathan Locke
<jo...@gmail.com> wrote:
>
>
> you know, i've kindof wanted this feature for quite a while. does anyone
> else out there care? we could maybe add it to the wish list. i don't think
> it would add anything to the API. the default markup location mechanism
> would just search a subfolder named after the markup type. might be nice to
> do the same thing with properties so we could put all those
> Application_xx.properties files in a folder.
>
> jon
>
>
>
> Toscano wrote:
> >
> > Hello,
> >
> > I have been looking at messages, examples and wiki, but I couldn't make
> > this to work...
> >
> > I have one file: home.java, and around 26 language dependant html files
> > (home.html, home_es.html, home_ja.html...). What I want to do is create a
> > folder called 'html' and put the html files there.
> >
> > For example:
> >
> > Application/Registration/Register.java
> > Application/Registration/html/Register.html
> > Application/Registration/html/Register_es.html
> > ...
> >
> > I tried this solution:
> > http://cwiki.apache.org/confluence/display/WICKET/Control+where+HTML+files+are+loaded+from
> >
> > And added "/html" as resourceFinder, but still is not working.
> >
> > Any ideas?
> >
> > Thank you so much for your time and help,
> > Oskar
> >
> >
> >
> >
> >
> >
> >
>
> --
> View this message in context: http://www.nabble.com/Place-HTML-files-inside-one-%27html%27-folder-relative-to-java-file-tp16323316p16344153.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: Place HTML files inside one 'html' folder relative to java file
Posted by Jonathan Locke <jo...@gmail.com>.
you know, i've kindof wanted this feature for quite a while. does anyone
else out there care? we could maybe add it to the wish list. i don't think
it would add anything to the API. the default markup location mechanism
would just search a subfolder named after the markup type. might be nice to
do the same thing with properties so we could put all those
Application_xx.properties files in a folder.
jon
Toscano wrote:
>
> Hello,
>
> I have been looking at messages, examples and wiki, but I couldn't make
> this to work...
>
> I have one file: home.java, and around 26 language dependant html files
> (home.html, home_es.html, home_ja.html...). What I want to do is create a
> folder called 'html' and put the html files there.
>
> For example:
>
> Application/Registration/Register.java
> Application/Registration/html/Register.html
> Application/Registration/html/Register_es.html
> ...
>
> I tried this solution:
> http://cwiki.apache.org/confluence/display/WICKET/Control+where+HTML+files+are+loaded+from
>
> And added "/html" as resourceFinder, but still is not working.
>
> Any ideas?
>
> Thank you so much for your time and help,
> Oskar
>
>
>
>
>
>
>
--
View this message in context: http://www.nabble.com/Place-HTML-files-inside-one-%27html%27-folder-relative-to-java-file-tp16323316p16344153.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: Place HTML files inside one 'html' folder relative to java file
Posted by Igor Vaynberg <ig...@gmail.com>.
On Thu, Mar 27, 2008 at 6:16 PM, Toscano <ko...@gmail.com> wrote:
>
> Hi Igor,
>
> Thank you for your answer although I'm afraid I have no idea on how to do
> it... so I will just leave as it is.
>
> I thought that it was easier!
how much easier can it be? you implement a simple interface and
register it with resource settings...
-igor
>
> Thanks,
> Oskar
>
>
>
>
>
>
>
>
>
> igor.vaynberg wrote:
> >
> > you need to implement your own IResourceStreamLocator and register it
> > in resource settings
> >
> > -igor
> >
> >
> > On Thu, Mar 27, 2008 at 12:37 AM, Toscano <ko...@gmail.com> wrote:
> >>
> >> Hello,
> >>
> >> I have been looking at messages, examples and wiki, but I couldn't make
> >> this
> >> to work...
> >>
> >> I have one file: home.java, and around 26 language dependant html files
> >> (home.html, home_es.html, home_ja.html...). What I want to do is create
> >> a
> >> folder called 'html' and put the html files there.
> >>
> >> For example:
> >>
> >> Application/Registration/Register.java
> >> Application/Registration/html/Register.html
> >> Application/Registration/html/Register_es.html
> >> ...
> >>
> >> I tried this solution:
> >>
> >> http://cwiki.apache.org/confluence/display/WICKET/Control+where+HTML+files+are+loaded+from
> >>
> >> And added "/html" as resourceFinder, but still is not working.
> >>
> >> Any ideas?
> >>
> >> Thank you so much for your time and help,
> >> Oskar
> >>
> >>
> >>
> >>
> >>
> >>
> >> --
> >> View this message in context:
> >> http://www.nabble.com/Place-HTML-files-inside-one-%27html%27-folder-relative-to-java-file-tp16323316p16323316.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
> >
> >
> >
>
> --
> View this message in context: http://www.nabble.com/Place-HTML-files-inside-one-%27html%27-folder-relative-to-java-file-tp16323316p16343707.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: Place HTML files inside one 'html' folder relative to java file
Posted by Toscano <ko...@gmail.com>.
Hi Igor,
Thank you for your answer although I'm afraid I have no idea on how to do
it... so I will just leave as it is.
I thought that it was easier!
Thanks,
Oskar
igor.vaynberg wrote:
>
> you need to implement your own IResourceStreamLocator and register it
> in resource settings
>
> -igor
>
>
> On Thu, Mar 27, 2008 at 12:37 AM, Toscano <ko...@gmail.com> wrote:
>>
>> Hello,
>>
>> I have been looking at messages, examples and wiki, but I couldn't make
>> this
>> to work...
>>
>> I have one file: home.java, and around 26 language dependant html files
>> (home.html, home_es.html, home_ja.html...). What I want to do is create
>> a
>> folder called 'html' and put the html files there.
>>
>> For example:
>>
>> Application/Registration/Register.java
>> Application/Registration/html/Register.html
>> Application/Registration/html/Register_es.html
>> ...
>>
>> I tried this solution:
>>
>> http://cwiki.apache.org/confluence/display/WICKET/Control+where+HTML+files+are+loaded+from
>>
>> And added "/html" as resourceFinder, but still is not working.
>>
>> Any ideas?
>>
>> Thank you so much for your time and help,
>> Oskar
>>
>>
>>
>>
>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Place-HTML-files-inside-one-%27html%27-folder-relative-to-java-file-tp16323316p16323316.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
>
>
>
--
View this message in context: http://www.nabble.com/Place-HTML-files-inside-one-%27html%27-folder-relative-to-java-file-tp16323316p16343707.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: Place HTML files inside one 'html' folder relative to java file
Posted by Igor Vaynberg <ig...@gmail.com>.
you need to implement your own IResourceStreamLocator and register it
in resource settings
-igor
On Thu, Mar 27, 2008 at 12:37 AM, Toscano <ko...@gmail.com> wrote:
>
> Hello,
>
> I have been looking at messages, examples and wiki, but I couldn't make this
> to work...
>
> I have one file: home.java, and around 26 language dependant html files
> (home.html, home_es.html, home_ja.html...). What I want to do is create a
> folder called 'html' and put the html files there.
>
> For example:
>
> Application/Registration/Register.java
> Application/Registration/html/Register.html
> Application/Registration/html/Register_es.html
> ...
>
> I tried this solution:
> http://cwiki.apache.org/confluence/display/WICKET/Control+where+HTML+files+are+loaded+from
>
> And added "/html" as resourceFinder, but still is not working.
>
> Any ideas?
>
> Thank you so much for your time and help,
> Oskar
>
>
>
>
>
>
> --
> View this message in context: http://www.nabble.com/Place-HTML-files-inside-one-%27html%27-folder-relative-to-java-file-tp16323316p16323316.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