Re: KonaKart shopping cart integration

2010-08-03 Thread Per Lundholm
When you wrote shopping cart, I assumed it was only the widget which
presents what the customer bought and some mechanism for keeping that
in the session. KonaKart seems to be a lot more than that.

/Per

On Tue, Aug 3, 2010 at 2:35 AM, Steve Coughlan
steve_cough...@yahoo.com.au wrote:
 I've been looking for a shopping cart solution that I can properly integrate
 with wicket.  There's been a few threads on this list where people have
 indicated they were building one but as far as I know nothing has ever
 eventuated.

 I don't really want to build to whole engine from scratch so I've been
 looking around and come across konakart.  It's partially open source.
  Meaning the engine itself is closed but it has a complete (and well
 documented) integration layer.  I think this would be a good solution
 because all the backend functionality is there along with a nice admin
 panel.

 The interface is either Java or SOAP (one line of code to switch between the
 two) which means you can run your cart engine on another server if you want.

 So what I'm proposing is build a set of front-end wicket components.  I'd
 prefer a fully open source solution but in the free java space this seems to
 be the easiest solution I can find.  I really don't have time to build an
 engine from the ground up.

 So before I get going I just wanted to bounce it off the community and see
 if anyone can think of a better solution?

 I only just come across brix and I'm still trying to get my head around it.
  Any comments on whether  I should make this brix centric or pure wicket?

 p.s. If I do build these components then I will release them as LGPL...

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



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



CSS not depending on locale but some other logic

2010-08-03 Thread armandoxxx

Hey wicket ppl 

I got a question about styling my pages. 

In a web app project I'm working on,  we have many different users coming
from various companies. Each company has different CSS styles, in practice
that means that each company uses it's own skin for same web page.
So what I would like to know is, if my thoughts of implementation are the
proper way and how to implement CSS styles order in a head of output markup.

here we go... 
my css/ folder (for now) looks like this: 

component1/styles.css
component2/styles.css
componentX/styles.css
main_styles.css
style_company1.css //there override styles
style_company2.css
style_company3.css

so I was thinking of using HaderContributor when application logic resolves
what company should be displayed. From reading book and articles, I guess
this should be the proper way. Correct me if I'm wrong.

But if I use HeaderContributor somewhere in the Page class and then
components that are rendered add some of their styles to the header, how can
I add my company CSS files at the end of the head, since these files
override many of the main and components CSS styles. 

In a head of output markup I would like to get the right order: 
link href=main_styles.css/
link href=component1/styles.css/
link href=component2/styles.css/
link href=componentX/styles.css/
link href=style_company1.css/ //must be the last one ! 

Any hints would be appreciated ! 

King regards

Armando

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/CSS-not-depending-on-locale-but-some-other-logic-tp2311409p2311409.html
Sent from the Wicket - User mailing list archive at Nabble.com.

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



SV: using breadcrumbs in Wicket 1.4.9

2010-08-03 Thread Wilhelmsen Tor Iver
   panel A / panel B / panel C
 
 to:
 
   panel A / panel B / panel D

One option could be to setActive(panel B) then activate(panel D factory); to 
get the panel B reference just loop through the model or keep a reference to it 
somewhere.

- Tor Iver

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



Re: KonaKart shopping cart integration

2010-08-03 Thread Steve Coughlan
Yes it manages inventory, order processing, payment gateways, users 
etc... So all of that is done with a nice admin interface already to 
go.  I'm just looking at building some front end component that use it's 
api for actual store front.  Their own default storefront is JSP based 
and they have an example of another one which I think was flash.


Got the rough outline of a category tree, product list, cart and search 
box done today to see how hard it was going to be and seems quite workable.


Per Lundholm wrote:

When you wrote shopping cart, I assumed it was only the widget which
presents what the customer bought and some mechanism for keeping that
in the session. KonaKart seems to be a lot more than that.

/Per

On Tue, Aug 3, 2010 at 2:35 AM, Steve Coughlan
steve_cough...@yahoo.com.au wrote:
  

I've been looking for a shopping cart solution that I can properly integrate
with wicket.  There's been a few threads on this list where people have
indicated they were building one but as far as I know nothing has ever
eventuated.

I don't really want to build to whole engine from scratch so I've been
looking around and come across konakart.  It's partially open source.
 Meaning the engine itself is closed but it has a complete (and well
documented) integration layer.  I think this would be a good solution
because all the backend functionality is there along with a nice admin
panel.

The interface is either Java or SOAP (one line of code to switch between the
two) which means you can run your cart engine on another server if you want.

So what I'm proposing is build a set of front-end wicket components.  I'd
prefer a fully open source solution but in the free java space this seems to
be the easiest solution I can find.  I really don't have time to build an
engine from the ground up.

So before I get going I just wanted to bounce it off the community and see
if anyone can think of a better solution?

I only just come across brix and I'm still trying to get my head around it.
 Any comments on whether  I should make this brix centric or pure wicket?

p.s. If I do build these components then I will release them as LGPL...

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





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


  


Model Is Not being Refreshed

2010-08-03 Thread Nivedan Nadaraj
Hi

Can someone point me the right direction.

I have a search panel that does a look up and renders a resultsPanel. I
don't use detachable model here and used PageableListView
On the resultsPanel,onClick, I use the hibernate entity and pass it as a
model to the DetailsPanel. The detailsPanel renders it right no issue here.

Now When I hit the New button(acutally after I click cancel button on
Details, the details panel is set to visible=false).  on the search, I
expect to see a fresh page in details panel, but
the details panel uses the old values I selected and renders it.

This is what I do on onNew submit button.

I reset the model and set it to the form which should call
setDefaultObjectModel.

SearchPanel

 onNew(){
studyModel = new StudyModel();
studyModel.setStudy(new Study());
detailsPanel.getStudyForm().setModelObject(studyModel);
detailsPanel.setVisible(true);
}

After onNew is executed, I don't see the model being updated. A bit lost
here, any ideas?

Thanks again
Reg
Niv


Re: Model Is Not being Refreshed

2010-08-03 Thread Niv

Just wanted to add that this issue is not exactly the same as i posted
earlier but related in a way. But it is a separate issue. - I am making sure
it is not  re-post. Thank you

http://apache-wicket.1842946.n4.nabble.com/How-to-Update-contents-of-a-child-component-td2307756.html#a2307756

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Model-Is-Not-being-Refreshed-tp2311457p2311460.html
Sent from the Wicket - User mailing list archive at Nabble.com.

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



Re: Model Is Not being Refreshed

2010-08-03 Thread vov

Create AjaxButton for refreshing your data:
new AjaxButton(refresh)
{
onSubmit(AjaxRequestTarget target)
{
 onNew();
 targer.addComponent(detailsPanel);
}
}
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Model-Is-Not-being-Refreshed-tp2311457p2311537.html
Sent from the Wicket - User mailing list archive at Nabble.com.

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



Re: Model Is Not being Refreshed

2010-08-03 Thread Nivedan Nadaraj
Thanks for the response. It still does not work.

I added the ajax button on the SearchForm that has the New,Cancel and I
added this Refresh button just to test.

I added setOutputMarkupId(true) to the detailsPanle and then  in SearchForm
that extends Form added the AjaxButton

protected void onSubmit(AjaxRequestTarget target, Form? form) {
detailsPanel.getStudyForm().setDefaultModelObject(new
StudyModel());

detailsPanel.getStudyForm().getStudyIdTxtFld().setEnabled(false);

detailsPanel.getStudyForm().getStudyNameTxtFld().setEnabled(true);
detailsPanel.setVisible(true);
target.addComponent(detailsPanel);
}

I debugged it, and onSubmit does get invoked upto the last line
target.addComponent(), the detailsPanel is not being made visible. So I
cannot see if it has refreshed it!

Thanks again,
Niv


On Tue, Aug 3, 2010 at 5:23 PM, vov vov...@mail.ru wrote:


 Create AjaxButton for refreshing your data:
 new AjaxButton(refresh)
 {
onSubmit(AjaxRequestTarget target)
{
 onNew();
 targer.addComponent(detailsPanel);
}
 }
 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Model-Is-Not-being-Refreshed-tp2311457p2311537.html
 Sent from the Wicket - User mailing list archive at Nabble.com.

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




Re: Model Is Not being Refreshed

2010-08-03 Thread avrahamr

Without seeing the code I can't be of much help, but I think the line:

 detailsPanel.getStudyForm().setModelObject(studyModel);

Should be:

 detailsPanel.getStudyForm().setModel(studyModel);

You could also keep a reference to the studyModel when you construct the
Form and just call:

 studyModel.setStudy();

But, it really depends on how you implement the StudyModel and how you
access it.

Cheers,
   Avraham

On Tue, Aug 3, 2010 at 11:17 AM, nivs [via Apache Wicket] 
ml-node+2311457-311556210-293...@n4.nabble.comml-node%2b2311457-311556210-293...@n4.nabble.com
 wrote:

 Hi

 Can someone point me the right direction.

 I have a search panel that does a look up and renders a resultsPanel. I
 don't use detachable model here and used PageableListView
 On the resultsPanel,onClick, I use the hibernate entity and pass it as a
 model to the DetailsPanel. The detailsPanel renders it right no issue here.


 Now When I hit the New button(acutally after I click cancel button on
 Details, the details panel is set to visible=false).  on the search, I
 expect to see a fresh page in details panel, but
 the details panel uses the old values I selected and renders it.

 This is what I do on onNew submit button.

 I reset the model and set it to the form which should call
 setDefaultObjectModel.

 SearchPanel

  onNew(){
 studyModel = new StudyModel();
 studyModel.setStudy(new Study());
 detailsPanel.getStudyForm().setModelObject(studyModel);
 detailsPanel.setVisible(true);
 }

 After onNew is executed, I don't see the model being updated. A bit lost
 here, any ideas?

 Thanks again
 Reg
 Niv


 --
  View message @
 http://apache-wicket.1842946.n4.nabble.com/Model-Is-Not-being-Refreshed-tp2311457p2311457.html
 To start a new topic under Wicket - User, email
 ml-node+1842947-1647783149-293...@n4.nabble.comml-node%2b1842947-1647783149-293...@n4.nabble.com
 To unsubscribe from Wicket - User, click 
 herehttp://apache-wicket.1842946.n4.nabble.com/subscriptions/Unsubscribe.jtp?code=YXZyYWhhbXJAZ21haWwuY29tfDE4NDI5NDd8LTEwNzY0NzQ1ODc=.





-- 
[]'s
Avraham Rosenzweig
avrah...@gmail.com

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Model-Is-Not-being-Refreshed-tp2311457p2311658.html
Sent from the Wicket - User mailing list archive at Nabble.com.


Re: CSS not depending on locale but some other logic

2010-08-03 Thread James Carman
Have you looked at the style property on Session?

