[Wicket-user] How to Implement Looping in wicket

2006-08-23 Thread sathya81

Hi,

I was going through the repeater examples , i just wanna know how can i
implement looping in wicket, for example i have vector populated with some
records fetched from a database , now how can loop through the vector and
display the records in the html page? I dont understand where exactly is 
the looping being implemented in any of the examples given under repeaters
section..and which is better to implement a list view or Grid View

Please help

Thanks in Advance.

--Sathya
-- 
View this message in context: 
http://www.nabble.com/How-to-Implement-Looping-in-wicket-tf2152700.html#a5945305
Sent from the Wicket - User forum at Nabble.com.


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] A weird problem with Links

2006-08-21 Thread sathya81

Hi,

I have been practising few sample examples on Wicket Framework, well i got a
strange problem with links, donttags work in wicket,?? I created an
index.html page and a home.html page, the index page on submit is directed
to home.html page. now in the home page i provided a normal html  index.html
Index  tag, but when i click on this link, iam gettting a Tomcat server
error that this page is  not found..y is this so? what has a normal href
link to do with server error?

Any help

Sathya
-- 
View this message in context: 
http://www.nabble.com/A-weird-problem-with-Links-tf2139295.html#a5903913
Sent from the Wicket - User forum at Nabble.com.


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Dropdown choices in wicket

2006-08-18 Thread sathya81

Hi, iam new to wicket, am going through the available examples, i dont
understand  how can i capture the selected option in a drop down choice in
the wicket? I checked the example tutorial given in the  ensode.net but
still i dont understand how to capture the selected value of the drop down
and display it after form submission

Plz help

one more, how to capture values from Hidden fields in wicket html page, for
labels you have Label class in wicket , similarly any provision for hidden
variable??

Thanks in advance
Sathya 
-- 
View this message in context: 
http://www.nabble.com/Dropdown-choices-in-wicket-tf2124339.html#a5860810
Sent from the Wicket - User forum at Nabble.com.


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Dropdown choices in wicket

2006-08-18 Thread sathya81

Thanq Nino,

well, iam using a model to store the data , actually i was going through the
example given in the http://ensode.net/wicket_first_look.html , where in the
author creates two models , the first model to store the normal form values
and the second model explicitly to store the dropdown selected values
, so here my doubt is if there are around 5 drop down choices in a page,
then should i create 5 models for each to store the selected values?

--Sathya


Nino Wael wrote:
 
 About the dropdown:
  
 Use a model, maybe a property model to hold the selected dropdown object.
 Property models require that there are a get and setter method for the
 supplied property. You could also use the abstractmodel and implement your
 own thing, if per say you needed to update something else on the page
 based on what the selected dropdown are.
  
 Just to sum it up, wicket does all the nifty stuff about updating the
 model that you provide so you need only do your logic.
  
 Please ask if you have more questions.
  
  
  
  
 regards Nino 
 
   -Oprindelig meddelelse- 
   Fra: [EMAIL PROTECTED] på vegne af sathya81 
   Sendt: fr 18-08-2006 09:02 
   Til: wicket-user@lists.sourceforge.net 
   Cc: 
   Emne: [Wicket-user] Dropdown choices in wicket
   
   
 
 
   Hi, iam new to wicket, am going through the available examples, i dont
   understand  how can i capture the selected option in a drop down choice
 in
   the wicket? I checked the example tutorial given in the  ensode.net but
   still i dont understand how to capture the selected value of the drop
 down
   and display it after form submission
   
   Plz help
   
   one more, how to capture values from Hidden fields in wicket html page,
 for
   labels you have Label class in wicket , similarly any provision for
 hidden
   variable??
   
   Thanks in advance
   Sathya
   --
   View this message in context:
 http://www.nabble.com/Dropdown-choices-in-wicket-tf2124339.html#a5860810
   Sent from the Wicket - User forum at Nabble.com.
   
   
   
 -
   Using Tomcat but need to do more? Need to support web services, 
 security?
   Get stuff done quickly with pre-integrated technology to make your job
 easier
   Download IBM WebSphere Application Server v.1.0.1 based on Apache
 Geronimo
   http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
   
 
 
 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job
 easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

-- 
View this message in context: 
http://www.nabble.com/Dropdown-choices-in-wicket-tf2124339.html#a5866196
Sent from the Wicket - User forum at Nabble.com.


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Internationalization support in Wicket

2006-08-17 Thread sathya81

hi Juergen,

