[Wicket-user] Changing validation rules on the fly

2007-05-31 Thread John RDF

I have a complex form split into panels in a wizard and some validation
requirements in a panel change depend ing on changes in the model made by
previous panels.

I was expecting to be able to remove one type of validator previously added
and add a new one that covers the changed circumstances but there seems to
be no remove() method only add().

I wondered why there appears to be no way to remove one or all validators?
-- 
View this message in context: 
http://www.nabble.com/Changing-validation-rules-on-the-fly-tf3847201.html#a10896255
Sent from the Wicket - User mailing list archive at Nabble.com.


-
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


Re: [Wicket-user] Id is -relative_path_prefix1 after upgrade to 1.3 snapshot

2007-05-14 Thread John RDF

It might be difficult for me to produce a reliable test case for this as it
seems to happen only in some environments. The same project checked out on
one machine works and another 2 it doesn't. I will continue to attempt to
isolate the circumstances but I suspect its one of those nasty
'order-of-events' type of problem.


igor.vaynberg wrote:
 
 i think this is due to our latest url refactor. please create a jira issue
 and attach markup/html or a quickstart that reproduces the problem.
 
 -igor
 
 
 On 5/11/07, John RDF [EMAIL PROTECTED] wrote:


 I am currently getting markup exceptions that were OK in 1.2.6. The login
 panel component does exist as a div in the html and worked fine before.
 What
 worries me is that the component thinks its id is
 -relative_path_prefix1
 not login. Where did this come from?

 Unable to find component with id 'login' in [MarkupContainer [Component
 id
 =
 -relative_path_prefix1, page =
 com.rdf.datacol.tenantchecker.presentation.brochureware.Home, path =
 1:_body:-relative_path_prefix1.WebMarkupContainer, isVisible = true,
 isVersioned = true]]. This means that you declared wicket:id=login in
 your
 markup, but that you either did not add the component to your page at
 all,
 or that the hierarchy does not match.

 Any pointers?

 --
 View this message in context:
 http://www.nabble.com/Id-is-%22-relative_path_prefix1%22-after-upgrade-to-1.3-snapshot-tf3727626.html#a10432612
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 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
 
 

-- 
View this message in context: 
http://www.nabble.com/Id-is-%22-relative_path_prefix1%22-after-upgrade-to-1.3-snapshot-tf3727626.html#a10601132
Sent from the Wicket - User mailing list archive at Nabble.com.


-
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


[Wicket-user] Id is -relative_path_prefix1 after upgrade to 1.3 snapshot

2007-05-11 Thread John RDF

I am currently getting markup exceptions that were OK in 1.2.6. The login
panel component does exist as a div in the html and worked fine before. What
worries me is that the component thinks its id is -relative_path_prefix1
not login. Where did this come from?

Unable to find component with id 'login' in [MarkupContainer [Component id =
-relative_path_prefix1, page =
com.rdf.datacol.tenantchecker.presentation.brochureware.Home, path =
1:_body:-relative_path_prefix1.WebMarkupContainer, isVisible = true,
isVersioned = true]]. This means that you declared wicket:id=login in your
markup, but that you either did not add the component to your page at all,
or that the hierarchy does not match.

Any pointers?

-- 
View this message in context: 
http://www.nabble.com/Id-is-%22-relative_path_prefix1%22-after-upgrade-to-1.3-snapshot-tf3727626.html#a10432612
Sent from the Wicket - User mailing list archive at Nabble.com.


-
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


Re: [Wicket-user] Reusable Panels/Nested Forms/Models and weird behaviour

2007-05-03 Thread John RDF

Thanks Igor and I am curious. Why is it nasty in your opinion? Which parts? I
am open to trying other ways that I am not aware of. This is not how I
originally wanted to implement it but I have tried many ways so far
(different models on different components in the hierarchy,
nesting/inheriting models etc) and this is the closest to working so far.
Other ways I tried which seemed more elegant had more serious problems in
practice especially when compounding and nesting panels more times which I
need.

John