On Tue, Aug 3, 2010 at 3:21 AM, armandoxxx armando@dropchop.com wrote:


 Hey wicket ppl

 I got a question about styling my pages.

 In a web app project I'm working on,  we have many different users coming
 from various companies. Each company has different CSS styles, in practice
 that means that each company uses it's own skin for same web page.
 So what I would like to know is, if my thoughts of implementation are the
 proper way and how to implement CSS styles order in a head of output
 markup.

 here we go...
 my css/ folder (for now) looks like this:

 component1/styles.css
 component2/styles.css
 componentX/styles.css
 main_styles.css
 style_company1.css //there override styles
 style_company2.css
 style_company3.css

 so I was thinking of using HaderContributor when application logic resolves
 what company should be displayed. From reading book and articles, I guess
 this should be the proper way. Correct me if I'm wrong.

 But if I use HeaderContributor somewhere in the Page class and then
 components that are rendered add some of their styles to the header, how
 can
 I add my company CSS files at the end of the head, since these files
 override many of the main and components CSS styles.

 In a head of output markup I would like to get the right order:
 link href=main_styles.css/
 link href=component1/styles.css/
 link href=component2/styles.css/
 link href=componentX/styles.css/
 link href=style_company1.css/ //must be the last one !

 Any hints would be appreciated !

 King regards

 Armando

 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/CSS-not-depending-on-locale-but-some-other-logic-tp2311409p2311409.html
 Sent from the Wicket - User mailing list archive at Nabble.com.

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




Re: CSS not depending on locale but some other logic

2010-08-03 Thread armandoxxx

Hey 

Thank you for your reply .. that is what I was looking for ! 

Kind regards

Armando
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/CSS-not-depending-on-locale-but-some-other-logic-tp2311409p2311753.html
Sent from the Wicket - User mailing list archive at Nabble.com.

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



Re: Model Is Not being Refreshed

2010-08-03 Thread mwilber

Again without seeing more of the code some of this is guessing.

If the component that you are trying to update is not part of the original
HTML it will not be updated in the ajax response. I see that you are marking
the component as visible and enabled. If it isn't visible during the initial
rendering then it won't be placed in the HTML. If you mark the component
with 
http://wicket.apache.org/apidocs/1.4/org/apache/wicket/Component.html#setOutputMarkupPlaceholderTag(boolean)
setOutputMarkupPlaceholderTag(true)  then the invisible component will have
a placeholder to be updated during the ajax response.
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Model-Is-Not-being-Refreshed-tp2311457p2311876.html
Sent from the Wicket - User mailing list archive at Nabble.com.

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



Re: using cometd with threads

2010-08-03 Thread fachhoch

If I do that I am using web api in service which is not good , so any other
way ?
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/using-cometd-with-threads-tp2310323p2311905.html
Sent from the Wicket - User mailing list archive at Nabble.com.

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



Re: using cometd with threads

2010-08-03 Thread jcgarciam

If you are starting your Job from a Web Request, initialize your Bayeaux
service (as Rodolfo mentioned) and pass that to your processing Job (Your
Job doesn't  have to be WebApi aware) as Rodolfo said, Bauyeaux is meant to
be used a messaging API.


On Tue, Aug 3, 2010 at 11:00 AM, fachhoch [via Apache Wicket] 
ml-node+2311905-1356455233-229...@n4.nabble.comml-node%2b2311905-1356455233-229...@n4.nabble.com
 wrote:

 If I do that I am using web api in service which is not good , so any other
 way ?

 --
  View message @
 http://apache-wicket.1842946.n4.nabble.com/using-cometd-with-threads-tp2310323p2311905.html
 To unsubscribe from Apache Wicket, click 
 herehttp://apache-wicket.1842946.n4.nabble.com/subscriptions/Unsubscribe.jtp?code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDExOTE5MDc4OTQ=.





-- 
Sincerely,
JC

Work smarter, not harder!.

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/using-cometd-with-threads-tp2310323p2311920.html
Sent from the Wicket - User mailing list archive at Nabble.com.


Re: Model Is Not being Refreshed

2010-08-03 Thread Nivedan Nadaraj
Avraham and Matt,

Thanks for the points. I will have a look at it tomorrow and post the code
if I still haven't resolved. I don't have the code on me at the moment.
Reg
Niv



On Tue, Aug 3, 2010 at 9:41 PM, mwilber matt.wil...@gmail.com wrote:


 Again without seeing more of the code some of this is guessing.

 If the component that you are trying to update is not part of the
 original
 HTML it will not be updated in the ajax response. I see that you are
 marking
 the component as visible and enabled. If it isn't visible during the
 initial
 rendering then it won't be placed in the HTML. If you mark the component
 with

 http://wicket.apache.org/apidocs/1.4/org/apache/wicket/Component.html#setOutputMarkupPlaceholderTag(boolean)http://wicket.apache.org/apidocs/1.4/org/apache/wicket/Component.html#setOutputMarkupPlaceholderTag%28boolean%29
 setOutputMarkupPlaceholderTag(true)  then the invisible component will have
 a placeholder to be updated during the ajax response.
 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Model-Is-Not-being-Refreshed-tp2311457p2311876.html
 Sent from the Wicket - User mailing list archive at Nabble.com.

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




Stack Overflow Error

2010-08-03 Thread Douglas Ferguson
I wrote about this awhile ago and got some great responses. I poured over
the code and couldn't find anything that would meet the criteria that you
guys suggested.

Does anybody have any suggestions as to how I could track this down?

Douglas.



2010-08-03 09:45:13,257 INFO  [TP-Processor13] wicket.PRManagerRequestCycle
- Found PageExpiredException: Redirecting to login
2010-08-03 09:45:13,996 ERROR [TP-Processor13] wicket.PRManagerRequestCycle
- Caught StackOverflowError on detach... invalidating session User[null]
java.lang.StackOverflowError
at java.io.ObjectStreamClass.getPrimFieldValues(Unknown Source)
at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source)
at java.math.BigDecimal.writeObject(Unknown Source)
at sun.reflect.GeneratedMethodAccessor55.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source)
at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
at java.io.ObjectOutputStream.writeObject0(Unknown Source)
at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
at java.io.ObjectOutputStream.writeObject0(Unknown Source)
at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
at java.io.ObjectOutputStream.writeObject0(Unknown Source)
at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
at java.io.ObjectOutputStream.writeObject0(Unknown Source)
at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
at java.io.ObjectOutputStream.writeObject0(Unknown Source)
at java.io.ObjectOutputStream.writeObject(Unknown Source)
at java.util.ArrayList.writeObject(Unknown Source)
at sun.reflect.GeneratedMethodAccessor50.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source)
at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
at java.io.ObjectOutputStream.writeObject0(Unknown Source)
at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
at java.io.ObjectOutputStream.writeObject0(Unknown Source)
at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
at java.io.ObjectOutputStream.writeObject0(Unknown Source)
at java.io.ObjectOutputStream.writeArray(Unknown Source)
at java.io.ObjectOutputStream.writeObject0(Unknown Source)
at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
at java.io.ObjectOutputStream.writeObject0(Unknown Source)
at java.io.ObjectOutputStream.writeArray(Unknown Source)
at java.io.ObjectOutputStream.writeObject0(Unknown Source)
at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
at java.io.ObjectOutputStream.writeObject0(Unknown Source)
at java.io.ObjectOutputStream.writeObject(Unknown Source)
at
org.apache.wicket.util.io.IObjectStreamFactory$DefaultObjectStreamFactory$2.writeObjectOverride(IObjectStreamFactory.java:121)
at java.io.ObjectOutputStream.writeObject(Unknown Source)
at org.apache.wicket.util.lang.Objects.objectToByteArray(Objects.java:1124)
at
org.apache.wicket.protocol.http.pagestore.AbstractPageStore.serializePage(AbstractPageStore.java:203)
at
org.apache.wicket.protocol.http.pagestore.DiskPageStore.prepareForSerialization(DiskPageStore.java:1190)
at
org.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.writeObject(SecondLevelCacheSessionStore.java:386)
at sun.reflect.GeneratedMethodAccessor47.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source)
at java.io.ObjectOutputStream.writeSerialData(Unknown 

Re: Stack Overflow Error

2010-08-03 Thread Martin Makundi
Hi!

I had the same and for me the solution was to increase -vmargs
-Xss1234k  size bigger.

**
Martin

2010/8/3 Douglas Ferguson doug...@douglasferguson.us:
 I wrote about this awhile ago and got some great responses. I poured over
 the code and couldn't find anything that would meet the criteria that you
 guys suggested.

 Does anybody have any suggestions as to how I could track this down?

 Douglas.



 2010-08-03 09:45:13,257 INFO  [TP-Processor13] wicket.PRManagerRequestCycle
 - Found PageExpiredException: Redirecting to login
 2010-08-03 09:45:13,996 ERROR [TP-Processor13] wicket.PRManagerRequestCycle
 - Caught StackOverflowError on detach... invalidating session User[null]
 java.lang.StackOverflowError
 at java.io.ObjectStreamClass.getPrimFieldValues(Unknown Source)
 at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
 at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source)
 at java.math.BigDecimal.writeObject(Unknown Source)
 at sun.reflect.GeneratedMethodAccessor55.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source)
 at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
 at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
 at java.io.ObjectOutputStream.writeObject0(Unknown Source)
 at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
 at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
 at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
 at java.io.ObjectOutputStream.writeObject0(Unknown Source)
 at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
 at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
 at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
 at java.io.ObjectOutputStream.writeObject0(Unknown Source)
 at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
 at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
 at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
 at java.io.ObjectOutputStream.writeObject0(Unknown Source)
 at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
 at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
 at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
 at java.io.ObjectOutputStream.writeObject0(Unknown Source)
 at java.io.ObjectOutputStream.writeObject(Unknown Source)
 at java.util.ArrayList.writeObject(Unknown Source)
 at sun.reflect.GeneratedMethodAccessor50.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source)
 at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
 at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
 at java.io.ObjectOutputStream.writeObject0(Unknown Source)
 at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
 at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
 at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
 at java.io.ObjectOutputStream.writeObject0(Unknown Source)
 at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
 at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
 at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
 at java.io.ObjectOutputStream.writeObject0(Unknown Source)
 at java.io.ObjectOutputStream.writeArray(Unknown Source)
 at java.io.ObjectOutputStream.writeObject0(Unknown Source)
 at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
 at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
 at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
 at java.io.ObjectOutputStream.writeObject0(Unknown Source)
 at java.io.ObjectOutputStream.writeArray(Unknown Source)
 at java.io.ObjectOutputStream.writeObject0(Unknown Source)
 at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
 at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
 at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
 at java.io.ObjectOutputStream.writeObject0(Unknown Source)
 at java.io.ObjectOutputStream.writeObject(Unknown Source)
 at
 org.apache.wicket.util.io.IObjectStreamFactory$DefaultObjectStreamFactory$2.writeObjectOverride(IObjectStreamFactory.java:121)
 at java.io.ObjectOutputStream.writeObject(Unknown Source)
 at org.apache.wicket.util.lang.Objects.objectToByteArray(Objects.java:1124)
 at
 org.apache.wicket.protocol.http.pagestore.AbstractPageStore.serializePage(AbstractPageStore.java:203)
 at
 org.apache.wicket.protocol.http.pagestore.DiskPageStore.prepareForSerialization(DiskPageStore.java:1190)
 at
 org.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.writeObject(SecondLevelCacheSessionStore.java:386)
 at sun.reflect.GeneratedMethodAccessor47.invoke(Unknown Source)
 at 

Re: WicketTester and Palette component