I have gone through the examples, but i dont need that way, there they
create locale based html files, so if there are 4 locales, i need to create
4 html files for each locale, but in my i cannot do that, so i used the
wicket:message key tag. actually inthe index page ,(user login page),
wicket is loading the properties file as expected and it even displays teh
whole path in the eclipse console, but once i submit,
i direct the user to home page, this is where i get a problem, wicket is not
able to load the same properties file once again.. 

I tried to use ResouceBundle to load the properties file in Home.class but
wicket is not able to find out the path even though i hard coded it

any help?

sathya

Juergen Donnerstag wrote:
 
 Did you look at wicket-examples already? The form example and the pub
 example both suppport multiple locales. There should be no need for
 you load the properties file explicitly not should you add a locale
 variable to the session.
 
 Juergen
 
 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job
 easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

-- 
View this message in context: 
http://www.nabble.com/Internationalization-support-in-Wicket-tf2119658.html#a5846932
Sent from the Wicket - User forum at Nabble.com.


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Internationalization support in Wicket

2006-08-17 Thread sathya81

Thanq Johan, well iam able to solve my problem, but still i need to create
that number of property files based on the number of locales present, but it
wud have been better if only a single property file can be used for all the
locales...but i think its a bit silly idea to have a single property file
serving for all the locales ..any way..thanq 
my mistake was i did not create home.properties file for Home.html page. so
wicket cud not load it.



Johan Compagner wrote:
 
 you don't need to have 4 html files
 We should rewrite that FormInput example asap for 2.0
 So that it uses property files and only have 1 markup file.
 
 johan
 
 
 On 8/17/06, sathya81 [EMAIL PROTECTED] wrote:


 hi Juergen,

 I have gone through the examples, but i dont need that way, there they
 create locale based html files, so if there are 4 locales, i need to
 create
 4 html files for each locale, but in my i cannot do that, so i used the
 wicket:message key tag. actually inthe index page ,(user login page),
 wicket is loading the properties file as expected and it even displays
 teh
 whole path in the eclipse console, but once i submit,
 i direct the user to home page, this is where i get a problem, wicket is
 not
 able to load the same properties file once again..

 I tried to use ResouceBundle to load the properties file in Home.class
 but
 wicket is not able to find out the path even though i hard coded it

 any help?

 sathya

 Juergen Donnerstag wrote:
 
  Did you look at wicket-examples already? The form example and the pub
  example both suppport multiple locales. There should be no need for
  you load the properties file explicitly not should you add a locale
  variable to the session.
 
  Juergen
 
 
 -
  Using Tomcat but need to do more? Need to support web services,
 security?
  Get stuff done quickly with pre-integrated technology to make your job
  easier
  Download IBM WebSphere Application Server v.1.0.1 based on Apache
 Geronimo
 
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

 --
 View this message in context:
 http://www.nabble.com/Internationalization-support-in-Wicket-tf2119658.html#a5846932
 Sent from the Wicket - User forum at Nabble.com.


 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job
 easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache
 Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

 
 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job
 easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

-- 
View this message in context: 
http://www.nabble.com/Internationalization-support-in-Wicket-tf2119658.html#a5848594
Sent from the Wicket - User forum at Nabble.com.


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] How are properties files loaded in wicket

2006-08-16 Thread sathya81

Hello,

Iam getting used to Wicket, going through the docs available for the past
few days, I would like to know how are properties files loaded by wicket..
with reference to the Forminput example given in the list of wicket
examples, when i run this example on my eclipse, i c that on selection or
change of the locale, the .properties file of that locale is being loaded as
displayed in the eclipse console, but i dont c where the code is writtem to
load these locale specific properties files? And i tried to follow this
example for signin exampel but i cud not load the properties file here.. i
dont understand how and where is the path being set to load the properties
file?

Please help

Thanks in advance
Sathya
-- 
View this message in context: 
http://www.nabble.com/How-are-properties-files-loaded-in-wicket-tf2113575.html#a5827453
Sent from the Wicket - User forum at Nabble.com.


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How are properties files loaded in wicket

2006-08-16 Thread sathya81

well thanq Igor,if its possible, can u explain how can i do the same for the
signin example, i created a properties file with the username and password
keys and i saved this file in the same folder containing the src java files.
but wicket is searching for thisfile in some other jar file instead of this
folder.
I have put the default locale as English-US.
 
Iam getting this displayed in the console:

INFO  - PropertiesFactory  - Loading properties files from
jar:file:/E:/eclipse/workspace/wicketExample/lib/wicket-1.2.1.jar!/wicket/Application.properties

Y is wicket searching fro properties file at this location instead of the
src folder?