igor.vaynberg wrote:
 
 although that is some nasty code wrt to wicket, i dont see why anything
 would go wrong. try and replicate it in a quickstart and someone will go
 through it.
 
 -igor
 
 
 On 5/2/07, John RDF [EMAIL PROTECTED] wrote:

 I am still having real trouble making truly reusable panels for domain
 objects that work consistently without quirky behaviour. I attach my code
 for an address panel. It contains a form as it has buttons for looking up
 streets from the postcode. This panel needs to be embedded with multiple
 instances in same page and/or other forms and panels. The lookup etc
 works
 except it has some strange side effects. When I first enter a postcode
 and
 press the lookup button, all the other postcode fields are populated
 further
 down the page. Then when I select an address from the now populated drop
 down list, and then press use selected button, all the remaining fields
 of
 all other address forms also get populated! This weird behaviour only
 occurs
 in a downwards direction thoughout the page and only when the user has
 not
 already entered something in a field. Can people please look at the code
 below. I cannot see why it should behave this way.
 AddressPanel.javahttp://www.nabble.com/file/8180/AddressPanel.java
 AddressPanel.html http://www.nabble.com/file/8181/AddressPanel.html
 AddressDO.java http://www.nabble.com/file/8182/AddressDO.java The form
 that adds these panels does it as below add(new
 AddressPanel(proposedAddress,
 getCreditCheckDTO().getProposedAddress()));
 add(new AddressPanel(currentAddress,
 getCreditCheckDTO().getCurrentAddress())); add(new
 AddressPanel(previousAddress,
 getCreditCheckDTO().getPreviousAddress()));
 The form has a compound property model has a pojo for its model object.
 This
 is returned by getCreditCheckDTO(). Thanks in advance, John
 --
 View this message in context: Reusable Panels/Nested Forms/Models and
 weird
 behaviourhttp://www.nabble.com/Reusable-Panels-Nested-Forms-Models-and-weird-behaviour-tf3680964.html#a10287153
 Sent from the Wicket - User mailing list
 archivehttp://www.nabble.com/Wicket---User-f13976.htmlat
 Nabble.com.

 -
 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
 
 

-- 
View this message in context: 
http://www.nabble.com/Reusable-Panels-Nested-Forms-Models-and-weird-behaviour-tf3680964.html#a10301142
Sent from the Wicket - User mailing list archive at Nabble.com.


-
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


[Wicket-user] RadioGroup.. Correct usage (with enum values)?

2007-05-03 Thread John RDF

I have problems with radio groups. According to docs and tutorials the
group's model object should be set to the selected radio model object.
However, in my case (using enum values which must be set on an enum
property) the group's model object always seems to be null. I based my code
on the tutorial at http://cwiki.apache.org/WICKET/using-radiogroups.html

My code below produces..

test was pressed:null, null, Tenant, CompanyTenant

//
RadioGroup group = new RadioGroup(reportType, new
PropertyModel(getReportTenantDTO(), reportType));
Radio radIndividual = new Radio(individual, new Model(ReportType.Tenant));
Radio radCompany = new Radio(company, new
Model(ReportType.CompanyTenant));
group.add(radIndividual);
Button test = new Button(test){
protected void onSubmit(){
info(test was pressed: + 
getReportTenantDTO().getReportType() + , 
+
 group.getModelObject() + ,  + 
radIndividual.getModelObject() + , 
+ radCompany.getModelObject());
}
};





-- 
View this message in context: 
http://www.nabble.com/RadioGroup..-Correct-usage-%28with-enum-values%29--tf3685397.html#a10301382
Sent from the Wicket - User mailing list archive at Nabble.com.


-
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


Re: [Wicket-user] Reusable Panels/Nested Forms/Models and weird behaviour

2007-05-03 Thread John RDF

The drop down list does not directly relate to the form model (as the visible
value is a user readable summary not the data structure I need) and so I
need to keep a reference to something even if its a model or two. Take a
look at this version which still works with same quirks.. Any better?

http://www.nabble.com/file/8198/AddressPanel.java AddressPanel.java 

John