2010-08-03 Thread loic

It seems good but i would really like to be able to test Palette without a
new framework 

Is it really impossible to test Palette with wicket-tester?

Regards
Loic
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/WicketTester-and-Palette-component-tp2306743p2312048.html
Sent from the Wicket - User mailing list archive at Nabble.com.

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



Re: Encrypt Form Fields Using JS

2010-08-03 Thread MZemeck
Ok, the value will be hashed, one-way...anyone have any ideas?




James Carman ja...@carmanconsulting.com 
Sent by: jcar...@carmanconsulting.com
08/02/2010 04:42 PM
Please respond to
users@wicket.apache.org


To
users@wicket.apache.org
cc

Subject
Re: Encrypt Form Fields Using JS






Then it's not encryption.  Encrypted data should be readable to those 
who
have the key.

On Mon, Aug 2, 2010 at 3:29 PM, mzem...@osc.state.ny.us wrote:

 Thanks for the reply, that would work however per our business rules the
 encryption must be one-way and will not be decrypted...




 Igor Vaynberg igor.vaynb...@gmail.com
 08/02/2010 03:23 PM
 Please respond to
 users@wicket.apache.org


 To
 users@wicket.apache.org
 cc

 Subject
 Re: Encrypt Form Fields Using JS






 override getinputasarray() on the field and decrypt it there, that way
 wicket sees the decrypted value

 -igor

 On Mon, Aug 2, 2010 at 12:14 PM,  mzem...@osc.state.ny.us wrote:
  I totally agree, seems like double-duty that accomplishes very little,
 and
  actually adds overhead.  But this is another debate and the feature 
has
  been requested and must be implemented as I described...
 
 
 
 
  Craig McIlwee craig.mcil...@openroadsconsulting.com
  08/02/2010 03:06 PM
  Please respond to
  users@wicket.apache.org
 
 
  To
  users@wicket.apache.org
  cc
 
  Subject
  Re: Encrypt Form Fields Using JS
 
 
 
 
 
 
  Why not use a password field to keep the value hidden and SSL to make
 sure
  there are no man in the middle attacks.  Seems like you are making it
 too
  hard?
 
  - Original Message -
  From: mzem...@osc.state.ny.us
  To:
  users@wicket.apache.org
  Sent: Mon, 02 Aug 2010 15:00:55 -0400
  Subject:
  Encrypt Form Fields Using JS
 
 
  Problem: Encrypt sensitive form fields (ie ssn) on client 