igor.vaynberg wrote:
 
 the properties are not loaded explicitly - when you change the locale in
 that dropdown it calls session.setlocale(locale) - the next time wicket
 renders it will look for property bundles with that locale and load them.
 
 -Igor
 
 
 On 8/15/06, sathya81 [EMAIL PROTECTED] wrote:


 Hello,

 Iam getting used to Wicket, going through the docs available for the past
 few days, I would like to know how are properties files loaded by
 wicket..
 with reference to the Forminput example given in the list of wicket
 examples, when i run this example on my eclipse, i c that on selection or
 change of the locale, the .properties file of that locale is being loaded
 as
 displayed in the eclipse console, but i dont c where the code is writtem
 to
 load these locale specific properties files? And i tried to follow this
 example for signin exampel but i cud not load the properties file here..
 i
 dont understand how and where is the path being set to load the
 properties
 file?

 Please help

 Thanks in advance
 Sathya
 --
 View this message in context:
 http://www.nabble.com/How-are-properties-files-loaded-in-wicket-tf2113575.html#a5827453
 Sent from the Wicket - User forum at Nabble.com.


 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job
 easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache
 Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

 
 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job
 easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

-- 
View this message in context: 
http://www.nabble.com/How-are-properties-files-loaded-in-wicket-tf2113575.html#a5827718
Sent from the Wicket - User forum at Nabble.com.


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How are properties files loaded in wicket

2006-08-16 Thread sathya81

Thanq very much Igor, its working now, i misplaced the file in my dir
structure.

-Sathya


igor.vaynberg wrote:
 
 wicket searches for property files basedon class hierarchy and their
 nesting
 
 lets say you have:
 
 page A - panel B - panel C
 
 wicket will then search like this
 
 A.properties
 B.properties
 C.properties
 
 then it searches the application class hierarchy:
 yourpackage.YourApplication.properties
 wicket.protocol.http.WebApplication.properties
 wicket.Application.properties -- which is what you see in the log.
 
 so perhaps the problem is you misnamed your properties file.
 
 -Igor
 
 On 8/16/06, sathya81 [EMAIL PROTECTED] wrote:


 well thanq Igor,if its possible, can u explain how can i do the same for
 the
 signin example, i created a properties file with the username and
 password
 keys and i saved this file in the same folder containing the src java
 files.
 but wicket is searching for thisfile in some other jar file instead of
 this
 folder.
 I have put the default locale as English-US.

 Iam getting this displayed in the console:

 INFO  - PropertiesFactory  - Loading properties files from
 jar:file:/E:/eclipse/workspace/wicketExample/lib/wicket-
 1.2.1.jar!/wicket/Application.properties

 Y is wicket searching fro properties file at this location instead of the
 src folder?

 igor.vaynberg wrote:
 
  the properties are not loaded explicitly - when you change the locale
 in
  that dropdown it calls session.setlocale(locale) - the next time wicket
  renders it will look for property bundles with that locale and load
 them.
 
  -Igor
 
 
  On 8/15/06, sathya81 [EMAIL PROTECTED] wrote:
 
 
  Hello,
 
  Iam getting used to Wicket, going through the docs available for the
 past
  few days, I would like to know how are properties files loaded by
  wicket..
  with reference to the Forminput example given in the list of wicket
  examples, when i run this example on my eclipse, i c that on selection
 or
  change of the locale, the .properties file of that locale is being
 loaded
  as
  displayed in the eclipse console, but i dont c where the code is
 writtem
  to
  load these locale specific properties files? And i tried to follow
 this
  example for signin exampel but i cud not load the properties file
 here..
  i
  dont understand how and where is the path being set to load the
  properties
  file?
 
  Please help
 
  Thanks in advance
  Sathya
  --
  View this message in context:
 
 http://www.nabble.com/How-are-properties-files-loaded-in-wicket-tf2113575.html#a5827453
  Sent from the Wicket - User forum at Nabble.com.
 
 
 
 -
  Using Tomcat but need to do more? Need to support web services,
 security?
  Get stuff done quickly with pre-integrated technology to make your job
  easier
  Download IBM WebSphere Application Server v.1.0.1 based on Apache
  Geronimo
 
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 
 -
  Using Tomcat but need to do more? Need to support web services,
 security?
  Get stuff done quickly with pre-integrated technology to make your job
  easier
  Download IBM WebSphere Application Server v.1.0.1 based on Apache
 Geronimo
 
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

 --
 View this message in context:
 http://www.nabble.com/How-are-properties-files-loaded-in-wicket-tf2113575.html#a5827718
 Sent from the Wicket - User forum at Nabble.com.


 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job
 easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache
 Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

 
 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job
 easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user