Re: replaceWith method in Panel not working with AjaxLazyLoadPanel

2014-02-08 Thread Paul Bors
Replace it it on the parent, then add the parent to the ajax target to be 
refreshed on the screen.

~ Thank you,
   Paul Bors

On Feb 6, 2014, at 5:25 AM, Vishal Popat vishal_po...@hotmail.com wrote:

 Hi,
 
 I have the following panel layout:
 
 SomeOtherPanel
 AjaxLazyLoadPanel
   Panel loading with AjaxLazyLoadPanel
   PanelToReplace
 
 I am trying to replace PanelToReplace using replaceWith within 
 IndicatingAjaxFallbackLink onClick method but I get the message:
 Component '[EmptyPanel [Component id = additionalInfo]]' with markupid: 
 'additionalInfo3e' not rendered because it was already removed from page.
 
 Using the same approach, I have replaced SomeOtherPanel which is not inside 
 AjaxLazyLoadPanel and it works fine.
 
 So it seems I cannot use replaceWith when the Panel is within 
 AjaxLazyLoadPanel.
 Is there an alternative way to do this?
 
 Regards
 Vishal
 -
 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: Wicket Wizzard Question / Custom Overview Bars

2014-02-08 Thread Paul Bors
Find the panel you want to modify, say the WizardButtonBar and extend it:

public class MyWizardButtonBar extends WizardButtonBar {
private static final long serialVersionUID = 1L;

public MyWizardButtonBar(String id, Wizard wizard, final boolean
finishOnAnyStep) {
super(id, wizard);
addOrReplace(new MyFinishButton(finish, wizard) {
private static final long serialVersionUID = 1L;
@Override
public boolean isEnabled() {
return (super.isEnabled() || finishOnAnyStep);
}
});
}
}

Then change its HTML to whatever you want, ie MyWizardButtonBar.html I have
as:
html xmlns:wicket=http://wicket.apache.org;
 wicket:panel
 div align=right
  input wicket:id=previous   type=submit
class=toolbox-form-submit value=[Previous] /
  input wicket:id=next   type=submit
class=toolbox-form-submit value=[Next] /
  input wicket:id=last   type=submit
class=toolbox-form-submit value=[Last] /
  input wicket:id=cancel type=submit
class=toolbox-form-submit value=[Cancel] /
  input wicket:id=finish type=submit
class=toolbox-form-submit value=[Finish] /
  /div
 /wicket:panel
/html

Finally, extend the Wizard itself and override the factory method you need
changed:

public class MyWizard extends Wizard {
...
@Override
protected Component newButtonBar(String id) {
return new MyWizardButtonBar(id, this, finishOnAnyStep());
}
...
}

Then change the Wizard's HTML as you please but preserve the Wicket
component tree hirarachy.
Something like this:

html xmlns:wicket=http://wicket.apache.org;
wicket:panel
form wicket:id=form
table class=wicketExtensionsWizardOuterTable
tr
td valign=top
span wicket:id=overview[[Overview]]/span
/td
td valign=top
table class=wicketExtensionsWizardInnerTable
tr class=wicketExtensionsWizardHeaderRow
td valign=top
class=wicketExtensionsWizardHeaderspan
wicket:id=header[[Header]]/span/td
/tr
tr class=wicketExtensionsWizardViewRow
td valign=top
class=wicketExtensionsWizardViewdiv wicket:id=view
class=wicketExtensionsWizardViewInner[[View]]/div/td
/tr
tr class=wicketExtensionsWizardFeedbackRow
td valign=top
class=wicketExtensionsWizardFeedbackspan
wicket:id=feedback[[Feeback]]/span/td
/tr
tr class=wicketExtensionsWizardButtonBarRow
td valign=top
class=wicketExtensionsWizardButtonBarspan
wicket:id=buttons[[Buttons]]/span/td
/tr
/table
/td
/tr
/table
/form
/wicket:panel
/html

On a side note, I didn't like the default of the Finish button so I changed
that too:

public class MyFinishButton extends WizardButton {
private static final long serialVersionUID = 1L;

public MyFinishButton(String id, IWizard wizard) {
super(id, wizard, org.apache.wicket.extensions.wizard.finish);
}

/**
 * @see org.apache.wicket.Component#isEnabled()
 */
public boolean isEnabled() {
IWizardStep activeStep = getWizardModel().getActiveStep();
return (activeStep != null 
getWizardModel().isLastStep(activeStep));
}

/**
 * @see org.apache.wicket.extensions.wizard.WizardButton#onClick()
 */
public final void onClick() {
IWizardModel wizardModel = getWizardModel();
IWizardStep step = wizardModel.getActiveStep();

// let the step apply any state
step.applyState();

// if the step completed after applying the state, notify the wizard
if(step.isComplete()) {
getWizardModel().finish();
} else {
error(getLocalizer().getString(

org.apache.wicket.extensions.wizard.FinishButton.step.did.not.complete,
this)
);
}
}
}


On Fri, Feb 7, 2014 at 9:04 AM, Patrick Davids patrick.dav...@nubologic.com
 wrote:

 Hi all,
 did someone already noticed, a custom overriden overview-bar of wickets
 wizzard is displayed in a td left of the Step contents ?

 I thought it would be on the top...

 Or did I misunderstood the meaning of the overview bar?
 Is it meant as kind of menu?!

 kind regards
 Patrick


I have not found file where per session data get store under work Folder in wicket application

2014-02-08 Thread Sharad Raut


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/I-have-not-found-file-where-per-session-data-get-store-under-work-Folder-in-wicket-application-tp4664316.html
Sent from the Users forum 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: What is the default size of max per session in wicket

2014-02-08 Thread Sharad Raut
Thanks for replay.
By default it shows value 10MB.
Is it sufficient 



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/What-is-the-default-size-of-max-per-session-in-wicket-tp4664307p4664315.html
Sent from the Users forum 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



Modular Wicket Application

2014-02-08 Thread IowA
Hello all, I am new to Wicket. When I use Guice in Wicket's quickstart
everything works like a charm and it is possible to deploy it on Tomcat. But
when i use same code + write my module deploying to Tomcat ends with errors.
Catalina - http://pastebin.com/CaFGzDta
Tomcat - http://pastebin.com/prEU4RX5

wicket module pom.xml - http://pastebin.com/zF0z2MiN
domain module pom.xml - http://pastebin.com/bLkbwhsN
parent pom.xml - http://pastebin.com/hC9sLpuJ

Any ideas what I am doing wrong?

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Modular-Wicket-Application-tp4664317.html
Sent from the Users forum 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: I have not found file where per session data get store under work Folder in wicket application

2014-02-08 Thread Paul Bors
Are you after the user session or the cashed page store, page map?
https://cwiki.apache.org/confluence/display/WICKET/Page+maps

Drop the wicket debug artifact in your wicket webapp then load this URL to see 
the Wicket Debug Bar and you can get to see the Wicket Sessions Inspector.
Set this to true in your application when running in debug 
getDebugSettings().setDevelopmentUtilitiesEnabled(true);

Have fun!


On Feb 8, 2014, at 4:02 AM, Sharad Raut raut.sha...@gmail.com wrote:

 
 
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/I-have-not-found-file-where-per-session-data-get-store-under-work-Folder-in-wicket-application-tp4664316.html
 Sent from the Users forum 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: Modular Wicket Application

2014-02-08 Thread Paul Bors
I’m no expert, but it looks like your filter is not started right. That should 
be configured via the web.xml file.

Perhaps you could create a quick-start and package your project for us to see 
it as a whole?
Only the minimal code that produces the error should be packaged.

On Feb 8, 2014, at 4:12 AM, IowA reginald...@gmail.com wrote:

 Hello all, I am new to Wicket. When I use Guice in Wicket's quickstart
 everything works like a charm and it is possible to deploy it on Tomcat. But
 when i use same code + write my module deploying to Tomcat ends with errors.
 Catalina - http://pastebin.com/CaFGzDta
 Tomcat - http://pastebin.com/prEU4RX5
 
 wicket module pom.xml - http://pastebin.com/zF0z2MiN
 domain module pom.xml - http://pastebin.com/bLkbwhsN
 parent pom.xml - http://pastebin.com/hC9sLpuJ
 
 Any ideas what I am doing wrong?
 
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Modular-Wicket-Application-tp4664317.html
 Sent from the Users forum 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: Visual HTML diff in Wicket?