(javascript)
 
  Solution:  Create behavior which fires javascript to hash field value
  and
  replace original value (###-##-)
 
  This sounds simple enough, but since the length of the hashed string
  will
  be considerably longer than the original string, validations on this
  field
  (ssn must be nine digits) will fail.
 
  I've considered placing the hashed value into a hidden field, but 
then
  the
  unencrypted value will be posted and the hashing accomplishes 
nothing.
  If
  I clear out the original value I lose server-side validations. Anyone
  have any ideas of the best way to accomplish this?
 
 
 
  Notice: This communication, including any attachments, is intended
  solely
  for the use of the individual or entity to which it is addressed. 
This
  communication may contain information that is protected from 
disclosure
  under State and/or Federal law. Please notify the sender immediately 
if
  you have received this communication in error and delete this email
 from
 
  your system. If you are not the intended recipient, you are requested
  not
  to disclose, copy, distribute or take any action in reliance on the
  contents of this information.
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 
 
 
  Notice: This communication, including any attachments, is intended
 solely
  for the use of the individual or entity to which it is addressed. This
  communication may contain information that is protected from 
disclosure
  under State and/or Federal law. Please notify the sender immediately 
if
  you have received this communication in error and delete this email 
from
  your system. If you are not the intended recipient, you are requested
 not
  to disclose, copy, distribute or take any action in reliance on the
  contents of this information.

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






 Notice: This communication, including any attachments, is intended 
solely
 for the use of the individual or entity to which it is addressed. This
 communication may contain information that is protected from disclosure
 under State and/or Federal law. Please notify the sender immediately if
 you have received this communication in error and delete this email from
 your system. If you are not the intended recipient, you are requested 
not
 to disclose, copy, distribute or take any action in reliance on the
 contents of this information.






Notice: This communication, including any attachments, is intended solely 
for the use of the individual or entity to which it is addressed. This 
communication may contain information that is protected from disclosure 
under State and/or Federal law. Please notify the sender immediately if 
you have received this communication in error and delete this email from 
your system. If you are not the intended recipient, you are requested not 
to disclose, copy, distribute or take any action in reliance 

Re: Encrypt Form Fields Using JS

2010-08-03 Thread James Carman
And, what does that buy you?  Why do you want to submit one-way hashed
values?

On Tue, Aug 3, 2010 at 1:37 PM, mzem...@osc.state.ny.us wrote:

 Ok, the value will be hashed, one-way...anyone have any ideas?




 James Carman ja...@carmanconsulting.com
 Sent by: jcar...@carmanconsulting.com
 08/02/2010 04:42 PM
 Please respond to
 users@wicket.apache.org


 To
 users@wicket.apache.org
 cc

 Subject
 Re: Encrypt Form Fields Using JS






 Then it's not encryption.  Encrypted data should be readable to those
 who
 have the key.

 On Mon, Aug 2, 2010 at 3:29 PM, mzem...@osc.state.ny.us wrote:

  Thanks for the reply, that would work however per our business rules the
  encryption must be one-way and will not be decrypted...
 
 
 
 
  Igor Vaynberg igor.vaynb...@gmail.com
  08/02/2010 03:23 PM
  Please respond to
  users@wicket.apache.org
 
 
  To
  users@wicket.apache.org
  cc
 
  Subject
  Re: Encrypt Form Fields Using JS
 
 
 
 
 
 
  override getinputasarray() on the field and decrypt it there, that way
  wicket sees the decrypted value
 
  -igor
 
  On Mon, Aug 2, 2010 at 12:14 PM,  mzem...@osc.state.ny.us wrote:
   I totally agree, seems like double-duty that accomplishes very little,
  and
   actually adds overhead.  But this is another debate and the feature
 has
   been requested and must be implemented as I described...
  
  
  
  
   Craig McIlwee craig.mcil...@openroadsconsulting.com
   08/02/2010 03:06 PM
   Please respond to
   users@wicket.apache.org
  
  
   To
   users@wicket.apache.org
   cc
  
   Subject
   Re: Encrypt Form Fields Using JS
  
  
  
  
  
  
   Why not use a password field to keep the value hidden and SSL to make
  sure
   there are no man in the middle attacks.  Seems like you are making it
  too
   hard?
  
   - Original Message -
   From: mzem...@osc.state.ny.us
   To:
   users@wicket.apache.org
   Sent: Mon, 02 Aug 2010 15:00:55 -0400
   Subject:
   Encrypt Form Fields Using JS
  
  
   Problem: Encrypt sensitive form fields (ie ssn) on client
 (javascript)
  
   Solution:  Create behavior which fires javascript to hash field value
   and
   replace original value (###-##-)
  
   This sounds simple enough, but since the length of the hashed string
   will
   be considerably longer than the original string, validations on this
   field
   (ssn must be nine digits) will fail.
  
   I've considered placing the hashed value into a hidden field, but
 then
   the
   unencrypted value will be posted and the hashing accomplishes
 nothing.
   If
   I clear out the original value I lose server-side validations. Anyone
   have any ideas of the best way to accomplish this?
  
  
  
   Notice: This communication, including any attachments, is intended
   solely
   for the use of the individual or entity to which it is addressed.
 This
   communication may contain information that is protected from
 disclosure
   under State and/or Federal law. Please notify the sender immediately
 if
   you have received this communication in error and delete this email
  from
  
   your system. If you are not the intended recipient, you are requested
   not
   to disclose, copy, distribute or take any action in reliance on the
   contents of this information.
  
   -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
  
  
  
  
  
   Notice: This communication, including any attachments, is intended
  solely
   for the use of the individual or entity to which it is addressed. This
   communication may contain information that is protected from
 disclosure
   under State and/or Federal law. Please notify the sender immediately
 if
   you have received this communication in error and delete this email
 from
   your system. If you are not the intended recipient, you are requested
  not
   to disclose, copy, distribute or take any action in reliance on the
   contents of this information.
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 
 
 
  Notice: This communication, including any attachments, is intended
 solely
  for the use of the individual or entity to which it is addressed. This
  communication may contain information that is protected from disclosure
  under State and/or Federal law. Please notify the sender immediately if
  you have received this communication in error and delete this email from
  your system. If you are not the intended recipient, you are requested
 not
  to disclose, copy, distribute or take any action in reliance on the
  contents of this information.
 





 Notice: This communication, including any attachments, is intended solely
 for the use of the individual or entity to which it is addressed. This
 communication may contain information that is protected 

Re: Encrypt Form Fields Using JS

2010-08-03 Thread MZemeck
An already existing system is being rewritten and the db currently stores 
hashed values.  I don't disagree there are better ways to reach the end 
goal, but this is the spec I am working with.




James Carman ja...@carmanconsulting.com 
Sent by: jcar...@carmanconsulting.com
08/03/2010 01:45 PM
Please respond to
users@wicket.apache.org


To
users@wicket.apache.org
cc

Subject
Re: Encrypt Form Fields Using JS






And, what does that buy you?  Why do you want to submit one-way hashed
values?

On Tue, Aug 3, 2010 at 1:37 PM, mzem...@osc.state.ny.us wrote:

 Ok, the value will be hashed, one-way...anyone have any ideas?




 James Carman ja...@carmanconsulting.com
 Sent by: jcar...@carmanconsulting.com
 08/02/2010 04:42 PM
 Please respond to
 users@wicket.apache.org


 To
 users@wicket.apache.org
 cc

 Subject
 Re: Encrypt Form Fields Using JS






 Then it's not encryption.  Encrypted data should be readable to those
 who
 have the key.

 On Mon, Aug 2, 2010 at 3:29 PM, mzem...@osc.state.ny.us wrote:

  Thanks for the reply, that would work however per our business rules 
the
  encryption must be one-way and will not be decrypted...
 
 
 
 
  Igor Vaynberg igor.vaynb...@gmail.com
  08/02/2010 03:23 PM
  Please respond to
  users@wicket.apache.org
 
 
  To
  users@wicket.apache.org
  cc
 
  Subject
  Re: Encrypt Form Fields Using JS
 
 
 
 
 
 
  override getinputasarray() on the field and decrypt it there, that way
  wicket sees the decrypted value
 
  -igor
 
  On Mon, Aug 2, 2010 at 12:14 PM,  mzem...@osc.state.ny.us wrote:
   I totally agree, seems like double-duty that accomplishes very 
little,
  and
   actually adds overhead.  But this is another debate and the feature
 has
   been requested and must be implemented as I described...
  
  
  
  
   Craig McIlwee craig.mcil...@openroadsconsulting.com
   08/02/2010 03:06 PM
   Please respond to
   users@wicket.apache.org
  
  
   To
   users@wicket.apache.org
   cc
  
   Subject
   Re: Encrypt Form Fields Using JS
  
  
  
  
  
  
   Why not use a password field to keep the value hidden and SSL to 
make
  sure
   there are no man in the middle attacks.  Seems like you are making 
it
  too
   hard?
  
   - Original Message -
   From: mzem...@osc.state.ny.us
   To:
   users@wicket.apache.org
   Sent: Mon, 02 Aug 2010 15:00:55 -0400
   Subject:
   Encrypt Form Fields Using JS
  
  
   Problem: Encrypt sensitive form fields (ie ssn) on client
 (javascript)
  
   Solution:  Create behavior which fires javascript to hash field 
value
   and
   replace original value (###-##-)
  
   This sounds simple enough, but since the length of the hashed 
string
   will
   be considerably longer than the original string, validations on 
this
   field
   (ssn must be nine digits) will fail.
  
   I've considered placing the hashed value into a hidden field, but
 then
   the
   unencrypted value will be posted and the hashing accomplishes
 nothing.
   If
   I clear out the original value I lose server-side validations. 
Anyone
   have any ideas of the best way to accomplish this?
  
  
  
   Notice: This communication, including any attachments, is intended
   solely
   for the use of the individual or entity to which it is addressed.
 This
   communication may contain information that is protected from
 disclosure
   under State and/or Federal law. Please notify the sender 
immediately
 if
   you have received this communication in error and delete this email
  from
  
   your system. If you are not the intended recipient, you are 
requested
   not
   to disclose, copy, distribute or take any action in reliance on the
   contents of this information.
  
   
-
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
  
  
  
  
  
   Notice: This communication, including any attachments, is intended
  solely
   for the use of the individual or entity to which it is addressed. 
This
   communication may contain information that is protected from
 disclosure
   under State and/or Federal law. Please notify the sender immediately
 if
   you have received this communication in error and delete this email
 from
   your system. If you are not the intended recipient, you are 
requested
  not
   to disclose, copy, distribute or take any action in reliance on the
   contents of this information.
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 
 
 
  Notice: This communication, including any attachments, is intended
 solely
  for the use of the individual or entity to which it is addressed. This
  communication may contain information that is protected from 
disclosure
  under State and/or Federal law. Please notify the sender immediately 
if
  you have received this 

Re: Encrypt Form Fields Using JS

2010-08-03 Thread James Carman
So, you never need to get the original values out of the database?

On Tue, Aug 3, 2010 at 2:10 PM, mzem...@osc.state.ny.us wrote:

 An already existing system is being rewritten and the db currently stores
 hashed values.  I don't disagree there are better ways to reach the end
 goal, but this is the spec I am working with.




 James Carman ja...@carmanconsulting.com
 Sent by: jcar...@carmanconsulting.com
 08/03/2010 01:45 PM
 Please respond to
 users@wicket.apache.org


 To
 users@wicket.apache.org
 cc

 Subject
 Re: Encrypt Form Fields Using JS






 And, what does that buy you?  Why do you want to submit one-way hashed
 values?

 On Tue, Aug 3, 2010 at 1:37 PM, mzem...@osc.state.ny.us wrote:

  Ok, the value will be hashed, one-way...anyone have any ideas?
 
 
 
 
  James Carman ja...@carmanconsulting.com
  Sent by: jcar...@carmanconsulting.com
  08/02/2010 04:42 PM
  Please respond to
  users@wicket.apache.org
 
 
  To
  users@wicket.apache.org
  cc
 
  Subject
  Re: Encrypt Form Fields Using JS
 
 
 
 
 
 
  Then it's not encryption.  Encrypted data should be readable to those
  who
  have the key.
 
  On Mon, Aug 2, 2010 at 3:29 PM, mzem...@osc.state.ny.us wrote:
 
   Thanks for the reply, that would work however per our business rules
 the
   encryption must be one-way and will not be decrypted...
  
  
  
  
   Igor Vaynberg igor.vaynb...@gmail.com
   08/02/2010 03:23 PM
   Please respond to
   users@wicket.apache.org
  
  
   To
   users@wicket.apache.org
   cc
  
   Subject
   Re: Encrypt Form Fields Using JS
  
  
  
  
  
  
   override getinputasarray() on the field and decrypt it there, that way
   wicket sees the decrypted value
  
   -igor
  
   On Mon, Aug 2, 2010 at 12:14 PM,  mzem...@osc.state.ny.us wrote:
I totally agree, seems like double-duty that accomplishes very
 little,
   and
actually adds overhead.  But this is another debate and the feature
  has
been requested and must be implemented as I described...
   
   
   
   
Craig McIlwee craig.mcil...@openroadsconsulting.com
08/02/2010 03:06 PM
Please respond to
users@wicket.apache.org
   
   
To
users@wicket.apache.org
cc
   
Subject
Re: Encrypt Form Fields Using JS
   
   
   
   
   
   
Why not use a password field to keep the value hidden and SSL to
 make
   sure
there are no man in the middle attacks.  Seems like you are making
 it
   too
hard?
   
- Original Message -
From: mzem...@osc.state.ny.us
To:
users@wicket.apache.org
Sent: Mon, 02 Aug 2010 15:00:55 -0400
Subject:
Encrypt Form Fields Using JS
   
   
Problem: Encrypt sensitive form fields (ie ssn) on client
  (javascript)
   
Solution:  Create behavior which fires javascript to hash field
 value
and
replace original value (###-##-)
   
This sounds simple enough, but since the length of the hashed
 string
will
be considerably longer than the original string, validations on
 this
field
(ssn must be nine digits) will fail.
   
I've considered placing the hashed value into a hidden field, but
  then
the
unencrypted value will be posted and the hashing accomplishes
  nothing.
If
I clear out the original value I lose server-side validations.
 Anyone
have any ideas of the best way to accomplish this?
   
   
   
Notice: This communication, including any attachments, is intended
solely
for the use of the individual or entity to which it is addressed.
  This
communication may contain information that is protected from
  disclosure
under State and/or Federal law. Please notify the sender
 immediately
  if
you have received this communication in error and delete this email
   from
   
your system. If you are not the intended recipient, you are
 requested
not
to disclose, copy, distribute or take any action in reliance on the
contents of this information.
   
   
 -
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org
   
   
   
   
   
   
Notice: This communication, including any attachments, is intended
   solely
for the use of the individual or entity to which it is addressed.
 This
communication may contain information that is protected from
  disclosure
under State and/or Federal law. Please notify the sender immediately
  if
you have received this communication in error and delete this email
  from
your system. If you are not the intended recipient, you are
 requested
   not
to disclose, copy, distribute or take any action in reliance on the
contents of this information.
  
   -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
  
  
  
  
  
   Notice: 

Re: Encrypt Form Fields Using JS

2010-08-03 Thread MZemeck
Correct




James Carman ja...@carmanconsulting.com 
Sent by: jcar...@carmanconsulting.com
08/03/2010 02:12 PM
Please respond to
users@wicket.apache.org


To
users@wicket.apache.org
cc

Subject
Re: Encrypt Form Fields Using JS






So, you never need to get the original values out of the database?

On Tue, Aug 3, 2010 at 2:10 PM, mzem...@osc.state.ny.us wrote:

 An already existing system is being rewritten and the db currently 
stores
 hashed values.  I don't disagree there are better ways to reach the end
 goal, but this is the spec I am working with.




 James Carman ja...@carmanconsulting.com
 Sent by: jcar...@carmanconsulting.com
 08/03/2010 01:45 PM
 Please respond to
 users@wicket.apache.org


 To
 users@wicket.apache.org
 cc

 Subject
 Re: Encrypt Form Fields Using JS






 And, what does that buy you?  Why do you want to submit one-way hashed
 values?

 On Tue, Aug 3, 2010 at 1:37 PM, mzem...@osc.state.ny.us wrote:

  Ok, the value will be hashed, one-way...anyone have any ideas?
 
 
 
 
  James Carman ja...@carmanconsulting.com
  Sent by: jcar...@carmanconsulting.com
  08/02/2010 04:42 PM
  Please respond to
  users@wicket.apache.org
 
 
  To
  users@wicket.apache.org
  cc
 
  Subject
  Re: Encrypt Form Fields Using JS
 
 
 
 
 
 
  Then it's not encryption.  Encrypted data should be readable to 
those
  who
  have the key.
 
  On Mon, Aug 2, 2010 at 3:29 PM, mzem...@osc.state.ny.us wrote:
 
   Thanks for the reply, that would work however per our business rules
 the
   encryption must be one-way and will not be decrypted...
  
  
  
  
   Igor Vaynberg igor.vaynb...@gmail.com
   08/02/2010 03:23 PM
   Please respond to
   users@wicket.apache.org
  
  
   To
   users@wicket.apache.org
   cc
  
   Subject
   Re: Encrypt Form Fields Using JS
  
  
  
  
  
  
   override getinputasarray() on the field and decrypt it there, that 
way
   wicket sees the decrypted value
  
   -igor
  
   On Mon, Aug 2, 2010 at 12:14 PM,  mzem...@osc.state.ny.us wrote:
I totally agree, seems like double-duty that accomplishes very
 little,
   and
actually adds overhead.  But this is another debate and the 
feature
  has
been requested and must be implemented as I described...
   
   
   
   
Craig McIlwee craig.mcil...@openroadsconsulting.com
08/02/2010 03:06 PM
Please respond to
users@wicket.apache.org
   
   
To
users@wicket.apache.org
cc
   
Subject
Re: Encrypt Form Fields Using JS
   
   
   
   
   
   
Why not use a password field to keep the value hidden and SSL to
 make
   sure
there are no man in the middle attacks.  Seems like you are making
 it
   too
hard?
   
- Original Message -
From: mzem...@osc.state.ny.us
To:
users@wicket.apache.org
Sent: Mon, 02 Aug 2010 15:00:55 -0400
Subject:
Encrypt Form Fields Using JS
   
   
Problem: Encrypt sensitive form fields (ie ssn) on client
  (javascript)
   
Solution:  Create behavior which fires javascript to hash field
 value
and
replace original value (###-##-)
   
This sounds simple enough, but since the length of the hashed
 string
will
be considerably longer than the original string, validations on
 this
field
(ssn must be nine digits) will fail.
   
I've considered placing the hashed value into a hidden field, but
  then
the
unencrypted value will be posted and the hashing accomplishes
  nothing.
If
I clear out the original value I lose server-side validations.
 Anyone
have any ideas of the best way to accomplish this?
   
   
   
Notice: This communication, including any attachments, is 
intended
solely
for the use of the individual or entity to which it is addressed.
  This
communication may contain information that is protected from
  disclosure
under State and/or Federal law. Please notify the sender
 immediately
  if
you have received this communication in error and delete this 
email
   from
   
your system. If you are not the intended recipient, you are
 requested
not
to disclose, copy, distribute or take any action in reliance on 
the
contents of this information.
   
   
 -
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org
   
   
   
   
   
   
Notice: This communication, including any attachments, is intended
   solely
for the use of the individual or entity to which it is addressed.
 This
communication may contain information that is protected from
  disclosure
under State and/or Federal law. Please notify the sender 
immediately
  if
you have received this communication in error and delete this 
email
  from
your system. If you are not the intended recipient, you are
 requested
   not
to disclose, copy, distribute or take any action in reliance on 
the
contents of this 

Re: Encrypt Form Fields Using JS

2010-08-03 Thread James Carman
And, you don't want to convert it before you store it in the db?  It must be
converted at the browser level?  Is there any more information you can give
us that would make this requirement not sound so crazy? :)

On Tue, Aug 3, 2010 at 2:15 PM, mzem...@osc.state.ny.us wrote:

 Correct




 James Carman ja...@carmanconsulting.com
 Sent by: jcar...@carmanconsulting.com
 08/03/2010 02:12 PM
 Please respond to
 users@wicket.apache.org


 To
 users@wicket.apache.org
 cc

 Subject
 Re: Encrypt Form Fields Using JS






 So, you never need to get the original values out of the database?

 On Tue, Aug 3, 2010 at 2:10 PM, mzem...@osc.state.ny.us wrote:

  An already existing system is being rewritten and the db currently
 stores
  hashed values.  I don't disagree there are better ways to reach the end
  goal, but this is the spec I am working with.
 
 
 
 
  James Carman ja...@carmanconsulting.com
  Sent by: jcar...@carmanconsulting.com
  08/03/2010 01:45 PM
  Please respond to
  users@wicket.apache.org
 
 
  To
  users@wicket.apache.org
  cc
 
  Subject
  Re: Encrypt Form Fields Using JS
 
 
 
 
 
 
  And, what does that buy you?  Why do you want to submit one-way hashed
  values?
 
  On Tue, Aug 3, 2010 at 1:37 PM, mzem...@osc.state.ny.us wrote:
 
   Ok, the value will be hashed, one-way...anyone have any ideas?
  
  
  
  
   James Carman ja...@carmanconsulting.com
   Sent by: jcar...@carmanconsulting.com
   08/02/2010 04:42 PM
   Please respond to
   users@wicket.apache.org
  
  
   To
   users@wicket.apache.org
   cc
  
   Subject
   Re: Encrypt Form Fields Using JS
  
  
  
  
  
  
   Then it's not encryption.  Encrypted data should be readable to
 those
   who
   have the key.
  
   On Mon, Aug 2, 2010 at 3:29 PM, mzem...@osc.state.ny.us wrote:
  
Thanks for the reply, that would work however per our business rules
  the
encryption must be one-way and will not be decrypted...
   
   
   
   
Igor Vaynberg igor.vaynb...@gmail.com
08/02/2010 03:23 PM
Please respond to
users@wicket.apache.org
   
   
To
users@wicket.apache.org
cc
   
Subject
Re: Encrypt Form Fields Using JS
   
   
   
   
   
   
override getinputasarray() on the field and decrypt it there, that
 way
wicket sees the decrypted value
   
-igor
   
On Mon, Aug 2, 2010 at 12:14 PM,  mzem...@osc.state.ny.us wrote:
 I totally agree, seems like double-duty that accomplishes very
  little,
and
 actually adds overhead.  But this is another debate and the
 feature
   has
 been requested and must be implemented as I described...




 Craig McIlwee craig.mcil...@openroadsconsulting.com
 08/02/2010 03:06 PM
 Please respond to
 users@wicket.apache.org


 To
 users@wicket.apache.org
 cc

 Subject
 Re: Encrypt Form Fields Using JS






 Why not use a password field to keep the value hidden and SSL to
  make
sure
 there are no man in the middle attacks.  Seems like you are making
  it
too
 hard?

 - Original Message -
 From: mzem...@osc.state.ny.us
 To:
 users@wicket.apache.org
 Sent: Mon, 02 Aug 2010 15:00:55 -0400
 Subject:
 Encrypt Form Fields Using JS


 Problem: Encrypt sensitive form fields (ie ssn) on client
   (javascript)

 Solution:  Create behavior which fires javascript to hash field
  value
 and
 replace original value (###-##-)

 This sounds simple enough, but since the length of the hashed
  string
 will
 be considerably longer than the original string, validations on
  this
 field
 (ssn must be nine digits) will fail.

 I've considered placing the hashed value into a hidden field, but
   then
 the
 unencrypted value will be posted and the hashing accomplishes
   nothing.
 If
 I clear out the original value I lose server-side validations.
  Anyone
 have any ideas of the best way to accomplish this?



 Notice: This communication, including any attachments, is
 intended
 solely
 for the use of the individual or entity to which it is addressed.
   This
 communication may contain information that is protected from
   disclosure
 under State and/or Federal law. Please notify the sender
  immediately
   if
 you have received this communication in error and delete this
 email
from

 your system. If you are not the intended recipient, you are
  requested
 not
 to disclose, copy, distribute or take any action in reliance on
 the
 contents of this information.


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






 Notice: This communication, including any attachments, is intended
solely
 for 

Re: Encrypt Form Fields Using JS

2010-08-03 Thread MZemeck
I have to laugh because I also agree its kind of crazy...

Yes the original value must be hashed by the client.  The reasoning being 
that SSL could be broken and expose the data.  I don't necessarily agree 
but thats how the original system was written.




James Carman ja...@carmanconsulting.com 
Sent by: jcar...@carmanconsulting.com
08/03/2010 02:19 PM
Please respond to
users@wicket.apache.org


To
users@wicket.apache.org
cc

Subject
Re: Encrypt Form Fields Using JS






And, you don't want to convert it before you store it in the db?  It must 
be
converted at the browser level?  Is there any more information you can 
give
us that would make this requirement not sound so crazy? :)

On Tue, Aug 3, 2010 at 2:15 PM, mzem...@osc.state.ny.us wrote:

 Correct




 James Carman ja...@carmanconsulting.com
 Sent by: jcar...@carmanconsulting.com
 08/03/2010 02:12 PM
 Please respond to
 users@wicket.apache.org


 To
 users@wicket.apache.org
 cc

 Subject
 Re: Encrypt Form Fields Using JS






 So, you never need to get the original values out of the database?

 On Tue, Aug 3, 2010 at 2:10 PM, mzem...@osc.state.ny.us wrote:

  An already existing system is being rewritten and the db currently
 stores
  hashed values.  I don't disagree there are better ways to reach the 
end
  goal, but this is the spec I am working with.
 
 
 
 
  James Carman ja...@carmanconsulting.com
  Sent by: jcar...@carmanconsulting.com
  08/03/2010 01:45 PM
  Please respond to
  users@wicket.apache.org
 
 
  To
  users@wicket.apache.org
  cc
 
  Subject
  Re: Encrypt Form Fields Using JS
 
 
 
 
 
 
  And, what does that buy you?  Why do you want to submit one-way hashed
  values?
 
  On Tue, Aug 3, 2010 at 1:37 PM, mzem...@osc.state.ny.us wrote:
 
   Ok, the value will be hashed, one-way...anyone have any ideas?
  
  
  
  
   James Carman ja...@carmanconsulting.com
   Sent by: jcar...@carmanconsulting.com
   08/02/2010 04:42 PM
   Please respond to
   users@wicket.apache.org
  
  
   To
   users@wicket.apache.org
   cc
  
   Subject
   Re: Encrypt Form Fields Using JS
  
  
  
  
  
  
   Then it's not encryption.  Encrypted data should be readable to
 those
   who
   have the key.
  
   On Mon, Aug 2, 2010 at 3:29 PM, mzem...@osc.state.ny.us wrote:
  
Thanks for the reply, that would work however per our business 
rules
  the
encryption must be one-way and will not be decrypted...
   
   
   
   
Igor Vaynberg igor.vaynb...@gmail.com
08/02/2010 03:23 PM
Please respond to
users@wicket.apache.org
   
   
To
users@wicket.apache.org
cc
   
Subject
Re: Encrypt Form Fields Using JS
   
   
   
   
   
   
override getinputasarray() on the field and decrypt it there, that
 way
wicket sees the decrypted value
   
-igor
   
On Mon, Aug 2, 2010 at 12:14 PM,  mzem...@osc.state.ny.us wrote:
 I totally agree, seems like double-duty that accomplishes very
  little,
and
 actually adds overhead.  But this is another debate and the
 feature
   has
 been requested and must be implemented as I described...




 Craig McIlwee craig.mcil...@openroadsconsulting.com
 08/02/2010 03:06 PM
 Please respond to
 users@wicket.apache.org


 To
 users@wicket.apache.org
 cc

 Subject
 Re: Encrypt Form Fields Using JS






 Why not use a password field to keep the value hidden and SSL to
  make
sure
 there are no man in the middle attacks.  Seems like you are 
making
  it
too
 hard?

 - Original Message -
 From: mzem...@osc.state.ny.us
 To:
 users@wicket.apache.org
 Sent: Mon, 02 Aug 2010 15:00:55 -0400
 Subject:
 Encrypt Form Fields Using JS


 Problem: Encrypt sensitive form fields (ie ssn) on client
   (javascript)

 Solution:  Create behavior which fires javascript to hash field
  value
 and
 replace original value (###-##-)

 This sounds simple enough, but since the length of the hashed
  string
 will
 be considerably longer than the original string, validations on
  this
 field
 (ssn must be nine digits) will fail.

 I've considered placing the hashed value into a hidden field, 
but
   then
 the
 unencrypted value will be posted and the hashing accomplishes
   nothing.
 If
 I clear out the original value I lose server-side validations.
  Anyone
 have any ideas of the best way to accomplish this?



 Notice: This communication, including any attachments, is
 intended
 solely
 for the use of the individual or entity to which it is 
addressed.
   This
 communication may contain information that is protected from
   disclosure
 under State and/or Federal law. Please notify the sender
  immediately
   if
 you have received this communication in error and delete this
 email
from

 your system. If you are not the 

RE: Encrypt Form Fields Using JS

2010-08-03 Thread Jeffrey Schneller
Can you create the text field and a hidden text field and have some
javascript that validates as the user types or an update link next to
the field?  Once the entire SSN is entered or the link is pressed then
hash the ssn and store in the hidden text field.  Once hashed, overwrite
the value in the visible text field with ###-##- and disable the
text entry.  You could even leave the text entry enabled and have the
client-side validator check if the field contains ###-##- and
don't perform the re-hash.  Don't do the validation through wicket
validators.  There are plenty of jquery or standalone javascript ssn
validators out there.





-Original Message-
From: mzem...@osc.state.ny.us [mailto:mzem...@osc.state.ny.us] 
Sent: Tuesday, August 03, 2010 2:24 PM
To: users@wicket.apache.org
Subject: Re: Encrypt Form Fields Using JS

I have to laugh because I also agree its kind of crazy...

Yes the original value must be hashed by the client.  The reasoning
being 
that SSL could be broken and expose the data.  I don't necessarily agree

but thats how the original system was written.




James Carman ja...@carmanconsulting.com 
Sent by: jcar...@carmanconsulting.com
08/03/2010 02:19 PM
Please respond to
users@wicket.apache.org


To
users@wicket.apache.org
cc

Subject
Re: Encrypt Form Fields Using JS






And, you don't want to convert it before you store it in the db?  It
must 
be
converted at the browser level?  Is there any more information you can 
give
us that would make this requirement not sound so crazy? :)

On Tue, Aug 3, 2010 at 2:15 PM, mzem...@osc.state.ny.us wrote:

 Correct




 James Carman ja...@carmanconsulting.com
 Sent by: jcar...@carmanconsulting.com
 08/03/2010 02:12 PM
 Please respond to
 users@wicket.apache.org


 To
 users@wicket.apache.org
 cc

 Subject
 Re: Encrypt Form Fields Using JS






 So, you never need to get the original values out of the database?

 On Tue, Aug 3, 2010 at 2:10 PM, mzem...@osc.state.ny.us wrote:

  An already existing system is being rewritten and the db currently
 stores
  hashed values.  I don't disagree there are better ways to reach the 
end
  goal, but this is the spec I am working with.
 
 
 
 
  James Carman ja...@carmanconsulting.com
  Sent by: jcar...@carmanconsulting.com
  08/03/2010 01:45 PM
  Please respond to
  users@wicket.apache.org
 
 
  To
  users@wicket.apache.org
  cc
 
  Subject
  Re: Encrypt Form Fields Using JS
 
 
 
 
 
 
  And, what does that buy you?  Why do you want to submit one-way
hashed
  values?
 
  On Tue, Aug 3, 2010 at 1:37 PM, mzem...@osc.state.ny.us wrote:
 
   Ok, the value will be hashed, one-way...anyone have any ideas?
  
  
  
  
   James Carman ja...@carmanconsulting.com
   Sent by: jcar...@carmanconsulting.com
   08/02/2010 04:42 PM
   Please respond to
   users@wicket.apache.org
  
  
   To
   users@wicket.apache.org
   cc
  
   Subject
   Re: Encrypt Form Fields Using JS
  
  
  
  
  
  
   Then it's not encryption.  Encrypted data should be readable to
 those
   who
   have the key.
  
   On Mon, Aug 2, 2010 at 3:29 PM, mzem...@osc.state.ny.us wrote:
  
Thanks for the reply, that would work however per our business 
rules
  the
encryption must be one-way and will not be decrypted...
   
   
   
   
Igor Vaynberg igor.vaynb...@gmail.com
08/02/2010 03:23 PM
Please respond to
users@wicket.apache.org
   
   
To
users@wicket.apache.org
cc
   
Subject
Re: Encrypt Form Fields Using JS
   
   
   
   
   
   
override getinputasarray() on the field and decrypt it there,
that
 way
wicket sees the decrypted value
   
-igor
   
On Mon, Aug 2, 2010 at 12:14 PM,  mzem...@osc.state.ny.us
wrote:
 I totally agree, seems like double-duty that accomplishes very
  little,
and
 actually adds overhead.  But this is another debate and the
 feature
   has
 been requested and must be implemented as I described...




 Craig McIlwee craig.mcil...@openroadsconsulting.com
 08/02/2010 03:06 PM
 Please respond to
 users@wicket.apache.org


 To
 users@wicket.apache.org
 cc

 Subject
 Re: Encrypt Form Fields Using JS






 Why not use a password field to keep the value hidden and SSL
to
  make
sure
 there are no man in the middle attacks.  Seems like you are 
making
  it
too
 hard?

 - Original Message -
 From: mzem...@osc.state.ny.us
 To:
 users@wicket.apache.org
 Sent: Mon, 02 Aug 2010 15:00:55 -0400
 Subject:
 Encrypt Form Fields Using JS


 Problem: Encrypt sensitive form fields (ie ssn) on client
   (javascript)

 Solution:  Create behavior which fires javascript to hash
field
  value
 and
 replace original value (###-##-)

 This sounds simple enough, but since the length of the hashed
  string
 will
 be considerably longer than the original string, validations

Re: Encrypt Form Fields Using JS

2010-08-03 Thread James Carman
They also understand that the one-way hashes aren't unique, right?  Two
values may hash (or, more accurately, message digest) to the same value, but
that doesn't mean they're equal.

On Tue, Aug 3, 2010 at 2:24 PM, mzem...@osc.state.ny.us wrote:

 I have to laugh because I also agree its kind of crazy...

 Yes the original value must be hashed by the client.  The reasoning being
 that SSL could be broken and expose the data.  I don't necessarily agree
 but thats how the original system was written.




 James Carman ja...@carmanconsulting.com
 Sent by: jcar...@carmanconsulting.com
 08/03/2010 02:19 PM
 Please respond to
 users@wicket.apache.org


 To
 users@wicket.apache.org
 cc

 Subject
 Re: Encrypt Form Fields Using JS






 And, you don't want to convert it before you store it in the db?  It must
 be
 converted at the browser level?  Is there any more information you can
 give
 us that would make this requirement not sound so crazy? :)

 On Tue, Aug 3, 2010 at 2:15 PM, mzem...@osc.state.ny.us wrote:

  Correct
 
 
 
 
  James Carman ja...@carmanconsulting.com
  Sent by: jcar...@carmanconsulting.com
  08/03/2010 02:12 PM
  Please respond to
  users@wicket.apache.org
 
 
  To
  users@wicket.apache.org
  cc
 
  Subject
  Re: Encrypt Form Fields Using JS
 
 
 
 
 
 
  So, you never need to get the original values out of the database?
 
  On Tue, Aug 3, 2010 at 2:10 PM, mzem...@osc.state.ny.us wrote:
 
   An already existing system is being rewritten and the db currently
  stores
   hashed values.  I don't disagree there are better ways to reach the
 end
   goal, but this is the spec I am working with.
  
  
  
  
   James Carman ja...@carmanconsulting.com
   Sent by: jcar...@carmanconsulting.com
   08/03/2010 01:45 PM
   Please respond to
   users@wicket.apache.org
  
  
   To
   users@wicket.apache.org
   cc
  
   Subject
   Re: Encrypt Form Fields Using JS
  
  
  
  
  
  
   And, what does that buy you?  Why do you want to submit one-way hashed
   values?
  
   On Tue, Aug 3, 2010 at 1:37 PM, mzem...@osc.state.ny.us wrote:
  
Ok, the value will be hashed, one-way...anyone have any ideas?
   
   
   
   
James Carman ja...@carmanconsulting.com
Sent by: jcar...@carmanconsulting.com
08/02/2010 04:42 PM
Please respond to
users@wicket.apache.org
   
   
To
users@wicket.apache.org
cc
   
Subject
Re: Encrypt Form Fields Using JS
   
   
   
   
   
   
Then it's not encryption.  Encrypted data should be readable to
  those
who
have the key.
   
On Mon, Aug 2, 2010 at 3:29 PM, mzem...@osc.state.ny.us wrote:
   
 Thanks for the reply, that would work however per our business
 rules
   the
 encryption must be one-way and will not be decrypted...




 Igor Vaynberg igor.vaynb...@gmail.com
 08/02/2010 03:23 PM
 Please respond to
 users@wicket.apache.org


 To
 users@wicket.apache.org
 cc

 Subject
 Re: Encrypt Form Fields Using JS






 override getinputasarray() on the field and decrypt it there, that
  way
 wicket sees the decrypted value

 -igor

 On Mon, Aug 2, 2010 at 12:14 PM,  mzem...@osc.state.ny.us wrote:
  I totally agree, seems like double-duty that accomplishes very
   little,
 and
  actually adds overhead.  But this is another debate and the
  feature
has
  been requested and must be implemented as I described...
 
 
 
 
  Craig McIlwee craig.mcil...@openroadsconsulting.com
  08/02/2010 03:06 PM
  Please respond to
  users@wicket.apache.org
 
 
  To
  users@wicket.apache.org
  cc
 
  Subject
  Re: Encrypt Form Fields Using JS
 
 
 
 
 
 
  Why not use a password field to keep the value hidden and SSL to
   make
 sure
  there are no man in the middle attacks.  Seems like you are
 making
   it
 too
  hard?
 
  - Original Message -
  From: mzem...@osc.state.ny.us
  To:
  users@wicket.apache.org
  Sent: Mon, 02 Aug 2010 15:00:55 -0400
  Subject:
  Encrypt Form Fields Using JS
 
 
  Problem: Encrypt sensitive form fields (ie ssn) on client
(javascript)
 
  Solution:  Create behavior which fires javascript to hash field
   value
  and
  replace original value (###-##-)
 
  This sounds simple enough, but since the length of the hashed
   string
  will
  be considerably longer than the original string, validations on
   this
  field
  (ssn must be nine digits) will fail.
 
  I've considered placing the hashed value into a hidden field,
 but
then
  the
  unencrypted value will be posted and the hashing accomplishes
nothing.
  If
  I clear out the original value I lose server-side validations.
   Anyone
  have any ideas of the best way to accomplish this?
 
 
 

Re: Encrypt Form Fields Using JS

2010-08-03 Thread Jeremy Thomerson
On Tue, Aug 3, 2010 at 1:24 PM, mzem...@osc.state.ny.us wrote:

 I have to laugh because I also agree its kind of crazy...

 Yes the original value must be hashed by the client.  The reasoning being
 that SSL could be broken and expose the data.  I don't necessarily agree
 but thats how the original system was written.


Client side JavaScript can certainly be broken *MUCH* easier than SSL.
 Perhaps the following reference [1] will help you resolve this situation :)

1 -
http://jobsearch.monster.com/PowerSearch.aspx?tjt=Programmerwhere=New%20York


-- 
Jeremy Thomerson
http://www.wickettraining.com


HTMLModel and path to access html file

2010-08-03 Thread Fernando Wermus
Hi all,
I have  a model that look up an html file for being shown.
But I have an issue regarding how to get the file without matters if the
site is in deployment or development mode.

I thought the following,

URL input=classComponent.getResource(help.html);

My html files are in /WEB-INF/html/com. and my classes are in
/classes/com

How can I find the resource accurately taking into account the a component?

thanks in advance



public class HtmlModel extends AbstractReadOnlyModel {
private static final long serialVersionUID = 9079057140521991184L;
 @SuppressWarnings(unused)
protected static Logger log = Logger.getLogger(HtmlModel.class);

@SuppressWarnings(unchecked)
private Class classComponent;

private String name;


@SuppressWarnings(unchecked)
public HtmlModel(String name, Class component){
this.name=name;
this.classComponent=component;
}
 @Override public Object getObject() {
BufferedReader reader=null;
StringBuffer html = new StringBuffer();
try {
String aux=null;
URL input=classComponent.getResource(name);
reader = new BufferedReader(new InputStreamReader(input.openStream()));
 while((aux=reader.readLine()) != null){
html.append(aux);
}
} catch (IOException e) {
log.error(e);
} finally {
try {
reader.close();
} catch (Exception e) {
log.error(e);
}
}
return html.toString();
}
}

-- 
Fernando Wermus.

www.linkedin.com/in/fernandowermus


How to send a Java object to the ModalWindow

2010-08-03 Thread zoran

Hi,

I used the approach described in
http://stuq.nl/weblog/2008-06-05/wicket-how-to-write-a-reusable-modal-window-popup
to create a ModalWindow panel with the input form. Everything works fine,
but I need to send a Java object instance to the panel before calling
selectModalWindow.show(target), so the panel can use the information to set
some form values and change the object after the form submit.

Can you suggest me how to make this?

Zoran
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-send-a-Java-object-to-the-ModalWindow-tp2312589p2312589.html
Sent from the Wicket - User mailing list archive at Nabble.com.

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



Re: How to send a Java object to the ModalWindow

2010-08-03 Thread Martin Makundi
There are many ways. This is one way:

modalWindow.setContent(new MyPanel(modalWindow.getContentId()) {
   @Override
   public MagicObject getMagicObject() {
   return magicObject;
   }
});


Also you can just pass your java object as parameter to myPanel or if
it is dynamic you can wrap it into a Model.

**
Martin

2010/8/4 zoran jeremy...@gmail.com:

 Hi,

 I used the approach described in
 http://stuq.nl/weblog/2008-06-05/wicket-how-to-write-a-reusable-modal-window-popup
 to create a ModalWindow panel with the input form. Everything works fine,
 but I need to send a Java object instance to the panel before calling
 selectModalWindow.show(target), so the panel can use the information to set
 some form values and change the object after the form submit.

 Can you suggest me how to make this?

 Zoran
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/How-to-send-a-Java-object-to-the-ModalWindow-tp2312589p2312589.html
 Sent from the Wicket - User mailing list archive at Nabble.com.

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



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



FormComponentPanel and list edit

2010-08-03 Thread Joseph Pachod
hi
IF
we're heavily reusing the edit components we do, and as such we wanted them to 
behave as good form citizen. On our way, we spotted the FormComponentPanel, 
which seems to achieve our goal.

Yet, a question has popped up: how to deal with List edit ? Indeed, none of the 
class extending AbstractRepeater is a form component. As such, there's no 
getConvertedInput that could be used to compose the result when using a 
repeater.

Currently, the approach we have taken is to wrap the list edit used 
(listview/listEditor for example) in a FormComponentPanel and, on convertInput, 
we first visit all children and call IFormModelUpdateListener.updateModel where 
possible. And then we use the backing model of the list editor to compose our 
result.

This doesn't seem 100% right and we already had some issue where some component 
updateModel was called before convertInput was, resulting in a null 
convertedInput being used.

In the distant future we plan to implement a list editor being a FormComponent 
and requesting a FormComponent to populate each row. As such we could iterate 
over each row formComponent and call getConvertedInput there.

is it appropriate ? Would you recommend some other approach ?

thanks in advance
++
joseph

Re: Stack Overflow Error

2010-08-03 Thread Pamir Erdem
The problem solution is not increasing the max stack size in my opinion. The
matter with this issue i think inside it is recursion. Could you please
download the source and debug it. It could be bug or sth cause to infinite
recursive calls.

On Tue, Aug 3, 2010 at 6:05 PM, Martin Makundi 
martin.maku...@koodaripalvelut.com wrote:

 Hi!

 I had the same and for me the solution was to increase -vmargs
 -Xss1234k  size bigger.

 **
 Martin

 2010/8/3 Douglas Ferguson doug...@douglasferguson.us:
   I wrote about this awhile ago and got some great responses. I poured
 over
  the code and couldn't find anything that would meet the criteria that you
  guys suggested.
 
  Does anybody have any suggestions as to how I could track this down?
 
  Douglas.
 
 
 
  2010-08-03 09:45:13,257 INFO  [TP-Processor13]
 wicket.PRManagerRequestCycle
  - Found PageExpiredException: Redirecting to login
  2010-08-03 09:45:13,996 ERROR [TP-Processor13]
 wicket.PRManagerRequestCycle
  - Caught StackOverflowError on detach... invalidating session User[null]
  java.lang.StackOverflowError
  at java.io.ObjectStreamClass.getPrimFieldValues(Unknown Source)
  at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
  at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source)
  at java.math.BigDecimal.writeObject(Unknown Source)
  at sun.reflect.GeneratedMethodAccessor55.invoke(Unknown Source)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  at java.lang.reflect.Method.invoke(Unknown Source)
  at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source)
  at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
  at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
  at java.io.ObjectOutputStream.writeObject0(Unknown Source)
  at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
  at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
  at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
  at java.io.ObjectOutputStream.writeObject0(Unknown Source)
  at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
  at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
  at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
  at java.io.ObjectOutputStream.writeObject0(Unknown Source)
  at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
  at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
  at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
  at java.io.ObjectOutputStream.writeObject0(Unknown Source)
  at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
  at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
  at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
  at java.io.ObjectOutputStream.writeObject0(Unknown Source)
  at java.io.ObjectOutputStream.writeObject(Unknown Source)
  at java.util.ArrayList.writeObject(Unknown Source)
  at sun.reflect.GeneratedMethodAccessor50.invoke(Unknown Source)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  at java.lang.reflect.Method.invoke(Unknown Source)
  at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source)
  at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
  at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
  at java.io.ObjectOutputStream.writeObject0(Unknown Source)
  at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
  at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
  at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
  at java.io.ObjectOutputStream.writeObject0(Unknown Source)
  at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
  at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
  at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
  at java.io.ObjectOutputStream.writeObject0(Unknown Source)
  at java.io.ObjectOutputStream.writeArray(Unknown Source)
  at java.io.ObjectOutputStream.writeObject0(Unknown Source)
  at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
  at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
  at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
  at java.io.ObjectOutputStream.writeObject0(Unknown Source)
  at java.io.ObjectOutputStream.writeArray(Unknown Source)
  at java.io.ObjectOutputStream.writeObject0(Unknown Source)
  at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
  at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
  at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
  at java.io.ObjectOutputStream.writeObject0(Unknown Source)
  at java.io.ObjectOutputStream.writeObject(Unknown Source)
  at
 
 org.apache.wicket.util.io.IObjectStreamFactory$DefaultObjectStreamFactory$2.writeObjectOverride(IObjectStreamFactory.java:121)
  at java.io.ObjectOutputStream.writeObject(Unknown Source)
  at
 org.apache.wicket.util.lang.Objects.objectToByteArray(Objects.java:1124)
  at
 
 

Re: How to send a Java object to the ModalWindow

2010-08-03 Thread zoran

Hi Martin,

I'm using dynamic objects. In the first way based on the some event (e.g.
tree node selection) I want to setup this MagicObject in home page, and then
to show panel. Between these two there should be a call of getMagicObject()
from the panel. 
How can I set this happen in appropriate moment?