Eelco Hillenius wrote:
 
 One thing that I'm wondering is why you declare your components as
 member variables. It's not really wrong, but it's more code without
 any advantage, and potentially scope creep (in that you might be
 tempted to use the components directly rather then to work through
 models.
 
 Eelco
 
 On 5/3/07, John RDF [EMAIL PROTECTED] wrote:

 Thanks Igor and I am curious. Why is it nasty in your opinion? Which
 parts? I
 am open to trying other ways that I am not aware of. This is not how I
 originally wanted to implement it but I have tried many ways so far
 (different models on different components in the hierarchy,
 nesting/inheriting models etc) and this is the closest to working so far.
 Other ways I tried which seemed more elegant had more serious problems in
 practice especially when compounding and nesting panels more times which
 I
 need.

 John


 igor.vaynberg wrote:
 
  although that is some nasty code wrt to wicket, i dont see why anything
  would go wrong. try and replicate it in a quickstart and someone will
 go
  through it.
 
  -igor
 
 
  On 5/2/07, John RDF [EMAIL PROTECTED] wrote:
 
  I am still having real trouble making truly reusable panels for domain
  objects that work consistently without quirky behaviour. I attach my
 code
  for an address panel. It contains a form as it has buttons for looking
 up
  streets from the postcode. This panel needs to be embedded with
 multiple
  instances in same page and/or other forms and panels. The lookup etc
  works
  except it has some strange side effects. When I first enter a postcode
  and
  press the lookup button, all the other postcode fields are populated
  further
  down the page. Then when I select an address from the now populated
 drop
  down list, and then press use selected button, all the remaining
 fields
  of
  all other address forms also get populated! This weird behaviour only
  occurs
  in a downwards direction thoughout the page and only when the user has
  not
  already entered something in a field. Can people please look at the
 code
  below. I cannot see why it should behave this way.
  AddressPanel.javahttp://www.nabble.com/file/8180/AddressPanel.java
  AddressPanel.html http://www.nabble.com/file/8181/AddressPanel.html
  AddressDO.java http://www.nabble.com/file/8182/AddressDO.java The
 form
  that adds these panels does it as below add(new
  AddressPanel(proposedAddress,
  getCreditCheckDTO().getProposedAddress()));
  add(new AddressPanel(currentAddress,
  getCreditCheckDTO().getCurrentAddress())); add(new
  AddressPanel(previousAddress,
  getCreditCheckDTO().getPreviousAddress()));
  The form has a compound property model has a pojo for its model
 object.
  This
  is returned by getCreditCheckDTO(). Thanks in advance, John
  --
  View this message in context: Reusable Panels/Nested Forms/Models and
  weird
 
 behaviourhttp://www.nabble.com/Reusable-Panels-Nested-Forms-Models-and-weird-behaviour-tf3680964.html#a10287153
  Sent from the Wicket - User mailing list
  archivehttp://www.nabble.com/Wicket---User-f13976.htmlat
  Nabble.com.
 
 
 -
  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
 
 

 --
 View this message in context:
 http://www.nabble.com/Reusable-Panels-Nested-Forms-Models-and-weird-behaviour-tf3680964.html#a10301142
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 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] Test Case - Nested Forms/Models and weird behaviour

2007-05-03 Thread John RDF

OK. Below is a test case quick start application eclipse project that
produces the quirks I have been describing.

ftp://ftpuser:[EMAIL PROTECTED]/wicket-quickstart-1.2.6.rar

The test procedure to reproduce strange behaviour is as follows.

1. Enter postcode in first address.
2. Hit address search (you will then see your postcode appearing in other
fields unexpectedly)
3. Select first option from first drop down and hit use address (This will
appear to work apart from the extraneous postcodes)
4. Select second option from first drop down and hit use address (then all
addresses will be filled unexpectedly)

I suspect this behaviour relates to nested forms as without the outer form
it appears to work as expected. I am also beginning to suspect that this may
be the root of my other problem with radio groups behaving oddly.

Hope this helps and thanks,
John



