Re: "Catch-all" FencedFeedbackPanel and message-level filter in nested FencedFeedbackPanel

2014-04-22 Thread Alexander Morozov
Done, https://issues.apache.org/jira/browse/WICKET-5566 - -- http://www.linkedin.com/in/amorozov -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Catch-all-FencedFeedbackPanel-and-message-level-filter-in-nested-

"Catch-all" FencedFeedbackPanel and message-level filter in nested FencedFeedbackPanel

2014-04-22 Thread Alexander Morozov
Hi!We have almost successfully use FencedFeedbackPanel feedback, until we enable ErrorLevelFeedbackMessageFilter in nested FencedFeedbackPanels.Here is page structure:*The issue:* catch-all FencedFeedbackPanel doesn't show "success" messages, added by submit links in Panel1 or Panel2, hence message

Re: Wicket+Spring Security the Wicket way

2012-10-02 Thread Alexander Morozov
Check out this open-source project http://www.jfrog.com/home/v_artifactory_opensource_source and look at security.xml file. It is good example how to integrate wicket and spring security. - -- http://www.linkedin.com/in/amorozov -- View this message in context: http://apache-wicket.1842946.

Re: Avoid panel's extra div

2012-10-02 Thread Alexander Morozov
Also take a look at tag https://cwiki.apache.org/WICKET/wickets-xhtml-tags.html . Oscar Besga Arcauz wrote > Hi wickersI am using a lot of panels in my wicket webapp, with the > usual    add(new MyPanel("myPanel"));    > But I was thinking if there is a wicket tag that can avoid using the extra

Re: [announce] Wicket-CDI for Wicket 6.0.0 released

2012-09-11 Thread Alexander Morozov
Great news! Thanks. I'll wait for 6.1.0 :) - -- http://www.linkedin.com/in/amorozov -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/announce-Wicket-CDI-for-Wicket-6-0-0-released-tp4651924p4651935.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Radio button selection

2011-11-22 Thread Alexander Morozov
Check quickstart app http://apache-wicket.1842946.n4.nabble.com/file/n4096248/myproject.zip myproject.zip Hope it helps :) - -- http://www.linkedin.com/in/amorozov -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Radio-button-selection-tp4085827p4096248.html Sent

Re: Radio button selection