In the third example, I'm not sure how I can send a Model to the Panel. Can
you give me some small example?

Thanks 
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-send-a-Java-object-to-the-ModalWindow-tp2312589p2312657.html
Sent from the Wicket - User mailing list archive at Nabble.com.

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



Re: Stack Overflow Error

2010-08-03 Thread Igor Vaynberg
catch the exception and dump the serialization hierarchy of the the
page objects into stdout accounting for circular references?

-igor

On Tue, Aug 3, 2010 at 7:58 AM, Douglas Ferguson
doug...@douglasferguson.us wrote:
 I wrote about this awhile ago and got some great responses. I poured over
 the code and couldn't find anything that would meet the criteria that you
 guys suggested.

 Does anybody have any suggestions as to how I could track this down?

 Douglas.



 2010-08-03 09:45:13,257 INFO  [TP-Processor13] wicket.PRManagerRequestCycle
 - Found PageExpiredException: Redirecting to login
 2010-08-03 09:45:13,996 ERROR [TP-Processor13] wicket.PRManagerRequestCycle
 - Caught StackOverflowError on detach... invalidating session User[null]
 java.lang.StackOverflowError
 at java.io.ObjectStreamClass.getPrimFieldValues(Unknown Source)
 at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
 at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source)
 at java.math.BigDecimal.writeObject(Unknown Source)
 at sun.reflect.GeneratedMethodAccessor55.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source)
 at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
 at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
 at java.io.ObjectOutputStream.writeObject0(Unknown Source)
 at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
 at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
 at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
 at java.io.ObjectOutputStream.writeObject0(Unknown Source)
 at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
 at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
 at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
 at java.io.ObjectOutputStream.writeObject0(Unknown Source)
 at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
 at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
 at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
 at java.io.ObjectOutputStream.writeObject0(Unknown Source)
 at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
 at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
 at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
 at java.io.ObjectOutputStream.writeObject0(Unknown Source)
 at java.io.ObjectOutputStream.writeObject(Unknown Source)
 at java.util.ArrayList.writeObject(Unknown Source)
 at sun.reflect.GeneratedMethodAccessor50.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source)
 at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
 at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
 at java.io.ObjectOutputStream.writeObject0(Unknown Source)
 at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
 at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
 at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
 at java.io.ObjectOutputStream.writeObject0(Unknown Source)
 at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
 at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
 at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
 at java.io.ObjectOutputStream.writeObject0(Unknown Source)
 at java.io.ObjectOutputStream.writeArray(Unknown Source)
 at java.io.ObjectOutputStream.writeObject0(Unknown Source)
 at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
 at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
 at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
 at java.io.ObjectOutputStream.writeObject0(Unknown Source)
 at java.io.ObjectOutputStream.writeArray(Unknown Source)
 at java.io.ObjectOutputStream.writeObject0(Unknown Source)
 at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
 at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
 at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
 at java.io.ObjectOutputStream.writeObject0(Unknown Source)
 at java.io.ObjectOutputStream.writeObject(Unknown Source)
 at
 org.apache.wicket.util.io.IObjectStreamFactory$DefaultObjectStreamFactory$2.writeObjectOverride(IObjectStreamFactory.java:121)
 at java.io.ObjectOutputStream.writeObject(Unknown Source)
 at org.apache.wicket.util.lang.Objects.objectToByteArray(Objects.java:1124)
 at
 org.apache.wicket.protocol.http.pagestore.AbstractPageStore.serializePage(AbstractPageStore.java:203)
 at
 org.apache.wicket.protocol.http.pagestore.DiskPageStore.prepareForSerialization(DiskPageStore.java:1190)
 at
 org.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.writeObject(SecondLevelCacheSessionStore.java:386)
 at 