John RDF wrote:
 
 I am still having real trouble making truly reusable panels for domain
 objects that work consistently without quirky behaviour.
 
 I attach my code for an address panel. It contains a form as it has
 buttons for looking up streets from the postcode. This panel needs to be
 embedded with multiple instances in same page and/or other forms and
 panels. The lookup etc works except it has some strange side effects. When
 I first enter a postcode and press the lookup button, all the other
 postcode fields are populated further down the page. Then when I select an
 address from the now populated drop down list, and then press use selected
 button, all the remaining fields of all other address forms also get
 populated!
 
 This weird behaviour only occurs in a downwards direction thoughout the
 page and only when the user has not already entered something in a field.
 
 Can people please look at the code below. I cannot see why it should
 behave this way.
 
  http://www.nabble.com/file/8180/AddressPanel.java AddressPanel.java 
 http://www.nabble.com/file/8181/AddressPanel.html AddressPanel.html 
 http://www.nabble.com/file/8182/AddressDO.java AddressDO.java 
 
 The form that adds these panels does it as below
 
 add(new AddressPanel(proposedAddress,
 getCreditCheckDTO().getProposedAddress()));
 add(new AddressPanel(currentAddress,
 getCreditCheckDTO().getCurrentAddress()));
 add(new AddressPanel(previousAddress,
 getCreditCheckDTO().getPreviousAddress()));
 
 The form has a compound property model has a pojo for its model object.
 This is returned by getCreditCheckDTO().
 
 Thanks in advance,
 John
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Reusable-Panels-Nested-Forms-Models-and-weird-behaviour-tf3680964.html#a10305933
Sent from the Wicket - User mailing list archive at Nabble.com.


-
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


Re: [Wicket-user] RadioGroup.. Correct usage (with enum values)?

2007-05-03 Thread John RDF

Igor,

I really suspect it is also related to my other problem post (see
AddressPanel test case) with nested forms and models working incorrectly
inside, as when I put the same radio button code outside of our app (which
needs nested forms and this is a bit of a show stopper for us) the radio
buttons then function correctly. I willl add radio buttons to my previous
test to confirm if its related when I get a chance. I am also downloading
and building 1.3 to see if something there has fixed it since 1.2.6..

Thanks,
John


igor.vaynberg wrote:
 
 code looks ok, pretty strange. can you create a quickstart so we can see
 what goes wrong?
 
 -igor
 
 On 5/3/07, John RDF [EMAIL PROTECTED] wrote:


 I have problems with radio groups. According to docs and tutorials the
 group's model object should be set to the selected radio model object.
 However, in my case (using enum values which must be set on an enum
 property) the group's model object always seems to be null. I based my
 code
 on the tutorial at http://cwiki.apache.org/WICKET/using-radiogroups.html

 My code below produces..

 test was pressed:null, null, Tenant, CompanyTenant

 //
 RadioGroup group = new RadioGroup(reportType, new
 PropertyModel(getReportTenantDTO(), reportType));
 Radio radIndividual = new Radio(individual, new Model(ReportType.Tenant
 ));
 Radio radCompany = new Radio(company, new
 Model(ReportType.CompanyTenant));
 group.add(radIndividual);
 Button test = new Button(test){
 protected void onSubmit(){
 info(test was pressed: +
 getReportTenantDTO().getReportType() + , 
 +
  group.getModelObject() + ,  +
 radIndividual.getModelObject() + , 
 + radCompany.getModelObject());
 }
 };





 --
 View this message in context:
 http://www.nabble.com/RadioGroup..-Correct-usage-%28with-enum-values%29--tf3685397.html#a10301382
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 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
 
 

-- 
View this message in context: 
http://www.nabble.com/RadioGroup..-Correct-usage-%28with-enum-values%29--tf3685397.html#a10308615
Sent from the Wicket - User mailing list archive at Nabble.com.


-
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


[Wicket-user] Reusable Panels/Nested Forms/Models and weird behaviour

2007-05-02 Thread John RDF

I am still having real trouble making truly reusable panels for domain
objects that work consistently without quirky behaviour.

I attach my code for an address panel. It contains a form as it has buttons
for looking up streets from the postcode. This panel needs to be embedded
with multiple instances in same page and/or other forms and panels. The
lookup etc works except it has some strange side effects. When I first enter
a postcode and press the lookup button, all the other postcode fields are
populated further down the page. Then when I select an address from the now
populated drop down list, and then press use selected button, all the
remaining fields of all other address forms also get populated!

This weird behaviour only occurs in a downwards direction thoughout the page
and only when the user has not already entered something in a field.

Can people please look at the code below. I cannot see why it should behave
this way.