2014-02-08 Thread Paul Bors
I would say to find out what Jira is using to diff the CSV commits and use that 
:)

On Feb 6, 2014, at 4:06 PM, Stephan Schrader zsteph...@gmail.com wrote:

 You could try https://github.com/alkacon/alkacon-diff
 
 Stephan
 
 
 Am 06.02.2014 um 10:53 schrieb Martin Dietze d...@fh-wedel.de:
 
 In my system there is an editorial submodule for creating HTML
 contents. As I am about to add a versioning history to it, I'd
 like to add some kind of visualisation of what changed from edit
 to edit. 
 
 Does anyone here know of something like a library for this that
 can be used conveniently in a Wicket-based application? Free
 would be nice, but commercial (depending on the price, of
 course) would be an option, too.
 
 Cheers,
 
 M'bert
 
 -- 
 --- / http://herbert.the-little-red-haired-girl.org / -
 =+= 
 Albert Camus wrote that the only serious question is whether to kill yourself
 or not.  Tom Robbins wrote that the only serious question is whether time has
 a beginning and an end.  Camus clearly got up on the wrong side of bed, and
 Robbins must have forgotten to set the alarm.  -- Tom Robbins
 
 -
 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: Apache wicket project as osgi compoments

2014-02-08 Thread Paul Bors
We solved this by using customized security permissions.
If a user wasn’t given the permission for module A, so be it :)

On Feb 4, 2014, at 7:49 PM, Shengche Hsiao shengchehs...@gmail.com wrote:

 Hello
 
 Thanks for reply, indeed I plan to implement my wicket project in osgi way!
 But I don't know how to start it, thanks for hyper links, I'll check it out.
 
 
 On Wed, Feb 5, 2014 at 3:42 AM, Francois Meillet francois.meil...@gmail.com
 wrote:
 
 You should have a look at
 
 http://code.google.com/p/osgi-enterprise/wiki/WicketAndOsgi
 https://github.com/wicketstuff/core/wiki/Osgi
 http://hwellmann.blogspot.fr/2011/06/wicket-and-osgi.html
 
 http://www.volkomenjuist.nl/blog/2012/07/25/wicket-mounting-in-an-osgi-environment/
 https://ops4j1.jira.com/wiki/display/paxwicket/Install+Pax+Wicket
 
 http://karaf.922171.n3.nabble.com/pax-wicket-example-running-on-karaf-td4027622.html
 
 François Meillet
 Formation Wicket - Développement Wicket
 
 
 
 
 
 Le 4 févr. 2014 à 17:01, tho...@jarnot.de a écrit :
 
 Although we don't know anything about your application structure, I tend
 to
 answer YES.
 
 Assuming from the subject, that we are talking about OSGi modules (or
 rather
 bundles), making the application capable of that dynamism is surely
 possible. It simply depends on your decision of utilizing the OSGi
 programming model and execution environment. Do you have your application
 modules OSGi ready?
 
 Having a look a the wicket-distribution it seems to be OSGi-ready. You
 also
 may have a look at the Pax Wicket extension.
 
 So you're probably good to go.
 
 
 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Apache-wicket-project-as-osgi-compoments-tp4664159p4664164.html
 Sent from the Users forum 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
 
 
 
 
 
 -- 
 
 ---
 We do this not because it is easy. We do this because it is hard.
 ---
 ShengChe Hsiao
 ---
 front...@gmail.com
 front...@tc.edu.tw
 ---
 VoIP : 070-910-2450
 ---


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



Web app vulnerability protection in wicket (csrf)

2014-02-08 Thread Brown, Berlin [PRI-1PP]
Does wicket have support for top vulnerabilities?  Mainly I am trying to 
protect against cross site scripting and cross site request forgery attacks.

I haven't found anything yet  explicitly for those attacks but for CSRF, I was 
going to try to use the encrypted URL strategy.  (And I am assuming the default 
URL versioning strategy or the random parameter on the url is not a full 
protection against those attacks?).

Also, for csrf, is there an easy way to inject tokens for each request, if 
those tokens are valid, then we could generate an error.

Note: I am assuming an ancient version of wicket.1.4.x(1.4.15).