Re: FormComponentPanel and list edit

2010-08-03 Thread Igor Vaynberg
visit all the children, check if they are a FormComponent and call
convertinput() followed by getconvertedinput()

-igor

On Tue, Aug 3, 2010 at 2:42 PM, Joseph Pachod
josephpac...@thomas-daily.de wrote:
 hi
 IF
 we're heavily reusing the edit components we do, and as such we wanted them 
 to behave as good form citizen. On our way, we spotted the 
 FormComponentPanel, which seems to achieve our goal.

 Yet, a question has popped up: how to deal with List edit ? Indeed, none of 
 the class extending AbstractRepeater is a form component. As such, there's no 
 getConvertedInput that could be used to compose the result when using a 
 repeater.

 Currently, the approach we have taken is to wrap the list edit used 
 (listview/listEditor for example) in a FormComponentPanel and, on 
 convertInput, we first visit all children and call 
 IFormModelUpdateListener.updateModel where possible. And then we use the 
 backing model of the list editor to compose our result.

 This doesn't seem 100% right and we already had some issue where some 
 component updateModel was called before convertInput was, resulting in a null 
 convertedInput being used.

 In the distant future we plan to implement a list editor being a 
 FormComponent and requesting a FormComponent to populate each row. As such we 
 could iterate over each row formComponent and call getConvertedInput there.

 is it appropriate ? Would you recommend some other approach ?

 thanks in advance
 ++
 joseph

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



