with SharedResources.putClassAlias() you can make sure that packages are not
exposed.
also you can mount WebApplication.mountSharedResouce() for mounting a
resourekey on a specific string.

also i would always keep the Page.html and the Page.properties besides the
java code that is much easier
and if you are used to it you are not going back.

johan


On 5/10/07, ali <[EMAIL PROTECTED]> wrote:

finally i come in folling dir structure for web app that i think more like
it while develpment with Wicket

webroot/
     WEB-INF/
         classes/  // output .calss files
         lib/
         web.xml
         myresources // all types of resources (non .java and *.java)

can "sourceFolder" param  point to dir out of root-dir web app , i give
0.5% possibilty , try , see NOT

i want
     1- Wicket Assistant plugin (maybe randomly) conform recommended
aproach of wicket team (about put html/propeties in same palce of code of
components.)
         this mean it only can jump to partner file if both file are same
place.
     2- IDEA can find relative resources (image, css, js) of html page
         this means that relative resources must put in dir of html page
(dirctly or indirectly)
     3- Dream can preview a html page with its relative resources
        this mean that either use BASE tag or must be like 2
     4-to avoid after each edit on resources, compile/copy them to classes
dir , i tempt put them in "classes" dir
         1- BUT i like put my hardly-generated resources in output dir
(classes) , because maybe i mistakenly turn on/click switch so clean
output dir
             i informed there is a init param named "sourceFolder" tell
wicket instead of default "classes" dir , load resources from my folder
                 a wannig point : because resources+markup now move out
WEB-INF to root dir web app
                     they avialable for all user
                         but sice servlet not hit on request to them
                             so only static resources and html templates
(not populated with data by wicket) avialable for all user
                                 do i must worry about this topic ?

seem that if i put html and its relative static resource in same place of
code of component , than above three wish will fullfill

meanwhile wicket tell wicket:link (in wicket:head in component' markup)
generate/contribute url of relative resource in respect to package
structure of component

     in form_input example page , use datapicker : (wicket:link is markup
alternative of JavaScriptReference)

         markup :
             <wicket:head>
                 <script wicket:id="calendarMain" type="text/javascript"
src="calendar.js"></script>
             </wicket:head>
         code :

                add(new JavaScriptReference("calendarMain",
DatePicker.class,
"calendar.js"));
             // calendar.js and DataPicker.html and DatePicker.class are
in
same place.

         or
                  <wicket:head>
                     <wicket:link>
                         <script type="text/javascript"
src="focus.js"></script>
                     </wicket:link>
                 </wicket:head>

         output :

                <script type="text/javascript"

src="/wicket-examples/forminput/resources/wicket.extensions.markup.html.datepicker.DatePicker/calendar.js"></script>

     but i see if this component be top level (page) , usage of
wicket:link
no has effect.
             page markup
                  <head>
                     <wicket:link>
                         <script type="text/javascript"
src="focus.js"></script>
                     </wicket:link>
                 </head>

             final markup

                 <head>
                         <script type="text/javascript"
src="/my_context/focus.js"></script>
                 </head>

             do it make sense that want instead :

                 src="/my_context/myresources/my/package/Page1/focus.js"

                     (can instead only context path also servlet path
prepend so them hit servlet)

in this way , i see a problem : static resource reveal package structure
of code in markup
     but since for dynamic resources , hit servlet , it can use alias
names
for them (not remmember wikcet term , mayber mount , encode/decode).

i waiting for your EXCELLENT feedback guide me .

very thanks


--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to