http://www.nabble.com/file/8180/AddressPanel.java AddressPanel.java 
http://www.nabble.com/file/8181/AddressPanel.html AddressPanel.html 
http://www.nabble.com/file/8182/AddressDO.java AddressDO.java 

The form that adds these panels does it as below

add(new AddressPanel(proposedAddress,
getCreditCheckDTO().getProposedAddress()));
add(new AddressPanel(currentAddress,
getCreditCheckDTO().getCurrentAddress()));  
add(new AddressPanel(previousAddress,
getCreditCheckDTO().getPreviousAddress()));

The form has a compound property model has a pojo for its model object. This
is returned by getCreditCheckDTO().

Thanks in advance,
John



-- 
View this message in context: 
http://www.nabble.com/Reusable-Panels-Nested-Forms-Models-and-weird-behaviour-tf3680964.html#a10287153
Sent from the Wicket - User mailing list archive at Nabble.com.
-
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


[Wicket-user] Resuable Panels and Model nesting

2007-05-01 Thread John RDF

I am trying to create Panels that represent each of my domain objects i.e.
Address, Name, Referee (Contains Name and Address) etc..

I then have a CompoundPropertyModel over a value object which represents the
entire form. In this I want to map its properties (and sub properties etc)..
I am having trouble finding ways of nesting models or a single model to get
the desired behaviour..

This is the hierarchy of Components I want is

MyForm
--NamePanel
--AddressPanel
--RefereePanel
NamePanel
RefereePanel
email:TextField
telephone:TextField

The panels contain simple TextFields (not shown)

The hierarchy of value objects is

--MyFormVO
name:NameDO
address:AddressDO
referee:RefereeDO
--NameDO
--AddressDO

What would be the most effective nesting of models?

As the panels need to be reusable and modifiable at a later date I don't
want to specify any properties in parents or children in pages/forms..

I was hoping that the component names would drill down depending on nesting
but it seems that it is trying to find the expression title rather than
name.title or referee.name.title which is what I would hope nesting a
panels inside the form.

Is there a model that does this for nested panels?