How to setResponsePage with a classname string parameter?

2010-08-03 Thread rolandpeng

Hi,I want to redirect to a dynamic webpage,but I can only get the destination
as a fullpath classname string .The sample code like below,

String pageClass=task.getFormResourceName();

WebPage page=null;
if(pageClass.equals(com.sandbox.Page1)){
page=new Page1();
}else if(pageClass.equals(com.sandbox.practices.Page2)){
page=new Page2();
}else if(pageClass.equals(com.sandbox.practices.Page3)){
page=new Page3();
}
setResponsePage(page);

Is there any better way to replace this if...else if way? I have tried
Class.forname(pageClass),but compiles error and shows Bound mismatch,like
below,

Bound mismatch: The generic method setResponsePage(ClassC) of type
Component is not applicable for the arguments (Classcapture#3-of ?). The
inferred type capture#3-of ? is not a valid substitute for the bounded
parameter C extends Page.

Any suggestion is welcome,thank you.
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-setResponsePage-with-a-classname-string-parameter-tp2312847p2312847.html
Sent from the Wicket - User mailing list archive at Nabble.com.

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



Re: Model Is Not being Refreshed

2010-08-03 Thread Nivedan Nadaraj
Hi,

I have attached the code as a text file. I have removed lines that don't
really make any contribution to the problem at hand after carefully
examining it.

Appreciate your time if you could see any issues please let me know.

Basically the code has the Form objects I used, and the different panels
involved with it.

Many thanks
Niv

On Tue, Aug 3, 2010 at 10:30 PM, Nivedan Nadaraj shravann...@gmail.comwrote:

 Avraham and Matt,

 Thanks for the points. I will have a look at it tomorrow and post the code
 if I still haven't resolved. I don't have the code on me at the moment.
 Reg
 Niv




 On Tue, Aug 3, 2010 at 9:41 PM, mwilber matt.wil...@gmail.com wrote:


 Again without seeing more of the code some of this is guessing.

 If the component that you are trying to update is not part of the
 original
 HTML it will not be updated in the ajax response. I see that you are
 marking
 the component as visible and enabled. If it isn't visible during the
 initial
 rendering then it won't be placed in the HTML. If you mark the component
 with

 http://wicket.apache.org/apidocs/1.4/org/apache/wicket/Component.html#setOutputMarkupPlaceholderTag(boolean)http://wicket.apache.org/apidocs/1.4/org/apache/wicket/Component.html#setOutputMarkupPlaceholderTag%28boolean%29
 setOutputMarkupPlaceholderTag(true)  then the invisible component will
 have
 a placeholder to be updated during the ajax response.
 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Model-Is-Not-being-Refreshed-tp2311457p2311876.html
 Sent from the Wicket - User mailing list archive at Nabble.com.

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




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

Re: How to setResponsePage with a classname string parameter?

2010-08-03 Thread James Carman
Cast it?

On Aug 3, 2010 10:19 PM, rolandpeng rolandp...@cht.com.tw wrote:

 Hi,I want to redirect to a dynamic webpage,but I can only get the
destination
 as a fullpath classname string .The sample code like below,

 String pageClass=task.getFormResourceName();

 WebPage page=null;
 if(pageClass.equals(com.sandbox.Page1)){
 page=new Page1();
 }else if(pageClass.equals(com.sandbox.practices.Page2)){
 page=new Page2();
 }else if(pageClass.equals(com.sandbox.practices.Page3)){
 page=new Page3();
 }
 setResponsePage(page);

 Is there any better way to replace this if...else if way? I have tried
 Class.forname(pageClass),but compiles error and shows Bound mismatch,like
 below,

 Bound mismatch: The generic method setResponsePage(ClassC) of type
 Component is not applicable for the arguments (Classcapture#3-of ?). The
 inferred type capture#3-of ? is not a valid substitute for the bounded
 parameter C extends Page.

 Any suggestion is welcome,thank you.
 --
 View this message in context:
http://apache-wicket.1842946.n4.nabble.com/How-to-setResponsePage-with-a-classname-string-parameter-tp2312847p2312847.html
 Sent from the Wicket - User mailing list archive at Nabble.com.

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



Re: How to setResponsePage with a classname string parameter?

2010-08-03 Thread rolandpeng

I've also tried casting like this.
setResponsePage((Page)Class.forName(pageClass));

but compiles error as well,the message below,
The method setResponsePage(ClassC) in the type Component is not applicable
for the arguments (Page)


James Carman wrote:
 
 Cast it?
 
 On Aug 3, 2010 10:19 PM, rolandpeng rolandp...@cht.com.tw wrote:
 
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-setResponsePage-with-a-classname-string-parameter-tp2312847p2312876.html
Sent from the Wicket - User mailing list archive at Nabble.com.

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



Re: How to setResponsePage with a classname string parameter?

2010-08-03 Thread rolandpeng

oh,I've figured it out...I should cast it with generic class. thank you :)

try {
  setResponsePage((ClassPage)Class.forName(pageClass));
} catch (ClassNotFoundException e) {
  e.printStackTrace();
}   


rolandpeng wrote:
 
 I've also tried casting like this.
 setResponsePage((Page)Class.forName(pageClass));
 
 but compiles error as well,the message below,
 The method setResponsePage(ClassC) in the type Component is not
 applicable for the arguments (Page)
 
 
 James Carman wrote:
 
 Cast it?
 
 On Aug 3, 2010 10:19 PM, rolandpeng rolandp...@cht.com.tw wrote:
 
 
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-setResponsePage-with-a-classname-string-parameter-tp2312847p2312878.html
Sent from the Wicket - User mailing list archive at Nabble.com.

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



Re: Model Is Not being Refreshed

2010-08-03 Thread Nivedan Nadaraj
Hi


After I added setOutputMarkupPlaceHolderTag(true) to the details panel, the
Ajax function works and I can see the details panel. (Which I could not
earlier)
However, the problem still remains as in the model has not been updated and
still refers to the stale/old one.

@avrahmr
I used the setModel but I get a wicket runtime exception.

Thanks for your thoughts.
Niv

On Wed, Aug 4, 2010 at 10:25 AM, Nivedan Nadaraj shravann...@gmail.comwrote:

 Hi,

 I have attached the code as a text file. I have removed lines that don't
 really make any contribution to the problem at hand after carefully
 examining it.

 Appreciate your time if you could see any issues please let me know.

 Basically the code has the Form objects I used, and the different panels
 involved with it.

 Many thanks
 Niv


 On Tue, Aug 3, 2010 at 10:30 PM, Nivedan Nadaraj shravann...@gmail.comwrote:

 Avraham and Matt,

 Thanks for the points. I will have a look at it tomorrow and post the code
 if I still haven't resolved. I don't have the code on me at the moment.
 Reg
 Niv




 On Tue, Aug 3, 2010 at 9:41 PM, mwilber matt.wil...@gmail.com wrote:


 Again without seeing more of the code some of this is guessing.

 If the component that you are trying to update is not part of the
 original
 HTML it will not be updated in the ajax response. I see that you are
 marking
 the component as visible and enabled. If it isn't visible during the
 initial
 rendering then it won't be placed in the HTML. If you mark the component
 with

 http://wicket.apache.org/apidocs/1.4/org/apache/wicket/Component.html#setOutputMarkupPlaceholderTag(boolean)http://wicket.apache.org/apidocs/1.4/org/apache/wicket/Component.html#setOutputMarkupPlaceholderTag%28boolean%29
 setOutputMarkupPlaceholderTag(true)  then the invisible component will
 have
 a placeholder to be updated during the ajax response.
 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Model-Is-Not-being-Refreshed-tp2311457p2311876.html
 Sent from the Wicket - User mailing list archive at Nabble.com.

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






Re: How to send a Java object to the ModalWindow

2010-08-03 Thread Martin Makundi
Hi!

 I'm using dynamic objects. In the first way based on the some event (e.g.
 tree node selection) I want to setup this MagicObject in home page, and then
 to show panel. Between these two there should be a call of getMagicObject()
 from the panel.
 How can I set this happen in appropriate moment?

I don't understand what you mean with appropriate moment if you do it
sequentially assuming there is only one thread operating.

 In the third example, I'm not sure how I can send a Model to the Panel. Can
 you give me some small example?

I can give you an example, but currently I don't exactly understand
your use-case. What is your use case?

Is the modal panel on home page? In that case home page is the one
that opens the modal panel so you can pass (set/constructor
argument/override getter) anything when you open the modal panel and
when you close the modal panel you can get the result if you need it.
If  it is a longer term data you can store it into the session.

A modal panel can be treated same way as any other wicket component,
label for example. How to pass model to label? Simply
new Label(wicket-id, dynamicModel);

For modal window it is the same. You create the modal window panel
when you open it. If you want to create the panel before opening it
then you must pass it a dynamicModel whose value is correct when it is
opened (it is set somewhere) or you must appropriately set it in the
open-event. What is the open event? Yes, it is when you call
modalWindow.show(); so you can then call
modalwindowcontent.setpropervalue(xx);

I hope this helps ;) If you give an exact use case I can answer more precisely.