2011-11-20 Thread Alexander Morozov
Just an idea :) private final IModel yesNoState = new Model(); final TextField textField = new TextField("text", ...); textField.setOutputMarkupId(true); ... add(new AbstractBehavior() { @Override public void configure(Component component) { component.setVisible(Boolean.TRUE.equals(yesN

Re: Palette select the data with one click

2011-09-25 Thread Alexander Morozov
I think you should use *AjaxFormChoiceComponentUpdatingBehavior* - -- http://www.linkedin.com/in/amorozov -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Palette-select-the-data-with-one-click-tp3839870p3841356.html Sent from the Users forum mailing list archive at

Re: getSession() in LDM

2011-07-08 Thread Alexander Morozov
Yep, use Session.get() method. - -- http://www.linkedin.com/in/amorozov -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/getSession-in-LDM-tp3654618p3654647.html Sent from the Users forum mailing list archive at Nabble.com. -

Re: error - serialization

2011-07-03 Thread Alexander Morozov
You have JDBC Connection reference within Index page implementation. Check LoadableDetachableModel and never store Connection and other JDBC stuff within wicket components. - -- http://www.linkedin.com/in/amorozov -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/er

Re: Users, sessions, data...

2011-06-15 Thread Alexander Morozov
Zeldor wrote: > > But what are benefits of small session really? With entire user in session > I can skip getting data from db and serve data faster... > In clustered env small session get replicated much faster. I think that wicket's session shouldn't be used for storing any business data. Any

Re: AutoCompleteBehavior rendering question

2011-06-14 Thread Alexander Morozov
Hi, could you try to use custom IConverter ? public class MyAutocompleteTextField extends AutoCompleteTextField { public MyAutocompleteTextField(...) { super(...); setType(MyModel.class); } protected Iterator getChoices(String input) { ... } public IConverter getConverter(...

Re: link within modal window should reload parent page

2011-04-08 Thread Alexander Morozov
1. use AjaxLink AjaxLink redirectLink = new AjaxLink(...) { public void onClick(AjaxRequestTarget target) { ModalWindow.closeCurrent(target); target.appendJavascript("window.location='" + urlFor(AnotherPage.class) + "'"); } }; 2. or embed javascipt to base page: - -

Re: Pre-Select CheckBox in CheckBoxMultipleChoice?

2011-04-05 Thread Alexander Morozov
Pedro, should we notify multipleChoiceModel that model is changed ? checkBoxMultipleChoiceComponent.setDefaultModel( multipleChoiceModel ); multipleChoiceModel.getObject().add( X ); multipleChoiceModel.modelChanged(); Pedro Santos wrote: > > add X in the CheckBoxMultipleChoice model collection

Re: How Does Wicket Populate Form Components And Other Stuff

2011-04-03 Thread Alexander Morozov
Hi, you could use something like http://bindgen.org/ to access to properties in a bean without reflection (http://code.google.com/p/bindgen-wicket/). - -- http://www.linkedin.com/in/amorozov -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-Does-Wicket-Populate

Re: WICKET-2056 broke DatePicker in ModalWindow in 1.4.16

2011-03-29 Thread Alexander Morozov
Got the same issue. Please, file jira. - -- http://www.linkedin.com/in/amorozov -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/WICKET-2056-broke-DatePicker-in-ModalWindow-in-1-4-16-tp3416225p3416830.html Sent from the Users forum mailing list archive at Nabble.com

Re: Nested Forms and Multipart Fileupload Issue

2011-03-24 Thread Alexander Morozov
d to this component. > > 2) the onSubmit method of the AjaxButton is called instead of the > onError > > method. > > > > Sorry, but I have not found a workaround yet. > > > > Kind regards, > > Stijn > > > > > > On 17 January 2011 17:59,

Re: Text after input field

2011-02-21 Thread Alexander Morozov
Try this textField.add(new AbstractBehavior() { public void onRendered(Component component) { component.getResponse().write("text after text input"); } }); -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Text-after-input-field-tp3317381p3317612.html Sent from

Re: usage of JavascriptFilteredIntoFooterHeaderResponse

2011-02-11 Thread Alexander Morozov
WicketApplication: public static final String FOOTER_FILTER_NAME = "footerBucket"; @Override protected void init() { super.init(); ... setHeaderResponseDecorator(new IHeaderResponseDecorator() { @Override public IHeaderResponse decorate(IHeaderResponse response) {

Re: [1.5 MIGRATION] State handling / inter-page events / versioning

2011-02-11 Thread Alexander Morozov
What about passing page _references_ to other pages ? Are there any "reefs" here ? Thanks Igor Vaynberg-2 wrote: > > starting with 1.4 we have advocated that passing page instances to > other pages is a bad idea, whether directly or via anonymous classes. > > -igor > > On Fri, Feb 11, 2011 a

Re: [1.4.15] FLAG_INHERITABLE_MODEL and default model change

2011-02-02 Thread Alexander Morozov
Igor, I have one more question about IWrapModel : why the Component#defaultModelComparator doesn't check and unwrap IWrapModel before calling the IModel#getObject() ? private static final IModelComparator defaultModelComparator = new IModelComparator() { private

Re: [1.4.15] FLAG_INHERITABLE_MODEL and default model change

2011-02-02 Thread Alexander Morozov
Done https://issues.apache.org/jira/browse/WICKET-3413 -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/1-4-15-FLAG-INHERITABLE-MODEL-and-default-model-change-tp3252093p3254349.html Sent from the Users forum mailing list archive at Nabble.com. ---

[1.4.15] FLAG_INHERITABLE_MODEL and default model change

2011-02-01 Thread Alexander Morozov
Hi, I have the question about correctness of Component#setDefaultModel (Component#setModelImpl) method behavior. I expect that the flag FLAG_INHERITABLE_MODEL should be checked there and turned off if the provided model is not a IComponentInheritedModel. Let check the next code: public MyPanel

Re: Nested Forms and Multipart Fileupload Issue

2011-01-17 Thread Alexander Morozov
Hi, I have faced with another problem, related to nested forms and FileUploadField (wicket-1.4.15). The nested form have FileUploadField instance and defined setMaxSize(100K). In case of submitting thru Ajax file more than 100K, hasError() on the nested form return false. But I expect here 'true'

Re: Skip session creation when AjaxLink is disabled

2011-01-16 Thread Alexander Morozov
I'm not sure, but you can try Page.setStatelessHint(true) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Skip-session-creation-when-AjaxLink-is-disabled-tp3219342p3220064.html Sent from the Users forum mailing list archive at Nabble.com. -

Re: Can't get a SortableDataProvider class to accept DI of service class

2011-01-14 Thread Alexander Morozov
1. Replace @Autowired with @SpringBean (do not forget to configure spring instanciation listener in WebApplication) 2. Call InjectorHolder.getInstance().inject(this) from SortableDataProvider ctor. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Can-t-get-a-SortableD

Re: AjaxFallbackDefaultDataTable

2011-01-12 Thread Alexander Morozov
You should replace you table component with another column list and when export to excel. I do not know other way to hide some columns. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AjaxFallbackDefaultDataTable-tp3213858p3214022.html Sent from the Users forum maili

Re: Using CheckGroup with a listview

2011-01-05 Thread Alexander Morozov
try lstUsers.setReuseItems(true) (see ListView javadoc) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Using-CheckGroup-with-a-listview-tp3175047p3175610.html Sent from the Users forum mailing list archive at Nabble.com. ---

Re: remove onclick eventbehaviour after first click

2010-12-25 Thread Alexander Morozov
Component.remove(IBehaviour) ? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/remove-onclick-eventbehaviour-after-first-click-tp3164011p3164105.html Sent from the Users forum mailing list archive at Nabble.com. ---

Re: adding sub rows to AjaxFallbackDefaultDataTable

2010-12-20 Thread Alexander Morozov
Suggest another approach: class MasterTable extends DefaultDataTable { public MasterTable(...) { setItemReuseStrategy(new MasterTableReuseStrategy(this)); } protected Item newDetailsRow(...) { /* create row here */ } protected void populateDetailsRow(...) { /* populate details (cells) he

Re: Wicket.Ajax.registerPreCallHandler

2010-12-16 Thread Alexander Morozov
checkout artifactory sources and check AjaxIndicator implementation. http://www.jfrog.org/community.php -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-Ajax-registerPreCallHandler-tp3091091p3091105.html Sent from the Users forum mailing list archive at Nabble.c

Re: how to validate a ListView?

2010-12-15 Thread Alexander Morozov
@Override protected void onInitialize() { super.onInitialize(); Form.findForm(this).add(new AbstractFormValidator() { private static final long serialVersionUID = 1L; @Override public void validate(Form form) { if (/* ... */) { fo

Re: how to validate a ListView?

2010-12-14 Thread Alexander Morozov
You cant add IValidator to a ListView because it is not a FormComponent. You can: 1. check ListView.getList() within Form.onSubmit() and call form.error(...) if list is empty 2. create a form validator based on AbstractFormValidator and add it to the form component -- View this message in contex

Re: Invalid html rendered with DataTable [ex. empty tfoot element]

2010-12-14 Thread Alexander Morozov
1. create patch and send it to JIRA :) 2. apply transformer behavior to a table component -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Invalid-html-rendered-with-DataTable-ex-empty-tfoot-element-tp3058934p3087508.html Sent from the Users forum mailing list archive

Re: 1.5 integer textfield

2010-12-14 Thread Alexander Morozov
refreshRateTextField.setType(Integer.class) should help PS Model class (refreshRateModel instance) does not provide type info. Check IObjectClassAwareModel. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/1-5-integer-textfield-tp3087246p3087489.html Sent from the Us

Re: Register feedback messages

2010-12-07 Thread Alexander Morozov
try { ... } catch (RuntimeException e) { error(e); } In FeedbackPanel you can preprocess any message. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Register-feedback-messages-tp3076561p3076662.html Sent from the Users forum mailing list archive at Nabble.com. --

Re: Extending Wicket's Button class to do some extra styling

2010-12-03 Thread Alexander Morozov
class StyledButton extends Button { public StyledButton(...) { super(); add(new SimpleAttributeModifier("class", "positive")); } @Override protected void onComponentTagBody(MarkupStream markupStream, ComponentTag openTag) { replaceComponentTagBody(markupStream, openTag, " "); } }

WICKET-962 and AbstractRepeater's warning about child ID's

2010-11-29 Thread Alexander Morozov
Hi, could any wicket gurus explain in more details about ajax updates and AbstractRepeater's limitation to child ids ? I found in mentioned in the subject issue, but still did not get the limitation. Is this limitation actual for wicket 1.4.x and wicket-1.5 ? In my project I use repeating view

Re: Link inside feedback message

2010-11-15 Thread Alexander Morozov
/* add feedback */ FeedbackPanel panel = new FeedbackPanel("feedback"); panel.setEscapeModelStrings(false); /* message with HTML*/ info("Please, visit http://apache-wicket.1842946.n4.nabble.com/Link-inside-feedback-message-tp3043825p3044162.html Sent from the Users forum mailing list archive at N

Re: generated form and form IDs vs model confusion

2010-11-05 Thread Alexander Morozov
I have the similar issue with Form (with CompountPropertyModel attached) and several text fields which generated on-the-fly by RepeatingView with no model specified (only field ID). I didn't investigate the issue deeply yet, but thinks the problem within model inheritance that "breaks" by presence

Re: On-demand component initialization

2010-10-30 Thread Alexander Morozov
You can set content for modal within onClick method. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/On-demand-component-initialization-tp3020334p3020343.html Sent from the Users forum mailing list archive at Nabble.com. --

Re: Disable button double-click without breaking Form.setDefaultButton

2010-10-28 Thread Alexander Morozov
Check this thread http://apache-wicket.1842946.n4.nabble.com/Preventing-double-click-of-AjaxButtons-in-ModalWindow-td2289480.html -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Disable-button-double-click-without-breaking-Form-setDefaultButton-tp3018140p3018370.html

Re: How to combine JSF and Wicket components on the same page

2010-10-27 Thread Alexander Morozov
As far as I know, you can only "combine" wicket and JSP/JSF components by means of HTML frames - but it will be independent "pages" i.e. they can't transparently intercommunicate between each other (wicket <-> JSF). -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How

Re: Real world Wicket Reference projects?

2010-10-25 Thread Alexander Morozov
Check the Wiki https://cwiki.apache.org/WICKET/products-based-on-wicket.html https://cwiki.apache.org/WICKET/websites-based-on-wicket.html -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Real-world-Wicket-Reference-projects-tp3010502p3010614.html Sent from the Users

Re: Cross page login panel

2010-10-23 Thread Alexander Morozov
Check this thread for securedform http://apache-wicket.1842946.n4.nabble.com/SSL-Links-and-buttons-td3001634.html -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Cross-page-login-panel-tp3008005p3008222.html Sent from the Users forum mailing list archive at Nabble.co

Re: back-button causes Wicket state and page displayed to be out of synch

2010-10-22 Thread Alexander Morozov
Check wicketstuff's jquery project for HistoryAjaxBehavior. May be it helps. drf wrote: > > I have encountered the following serious issue: > > My application consists of one WebPage which has an AjaxTabbedPanel. Each > tab has an associated panel which includes several menu items (links) > wh

Re: GridView for A-Symmetric tables - issues

2010-10-22 Thread Alexander Morozov
Arjun Dhar wrote: > > Hi, > I've solved this problem by writing a new implementation of DataViewBase. > GridView did not seem appropriate to simply extend due to a few reasons. > (It assumes Symmetry for the most in its code). > > This Code can merge areas within the GRID and extract data from

Re: AjaxLazyLoadPanel IE and chrome

2010-10-21 Thread Alexander Morozov
Upgrade Wicket up to 1.4.12 - should help :) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AjaxLazyLoadPanel-IE-and-chrome-tp3006112p3006579.html Sent from the Users forum mailing list archive at Nabble.com.

Re: How to add image to table column and how to change image this on click?

2010-10-14 Thread Alexander Morozov
Hi, If I understand you correctly, you need to add ordering direction images it a table header. This can be done with CSS for instance: .wicket_orderUp, .wicket_orderDown, .wicket_orderNone { text-decoration: underline; padding-right: 15px; background-re

Re: Error updating DataTable after submit

2010-10-14 Thread Alexander Morozov
Hi, I the method onUpdate(AjaxRequestTarget target) you shoud reference to existing component: @Override protected void onUpdate(AjaxRequestTarget target) { target.addComponent(tableWrapper); }

RequestCycle.getResponsePage and PageReferenceRequestTarget

2010-10-14 Thread Alexander Morozov
Hi ppl, can anybody explain me why RequestCycle.getResponsePage() not handle PageReferenceRequestTarget ? Is it by design or is it bug ? public final Page getResponsePage() { IRequestTarget target = getRequestTarget(); if (target instanceof IPageRe

Re: Inheritance and inside a component tag (Wicket 1.5)

2010-10-06 Thread Alexander Morozov
Gabriel, thank you for reply, Gabriel Bucher wrote: > > Have you tried to use the TransparentWebMarkupContainer? based on the > migration guide this could be a potential solution. > Yep, I tried to use Transparent WebMarkupContainer and BoxBorder and got the same issue as described in WICKET

Inheritance and inside a component tag (Wicket 1.5)

2010-10-06 Thread Alexander Morozov
Hi, ParentPage.html: I know how it can be achieved in Wicket 1.4 (WebMarkupContainer with overrided isTransparentResolver), but I cannot get the same behavior in case of Wicket 1.5. Wicket gurus, I need your advice :) Thanks -- View this message in context: http://apache-wicket.1842946

Re: wicket and ext-js

2010-09-29 Thread Alexander Morozov
Hi, the integration projects, you mention above, seems inactive for a long time. Is it critical for your project to use exactly the Ext-JS javascript framework ? Have you looked at WiQuery project (jQuery integration) ? -- View this message in context: http://apache-wicket.1842946.n4.nabble.co

Re: setEnabled(true) doesn't enable a subcomponent

2010-09-27 Thread Alexander Morozov
Hi! Did you try to override isEnabled method on the button ? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/setEnabled-true-doesn-t-enable-a-subcomponent-tp2715172p2715313.html Sent from the Users forum mailing list archive at Nabble.com. -

Re: modalWindow setContent

2010-09-26 Thread Alexander Morozov
check this: modalWindow.setContent(new SearchResults(modalWindow .getContentId(), modalWindow, resultModel)); /* FIXME use ModalWindow.show(target) instead target.addComponent(modalWindow, "modal"); */ logger.info("hey hey"); modalWindow.show(target); -- View this message in c

Re: modalWindow setContent

2010-09-26 Thread Alexander Morozov
Hi You need to add modal window placeholder tag on the page and call, attach ModalWindow instance to it and call modalWindowInstance.show(target) within onSubmit(AjaxRequestTarget target) method on the submit button. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com

Re: Saving a component in session

2010-09-25 Thread Alexander Morozov
So IComponentResolver cannot modify component hierarchy. Right ? And there is no way for the author to create and handle "special" tag . -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Saving-a-component-in-session-tp2551649p2714088.html Sent from the Use

Re: Saving a component in session

2010-09-24 Thread Alexander Morozov
AjaxEditableLabel must be attached to some well-defined HTML tag (placeholder) in your markup, for example, here is my default translation How you render this placeholder for you tag ? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Saving-a-component-in-session-t

Re: Making a DecoratedButton; Need to pre-fix/post-fix tag around the button component

2010-09-24 Thread Alexander Morozov
Check out the artifactory code (http://www.jfrog.org/index.php) and check TemplateBehavior class. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Making-a-DecoratedButton-Need-to-pre-fix-post-fix-div-tag-around-the-button-component-tp2552950p2553242.html Sent from th

Re: Saving a component in session

2010-09-24 Thread Alexander Morozov
Alexandru Artimon wrote: > > The thing is that I'm coding my own tag and I use a > class that implements IComponentResolver in order to resolve it. > Now the problem is that when I click on the AjaxEditableLabel (that took > place of my tag) it makes an Ajax request in order to hide the label

Re: dynamic template page

2010-09-22 Thread Alexander Morozov
Hi, have you check wicket-velocity project ? Also look at IResourceStreamLocator and IMarkupResourceStreamProvider interfaces. Hopes it help :) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/dynamic-template-page-tp2550354p2550385.html Sent from the Users forum ma

Re: Wicket and Apache Felix

2010-09-22 Thread Alexander Morozov
Hi, I have similar question sometime ago and found only PAX Wicket Integration... Concerning to springframework - I guess that 3.0.x is OSGI-ready. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-and-Apache-Felix-tp2549800p2549822.html Sent from the Users for

Re: Default unauthorized access handling

2010-09-21 Thread Alexander Morozov
Hi! I think you can use interface IUnauthorizedComponentInstantiationListener and push necessary information message to Session object. On SignInPage - check the session and render the message. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Default-unauthorized-acc

Re: FeedbackPanel does not clean up after displaying error messages using Ajax

2010-09-21 Thread Alexander Morozov
saveLink = new AjaxSubmitLink("save", mainform) { @Override protected void onSubmit(AjaxRequestTarget target, Form form) { /* do not forget to refresh feedback panel on successful submit */ info("Request processed successfully!");

Re: FeedbackPanel does not clean up after displaying error messages using Ajax

2010-09-21 Thread Alexander Morozov
What about feedback markup ID ? Is it present on the page ? It seems that you forgot to invoke setOutputMarkupPlaceholderTag(true) on FeedbackPanel instance. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/FeedbackPanel-does-not-clean-up-after-displaying-error-messag

Re: render google analytics at end of head

2010-09-12 Thread Alexander Morozov
I think this is not hack, but "raw" post-processing :) Strict processing can be done with XsltTransformerBehavior or as Martin said, you can use JS. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/render-google-analytics-at-end-of-head-tp2536175p2536224.html Sent fro

Re: render google analytics at end of head

2010-09-12 Thread Alexander Morozov
Hi! Have you looked at IResponseFilter ? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/render-google-analytics-at-end-of-head-tp2536175p2536213.html Sent from the Wicket - User mailing list archive at Nabble.com. --

Re: Header requiring to be contributed through page load and not ajax...

2010-09-11 Thread Alexander Morozov
Hi! Check this jQ plugin http://docs.jquery.com/Plugins/livequery -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Header-requiring-to-be-contributed-through-page-load-and-not-ajax-tp2533526p2535816.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: Close modal window on session timeout

2010-09-11 Thread Alexander Morozov
Yep, just put it to home (base) page. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Close-modal-window-on-session-timeout-tp2534936p2535578.html Sent from the Wicket - User mailing list archive at Nabble.com. ---

Re: Replace components with AjaxCheckbox

2010-09-06 Thread Alexander Morozov
Check this: if (isChecked) { System.out.println("is checked"); component = new Label("component", "is checked"); /* output markup ID */ component.setOutputMarkupId(true);

Re: OT: Best practices regarding service layers & DAOs

2010-08-31 Thread Alexander Morozov
Sebastian wrote: > > Alexander, > > If I understand you correctly, you are saying: view-only operations (e.g. > listings, search forms) can access the DAOs directly, and all operations > that modify data should be routed through the service layer? > Yep (in general). Sebastian wrote: > > H

Re: OT: Best practices regarding service layers & DAOs

2010-08-30 Thread Alexander Morozov
Brain thank you for comment, saying about Wicket and transactions, from my point of view, we have 2 posibilities: 1. manage transaction boundaries on per-request way (override RequestCycle.onBeginRequest(), RequestCycle.onEndRequest(), RequestCycle.onRuntimeException()) with PlatformTransactionMa

Re: OT: Best practices regarding service layers & DAOs

2010-08-30 Thread Alexander Morozov
Hi Sebastian, I think that service layer have to be responsible only for CRUD operations, but L(list) operations should be built upon JPA-specific _READ-ONLY_ queries or some kind of DSL (for example, querydsl http://source.mysema.com/display/querydsl/Querydsl). The last one point allows to build

Re: POST request comes as GET in wicket

2010-08-19 Thread Alexander Morozov
Hi! You may look at Apache Wiki, for example, https://cwiki.apache.org/WICKET/render-strategies.html. PRG (post-> redirect -> get) - the default request processing strategy in the Wicket. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/POST-request-comes-as-GET-in-wi

Re: can I enable/disable submit button while customer working on form?

2010-08-19 Thread Alexander Morozov
Hi! You just change internal state of delete button to invisible. But it seems that you forgot to refresh the entire form or just _delete_button component with AjaxRequestTarget (every components that should be refreshed by AJAX must have markup ID and should be added to AjaxRequestTarget object