public MainForm(final String componentName) {
super(componentName, new CompoundPropertyModel(new 
FormValueObject()));
...

add(new NamePanel(name, new PropertyModel(getModel(), 
name)));
add(new AddressPanel(currentAddress, new 
PropertyModel(getModel(),
currentAddress)));

In the name and address panels I have used a similar approach..





-- 
View this message in context: 
http://www.nabble.com/Resuable-Panels-and-Model-nesting-tf3675608.html#a10270774
Sent from the Wicket - User mailing list archive at Nabble.com.


-
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


[Wicket-user] Nested Forms and onSubmit()?

2007-04-27 Thread John RDF

I have nested forms and need them for the following reason..

I have a reusable panel for addresses which has its own form lookup from
postcode submit button to auto fill the address.

This panel is used in another form 3 times which needs addresses for
different people.

My problem is that the lookup button on each address panel is also causing
submission of the outer form which I think should be incorrect behaviour.

Is there a way to do this in wicket and get my expected behaviour (only one
form submitted)?

-- 
View this message in context: 
http://www.nabble.com/Nested-Forms-and-onSubmit%28%29--tf3657476.html#a10218520
Sent from the Wicket - User mailing list archive at Nabble.com.


-
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


Re: [Wicket-user] Nested Forms and onSubmit()?

2007-04-27 Thread John RDF

Yes it does. I have found out what was happening. It turned out that the web
designer had put some javascript in that was confusing the matter with the
outer form. I change the javascript onClick() to be on the input rather than
the form and it worked fine.

Thanks for the advice and sorry for the trouble.


Martijn Dashorst wrote:
 
 On 4/27/07, jan_bar [EMAIL PROTECTED] wrote:
 I think that you cannot nest form in HTML. You have to nest them with
 CSS. This will also solve your trouble with form submits - I think that
 the
 browser simply ignores the nested form tags.
 
 Wicket supports nested forms. The inner form tags are replaced with
  elements. This is a component framework, where you expect forms
 to be able to be nested (form on a reusable panel anyone?).
 
 Martijn
 -- 
 Learn Wicket at ApacheCon Europe: http://apachecon.com
 Join the wicket community at irc.freenode.net: ##wicket
 Wicket 1.2.6 contains a very important fix. Download Wicket now!
 http://wicketframework.org
 
 -
 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
 
 

-- 
View this message in context: 
http://www.nabble.com/Nested-Forms-and-onSubmit%28%29--tf3657476.html#a10220155
Sent from the Wicket - User mailing list archive at Nabble.com.


-
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


[Wicket-user] Wicket generating invalid URLs or am I doing it wring?

2007-04-17 Thread John RDF

In my app I need to leave wicket temporarily to detour to another site and
then come back to a page in my wicket app. I used the following code to
generate the return URL but it seems to generate an incomplete URL with some
illegal characters in it also..

String returnURL = urlFor(getPageMap(), Score.class, new
PageParameters(applicantCheckId= + applicantCheckId)).toString();

Produces..

/quickstart/app?wicket:bookmarkablePage=:com.rdf.datacol.tenantchecker.presentation.performcheck.Scoreamp;applicantCheckId=21

Which has no host and amp; in it which prevents the link from working.

How should I be generating a complete and valid link back to a wicket page?
-- 
View this message in context: 
http://www.nabble.com/Wicket-generating-invalid-URLs-or-am-I-doing-it-wring--tf3589782.html#a10032278
Sent from the Wicket - User mailing list archive at Nabble.com.


-
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


Re: [Wicket-user] Wicket generating invalid URLs or am I doing it wring?

2007-04-17 Thread John RDF

Thanks for your quick reply Johan.

I have worked out to avoid the escaping prob.. 

Now just how do I get the original request to find out the host I am running
on? As this has to run in multiple environments I do not want to hard code
the host.. I was expecting to be able to get the original request through
the RequestCycle or similar but can't find it..

John


Johan Compagner wrote:
 
 We never generate hosts in the url
 in wicket 1.3 we even never generate a absolute url (all urls are
 relative)
 
 and you do have the  it is just escaped that should work fine i believe
 
 johan
 
 
 On 4/17/07, John RDF [EMAIL PROTECTED] wrote:


 In my app I need to leave wicket temporarily to detour to another site
 and
 then come back to a page in my wicket app. I used the following code to
 generate the return URL but it seems to generate an incomplete URL with
 some
 illegal characters in it also..

 String returnURL = urlFor(getPageMap(), Score.class, new
 PageParameters(applicantCheckId= + applicantCheckId)).toString();

 Produces..

 /quickstart/app?wicket:bookmarkablePage=:
 com.rdf.datacol.tenantchecker.presentation.performcheck.Scoreamp
 ;applicantCheckId=21

 Which has no host and amp; in it which prevents the link from working.

 How should I be generating a complete and valid link back to a wicket
 page?
 --
 View this message in context:
 http://www.nabble.com/Wicket-generating-invalid-URLs-or-am-I-doing-it-wring--tf3589782.html#a10032278
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 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
 
 

-- 
View this message in context: 
http://www.nabble.com/Wicket-generating-invalid-URLs-or-am-I-doing-it-wring--tf3589782.html#a10033146
Sent from the Wicket - User mailing list archive at Nabble.com.


-
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


Re: [Wicket-user] Wicket generating invalid URLs or am I doing it wring?

2007-04-17 Thread John RDF

Very sorry. My IDE was being weird. It is there in the RequestCycle.. Oops..


John RDF wrote:
 
 Thanks for your quick reply Johan.
 
 I have worked out to avoid the escaping prob.. 
 
 Now just how do I get the original request to find out the host I am
 running on? As this has to run in multiple environments I do not want to
 hard code the host.. I was expecting to be able to get the original
 request through the RequestCycle or similar but can't find it..
 
 John
 
 
 Johan Compagner wrote:
 
 We never generate hosts in the url
 in wicket 1.3 we even never generate a absolute url (all urls are
 relative)
 
 and you do have the  it is just escaped that should work fine i believe
 
 johan
 
 
 On 4/17/07, John RDF [EMAIL PROTECTED] wrote:


 In my app I need to leave wicket temporarily to detour to another site
 and
 then come back to a page in my wicket app. I used the following code to
 generate the return URL but it seems to generate an incomplete URL with
 some
 illegal characters in it also..

 String returnURL = urlFor(getPageMap(), Score.class, new
 PageParameters(applicantCheckId= + applicantCheckId)).toString();

 Produces..

 /quickstart/app?wicket:bookmarkablePage=:
 com.rdf.datacol.tenantchecker.presentation.performcheck.Scoreamp
 ;applicantCheckId=21

 Which has no host and amp; in it which prevents the link from working.

 How should I be generating a complete and valid link back to a wicket
 page?
 --
 View this message in context:
 http://www.nabble.com/Wicket-generating-invalid-URLs-or-am-I-doing-it-wring--tf3589782.html#a10032278
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 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
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Wicket-generating-invalid-URLs-or-am-I-doing-it-wring--tf3589782.html#a10033269
Sent from the Wicket - User mailing list archive at Nabble.com.


-
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


Re: [Wicket-user] Wicket generating invalid URLs or am I doing it wring?

2007-04-17 Thread John RDF

Well it is there and the java doc says it returns an absolute URL but it
doesn't only the path info. So my quest continues..

Where do I get the original http servlet request so I can find the host etc?

Anyone?



John RDF wrote:
 
 Very sorry. My IDE was being weird. It is there in the RequestCycle..
 Oops..
 
 
 John RDF wrote:
 
 Thanks for your quick reply Johan.
 
 I have worked out to avoid the escaping prob.. 
 
 Now just how do I get the original request to find out the host I am
 running on? As this has to run in multiple environments I do not want to
 hard code the host.. I was expecting to be able to get the original
 request through the RequestCycle or similar but can't find it..
 
 John
 
 
 Johan Compagner wrote:
 
 We never generate hosts in the url
 in wicket 1.3 we even never generate a absolute url (all urls are
 relative)
 
 and you do have the  it is just escaped that should work fine i believe
 
 johan
 
 
 On 4/17/07, John RDF [EMAIL PROTECTED] wrote:


 In my app I need to leave wicket temporarily to detour to another site
 and
 then come back to a page in my wicket app. I used the following code to
 generate the return URL but it seems to generate an incomplete URL with
 some
 illegal characters in it also..

 String returnURL = urlFor(getPageMap(), Score.class, new
 PageParameters(applicantCheckId= + applicantCheckId)).toString();

 Produces..

 /quickstart/app?wicket:bookmarkablePage=:
 com.rdf.datacol.tenantchecker.presentation.performcheck.Scoreamp
 ;applicantCheckId=21

 Which has no host and amp; in it which prevents the link from working.

 How should I be generating a complete and valid link back to a wicket
 page?
 --
 View this message in context:
 http://www.nabble.com/Wicket-generating-invalid-URLs-or-am-I-doing-it-wring--tf3589782.html#a10032278
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 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
 
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Wicket-generating-invalid-URLs-or-am-I-doing-it-wring--tf3589782.html#a10033447
Sent from the Wicket - User mailing list archive at Nabble.com.


-
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


[Wicket-user] Post Form to different server? How?

2007-04-16 Thread John RDF

I have a form that has some hidden fields that I need to be generated
dynamically. However, I want to form submitted to an other server (world
pay). Wicket changes the form so it posts back into wicket but I want to
leave wicket page (and come back after world pay). 

How do I do this?
-- 
View this message in context: 
http://www.nabble.com/Post-Form-to-different-server--How--tf3583928.html#a10014437
Sent from the Wicket - User mailing list archive at Nabble.com.


-
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


Re: [Wicket-user] Post Form to different server? How?

2007-04-16 Thread John RDF

It turns out easy. Wicket doesn't mind if wicket hidden fields are not inside
a wicket form. So I just used wicket hidden fields to modify the form to
send to worldpay.. :)


John RDF wrote:
 
 I have a form that has some hidden fields that I need to be generated
 dynamically. However, I want to form submitted to an other server (world
 pay). Wicket changes the form so it posts back into wicket but I want to
 leave wicket page (and come back after world pay). 
 
 How do I do this?
 

-- 
View this message in context: 
http://www.nabble.com/Post-Form-to-different-server--How--tf3583928.html#a10015452
Sent from the Wicket - User mailing list archive at Nabble.com.


-
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