**
Martin


 Thanks
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/How-to-send-a-Java-object-to-the-ModalWindow-tp2312589p2312657.html
 Sent from the Wicket - User mailing list archive at Nabble.com.

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



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



Re: wiQuery grid row expander

2010-08-03 Thread John Armstrong
Hi Ernesto,
  I am very interested in contributing and completed my first plugin
this evening. Let me know how I can push this back into the distro or
if I should host in a separate space etc.

Tx!
John-

On Wed, Jun 30, 2010 at 2:12 PM, Ernesto Reinaldo Barreiro
reier...@gmail.com wrote:
 John,

 I just uploaded an small demo of [1] to [2]. Please ping me offline if
 you want to contribute to the project.

 Best,

 Ernesto

 1-http://code.google.com/p/wiquery-plugins/source/browse/#svn/trunk/wiquery-plugins/j
 2-http://wiquery-plugins-demo.appspot.com/demo/

 On Wed, Jun 30, 2010 at 4:56 PM, John Armstrong siber...@siberian.org wrote:
 Ahh missed that.

 Tx Ernesto, I will take a look at jq and see if I can help!

 J

 On Tue, Jun 29, 2010 at 10:57 PM, Ernesto Reinaldo Barreiro
 reier...@gmail.com wrote:
 John,

 See [1] and in particular the answer from Cemal (the one on Jun 16...)
 That might answer part of your question.

 Some time ago I have started [2], the implementation there is not that
 complete yet but at least it could give you a starting point. And, of
 course, patches and contributions are always welcome!

 Best,

 Ernesto

 1-http://apache-wicket.1842946.n4.nabble.com/wiQuery-components-with-server-side-state-live-demo-tc1842975.html#none
 2-http://code.google.com/p/wiquery-plugins/source/browse/#svn/trunk/wiquery-plugins/jqgrid

 On Wed, Jun 30, 2010 at 6:34 AM, John Armstrong siber...@siberian.org 
 wrote:
 Back in march there was a thread titled wiQuery components with
 server side state - live demo

 On that thread Richard Poway and I corresponded about a Grid Row Expander.

 I never saw the reply but in a recent google for this I can across a
 link he posted in that thread

 http://labs.jweekend.com/public/grid/GridRowExpanderPage

 This link is now password protected.

 Richard/anyone from jweekend : Does this link still exit?

 Tx!
 John-

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



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



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



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



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